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 1.913/1.913, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.83e-05/3.856e-05, allocations: 3.984 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1415, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4976/0.6392, allocations: 92.82 MB / 414.6 MB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.6395, allocations: 70.53 kB / 414.7 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4527/1.092, allocations: 92.36 MB / 0.4952 GB, free: 40 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.092, allocations: 0 / 0.4952 GB, free: 40 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.2864/1.379, allocations: 83.25 kB / 0.4953 GB, free: 94.17 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.02281/1.402, allocations: 4.718 MB / 0.4999 GB, free: 93.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/1.402, allocations: 9.156 kB / 0.4999 GB, free: 93.39 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00431/1.406, allocations: 0.7986 MB / 0.5007 GB, free: 93.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01891/1.425, allocations: 2.234 MB / 0.5028 GB, free: 93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02291/1.448, allocations: 5.051 MB / 0.5078 GB, free: 92.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006221/1.449, allocations: 327.1 kB / 0.5081 GB, free: 92.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002983/1.452, allocations: 431.8 kB / 0.5085 GB, free: 92.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03809/1.49, allocations: 11.47 MB / 0.5197 GB, free: 89.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002767/1.49, allocations: 60.14 kB / 0.5198 GB, free: 89.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00186/1.492, allocations: 210.1 kB / 0.52 GB, free: 89.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002386/1.494, allocations: 1.152 MB / 0.5211 GB, free: 89.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0301/1.524, allocations: 9.878 MB / 0.5307 GB, free: 89.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07801/1.603, allocations: 50.71 MB / 0.5803 GB, free: 53.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02276/1.625, allocations: 5.839 MB / 0.586 GB, free: 51.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00619/1.632, allocations: 3.122 MB / 0.589 GB, free: 49.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02119/1.653, allocations: 9.206 MB / 0.598 GB, free: 44.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01853/1.671, allocations: 3.371 MB / 0.6013 GB, free: 42.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=209): time 5.41e-06/1.671, allocations: 0 / 0.6013 GB, free: 42.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=283): time 0.1863/1.858, allocations: 27.07 MB / 0.6277 GB, free: 20.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/1.858, allocations: 166.5 kB / 0.6279 GB, free: 20.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/1.871, allocations: 3.659 MB / 0.6315 GB, free: 16.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001149/1.872, allocations: 69.7 kB / 0.6315 GB, free: 16.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004645/1.877, allocations: 3.141 MB / 0.6346 GB, free: 13.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002499/1.879, allocations: 1.04 MB / 0.6356 GB, free: 12.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/1.88, allocations: 132 kB / 0.6357 GB, free: 12.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007072/1.881, allocations: 0.5877 MB / 0.6363 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01206/1.893, allocations: 3.242 MB / 0.6395 GB, free: 8.539 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01561/1.909, allocations: 6.83 MB / 0.6461 GB, free: 15.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01811/1.927, allocations: 4.692 MB / 0.6507 GB, free: 11.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001748/1.927, allocations: 39.94 kB / 0.6508 GB, free: 11.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.3498/2.277, allocations: 12.22 MB / 0.6627 GB, free: 93.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001717/2.278, allocations: 89.36 kB / 0.6628 GB, free: 93.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002756/2.278, allocations: 125.7 kB / 0.6629 GB, free: 93.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01461/2.292, allocations: 2.671 MB / 0.6655 GB, free: 93.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01103/2.304, allocations: 1.475 MB / 0.667 GB, free: 93.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0479/2.351, allocations: 21.53 MB / 0.688 GB, free: 88.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008808/2.36, allocations: 428.4 kB / 0.6884 GB, free: 88.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002084/2.362, allocations: 398.5 kB / 0.6888 GB, free: 88.52 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.003091/2.366, allocations: 0.589 MB / 0.6893 GB, free: 88.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/2.367, allocations: 400.7 kB / 0.6897 GB, free: 88.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0256/2.392, allocations: 7.853 MB / 0.6974 GB, free: 87.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.418e-05/2.393, allocations: 29.73 kB / 0.6974 GB, free: 87.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.992e-05/2.393, allocations: 10.84 kB / 0.6974 GB, free: 87.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.908e-05/2.393, allocations: 14.38 kB / 0.6974 GB, free: 87.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04536/2.438, allocations: 14.52 MB / 0.7116 GB, free: 82.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.238e-05/2.438, allocations: 9.312 kB / 0.7116 GB, free: 82.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004366/2.443, allocations: 403.8 kB / 0.712 GB, free: 82.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01303/2.456, allocations: 2.447 MB / 0.7144 GB, free: 82.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.457, allocations: 48.69 kB / 0.7145 GB, free: 82.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06037/2.517, allocations: 21.32 MB / 0.7353 GB, free: 71.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/2.517, allocations: 8.188 kB / 0.7353 GB, free: 71.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02821/2.545, allocations: 8.193 MB / 0.7433 GB, free: 68.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004215/2.55, allocations: 0.993 MB / 0.7442 GB, free: 67.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002304/2.552, allocations: 46.62 kB / 0.7443 GB, free: 67.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005547/2.558, allocations: 209.5 kB / 0.7445 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001615/2.559, allocations: 190.9 kB / 0.7447 GB, free: 67.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004835/2.56, allocations: 79.59 kB / 0.7448 GB, free: 67.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006622/2.567, allocations: 2.553 MB / 0.7472 GB, free: 66.53 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.62e-07/2.567, allocations: 0 / 0.7472 GB, free: 66.53 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009129/2.576, allocations: 1.38 MB / 0.7486 GB, free: 66.37 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.02547/2.601, allocations: 9.561 MB / 0.7579 GB, free: 58.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02141/2.623, allocations: 8.699 MB / 0.7664 GB, free: 51.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/2.623, allocations: 5.312 kB / 0.7664 GB, free: 51.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01025/2.633, allocations: 3.943 MB / 0.7703 GB, free: 47.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004313/2.637, allocations: 431.9 kB / 0.7707 GB, free: 47.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03898/2.676, allocations: 12.1 MB / 0.7825 GB, free: 36.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008125/2.685, allocations: 3.673 MB / 0.7861 GB, free: 33.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00615/2.691, allocations: 2.109 MB / 0.7882 GB, free: 32.03 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/2.691, allocations: 0 / 0.7882 GB, free: 32.03 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