Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test27,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.288/2.288, allocations: 209.3 MB / 221.9 MB, free: 1.949 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.041e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4175/0.5258, allocations: 75.73 MB / 397.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.5262, allocations: 71.95 kB / 397.6 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01869/0.5449, allocations: 3.915 MB / 401.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.545, allocations: 4 kB / 401.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.545, allocations: 0 / 401.6 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.0006637/0.5457, allocations: 408 kB / 402 MB, free: 9.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.5457, allocations: 16.02 kB / 402 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.939e-05/0.5458, allocations: 30.56 kB / 402 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.548e-05/0.5459, allocations: 11.91 kB / 402 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.5462, allocations: 202.9 kB / 402.2 MB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.5463, allocations: 0 / 402.2 MB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.5463, allocations: 15.91 kB / 402.2 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.5465, allocations: 41.69 kB / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.5465, allocations: 0 / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.5465, allocations: 0 / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.5465, allocations: 0 / 402.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.881e-05/0.5466, allocations: 23.94 kB / 402.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005469/0.5472, allocations: 284.9 kB / 402.6 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.5475, allocations: 47.03 kB / 402.6 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.599e-05/0.5476, allocations: 16.94 kB / 402.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5476, allocations: 0 / 402.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/0.5478, allocations: 55.41 kB / 402.7 MB, free: 8.785 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 4.418e-06/0.5478, allocations: 0 / 402.7 MB, free: 8.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.000543/0.5483, allocations: 117.2 kB / 402.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.5484, allocations: 51.41 kB / 402.9 MB, free: 8.602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.5487, allocations: 160.9 kB / 403 MB, free: 8.438 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.5487, allocations: 29.7 kB / 403 MB, free: 8.402 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.552e-05/0.5488, allocations: 162.5 kB / 403.2 MB, free: 8.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.5489, allocations: 11.81 kB / 403.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.5489, allocations: 4 kB / 403.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.549, allocations: 322.8 kB / 403.5 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.252e-05/0.5491, allocations: 27.88 kB / 403.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.788e-05/0.5492, allocations: 23.98 kB / 403.6 MB, free: 7.852 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.5494, allocations: 57.72 kB / 403.6 MB, free: 7.789 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5494, allocations: 4 kB / 403.6 MB, free: 7.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003232/0.5497, allocations: 131.2 kB / 403.8 MB, free: 7.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.408e-05/0.5498, allocations: 33.7 kB / 403.8 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5498, allocations: 0 / 403.8 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.5498, allocations: 3.953 kB / 403.8 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.5499, allocations: 11.98 kB / 403.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.55, allocations: 0 / 403.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.833e-05/0.5501, allocations: 4 kB / 403.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.5501, allocations: 0 / 403.8 MB, free: 7.586 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.0001104/0.5502, allocations: 113 kB / 403.9 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.5503, allocations: 7.906 kB / 403.9 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.5506, allocations: 93.69 kB / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.5506, allocations: 0 / 404 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5506, allocations: 3.953 kB / 404 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.5506, allocations: 3.984 kB / 404 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005202/0.5512, allocations: 346.6 kB / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.5512, allocations: 0 / 404.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.5513, allocations: 8 kB / 404.4 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.5513, allocations: 192 / 404.4 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.5513, allocations: 19.89 kB / 404.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.5513, allocations: 0 / 404.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.5513, allocations: 0 / 404.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.5516, allocations: 171.4 kB / 404.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.651e-05/0.5517, allocations: 85.02 kB / 404.7 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.5517, allocations: 4 kB / 404.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.5519, allocations: 11.94 kB / 404.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.319e-05/0.5519, allocations: 8 kB / 404.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.552, allocations: 0 / 404.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001788/0.5522, allocations: 127.8 kB / 404.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5522, allocations: 0 / 404.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003951/0.5526, allocations: 39.94 kB / 404.8 MB, free: 6.465 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.001558/0.5541, allocations: 0.9525 MB / 405.8 MB, free: 5.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.5545, allocations: 115.3 kB / 405.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.5545, allocations: 4 kB / 405.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.334e-05/0.5546, allocations: 16 kB / 405.9 MB, free: 5.402 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.555, allocations: 19.88 kB / 406 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007329/0.5557, allocations: 225.2 kB / 406.2 MB, free: 5.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.5561, allocations: 0.7004 MB / 406.9 MB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.662e-05/0.5562, allocations: 31.36 kB / 406.9 MB, free: 4.363 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.5562, allocations: 0 / 406.9 MB, free: 4.363 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_Test27CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27FMU.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_Test27.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27CalcHelperMain.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_Test27_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test27.fmu] Error 1