Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test69,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.219/2.219, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.645e-05/5.616e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.1812, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.6234, allocations: 75.64 MB / 397.5 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.6238, allocations: 75.11 kB / 397.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02341/0.6472, allocations: 5.415 MB / 403 MB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6473, allocations: 7.938 kB / 403 MB, free: 8.777 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.307e-05/0.6473, allocations: 8 kB / 403 MB, free: 8.77 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.00108/0.6484, allocations: 0.6412 MB / 403.6 MB, free: 8.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.6485, allocations: 8.031 kB / 403.7 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.6485, allocations: 34.56 kB / 403.7 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.6487, allocations: 47.39 kB / 403.7 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.6498, allocations: 439.3 kB / 404.2 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.6498, allocations: 7.984 kB / 404.2 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.6499, allocations: 12 kB / 404.2 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.6501, allocations: 63.86 kB / 404.2 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.6501, allocations: 3.938 kB / 404.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.6501, allocations: 0 / 404.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.6501, allocations: 0 / 404.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.837e-05/0.6502, allocations: 23.92 kB / 404.3 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006488/0.6509, allocations: 378.2 kB / 404.6 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.6511, allocations: 61.2 kB / 404.7 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.314e-05/0.6512, allocations: 29.72 kB / 404.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.6512, allocations: 0 / 404.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.6514, allocations: 97 kB / 404.8 MB, free: 6.734 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.805e-06/0.6515, allocations: 0 / 404.8 MB, free: 6.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.000535/0.652, allocations: 133.1 kB / 405 MB, free: 6.598 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.6521, allocations: 77.11 kB / 405 MB, free: 6.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002211/0.6543, allocations: 0.8833 MB / 405.9 MB, free: 5.613 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.576e-05/0.6544, allocations: 33.7 kB / 406 MB, free: 5.574 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.6547, allocations: 250.5 kB / 406.2 MB, free: 5.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.6548, allocations: 11.75 kB / 406.2 MB, free: 5.316 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.758e-05/0.6548, allocations: 8 kB / 406.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.655, allocations: 322.8 kB / 406.5 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.6551, allocations: 32 kB / 406.6 MB, free: 4.953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.6553, allocations: 53.7 kB / 406.6 MB, free: 4.895 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.6555, allocations: 95.38 kB / 406.7 MB, free: 4.789 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.6555, allocations: 0 / 406.7 MB, free: 4.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005232/0.656, allocations: 196.9 kB / 406.9 MB, free: 4.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.582e-05/0.6561, allocations: 67.39 kB / 407 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.6561, allocations: 4 kB / 407 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.6562, allocations: 4 kB / 407 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.6563, allocations: 11.98 kB / 407 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.6563, allocations: 4 kB / 407 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.6566, allocations: 11.94 kB / 407 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.6566, allocations: 4 kB / 407 MB, free: 4.461 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.0001297/0.6568, allocations: 116.9 kB / 407.1 MB, free: 4.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.6569, allocations: 47.44 kB / 407.2 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.6574, allocations: 153.1 kB / 407.3 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.6575, allocations: 7.984 kB / 407.3 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.6575, allocations: 0 / 407.3 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.6575, allocations: 0 / 407.3 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005643/0.6581, allocations: 369.2 kB / 407.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.6581, allocations: 0 / 407.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.445e-05/0.6582, allocations: 11.98 kB / 407.7 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.6582, allocations: 0 / 407.7 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.6582, allocations: 0 / 407.7 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.6582, allocations: 4 kB / 407.7 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6583, allocations: 0 / 407.7 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004451/0.6587, allocations: 179.1 kB / 407.9 MB, free: 3.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004017/0.6591, allocations: 188.4 kB / 408.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.312e-05/0.6592, allocations: 0 / 408.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.6594, allocations: 20.06 kB / 408.1 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.6595, allocations: 7.984 kB / 408.1 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.6595, allocations: 4 kB / 408.1 MB, free: 3.262 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001521/0.6611, allocations: 0.7045 MB / 408.8 MB, free: 2.562 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.122e-06/0.6611, allocations: 0 / 408.8 MB, free: 2.562 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006097/0.6617, allocations: 91.94 kB / 408.9 MB, free: 2.473 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.002108/0.6639, allocations: 1.137 MB / 410 MB, free: 1.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004848/0.6644, allocations: 194.8 kB / 410.2 MB, free: 1.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6644, allocations: 8 kB / 410.2 MB, free: 1.152 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.839e-05/0.6645, allocations: 27.92 kB / 410.2 MB, free: 1.125 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006063/0.6652, allocations: 43.91 kB / 410.3 MB, free: 1.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.6676, allocations: 0.884 MB / 411.2 MB, free: 156 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006322/0.6683, allocations: 0.8388 MB / 412 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.6687, allocations: 135.4 kB / 412.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.6687, allocations: 7.938 kB / 412.1 MB, free: 15.15 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_Test69CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69FMU.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_Test69.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69CalcHelperMain.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_Test69_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test69.fmu] Error 1