Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.031/2.031, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.744e-05/3.751e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1072, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4399/0.5472, allocations: 75.77 MB / 397.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.5476, allocations: 74.92 kB / 397.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01855/0.5661, allocations: 4.133 MB / 401.8 MB, free: 9.953 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5662, allocations: 0 / 401.8 MB, free: 9.953 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.5662, allocations: 4 kB / 401.8 MB, free: 9.949 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.0005872/0.5668, allocations: 416 kB / 402.3 MB, free: 9.492 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.5669, allocations: 8.031 kB / 402.3 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.466e-05/0.567, allocations: 34.56 kB / 402.3 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.825e-05/0.567, allocations: 11.91 kB / 402.3 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.5673, allocations: 212.4 kB / 402.5 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.5674, allocations: 3.938 kB / 402.5 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.5674, allocations: 8 kB / 402.5 MB, free: 9.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.5676, allocations: 45.67 kB / 402.6 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.5676, allocations: 0 / 402.6 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.5676, allocations: 4 kB / 402.6 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.5676, allocations: 0 / 402.6 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.672e-05/0.5677, allocations: 12 kB / 402.6 MB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004857/0.5682, allocations: 292.9 kB / 402.9 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.5685, allocations: 54.97 kB / 402.9 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.801e-05/0.5685, allocations: 8.859 kB / 402.9 MB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.5686, allocations: 4.031 kB / 402.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001407/0.5687, allocations: 59.39 kB / 403 MB, free: 8.621 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.034e-06/0.5687, allocations: 0 / 403 MB, free: 8.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004772/0.5692, allocations: 117.2 kB / 403.1 MB, free: 8.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.5693, allocations: 55.39 kB / 403.2 MB, free: 8.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.5696, allocations: 182.2 kB / 403.3 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.5697, allocations: 25.7 kB / 403.4 MB, free: 8.219 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.016e-05/0.5698, allocations: 162.6 kB / 403.5 MB, free: 8.059 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.5698, allocations: 23.78 kB / 403.5 MB, free: 8.035 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.5698, allocations: 0 / 403.5 MB, free: 8.035 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.57, allocations: 314.8 kB / 403.9 MB, free: 7.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.516e-05/0.5701, allocations: 23.94 kB / 403.9 MB, free: 7.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.368e-05/0.5702, allocations: 27.98 kB / 403.9 MB, free: 7.668 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.5703, allocations: 53.69 kB / 404 MB, free: 7.609 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.5703, allocations: 0 / 404 MB, free: 7.609 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002795/0.5706, allocations: 123.3 kB / 404.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.5706, allocations: 37.69 kB / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5707, allocations: 0 / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.5707, allocations: 0 / 404.1 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.073e-05/0.5708, allocations: 8 kB / 404.1 MB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.5708, allocations: 3.953 kB / 404.1 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.966e-05/0.5709, allocations: 4 kB / 404.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.5709, allocations: 8 kB / 404.1 MB, free: 7.41 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.49e-05/0.571, allocations: 112.9 kB / 404.2 MB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.5711, allocations: 15.8 kB / 404.3 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002673/0.5713, allocations: 85.86 kB / 404.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.5714, allocations: 7.938 kB / 404.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5714, allocations: 0 / 404.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.5714, allocations: 3.953 kB / 404.4 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004972/0.5719, allocations: 354.5 kB / 404.7 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5719, allocations: 8 kB / 404.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.527e-05/0.572, allocations: 4.188 kB / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.572, allocations: 0 / 404.7 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.572, allocations: 8 kB / 404.7 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.572, allocations: 3.953 kB / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.572, allocations: 144 / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002398/0.5723, allocations: 175.4 kB / 404.9 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.5724, allocations: 96.92 kB / 405 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.5724, allocations: 0 / 405 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.422e-05/0.5725, allocations: 7.984 kB / 405 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.5726, allocations: 7.953 kB / 405 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.5726, allocations: 4 kB / 405 MB, free: 6.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00019/0.5728, allocations: 152 kB / 405.2 MB, free: 6.281 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5728, allocations: 0 / 405.2 MB, free: 6.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004054/0.5732, allocations: 43.92 kB / 405.2 MB, free: 6.238 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.001471/0.5747, allocations: 0.9425 MB / 406.1 MB, free: 5.324 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002569/0.575, allocations: 107.3 kB / 406.3 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.575, allocations: 4 kB / 406.3 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.977e-05/0.5751, allocations: 19.98 kB / 406.3 MB, free: 5.184 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.5754, allocations: 23.8 kB / 406.3 MB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007187/0.5762, allocations: 245.1 kB / 406.5 MB, free: 4.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.5765, allocations: 0.7121 MB / 407.3 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.262e-05/0.5766, allocations: 27.38 kB / 407.3 MB, free: 4.113 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5766, allocations: 0 / 407.3 MB, free: 4.113 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_Test4CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4FMU.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_Test4.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4CalcHelperMain.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_Test4_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test4.fmu] Error 1