Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.002/2.002, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.82e-05/3.827e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5117/0.6195, allocations: 92.83 MB / 414.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.6199, allocations: 70.84 kB / 414.7 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7298/1.35, allocations: 92.36 MB / 0.4952 GB, free: 93.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.836e-06/1.35, allocations: 0 / 0.4952 GB, free: 93.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004812/1.35, allocations: 82.72 kB / 0.4953 GB, free: 93.64 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1590 * Number of variables: 1590 Notification: Performance of Generate backend data structure: time 0.02203/1.372, allocations: 4.715 MB / 0.4999 GB, free: 92.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/1.372, allocations: 9.812 kB / 0.4999 GB, free: 92.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004355/1.377, allocations: 0.799 MB / 0.5007 GB, free: 92.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01891/1.396, allocations: 2.233 MB / 0.5029 GB, free: 92.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02254/1.418, allocations: 5.056 MB / 0.5078 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006565/1.419, allocations: 327.1 kB / 0.5081 GB, free: 91.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002871/1.422, allocations: 427.2 kB / 0.5085 GB, free: 91.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03894/1.461, allocations: 11.43 MB / 0.5197 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002961/1.461, allocations: 57.73 kB / 0.5197 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002112/1.463, allocations: 211.1 kB / 0.5199 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002528/1.466, allocations: 1.151 MB / 0.5211 GB, free: 89.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03022/1.496, allocations: 9.696 MB / 0.5305 GB, free: 89.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07762/1.574, allocations: 50.72 MB / 0.5801 GB, free: 53.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02296/1.597, allocations: 5.816 MB / 0.5857 GB, free: 51.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00596/1.603, allocations: 3.119 MB / 0.5888 GB, free: 49.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02098/1.624, allocations: 9.204 MB / 0.5978 GB, free: 44.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01847/1.643, allocations: 3.363 MB / 0.6011 GB, free: 42.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=209): time 7.333e-06/1.643, allocations: 3.406 kB / 0.6011 GB, free: 42.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=283): time 0.1641/1.807, allocations: 27.06 MB / 0.6275 GB, free: 20.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.353e-05/1.807, allocations: 158.5 kB / 0.6276 GB, free: 20.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008434/1.815, allocations: 3.663 MB / 0.6312 GB, free: 16.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009166/1.816, allocations: 69.7 kB / 0.6313 GB, free: 16.85 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003189/1.819, allocations: 3.138 MB / 0.6343 GB, free: 13.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001909/1.821, allocations: 1.044 MB / 0.6354 GB, free: 12.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/1.823, allocations: 132 kB / 0.6355 GB, free: 12.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005373/1.823, allocations: 0.5955 MB / 0.6361 GB, free: 11.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00831/1.831, allocations: 3.238 MB / 0.6392 GB, free: 8.707 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01068/1.842, allocations: 6.797 MB / 0.6459 GB, free: 140 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/1.855, allocations: 4.684 MB / 0.6505 GB, free: 11.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/1.855, allocations: 36 kB / 0.6505 GB, free: 11.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.3814/2.236, allocations: 11.88 MB / 0.6621 GB, free: 93.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001775/2.237, allocations: 87.84 kB / 0.6622 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002617/2.237, allocations: 125.7 kB / 0.6623 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01475/2.252, allocations: 2.671 MB / 0.6649 GB, free: 93.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01109/2.263, allocations: 1.474 MB / 0.6663 GB, free: 93.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04776/2.311, allocations: 21.52 MB / 0.6874 GB, free: 88.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009171/2.32, allocations: 433.2 kB / 0.6878 GB, free: 88.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002055/2.322, allocations: 391 kB / 0.6881 GB, free: 88.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,rod3.color[3],rod3.color[2],rod3.color[1],r4.cylinderColor[3],r4.cylinderColor[2],r4.cylinderColor[1],r3.cylinderColor[3],r3.cylinderColor[2],r3.cylinderColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (762): * Single equations (assignments): 754 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(3,88.9%) 13,(3,88.9%) 13} * Non-linear torn systems: 1 {2 27} Notification: Performance of prepare postOptimizeDAE: time 0.002151/2.324, allocations: 0.5954 MB / 0.6887 GB, free: 88.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/2.325, allocations: 395.8 kB / 0.6891 GB, free: 88.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02413/2.35, allocations: 7.861 MB / 0.6968 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.288e-05/2.35, allocations: 30.5 kB / 0.6968 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.27e-05/2.35, allocations: 6.906 kB / 0.6968 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-05/2.35, allocations: 14.47 kB / 0.6968 GB, free: 87.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04185/2.392, allocations: 14.52 MB / 0.711 GB, free: 82.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.023e-05/2.392, allocations: 0 / 0.711 GB, free: 82.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004299/2.396, allocations: 405.1 kB / 0.7114 GB, free: 82.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01151/2.408, allocations: 2.447 MB / 0.7138 GB, free: 82.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000862/2.409, allocations: 56.25 kB / 0.7138 GB, free: 82.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.041/2.45, allocations: 21.32 MB / 0.7347 GB, free: 71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/2.45, allocations: 2.531 kB / 0.7347 GB, free: 71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0241/2.474, allocations: 8.199 MB / 0.7427 GB, free: 67.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004031/2.478, allocations: 0.9839 MB / 0.7436 GB, free: 67.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00185/2.48, allocations: 51.44 kB / 0.7437 GB, free: 67.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005421/2.485, allocations: 207.5 kB / 0.7439 GB, free: 67.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001544/2.487, allocations: 190.9 kB / 0.7441 GB, free: 67.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004833/2.487, allocations: 75.22 kB / 0.7441 GB, free: 67.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006552/2.494, allocations: 2.557 MB / 0.7466 GB, free: 66.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.685e-06/2.494, allocations: 0 / 0.7466 GB, free: 66.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009753/2.504, allocations: 1.381 MB / 0.748 GB, free: 66.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,combiTimeTable.nextTimeEvent) * Number of discrete states: 1 (combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (189): * Single equations (assignments): 181 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(3,88.9%) 13,(2,100.0%) 14} * Non-linear torn systems: 1 {2 31} Notification: Performance of Backend phase and start with SimCode phase: time 0.02612/2.53, allocations: 9.561 MB / 0.7573 GB, free: 59.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02099/2.551, allocations: 8.475 MB / 0.7656 GB, free: 51.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/2.551, allocations: 1.422 kB / 0.7656 GB, free: 51.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01019/2.561, allocations: 3.873 MB / 0.7694 GB, free: 48.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/2.565, allocations: 433.8 kB / 0.7698 GB, free: 47.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03868/2.604, allocations: 12.1 MB / 0.7816 GB, free: 37.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008089/2.612, allocations: 3.673 MB / 0.7852 GB, free: 34.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006007/2.618, allocations: 2.106 MB / 0.7872 GB, free: 32.64 MB / 442.7 MB Notification: Performance of SimCode: time 2.334e-06/2.618, allocations: 0 / 0.7872 GB, free: 32.64 MB / 442.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMoveCalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMoveCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMoveCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMoveFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning generated. clang++ -shared -o ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMoveCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -lModelicaStandardTables -lModelicaIO -lModelicaMatIO -lzlib -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_VarDelete': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:4972: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `strdup_vprintf': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_Create5': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7716: undefined reference to `rpl_snprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7711: undefined reference to `rpl_snprintf' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove.fmu] Error 1