Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test34,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.043/2.043, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.668e-05/5.686e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4177/0.5301, allocations: 75.78 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5304, allocations: 71.09 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01814/0.5486, allocations: 4.008 MB / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5486, allocations: 0 / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.5486, allocations: 0 / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006282/0.5493, allocations: 423.9 kB / 402.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5493, allocations: 12.03 kB / 402.1 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.879e-05/0.5494, allocations: 30.56 kB / 402.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.5495, allocations: 7.906 kB / 402.2 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.5498, allocations: 194.9 kB / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.5498, allocations: 7.984 kB / 402.4 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/0.5498, allocations: 7.906 kB / 402.4 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.55, allocations: 41.69 kB / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.55, allocations: 3.984 kB / 402.4 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.55, allocations: 7.938 kB / 402.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.5501, allocations: 0 / 402.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.136e-05/0.5501, allocations: 19.89 kB / 402.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000463/0.5506, allocations: 292.9 kB / 402.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.5509, allocations: 39.03 kB / 402.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.595e-05/0.5509, allocations: 16.86 kB / 402.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.551, allocations: 4 kB / 402.8 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001444/0.5511, allocations: 63.42 kB / 402.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.254e-06/0.5511, allocations: 0 / 402.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004713/0.5516, allocations: 113.3 kB / 403 MB, free: 8.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.5517, allocations: 51.41 kB / 403 MB, free: 8.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.5519, allocations: 152.7 kB / 403.2 MB, free: 8.426 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.5519, allocations: 29.7 kB / 403.2 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.277e-05/0.552, allocations: 162.5 kB / 403.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.072e-05/0.5521, allocations: 23.8 kB / 403.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.5521, allocations: 0 / 403.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.5522, allocations: 314.8 kB / 403.7 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.881e-05/0.5523, allocations: 24 kB / 403.7 MB, free: 7.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.257e-05/0.5524, allocations: 23.98 kB / 403.7 MB, free: 7.844 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.5525, allocations: 53.64 kB / 403.8 MB, free: 7.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.5525, allocations: 0 / 403.8 MB, free: 7.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003037/0.5528, allocations: 131.2 kB / 403.9 MB, free: 7.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.397e-05/0.5529, allocations: 29.7 kB / 403.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.5529, allocations: 7.984 kB / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.553, allocations: 7.953 kB / 403.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.905e-05/0.5531, allocations: 8 kB / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.5531, allocations: 96 / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.61e-05/0.5532, allocations: 3.938 kB / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.5532, allocations: 8.062 kB / 404 MB, free: 7.574 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.694e-05/0.5533, allocations: 105 kB / 404.1 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.246e-05/0.5533, allocations: 11.91 kB / 404.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002811/0.5536, allocations: 97.69 kB / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.5536, allocations: 4 kB / 404.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.5537, allocations: 3.953 kB / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5537, allocations: 0 / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004805/0.5542, allocations: 346.5 kB / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5542, allocations: 4 kB / 404.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.987e-05/0.5543, allocations: 4 kB / 404.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.5543, allocations: 144 / 404.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.5543, allocations: 11.94 kB / 404.5 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.5543, allocations: 4 kB / 404.5 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5543, allocations: 0 / 404.5 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.5546, allocations: 171.4 kB / 404.7 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.5547, allocations: 89 kB / 404.8 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/0.5547, allocations: 4 kB / 404.8 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.642e-05/0.5548, allocations: 7.953 kB / 404.8 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.5549, allocations: 7.938 kB / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.5549, allocations: 0 / 404.8 MB, free: 6.621 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.5551, allocations: 139 kB / 404.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5551, allocations: 0 / 404.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003693/0.5554, allocations: 35.94 kB / 405 MB, free: 6.453 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001485/0.5569, allocations: 0.9439 MB / 405.9 MB, free: 5.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003051/0.5573, allocations: 115.3 kB / 406 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5573, allocations: 0 / 406 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.762e-05/0.5574, allocations: 16 kB / 406.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.5577, allocations: 23.88 kB / 406.1 MB, free: 5.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006933/0.5584, allocations: 229.2 kB / 406.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.5588, allocations: 0.6965 MB / 407 MB, free: 4.387 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.359e-05/0.5589, allocations: 31.42 kB / 407 MB, free: 4.355 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5589, allocations: 0 / 407 MB, free: 4.355 MB / 330.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_Tables_CombiTimeTable_Test34CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34FMU.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_Tables_CombiTimeTable_Test34.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34CalcHelperMain.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/Tables" "-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_Tables_CombiTimeTable_Test34_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test34.fmu] Error 1