Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test72,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.197/2.197, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.32e-05/4.336e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4408/0.5518, allocations: 75.63 MB / 397.5 MB, free: 14.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.5521, allocations: 67.97 kB / 397.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02298/0.5751, allocations: 5.474 MB / 403 MB, free: 8.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5751, allocations: 3.938 kB / 403 MB, free: 8.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.867e-05/0.5752, allocations: 8 kB / 403 MB, free: 8.762 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.0009785/0.5762, allocations: 0.6489 MB / 403.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.5763, allocations: 12.03 kB / 403.7 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.324e-05/0.5763, allocations: 30.56 kB / 403.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.5765, allocations: 51.39 kB / 403.8 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.5776, allocations: 451.3 kB / 404.2 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.5776, allocations: 4 kB / 404.2 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.79e-05/0.5776, allocations: 7.984 kB / 404.2 MB, free: 7.461 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.5778, allocations: 63.86 kB / 404.3 MB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.5779, allocations: 7.875 kB / 404.3 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.5779, allocations: 3.984 kB / 404.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.5779, allocations: 4 kB / 404.3 MB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.64e-05/0.578, allocations: 27.92 kB / 404.3 MB, free: 7.344 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005971/0.5786, allocations: 378.2 kB / 404.7 MB, free: 6.922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.5788, allocations: 61.2 kB / 404.7 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.563e-05/0.5789, allocations: 29.77 kB / 404.8 MB, free: 6.809 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.5789, allocations: 0 / 404.8 MB, free: 6.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.5791, allocations: 93.03 kB / 404.9 MB, free: 6.699 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.334e-06/0.5792, allocations: 0 / 404.9 MB, free: 6.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004483/0.5796, allocations: 129 kB / 405 MB, free: 6.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.5797, allocations: 77.11 kB / 405.1 MB, free: 6.473 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.5818, allocations: 0.9184 MB / 406 MB, free: 5.547 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.136e-05/0.5819, allocations: 29.7 kB / 406 MB, free: 5.512 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.5821, allocations: 254.5 kB / 406.3 MB, free: 5.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.148e-05/0.5822, allocations: 15.81 kB / 406.3 MB, free: 5.246 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/0.5822, allocations: 0 / 406.3 MB, free: 5.246 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.5824, allocations: 326.8 kB / 406.6 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.5825, allocations: 32 kB / 406.6 MB, free: 4.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.5827, allocations: 49.7 kB / 406.7 MB, free: 4.832 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.5829, allocations: 103.4 kB / 406.8 MB, free: 4.719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.5829, allocations: 3.938 kB / 406.8 MB, free: 4.715 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004622/0.5834, allocations: 185.1 kB / 407 MB, free: 4.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.776e-05/0.5835, allocations: 63.39 kB / 407 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.5835, allocations: 0 / 407 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.5835, allocations: 4 kB / 407 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.5837, allocations: 15.92 kB / 407 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.5837, allocations: 0 / 407 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.5839, allocations: 19.84 kB / 407.1 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.584, allocations: 12 kB / 407.1 MB, free: 4.391 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$PRE.startTime.nextTimeEvent,startTime.nextTimeEvent,$whenCondition1,$PRE.startTime_0.nextTimeEvent,startTime_0.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0001071/0.5841, allocations: 112.9 kB / 407.2 MB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.5842, allocations: 47.44 kB / 407.2 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004736/0.5847, allocations: 153.2 kB / 407.4 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.5847, allocations: 4 kB / 407.4 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5847, allocations: 128 / 407.4 MB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.5848, allocations: 4 kB / 407.4 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005735/0.5853, allocations: 381.2 kB / 407.8 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.5854, allocations: 7.938 kB / 407.8 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-05/0.5855, allocations: 4 kB / 407.8 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/0.5855, allocations: 4 kB / 407.8 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.5855, allocations: 0 / 407.8 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.5855, allocations: 3.984 kB / 407.8 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5855, allocations: 0 / 407.8 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004136/0.586, allocations: 183 kB / 408 MB, free: 3.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004018/0.5864, allocations: 184.7 kB / 408.1 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.5865, allocations: 11.98 kB / 408.2 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.5867, allocations: 7.984 kB / 408.2 MB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/0.5867, allocations: 7.984 kB / 408.2 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.5868, allocations: 4 kB / 408.2 MB, free: 3.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00153/0.5883, allocations: 0.7201 MB / 408.9 MB, free: 2.465 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5884, allocations: 0 / 408.9 MB, free: 2.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006016/0.589, allocations: 103.9 kB / 409 MB, free: 2.363 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,startTime.nextTimeEvent,$whenCondition1,startTime_0.nextTimeEvent) * Number of discrete states: 2 (startTime_0.nextTimeEvent,startTime.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002012/0.591, allocations: 1.12 MB / 410.1 MB, free: 1.281 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004331/0.5915, allocations: 202.7 kB / 410.3 MB, free: 1.059 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5915, allocations: 0 / 410.3 MB, free: 1.059 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.681e-05/0.5916, allocations: 27.92 kB / 410.3 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.5921, allocations: 47.69 kB / 410.4 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.5944, allocations: 0.9191 MB / 411.3 MB, free: 20 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.5951, allocations: 0.8466 MB / 412.2 MB, free: 15.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003492/0.5954, allocations: 143.3 kB / 412.3 MB, free: 15.01 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5955, allocations: 0 / 412.3 MB, free: 15.01 MB / 346.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_Test72CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72FMU.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_Test72.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72CalcHelperMain.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_Test72_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test72.fmu] Error 1