Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test20,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.443e-05/5.452e-05, allocations: 4 kB / 273.2 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1202, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4132/0.5334, allocations: 75.75 MB / 397.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5338, allocations: 66.72 kB / 397.7 MB, free: 13.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0175/0.5513, allocations: 3.914 MB / 401.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5513, allocations: 0 / 401.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.5514, allocations: 0 / 401.6 MB, free: 10.09 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.0005725/0.552, allocations: 412 kB / 402 MB, free: 9.633 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.552, allocations: 12.03 kB / 402 MB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.516e-05/0.5521, allocations: 30.56 kB / 402 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.5521, allocations: 7.906 kB / 402 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.5525, allocations: 194.9 kB / 402.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.5525, allocations: 8 kB / 402.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.408e-05/0.5526, allocations: 11.91 kB / 402.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.5527, allocations: 49.56 kB / 402.3 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.5528, allocations: 3.984 kB / 402.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.5528, allocations: 0 / 402.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.5528, allocations: 0 / 402.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.777e-05/0.5529, allocations: 19.94 kB / 402.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/0.5534, allocations: 288.9 kB / 402.6 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.5536, allocations: 39.14 kB / 402.6 MB, free: 8.867 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.929e-05/0.5537, allocations: 24.78 kB / 402.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.5537, allocations: 0 / 402.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.5539, allocations: 51.41 kB / 402.7 MB, free: 8.777 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.903e-06/0.5539, allocations: 0 / 402.7 MB, free: 8.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004912/0.5544, allocations: 113.3 kB / 402.8 MB, free: 8.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.5545, allocations: 59.41 kB / 402.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.5547, allocations: 156.7 kB / 403 MB, free: 8.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.5548, allocations: 29.64 kB / 403.1 MB, free: 8.395 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.5549, allocations: 166.5 kB / 403.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.198e-05/0.5549, allocations: 19.8 kB / 403.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-06/0.555, allocations: 0 / 403.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.5551, allocations: 310.8 kB / 403.6 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.735e-05/0.5552, allocations: 24 kB / 403.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.487e-05/0.5553, allocations: 24 kB / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.5554, allocations: 49.69 kB / 403.7 MB, free: 7.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5554, allocations: 4 kB / 403.7 MB, free: 7.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003242/0.5558, allocations: 131.2 kB / 403.8 MB, free: 7.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.869e-05/0.5558, allocations: 33.7 kB / 403.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.5558, allocations: 0 / 403.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.5559, allocations: 3.953 kB / 403.8 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.556, allocations: 11.98 kB / 403.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.556, allocations: 0 / 403.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.889e-05/0.5561, allocations: 4 kB / 403.8 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.5561, allocations: 4.062 kB / 403.8 MB, free: 7.59 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.0001086/0.5562, allocations: 113 kB / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.5563, allocations: 11.91 kB / 404 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.5566, allocations: 85.7 kB / 404 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.5566, allocations: 0 / 404 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.5566, allocations: 7.938 kB / 404.1 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.5566, allocations: 3.938 kB / 404.1 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005299/0.5572, allocations: 350.6 kB / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5572, allocations: 0 / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.303e-05/0.5573, allocations: 16.03 kB / 404.4 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.5573, allocations: 3.938 kB / 404.4 MB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.5573, allocations: 3.953 kB / 404.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.5573, allocations: 0 / 404.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.5573, allocations: 0 / 404.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.5576, allocations: 175.4 kB / 404.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.372e-05/0.5577, allocations: 89.02 kB / 404.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.5577, allocations: 0 / 404.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.833e-05/0.5578, allocations: 11.94 kB / 404.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.5579, allocations: 4 kB / 404.7 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.5579, allocations: 8 kB / 404.7 MB, free: 6.625 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001685/0.5581, allocations: 123.8 kB / 404.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5581, allocations: 0 / 404.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003933/0.5585, allocations: 39.94 kB / 404.9 MB, free: 6.465 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.001487/0.56, allocations: 0.9478 MB / 405.8 MB, free: 5.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002817/0.5603, allocations: 107.4 kB / 405.9 MB, free: 5.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5603, allocations: 4 kB / 405.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.004e-05/0.5604, allocations: 19.94 kB / 405.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.5608, allocations: 23.88 kB / 406 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000716/0.5616, allocations: 225.2 kB / 406.2 MB, free: 5.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.5619, allocations: 0.7043 MB / 406.9 MB, free: 4.391 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.469e-05/0.562, allocations: 23.42 kB / 406.9 MB, free: 4.367 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5621, allocations: 0 / 406.9 MB, free: 4.367 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_Test20CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20FMU.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_Test20.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20CalcHelperMain.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_Test20_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20.fmu] Error 1