Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test17,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.264/2.264, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.082e-05/5.09e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1385, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5085/0.6471, allocations: 75.78 MB / 397.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.6475, allocations: 71.97 kB / 397.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01874/0.6662, allocations: 3.962 MB / 401.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6663, allocations: 0 / 401.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.6663, allocations: 4 kB / 401.7 MB, free: 10.02 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.0006137/0.6669, allocations: 419.9 kB / 402.1 MB, free: 9.559 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.667, allocations: 8.031 kB / 402.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.635e-05/0.6671, allocations: 34.56 kB / 402.1 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.898e-05/0.6671, allocations: 7.906 kB / 402.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.6675, allocations: 198.9 kB / 402.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.6675, allocations: 4 kB / 402.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.6676, allocations: 4 kB / 402.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.6677, allocations: 45.62 kB / 402.4 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.6677, allocations: 0 / 402.4 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.6677, allocations: 4 kB / 402.4 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.6678, allocations: 0 / 402.4 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.45e-05/0.6678, allocations: 19.98 kB / 402.4 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004952/0.6684, allocations: 292.8 kB / 402.7 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.6686, allocations: 39.05 kB / 402.7 MB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.122e-05/0.6687, allocations: 16.94 kB / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.6687, allocations: 0 / 402.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001561/0.6689, allocations: 63.34 kB / 402.8 MB, free: 8.707 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.103e-06/0.6689, allocations: 0 / 402.8 MB, free: 8.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005029/0.6694, allocations: 109.4 kB / 402.9 MB, free: 8.594 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.6695, allocations: 55.41 kB / 403 MB, free: 8.527 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.6697, allocations: 152.4 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.6698, allocations: 29.7 kB / 403.2 MB, free: 8.336 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.071e-05/0.6699, allocations: 158.6 kB / 403.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.6699, allocations: 7.812 kB / 403.3 MB, free: 8.172 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.6699, allocations: 8 kB / 403.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.6701, allocations: 318.8 kB / 403.6 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.87e-05/0.6702, allocations: 27.92 kB / 403.7 MB, free: 7.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.327e-05/0.6703, allocations: 24 kB / 403.7 MB, free: 7.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.6704, allocations: 49.69 kB / 403.7 MB, free: 7.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.6704, allocations: 0 / 403.7 MB, free: 7.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000301/0.6707, allocations: 123.4 kB / 403.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/0.6708, allocations: 41.69 kB / 403.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.6708, allocations: 0 / 403.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.6708, allocations: 3.953 kB / 403.9 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.6709, allocations: 12 kB / 403.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.671, allocations: 0 / 403.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.099e-05/0.671, allocations: 4 kB / 403.9 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.6711, allocations: 8.125 kB / 403.9 MB, free: 7.531 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 0.0001011/0.6712, allocations: 113 kB / 404 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.6712, allocations: 3.906 kB / 404 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003087/0.6715, allocations: 89.7 kB / 404.1 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.6716, allocations: 0 / 404.1 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.6716, allocations: 7.953 kB / 404.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.6716, allocations: 0 / 404.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005131/0.6721, allocations: 350.5 kB / 404.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.6721, allocations: 0 / 404.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.598e-05/0.6722, allocations: 8 kB / 404.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.6722, allocations: 0 / 404.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.6723, allocations: 7.938 kB / 404.5 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.95e-06/0.6723, allocations: 3.938 kB / 404.5 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.6723, allocations: 4.188 kB / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002508/0.6725, allocations: 179.4 kB / 404.7 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.467e-05/0.6726, allocations: 85 kB / 404.8 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.6727, allocations: 8 kB / 404.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.853e-05/0.6728, allocations: 3.953 kB / 404.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.6728, allocations: 4 kB / 404.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.6729, allocations: 3.984 kB / 404.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001487/0.673, allocations: 119.3 kB / 404.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.673, allocations: 4 kB / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004161/0.6735, allocations: 32 kB / 404.9 MB, free: 6.426 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.001529/0.675, allocations: 0.9613 MB / 405.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000333/0.6754, allocations: 107.4 kB / 406 MB, free: 5.379 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6754, allocations: 0 / 406 MB, free: 5.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.801e-05/0.6755, allocations: 23.94 kB / 406 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.6759, allocations: 19.94 kB / 406 MB, free: 5.336 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006864/0.6766, allocations: 201.4 kB / 406.2 MB, free: 5.098 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.6769, allocations: 0.7004 MB / 406.9 MB, free: 4.371 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.669e-05/0.677, allocations: 27.42 kB / 407 MB, free: 4.344 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6771, allocations: 0 / 407 MB, free: 4.344 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_Test17CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17FMU.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_Test17.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17CalcHelperMain.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_Test17_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17.fmu] Error 1