- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Modelica 3D compile issue
Modelica 3D compile issue
Modelica 3D compile issue
Hi,
I was using modelica 3D for some time this summer on debian testing, and everithing was working perfectly fine. I was using the nightly build.
Then, after a while and after some upgrades of my system, modelica 3D stopped working correctly.
the following is the compilation output:
Code:
unScript("/home/dave/Dropbox/Dottorato/BasketBot/Modelica/simC_PI.mos")
"true
\"Warning: Requested package ModelicaServices of version 3.2.1, but this package was already loaded with version 3.2.1 modelica3d. You might experience problems if these versions are incompatible.
\"
true
true
\"\"
0
\"\"
record SimulationResult
resultFile = \"\",
simulationOptions = \"startTime = 0.0, stopTime = 60.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'SegwayG', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''\",
messages = \"Failed to build model: SegwayG\",
timeFrontend = 0.0,
timeBackend = 0.0,
timeSimCode = 0.0,
timeTemplates = 0.0,
timeCompile = 0.0,
timeSimulation = 0.0,
timeTotal = 0.0
end SimulationResult;
\"[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13464:7-13466:70:readonly] Warning: Parameter segway1.segwaymotor2.dcpm.TaOperational has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13475:7-13477:54:readonly] Warning: Parameter segway1.segwaymotor2.dcpm.TaNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13481:7-13483:71:readonly] Warning: Parameter segway1.segwaymotor2.dcpm.TaRef has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13484:7-13486:71:readonly] Warning: Parameter segway1.segwaymotor2.dcpm.alpha20a has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13464:7-13466:70:readonly] Warning: Parameter segway1.segwaymotor1.dcpm.TaOperational has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13475:7-13477:54:readonly] Warning: Parameter segway1.segwaymotor1.dcpm.TaNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13481:7-13483:71:readonly] Warning: Parameter segway1.segwaymotor1.dcpm.TaRef has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value.
[/usr/lib/omlibrary/Modelica 3.2.1/Electrical/Machines.mo:13484:7-13486:71:readonly] Warning: Parameter segway1.segwaymotor1.dcpm.alpha20a has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value.
Warning: The initial conditions are not fully specified. Use +d=initialization for more information.
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:40:5-44:19:readonly] Warning: Could not find library modbus in either of:
/usr/lib//libmodbus.a
/usr/lib//libmodbus.so
/usr/lib/x86_64-linux-gnu/omc/libmodbus.a
/usr/lib/x86_64-linux-gnu/omc/libmodbus.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:40:5-44:19:readonly] Warning: Could not find library dbus-1 in either of:
/usr/lib//libdbus-1.a
/usr/lib//libdbus-1.so
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.a
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.so
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.a
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:33:5-38:20:readonly] Warning: Could not find library modbus in either of:
/usr/lib//libmodbus.a
/usr/lib//libmodbus.so
/usr/lib/x86_64-linux-gnu/omc/libmodbus.a
/usr/lib/x86_64-linux-gnu/omc/libmodbus.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:33:5-38:20:readonly] Warning: Could not find library dbus-1 in either of:
/usr/lib//libdbus-1.a
/usr/lib//libdbus-1.so
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.a
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.so
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.a
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:35:5-39:19:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:89:3-94:16:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:62:5-66:19:readonly] Warning: Could not find library modbus in either of:
/usr/lib//libmodbus.a
/usr/lib//libmodbus.so
/usr/lib/x86_64-linux-gnu/omc/libmodbus.a
/usr/lib/x86_64-linux-gnu/omc/libmodbus.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:62:5-66:19:readonly] Warning: Could not find library dbus-1 in either of:
/usr/lib//libdbus-1.a
/usr/lib//libdbus-1.so
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.a
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.so
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.a
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:51:5-60:20:readonly] Warning: Could not find library modbus in either of:
/usr/lib//libmodbus.a
/usr/lib//libmodbus.so
/usr/lib/x86_64-linux-gnu/omc/libmodbus.a
/usr/lib/x86_64-linux-gnu/omc/libmodbus.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodbus.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodbus.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo:51:5-60:20:readonly] Warning: Could not find library dbus-1 in either of:
/usr/lib//libdbus-1.a
/usr/lib//libdbus-1.so
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.a
/usr/lib/x86_64-linux-gnu/omc/libdbus-1.so
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.a
/home/dave/.openmodelica/binaries/ModelicaServices/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libdbus-1.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libdbus-1.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:50:3-55:10:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:42:3-48:10:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:29:5-33:20:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:82:3-87:16:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:75:5-79:19:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
[/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo:68:5-73:20:readonly] Warning: Could not find library modcount in either of:
/usr/lib//libmodcount.a
/usr/lib//libmodcount.so
/usr/lib/x86_64-linux-gnu/omc/libmodcount.a
/usr/lib/x86_64-linux-gnu/omc/libmodcount.so
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.a
/home/dave/.openmodelica/binaries/ModelicaServices/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64/libmodcount.so
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.a
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/libmodcount.so
Error: Error building simulator. Build log: clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG.o SegwayG.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_functions.o SegwayG_functions.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_records.o SegwayG_records.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_01exo.o SegwayG_01exo.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_02nls.o SegwayG_02nls.c
SegwayG_functions.c:369:12: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if((tmp2 == (modelica_integer)_n))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
SegwayG_functions.c:369:12: note: remove extraneous parentheses around the comparison to silence this warning
if((tmp2 == (modelica_integer)_n))
~ ^ ~
SegwayG_functions.c:369:12: note: use '=' to turn this equality comparison into an assignment
if((tmp2 == (modelica_integer)_n))
^~
=
SegwayG_functions.c:3914:3: warning: implicit declaration of function 'modcount_set_string' is invalid in C99 [-Wimplicit-function-declaration]
modcount_set_string(_str_ext, MMC_STRINGDATA(_val));
^
SegwayG_functions.c:4120:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if((tmp1 == ((modelica_integer) 0)))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
SegwayG_functions.c:4120:16: note: remove extraneous parentheses around the comparison to silence this warning
if((tmp1 == ((modelica_integer) 0)))
~ ^ ~
SegwayG_functions.c:4120:16: note: use '=' to turn this equality comparison into an assignment
if((tmp1 == ((modelica_integer) 0)))
^~
=
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_03lsy.o SegwayG_03lsy.c
3 warnings generated.
In file included from SegwayG.c:37:
/usr/include/omc/c/simulation/solver/perform_simulation.c:100:7: warning: implicit declaration of function 'cleanUpOldValueListAfterEvent' is invalid in C99 [-Wimplicit-function-declaration]
cleanUpOldValueListAfterEvent(data, solverInfo->currentTime);
^
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_04set.o SegwayG_04set.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_05evt.o SegwayG_05evt.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_06inz.o SegwayG_06inz.c
1 warning generated.
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_07dly.o SegwayG_07dly.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_08bnd.o SegwayG_08bnd.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_09alg.o SegwayG_09alg.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_10asr.o SegwayG_10asr.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_11mix.o SegwayG_11mix.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_12jac.o SegwayG_12jac.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_13opt.o SegwayG_13opt.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_14lnz.o SegwayG_14lnz.c
clang -fPIC -O0 -march=native \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -c -o SegwayG_15syn.o SegwayG_15syn.c
clang -I. -o SegwayG SegwayG.o SegwayG_functions.o SegwayG_records.o SegwayG_01exo.o SegwayG_02nls.o SegwayG_03lsy.o SegwayG_04set.o SegwayG_05evt.o SegwayG_06inz.o SegwayG_07dly.o SegwayG_08bnd.o SegwayG_09alg.o SegwayG_10asr.o SegwayG_11mix.o SegwayG_12jac.o SegwayG_13opt.o SegwayG_14lnz.o SegwayG_15syn.o \"-I/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include\" -I\"/usr/include/omc/c\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME \"-L/usr/lib/\" -Wl,-rpath=\"/usr/lib/\" \"-L/usr/lib/x86_64-linux-gnu/omc\" -Wl,-rpath=\"/usr/lib/x86_64-linux-gnu/omc\" \"-L/home/dave/.openmodelica/binaries/OpenModelica\" -Wl,-rpath=\"/home/dave/.openmodelica/binaries/OpenModelica\" \"-L/usr/lib/omc/Resources/Library/x86_64-linux\" -Wl,-rpath=\"/usr/lib/omc/Resources/Library/x86_64-linux\" \"-L/usr/lib/omc/Resources/Library/linux64\" -Wl,-rpath=\"/usr/lib/omc/Resources/Library/linux64\" \"-L/usr/lib/omc/Resources/Library\" -Wl,-rpath=\"/usr/lib/omc/Resources/Library\" -lModelicaExternalC \"-L/home/dave/.openmodelica/binaries/ModelicaServices\" -Wl,-rpath=\"/home/dave/.openmodelica/binaries/ModelicaServices\" \"-L/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux\" -Wl,-rpath=\"/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/x86_64-linux\" \"-L/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64\" -Wl,-rpath=\"/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library/linux64\" \"-L/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library\" -Wl,-rpath=\"/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Library\" -lmodcount -lmodbus -ldbus-1 \"-L/home/dave/.openmodelica/binaries/Modelica\" -Wl,-rpath=\"/home/dave/.openmodelica/binaries/Modelica\" \"-L/usr/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux\" -Wl,-rpath=\"/usr/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux\" \"-L/usr/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64\" -Wl,-rpath=\"/usr/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64\" \"-L/usr/lib/omlibrary/Modelica 3.2.1/Resources/Library\" -Wl,-rpath=\"/usr/lib/omlibrary/Modelica 3.2.1/Resources/Library\" -fPIC -O0 -march=native -L\"/usr/lib/x86_64-linux-gnu/omc\" -L\"/usr/lib\" -Wl,-rpath,\"/usr/lib/x86_64-linux-gnu/omc\" -Wl,-rpath,\"/usr/lib\" -lSimulationRuntimeC -llapack -lblas -lm -lomcgc -lpthread -rdynamic -Wl,--no-undefined
/usr/bin/ld: impossibile trovare -lmodcount
/usr/bin/ld: impossibile trovare -lmodbus
clang: error: linker command failed with exit code 1 (use -v to see invocation)
SegwayG.makefile:29: set di istruzioni per l'obiettivo \"omc_main_target\" non riuscito
make: *** [omc_main_target] Errore 1
\"
The linker complains about two libraries that are not found, modcount and modbus.
There is a similar bug in the tracker, but there's no solution for that problem, even though it is marked as fixed:
https://trac.openmodelica.org/OpenModelica/ticket/2978
Does anybody knows a solution for that issue? I've always had problems with openmodelica 3D that made that library unusable for some periods of time...
Thaks for the help in advance.
Re: Modelica 3D compile issue
Same issue on Debian Jessie, that should be a supported platform...
seemes that modcount and modbus libraries are not installed with the modelica3d package...
this is the content of the package omlib-modelicaservices-3.2.1-modelica3d
Code:
/.
/usr
/usr/lib
/usr/lib/omlibrary
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Modelica3D
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Modelica3D/package.mo
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include/modbus.h
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/Resources/Include/modcount.h
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modbus/package.mo
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/modcount/package.mo
/usr/lib/omlibrary/ModelicaServices 3.2.1 modelica3d/package.mo
/usr/share
/usr/share/doc
/usr/share/doc/omlib-modelicaservices-3.2.1-modelica3d
/usr/share/doc/omlib-modelicaservices-3.2.1-modelica3d/changelog.Debian.gz
/usr/share/doc/omlib-modelicaservices-3.2.1-modelica3d/copyright
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Modelica 3D compile issue