Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test15,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.038/2.038, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.433e-05/5.443e-05, allocations: 8 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1302, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4598/0.5901, allocations: 75.74 MB / 397.6 MB, free: 14.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000342/0.5905, allocations: 72.12 kB / 397.7 MB, free: 14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04419/0.6347, allocations: 3.878 MB / 401.6 MB, free: 10.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.6348, allocations: 0 / 401.6 MB, free: 10.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.365e-05/0.6348, allocations: 4 kB / 401.6 MB, free: 10.12 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.0007923/0.6356, allocations: 408 kB / 402 MB, free: 9.676 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.051e-05/0.6357, allocations: 8.031 kB / 402 MB, free: 9.668 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.881e-05/0.6358, allocations: 42.5 kB / 402 MB, free: 9.617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.6359, allocations: 7.906 kB / 402 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.6363, allocations: 194.9 kB / 402.2 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.6363, allocations: 4 kB / 402.2 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.6363, allocations: 4 kB / 402.2 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001615/0.6365, allocations: 45.67 kB / 402.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.6366, allocations: 0 / 402.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.6366, allocations: 0 / 402.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.6366, allocations: 0 / 402.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.046e-05/0.6367, allocations: 16 kB / 402.3 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006175/0.6373, allocations: 296.7 kB / 402.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.6377, allocations: 50.97 kB / 402.6 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.475e-05/0.6378, allocations: 8.859 kB / 402.6 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.6378, allocations: 0 / 402.6 MB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.638, allocations: 59.5 kB / 402.7 MB, free: 8.824 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.715e-06/0.638, allocations: 0 / 402.7 MB, free: 8.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0006363/0.6387, allocations: 117.3 kB / 402.8 MB, free: 8.703 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.6387, allocations: 51.41 kB / 402.8 MB, free: 8.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.639, allocations: 149.2 kB / 403 MB, free: 8.484 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.6391, allocations: 25.7 kB / 403 MB, free: 8.453 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.6392, allocations: 158.6 kB / 403.2 MB, free: 8.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.6393, allocations: 11.81 kB / 403.2 MB, free: 8.285 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.452e-05/0.6393, allocations: 4 kB / 403.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.6395, allocations: 318.8 kB / 403.5 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.6396, allocations: 24 kB / 403.5 MB, free: 7.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.6397, allocations: 27.94 kB / 403.5 MB, free: 7.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.6399, allocations: 53.62 kB / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.6399, allocations: 0 / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004116/0.6403, allocations: 123.4 kB / 403.7 MB, free: 7.719 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.244e-05/0.6404, allocations: 33.7 kB / 403.7 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.6404, allocations: 0 / 403.7 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.6405, allocations: 3.953 kB / 403.8 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.6406, allocations: 15.98 kB / 403.8 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.6406, allocations: 3.938 kB / 403.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.6408, allocations: 4 kB / 403.8 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.6408, allocations: 4 kB / 403.8 MB, free: 7.648 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.0001213/0.6409, allocations: 108.5 kB / 403.9 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.688e-05/0.641, allocations: 15.83 kB / 403.9 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003655/0.6414, allocations: 89.77 kB / 404 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.6414, allocations: 0 / 404 MB, free: 7.434 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.6414, allocations: 8.078 kB / 404 MB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.6414, allocations: 7.984 kB / 404 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006495/0.6421, allocations: 346.5 kB / 404.3 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.6421, allocations: 0 / 404.3 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007796/0.6499, allocations: 11.98 kB / 404.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.65, allocations: 0 / 404.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.65, allocations: 3.953 kB / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.65, allocations: 0 / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.6501, allocations: 0 / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000442/0.6505, allocations: 183.3 kB / 404.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.855e-05/0.6506, allocations: 85.02 kB / 404.6 MB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.493e-05/0.6507, allocations: 7.938 kB / 404.6 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.6509, allocations: 3.953 kB / 404.6 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.716e-05/0.651, allocations: 7.984 kB / 404.6 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.651, allocations: 4 kB / 404.6 MB, free: 6.688 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002022/0.6512, allocations: 119.3 kB / 404.8 MB, free: 6.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6512, allocations: 4 kB / 404.8 MB, free: 6.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006478/0.6519, allocations: 28 kB / 404.8 MB, free: 6.539 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.001643/0.6535, allocations: 0.9555 MB / 405.7 MB, free: 5.613 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.6539, allocations: 111.3 kB / 405.9 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6539, allocations: 0 / 405.9 MB, free: 5.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.866e-05/0.654, allocations: 24 kB / 405.9 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.6544, allocations: 11.94 kB / 405.9 MB, free: 5.457 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007205/0.6552, allocations: 213.3 kB / 406.1 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.6555, allocations: 0.7004 MB / 406.8 MB, free: 4.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.533e-05/0.6556, allocations: 23.44 kB / 406.8 MB, free: 4.457 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6557, allocations: 0 / 406.8 MB, free: 4.457 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_Test15CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15FMU.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_Test15.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15CalcHelperMain.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_Test15_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test15.fmu] Error 1