Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test52,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.101/2.101, allocations: 209.3 MB / 221.9 MB, free: 1.922 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.051e-05/5.063e-05, allocations: 8 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1263, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4271/0.5534, allocations: 75.78 MB / 397.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.5537, allocations: 66.84 kB / 397.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01838/0.5721, allocations: 4.189 MB / 401.9 MB, free: 9.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5722, allocations: 0 / 401.9 MB, free: 9.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.5722, allocations: 4 kB / 401.9 MB, free: 9.887 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.0006537/0.5729, allocations: 423.9 kB / 402.3 MB, free: 9.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.573, allocations: 12.03 kB / 402.3 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.573, allocations: 34.56 kB / 402.4 MB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.5731, allocations: 7.906 kB / 402.4 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.5735, allocations: 210.8 kB / 402.6 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.5735, allocations: 0 / 402.6 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.5735, allocations: 4 kB / 402.6 MB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.5737, allocations: 41.69 kB / 402.6 MB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.5737, allocations: 0 / 402.6 MB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.5737, allocations: 0 / 402.6 MB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.5737, allocations: 4 kB / 402.6 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.654e-05/0.5738, allocations: 15.98 kB / 402.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.5744, allocations: 308.7 kB / 402.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.5747, allocations: 50.97 kB / 403 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.315e-05/0.5747, allocations: 8.859 kB / 403 MB, free: 8.621 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.5747, allocations: 0 / 403 MB, free: 8.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001558/0.5749, allocations: 67.48 kB / 403.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.914e-06/0.5749, allocations: 0 / 403.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004968/0.5754, allocations: 113.3 kB / 403.2 MB, free: 8.426 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.5755, allocations: 51.41 kB / 403.2 MB, free: 8.363 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.5758, allocations: 186.5 kB / 403.4 MB, free: 8.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.5759, allocations: 29.7 kB / 403.4 MB, free: 8.133 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.35e-05/0.576, allocations: 166.5 kB / 403.6 MB, free: 7.969 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.576, allocations: 19.73 kB / 403.6 MB, free: 7.949 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.576, allocations: 4 kB / 403.6 MB, free: 7.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5762, allocations: 322.8 kB / 403.9 MB, free: 7.621 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.286e-05/0.5762, allocations: 16 kB / 404 MB, free: 7.605 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.192e-05/0.5763, allocations: 35.91 kB / 404 MB, free: 7.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.5765, allocations: 45.7 kB / 404 MB, free: 7.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.5765, allocations: 3.938 kB / 404 MB, free: 7.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002945/0.5768, allocations: 127.3 kB / 404.2 MB, free: 7.379 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.023e-05/0.5769, allocations: 33.7 kB / 404.2 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.5769, allocations: 0 / 404.2 MB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.5769, allocations: 3.984 kB / 404.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.8e-05/0.577, allocations: 8 kB / 404.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.5771, allocations: 7.953 kB / 404.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.08e-05/0.5772, allocations: 4 kB / 404.2 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.5772, allocations: 8 kB / 404.2 MB, free: 7.309 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.473e-05/0.5773, allocations: 108.9 kB / 404.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.5774, allocations: 7.906 kB / 404.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.5777, allocations: 90.66 kB / 404.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.5777, allocations: 4 kB / 404.4 MB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.5777, allocations: 4 kB / 404.4 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.5777, allocations: 3.953 kB / 404.4 MB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005661/0.5783, allocations: 362.4 kB / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5783, allocations: 0 / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.616e-05/0.5784, allocations: 8 kB / 404.8 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.5784, allocations: 0 / 404.8 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.5785, allocations: 4 kB / 404.8 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.5785, allocations: 3.953 kB / 404.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.5785, allocations: 7.984 kB / 404.8 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.5788, allocations: 175.6 kB / 405 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.078e-05/0.5788, allocations: 89.02 kB / 405.1 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.5789, allocations: 4.078 kB / 405.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.579, allocations: 7.938 kB / 405.1 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.5791, allocations: 7.953 kB / 405.1 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.5791, allocations: 4 kB / 405.1 MB, free: 6.328 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000217/0.5793, allocations: 156.9 kB / 405.3 MB, free: 6.176 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.635e-06/0.5793, allocations: 0 / 405.3 MB, free: 6.176 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004223/0.5798, allocations: 43.88 kB / 405.3 MB, free: 6.133 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.001535/0.5813, allocations: 0.9519 MB / 406.3 MB, free: 5.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003106/0.5817, allocations: 119.3 kB / 406.4 MB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5817, allocations: 0 / 406.4 MB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.763e-05/0.5818, allocations: 16 kB / 406.4 MB, free: 5.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.5822, allocations: 19.94 kB / 406.4 MB, free: 5.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007987/0.583, allocations: 252.9 kB / 406.7 MB, free: 4.766 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.5833, allocations: 0.716 MB / 407.4 MB, free: 4.023 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.693e-05/0.5835, allocations: 31.42 kB / 407.4 MB, free: 3.992 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5835, allocations: 0 / 407.4 MB, free: 3.992 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_Test52CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52FMU.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_Test52.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52CalcHelperMain.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_Test52_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test52.fmu] Error 1