Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test22,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.063/2.063, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.914e-05/3.924e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4669/0.5717, allocations: 75.78 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.5721, allocations: 75.11 kB / 397.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01812/0.5902, allocations: 3.996 MB / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5903, allocations: 0 / 401.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.818e-05/0.5903, allocations: 4 kB / 401.7 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.0006173/0.5909, allocations: 423.9 kB / 402.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.591, allocations: 12.02 kB / 402.1 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.767e-05/0.5911, allocations: 30.56 kB / 402.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.5911, allocations: 7.906 kB / 402.2 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.5915, allocations: 194.9 kB / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.5915, allocations: 0 / 402.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.5915, allocations: 7.906 kB / 402.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.5917, allocations: 45.69 kB / 402.4 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.5917, allocations: 4 kB / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.5917, allocations: 0 / 402.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5918, allocations: 4 kB / 402.4 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.675e-05/0.5918, allocations: 23.88 kB / 402.4 MB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.5924, allocations: 280.9 kB / 402.7 MB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000272/0.5927, allocations: 43.03 kB / 402.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.232e-05/0.5927, allocations: 20.94 kB / 402.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.5928, allocations: 0 / 402.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/0.5929, allocations: 63.33 kB / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.305e-06/0.593, allocations: 0 / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005186/0.5935, allocations: 113.3 kB / 402.9 MB, free: 8.656 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.5935, allocations: 51.41 kB / 403 MB, free: 8.594 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.5938, allocations: 160.9 kB / 403.1 MB, free: 8.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.5938, allocations: 25.7 kB / 403.2 MB, free: 8.398 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.306e-05/0.594, allocations: 170.5 kB / 403.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.594, allocations: 7.812 kB / 403.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/0.594, allocations: 8 kB / 403.3 MB, free: 8.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.5942, allocations: 318.8 kB / 403.7 MB, free: 7.895 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.181e-05/0.5943, allocations: 20 kB / 403.7 MB, free: 7.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.098e-05/0.5944, allocations: 27.94 kB / 403.7 MB, free: 7.848 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.5945, allocations: 49.69 kB / 403.8 MB, free: 7.793 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.5945, allocations: 3.938 kB / 403.8 MB, free: 7.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003361/0.5949, allocations: 131.2 kB / 403.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/0.5949, allocations: 37.7 kB / 403.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.595, allocations: 0 / 403.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.595, allocations: 3.953 kB / 403.9 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.865e-05/0.5951, allocations: 11.98 kB / 403.9 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.5951, allocations: 0 / 403.9 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.586e-05/0.5952, allocations: 4 kB / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.5952, allocations: 4.062 kB / 403.9 MB, free: 7.582 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 8.964e-05/0.5953, allocations: 105 kB / 404 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.5954, allocations: 11.91 kB / 404.1 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.5957, allocations: 93.7 kB / 404.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.5957, allocations: 144 / 404.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5957, allocations: 3.953 kB / 404.2 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.5957, allocations: 7.969 kB / 404.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005055/0.5962, allocations: 350.5 kB / 404.5 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5963, allocations: 0 / 404.5 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.066e-05/0.5963, allocations: 8 kB / 404.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.5964, allocations: 0 / 404.5 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.5964, allocations: 11.95 kB / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.5964, allocations: 0 / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5964, allocations: 0 / 404.5 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.5967, allocations: 171.4 kB / 404.7 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.5968, allocations: 89.02 kB / 404.8 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.5968, allocations: 96 / 404.8 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.597, allocations: 11.88 kB / 404.8 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.452e-05/0.597, allocations: 11.94 kB / 404.8 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.597, allocations: 8 kB / 404.8 MB, free: 6.617 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001633/0.5972, allocations: 127 kB / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5972, allocations: 0 / 404.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003759/0.5976, allocations: 39.94 kB / 405 MB, free: 6.457 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.00148/0.5991, allocations: 0.944 MB / 405.9 MB, free: 5.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000318/0.5995, allocations: 119.3 kB / 406 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5995, allocations: 0 / 406 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.068e-05/0.5996, allocations: 16 kB / 406.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.5999, allocations: 23.88 kB / 406.1 MB, free: 5.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007746/0.6007, allocations: 229.2 kB / 406.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.6011, allocations: 0.7043 MB / 407 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.641e-05/0.6012, allocations: 23.42 kB / 407 MB, free: 4.355 MB / 330.7 MB Notification: Performance of SimCode: time 1.442e-06/0.6012, allocations: 0 / 407 MB, free: 4.355 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_Test22CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22FMU.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_Test22.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22CalcHelperMain.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_Test22_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test22.fmu] Error 1