Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.076/2.076, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.411e-05/4.452e-05, allocations: 8 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 48.71 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5592, allocations: 76.54 MB / 398.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5595, allocations: 66.72 kB / 398.5 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0144/0.5739, allocations: 3.221 MB / 401.7 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.574, allocations: 0 / 401.7 MB, free: 10 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.574, allocations: 8 kB / 401.7 MB, free: 9.992 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006938/0.5747, allocations: 465.6 kB / 402.2 MB, free: 9.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.5748, allocations: 8.031 kB / 402.2 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.601e-05/0.5749, allocations: 34.56 kB / 402.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.5749, allocations: 7.906 kB / 402.2 MB, free: 9.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.5753, allocations: 210.8 kB / 402.4 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.5753, allocations: 8 kB / 402.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.5754, allocations: 8 kB / 402.4 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.5756, allocations: 65.62 kB / 402.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.5756, allocations: 0 / 402.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.5756, allocations: 0 / 402.5 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.5756, allocations: 4 kB / 402.5 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.5758, allocations: 27.98 kB / 402.5 MB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006988/0.5765, allocations: 352.6 kB / 402.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.5768, allocations: 70.61 kB / 402.9 MB, free: 8.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.94e-05/0.5769, allocations: 24.98 kB / 403 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.577, allocations: 3.938 kB / 403 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001985/0.5772, allocations: 71.39 kB / 403 MB, free: 8.473 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.615e-06/0.5772, allocations: 0 / 403 MB, free: 8.473 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003121/0.5775, allocations: 97.38 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.5776, allocations: 55.39 kB / 403.2 MB, free: 8.305 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.5778, allocations: 142.4 kB / 403.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.5778, allocations: 29.7 kB / 403.3 MB, free: 8.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.5779, allocations: 166.5 kB / 403.5 MB, free: 7.961 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/0.578, allocations: 19.86 kB / 403.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.578, allocations: 11.94 kB / 403.5 MB, free: 7.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5782, allocations: 318.8 kB / 403.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.45e-05/0.5783, allocations: 24 kB / 403.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.5784, allocations: 41.7 kB / 403.9 MB, free: 7.539 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.5785, allocations: 58.23 kB / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5786, allocations: 0 / 404 MB, free: 7.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003462/0.5789, allocations: 143.3 kB / 404.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.047e-05/0.579, allocations: 37.73 kB / 404.2 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.579, allocations: 4 kB / 404.2 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.579, allocations: 0 / 404.2 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.5792, allocations: 19.94 kB / 404.2 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.5792, allocations: 4 kB / 404.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.5793, allocations: 11.84 kB / 404.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.5794, allocations: 4 kB / 404.2 MB, free: 7.238 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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * 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.0001043/0.5795, allocations: 112.9 kB / 404.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.443e-05/0.5795, allocations: 15.89 kB / 404.3 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003086/0.5799, allocations: 98.3 kB / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.5799, allocations: 0 / 404.4 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.5799, allocations: 7.953 kB / 404.4 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.5799, allocations: 0 / 404.4 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.5802, allocations: 205.6 kB / 404.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5802, allocations: 4 kB / 404.6 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.5803, allocations: 12 kB / 404.6 MB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.5804, allocations: 3.938 kB / 404.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.5804, allocations: 0 / 404.6 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.5804, allocations: 4 kB / 404.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.5804, allocations: 3.984 kB / 404.7 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.5808, allocations: 148.9 kB / 404.8 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.5809, allocations: 85.23 kB / 404.9 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.5809, allocations: 4 kB / 404.9 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.581, allocations: 15.92 kB / 404.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.5811, allocations: 64 / 404.9 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.5811, allocations: 8 kB / 404.9 MB, free: 6.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000146/0.5813, allocations: 128.9 kB / 405 MB, free: 6.305 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5813, allocations: 0 / 405 MB, free: 6.305 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003552/0.5816, allocations: 35.89 kB / 405.1 MB, free: 6.27 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * 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 (8): * Single equations (assignments): 7 * 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.001491/0.5831, allocations: 0.8805 MB / 405.9 MB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003225/0.5835, allocations: 127.3 kB / 406.1 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5835, allocations: 192 / 406.1 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.23e-05/0.5836, allocations: 23.98 kB / 406.1 MB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.584, allocations: 31.73 kB / 406.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008057/0.5848, allocations: 255.7 kB / 406.4 MB, free: 4.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.5852, allocations: 0.7122 MB / 407.1 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.767e-05/0.5853, allocations: 31.42 kB / 407.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5853, allocations: 0 / 407.1 MB, free: 4.16 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_Test12CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12FMU.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_Test12.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12CalcHelperMain.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_Test12_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test12.fmu] Error 1