Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test68,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.966/1.966, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.307e-05/4.337e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4455/0.5568, allocations: 75.63 MB / 397.5 MB, free: 14.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5571, allocations: 71.09 kB / 397.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0233/0.5805, allocations: 5.422 MB / 403 MB, free: 8.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5805, allocations: 0 / 403 MB, free: 8.805 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.367e-05/0.5806, allocations: 12 kB / 403 MB, free: 8.793 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.001002/0.5816, allocations: 0.6412 MB / 403.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.5817, allocations: 12.03 kB / 403.6 MB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.311e-05/0.5817, allocations: 34.56 kB / 403.7 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.5819, allocations: 51.39 kB / 403.7 MB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.583, allocations: 435.3 kB / 404.1 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.5831, allocations: 4 kB / 404.1 MB, free: 7.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.5831, allocations: 7.938 kB / 404.1 MB, free: 7.512 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.5833, allocations: 75.78 kB / 404.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.5833, allocations: 0 / 404.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.5834, allocations: 4 kB / 404.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.5834, allocations: 0 / 404.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.592e-05/0.5835, allocations: 19.98 kB / 404.2 MB, free: 7.402 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.5841, allocations: 378.2 kB / 404.6 MB, free: 6.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.5843, allocations: 61.2 kB / 404.7 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.752e-05/0.5844, allocations: 21.78 kB / 404.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.5845, allocations: 4 kB / 404.7 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.5847, allocations: 100.9 kB / 404.8 MB, free: 6.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.415e-06/0.5847, allocations: 4 kB / 404.8 MB, free: 6.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004661/0.5852, allocations: 129.1 kB / 404.9 MB, free: 6.617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.5853, allocations: 81.11 kB / 405 MB, free: 6.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/0.5874, allocations: 0.8794 MB / 405.9 MB, free: 5.633 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.204e-05/0.5875, allocations: 25.7 kB / 405.9 MB, free: 5.602 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002296/0.5877, allocations: 250.5 kB / 406.2 MB, free: 5.355 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.436e-05/0.5878, allocations: 15.81 kB / 406.2 MB, free: 5.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.5878, allocations: 4 kB / 406.2 MB, free: 5.336 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.588, allocations: 326.8 kB / 406.5 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.5881, allocations: 35.94 kB / 406.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.5882, allocations: 49.7 kB / 406.6 MB, free: 4.918 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.5885, allocations: 99.38 kB / 406.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5885, allocations: 0 / 406.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004657/0.589, allocations: 200.9 kB / 406.9 MB, free: 4.594 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.091e-05/0.5891, allocations: 63.39 kB / 406.9 MB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.5891, allocations: 4 kB / 406.9 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.5891, allocations: 0 / 406.9 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.5892, allocations: 12.12 kB / 406.9 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.5893, allocations: 7.984 kB / 407 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.5895, allocations: 15.94 kB / 407 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.5896, allocations: 7.938 kB / 407 MB, free: 4.473 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.0001154/0.5897, allocations: 112.9 kB / 407.1 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.5898, allocations: 47.44 kB / 407.1 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004998/0.5903, allocations: 149.1 kB / 407.3 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.5904, allocations: 8 kB / 407.3 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.5904, allocations: 0 / 407.3 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5904, allocations: 7.922 kB / 407.3 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005592/0.591, allocations: 365.2 kB / 407.7 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.591, allocations: 0 / 407.7 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.826e-05/0.5911, allocations: 8 kB / 407.7 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.5911, allocations: 0 / 407.7 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.5911, allocations: 7.984 kB / 407.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.5911, allocations: 0 / 407.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5912, allocations: 0 / 407.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.5916, allocations: 187 kB / 407.9 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.592, allocations: 188.4 kB / 408 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.829e-05/0.5921, allocations: 4 kB / 408 MB, free: 3.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.5923, allocations: 8 kB / 408 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.5924, allocations: 7.984 kB / 408.1 MB, free: 3.281 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.5924, allocations: 4 kB / 408.1 MB, free: 3.277 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00148/0.5939, allocations: 0.7045 MB / 408.8 MB, free: 2.578 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.5939, allocations: 0 / 408.8 MB, free: 2.578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005808/0.5945, allocations: 91.94 kB / 408.9 MB, free: 2.488 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.002162/0.5967, allocations: 1.135 MB / 410 MB, free: 1.391 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004739/0.5972, allocations: 202.7 kB / 410.2 MB, free: 1.168 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5973, allocations: 0 / 410.2 MB, free: 1.168 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.583e-05/0.5974, allocations: 28 kB / 410.2 MB, free: 1.141 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.5979, allocations: 43.69 kB / 410.3 MB, free: 1.102 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.6003, allocations: 0.8918 MB / 411.1 MB, free: 164 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.601, allocations: 0.8349 MB / 412 MB, free: 15.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.6014, allocations: 135.4 kB / 412.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of SimCode: time 1.542e-06/0.6014, allocations: 0 / 412.1 MB, free: 15.17 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_Test68CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68FMU.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_Test68.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68CalcHelperMain.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_Test68_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test68.fmu] Error 1