Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test61,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.173/2.173, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.894e-05/4.904e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4527/0.5733, allocations: 75.61 MB / 397.5 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.5736, allocations: 70.75 kB / 397.5 MB, free: 14.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01712/0.5907, allocations: 4.118 MB / 401.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.5908, allocations: 0 / 401.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.5908, allocations: 4 kB / 401.7 MB, free: 10.02 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005385/0.5913, allocations: 419.9 kB / 402.1 MB, free: 9.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.5914, allocations: 15.97 kB / 402.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.5915, allocations: 30.56 kB / 402.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.5915, allocations: 11.91 kB / 402.1 MB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.5918, allocations: 214.7 kB / 402.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.5919, allocations: 0 / 402.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.5919, allocations: 4 kB / 402.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.592, allocations: 41.62 kB / 402.4 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.5921, allocations: 0 / 402.4 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.5921, allocations: 0 / 402.4 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.5921, allocations: 8 kB / 402.4 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.946e-05/0.5922, allocations: 11.98 kB / 402.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002511/0.5924, allocations: 193.6 kB / 402.6 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.647e-05/0.5925, allocations: 34.5 kB / 402.6 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.919e-05/0.5926, allocations: 8.922 kB / 402.6 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.5926, allocations: 0 / 402.6 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.5928, allocations: 63.77 kB / 402.7 MB, free: 8.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.793e-06/0.5928, allocations: 0 / 402.7 MB, free: 8.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002178/0.593, allocations: 65.59 kB / 402.8 MB, free: 8.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.5931, allocations: 51.41 kB / 402.8 MB, free: 8.668 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.5934, allocations: 218.6 kB / 403 MB, free: 8.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.5935, allocations: 29.7 kB / 403.1 MB, free: 8.406 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.784e-05/0.5936, allocations: 166.6 kB / 403.2 MB, free: 8.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.5936, allocations: 11.84 kB / 403.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.5936, allocations: 4 kB / 403.2 MB, free: 8.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5938, allocations: 322.8 kB / 403.6 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.28e-05/0.5938, allocations: 16 kB / 403.6 MB, free: 7.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.953e-05/0.5939, allocations: 23.98 kB / 403.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.25e-05/0.594, allocations: 53.62 kB / 403.6 MB, free: 7.805 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.594, allocations: 0 / 403.6 MB, free: 7.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000228/0.5943, allocations: 103.4 kB / 403.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.5943, allocations: 37.69 kB / 403.8 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.5943, allocations: 0 / 403.8 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.5944, allocations: 0 / 403.8 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.774e-05/0.5944, allocations: 7.938 kB / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.5945, allocations: 4 kB / 403.8 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.22e-05/0.5945, allocations: 8 kB / 403.8 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.5946, allocations: 4 kB / 403.8 MB, free: 7.625 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 (5): * Single equations (assignments): 4 * 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.114e-05/0.5947, allocations: 108.9 kB / 403.9 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.78e-05/0.5947, allocations: 15.81 kB / 403.9 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002072/0.5949, allocations: 82.58 kB / 404 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.595, allocations: 0 / 404 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.595, allocations: 0 / 404 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.595, allocations: 4 kB / 404 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.5952, allocations: 193.6 kB / 404.2 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.5952, allocations: 4 kB / 404.2 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.5953, allocations: 0 / 404.2 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.5953, allocations: 4 kB / 404.2 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.5953, allocations: 3.984 kB / 404.2 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.5953, allocations: 0 / 404.2 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5953, allocations: 3.938 kB / 404.2 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001851/0.5955, allocations: 96.89 kB / 404.3 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.51e-05/0.5956, allocations: 104.9 kB / 404.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.949e-05/0.5957, allocations: 0 / 404.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.32e-05/0.5958, allocations: 0 / 404.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.5958, allocations: 4 kB / 404.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.5958, allocations: 3.984 kB / 404.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002565/0.5961, allocations: 185.2 kB / 404.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5961, allocations: 0 / 404.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003257/0.5964, allocations: 31.92 kB / 404.6 MB, free: 6.691 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 (4): * Single equations (assignments): 3 * 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.00124/0.5977, allocations: 0.8371 MB / 405.5 MB, free: 5.883 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.5979, allocations: 99.34 kB / 405.6 MB, free: 5.773 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5979, allocations: 3.938 kB / 405.6 MB, free: 5.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.735e-05/0.598, allocations: 11.98 kB / 405.6 MB, free: 5.758 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.5983, allocations: 24.08 kB / 405.6 MB, free: 5.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007045/0.599, allocations: 277.1 kB / 405.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.5994, allocations: 0.7121 MB / 406.6 MB, free: 4.684 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.899e-05/0.5995, allocations: 35.36 kB / 406.6 MB, free: 4.648 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5995, allocations: 0 / 406.6 MB, free: 4.648 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_Test61CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61FMU.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_Test61.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61CalcHelperMain.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_Test61_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test61.fmu] Error 1