Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test9,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.68e-05/4.697e-05, allocations: 11.98 kB / 273.1 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 48.69 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4316/0.5362, allocations: 75.74 MB / 397.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.5366, allocations: 75.27 kB / 397.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01818/0.5548, allocations: 4.031 MB / 401.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5548, allocations: 4 kB / 401.7 MB, free: 10.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.5548, allocations: 4 kB / 401.7 MB, free: 10.1 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.0005844/0.5554, allocations: 419.9 kB / 402.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.5555, allocations: 8.031 kB / 402.1 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.354e-05/0.5556, allocations: 30.56 kB / 402.1 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.5556, allocations: 11.91 kB / 402.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.5559, allocations: 204.5 kB / 402.3 MB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.556, allocations: 4 kB / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.555e-05/0.556, allocations: 4 kB / 402.3 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.5562, allocations: 53.61 kB / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.5562, allocations: 0 / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.5562, allocations: 0 / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.5562, allocations: 0 / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.29e-05/0.5563, allocations: 16 kB / 402.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.5568, allocations: 292.9 kB / 402.7 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.5571, allocations: 50.97 kB / 402.8 MB, free: 8.863 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.775e-05/0.5572, allocations: 12.86 kB / 402.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.5572, allocations: 0 / 402.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/0.5574, allocations: 59.47 kB / 402.8 MB, free: 8.777 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.104e-06/0.5574, allocations: 4 kB / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004888/0.5579, allocations: 117.2 kB / 402.9 MB, free: 8.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.5579, allocations: 55.39 kB / 403 MB, free: 8.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.5582, allocations: 181.3 kB / 403.2 MB, free: 8.402 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.5583, allocations: 25.7 kB / 403.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.5584, allocations: 166.5 kB / 403.4 MB, free: 8.207 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.5584, allocations: 15.8 kB / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.105e-05/0.5584, allocations: 4 kB / 403.4 MB, free: 8.188 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5586, allocations: 314.8 kB / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.841e-05/0.5587, allocations: 20 kB / 403.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.537e-05/0.5588, allocations: 27.98 kB / 403.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.5589, allocations: 49.73 kB / 403.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.5589, allocations: 7.938 kB / 403.8 MB, free: 7.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002935/0.5592, allocations: 127.4 kB / 403.9 MB, free: 7.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.5593, allocations: 33.7 kB / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5593, allocations: 3.984 kB / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.5593, allocations: 0 / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.5594, allocations: 8 kB / 404 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.5595, allocations: 3.953 kB / 404 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.255e-05/0.5596, allocations: 12 kB / 404 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5596, allocations: 8 kB / 404 MB, free: 7.551 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 9.651e-05/0.5597, allocations: 109 kB / 404.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.5597, allocations: 15.8 kB / 404.1 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002911/0.56, allocations: 85.77 kB / 404.2 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.5601, allocations: 4 kB / 404.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5601, allocations: 0 / 404.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.5601, allocations: 3.953 kB / 404.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005529/0.5607, allocations: 358.5 kB / 404.5 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.5607, allocations: 0 / 404.5 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.784e-05/0.5608, allocations: 8 kB / 404.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.5608, allocations: 0 / 404.6 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.5608, allocations: 4 kB / 404.6 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.5608, allocations: 3.953 kB / 404.6 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5608, allocations: 0 / 404.6 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.5611, allocations: 179.4 kB / 404.7 MB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.627e-05/0.5612, allocations: 92.92 kB / 404.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.5612, allocations: 0 / 404.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.5613, allocations: 11.98 kB / 404.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.5614, allocations: 7.953 kB / 404.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.5614, allocations: 4 kB / 404.9 MB, free: 6.578 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002044/0.5616, allocations: 148.9 kB / 405 MB, free: 6.434 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5617, allocations: 3.938 kB / 405 MB, free: 6.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003818/0.5621, allocations: 39.92 kB / 405 MB, free: 6.391 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.00151/0.5636, allocations: 0.9472 MB / 406 MB, free: 5.473 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003227/0.5639, allocations: 107.4 kB / 406.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.564, allocations: 0 / 406.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.672e-05/0.5641, allocations: 31.92 kB / 406.1 MB, free: 5.324 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.5644, allocations: 23.8 kB / 406.1 MB, free: 5.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008019/0.5652, allocations: 245 kB / 406.4 MB, free: 5.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.5656, allocations: 0.7113 MB / 407.1 MB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.404e-05/0.5657, allocations: 27.44 kB / 407.1 MB, free: 4.258 MB / 330.7 MB Notification: Performance of SimCode: time 1.553e-06/0.5657, allocations: 0 / 407.1 MB, free: 4.258 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_Test9CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9FMU.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_Test9.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9CalcHelperMain.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_Test9_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test9.fmu] Error 1