Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test41,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.215/2.215, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.603e-05/4.612e-05, allocations: 12 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 48.69 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4017/0.5081, allocations: 75.79 MB / 397.6 MB, free: 14.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.5084, allocations: 75.11 kB / 397.7 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01841/0.5269, allocations: 4.133 MB / 401.9 MB, free: 9.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5269, allocations: 4 kB / 401.9 MB, free: 9.926 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.527, allocations: 7.938 kB / 401.9 MB, free: 9.918 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.0006088/0.5276, allocations: 416 kB / 402.3 MB, free: 9.461 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.5276, allocations: 8.031 kB / 402.3 MB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.5277, allocations: 34.56 kB / 402.3 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/0.5278, allocations: 7.906 kB / 402.3 MB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.5281, allocations: 208.6 kB / 402.5 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.5281, allocations: 0 / 402.5 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.5282, allocations: 8 kB / 402.5 MB, free: 9.152 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.5283, allocations: 41.69 kB / 402.6 MB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.5283, allocations: 0 / 402.6 MB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.5284, allocations: 4 kB / 402.6 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.5284, allocations: 3.984 kB / 402.6 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.921e-05/0.5284, allocations: 12 kB / 402.6 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004828/0.5289, allocations: 296.9 kB / 402.9 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.5292, allocations: 50.97 kB / 402.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.078e-05/0.5293, allocations: 12.86 kB / 402.9 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.5293, allocations: 3.938 kB / 402.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.5295, allocations: 63.48 kB / 403 MB, free: 8.594 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.866e-06/0.5295, allocations: 0 / 403 MB, free: 8.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005247/0.53, allocations: 113.2 kB / 403.1 MB, free: 8.477 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.5301, allocations: 51.41 kB / 403.2 MB, free: 8.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.5304, allocations: 189.3 kB / 403.4 MB, free: 8.223 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.5304, allocations: 25.7 kB / 403.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.81e-05/0.5305, allocations: 162.6 kB / 403.5 MB, free: 8.031 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.5306, allocations: 15.8 kB / 403.6 MB, free: 8.016 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.595e-06/0.5306, allocations: 4 kB / 403.6 MB, free: 8.012 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5307, allocations: 318.8 kB / 403.9 MB, free: 7.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.357e-05/0.5308, allocations: 16 kB / 403.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.99e-05/0.5309, allocations: 24 kB / 403.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.531, allocations: 49.69 kB / 404 MB, free: 7.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.531, allocations: 7.938 kB / 404 MB, free: 7.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002864/0.5313, allocations: 123.4 kB / 404.1 MB, free: 7.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/0.5314, allocations: 33.7 kB / 404.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5314, allocations: 0 / 404.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.5314, allocations: 0 / 404.1 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.489e-05/0.5315, allocations: 11.98 kB / 404.1 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.5316, allocations: 3.953 kB / 404.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.874e-05/0.5316, allocations: 4 kB / 404.1 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5317, allocations: 8.062 kB / 404.1 MB, free: 7.391 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.508e-05/0.5318, allocations: 112.9 kB / 404.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.346e-05/0.5318, allocations: 15.81 kB / 404.3 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.5321, allocations: 85.86 kB / 404.4 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.5321, allocations: 7.922 kB / 404.4 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.5321, allocations: 4.141 kB / 404.4 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5322, allocations: 7.938 kB / 404.4 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.5327, allocations: 350.5 kB / 404.7 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5327, allocations: 4 kB / 404.7 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.17e-05/0.5328, allocations: 11.98 kB / 404.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5328, allocations: 0 / 404.7 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.5328, allocations: 4 kB / 404.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.5328, allocations: 3.953 kB / 404.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5328, allocations: 0 / 404.7 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.5331, allocations: 167.5 kB / 404.9 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.5332, allocations: 100.9 kB / 405 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.5332, allocations: 0 / 405 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.828e-05/0.5333, allocations: 4 kB / 405 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.5334, allocations: 15.88 kB / 405 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.5334, allocations: 11.94 kB / 405 MB, free: 6.398 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002011/0.5336, allocations: 148.9 kB / 405.2 MB, free: 6.254 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5337, allocations: 0 / 405.2 MB, free: 6.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004388/0.5341, allocations: 35.94 kB / 405.2 MB, free: 6.219 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.001449/0.5356, allocations: 0.9396 MB / 406.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000292/0.5359, allocations: 115.3 kB / 406.3 MB, free: 5.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5359, allocations: 4 kB / 406.3 MB, free: 5.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.111e-05/0.536, allocations: 16 kB / 406.3 MB, free: 5.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.5364, allocations: 15.94 kB / 406.3 MB, free: 5.148 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000734/0.5371, allocations: 252.9 kB / 406.6 MB, free: 4.859 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.5374, allocations: 0.7083 MB / 407.3 MB, free: 4.125 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.753e-05/0.5375, allocations: 27.42 kB / 407.3 MB, free: 4.098 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5376, allocations: 0 / 407.3 MB, free: 4.098 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_Test41CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41FMU.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_Test41.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41CalcHelperMain.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_Test41_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test41.fmu] Error 1