Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.922/1.922, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.836e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3948/0.4961, allocations: 75.78 MB / 397.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.4964, allocations: 75.17 kB / 397.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02015/0.5166, allocations: 4.304 MB / 402 MB, free: 9.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5167, allocations: 0 / 402 MB, free: 9.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.5167, allocations: 0 / 402 MB, free: 9.668 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.0007821/0.5175, allocations: 443.8 kB / 402.4 MB, free: 9.184 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.61e-05/0.5176, allocations: 8.031 kB / 402.5 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.62e-05/0.5177, allocations: 30.56 kB / 402.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.666e-05/0.5177, allocations: 19.81 kB / 402.5 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.5181, allocations: 206.8 kB / 402.7 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.5182, allocations: 4 kB / 402.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.5182, allocations: 0 / 402.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.5184, allocations: 49.62 kB / 402.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.5184, allocations: 0 / 402.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.5184, allocations: 3.984 kB / 402.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.5184, allocations: 4 kB / 402.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.803e-05/0.5185, allocations: 12 kB / 402.8 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000565/0.5191, allocations: 308.9 kB / 403.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002625/0.5194, allocations: 46.97 kB / 403.1 MB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.569e-05/0.5194, allocations: 12.94 kB / 403.1 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.5195, allocations: 4 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.5197, allocations: 55.41 kB / 403.2 MB, free: 8.305 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.376e-06/0.5197, allocations: 0 / 403.2 MB, free: 8.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005302/0.5202, allocations: 137 kB / 403.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.5203, allocations: 51.41 kB / 403.4 MB, free: 8.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/0.5207, allocations: 218.7 kB / 403.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.5207, allocations: 29.7 kB / 403.6 MB, free: 7.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.609e-05/0.5208, allocations: 166.6 kB / 403.8 MB, free: 7.676 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.5209, allocations: 11.81 kB / 403.8 MB, free: 7.664 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/0.5209, allocations: 8 kB / 403.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.521, allocations: 318.8 kB / 404.1 MB, free: 7.336 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.645e-05/0.5211, allocations: 20 kB / 404.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.179e-05/0.5212, allocations: 24 kB / 404.2 MB, free: 7.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.5213, allocations: 49.69 kB / 404.2 MB, free: 7.238 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5214, allocations: 3.938 kB / 404.2 MB, free: 7.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003022/0.5217, allocations: 127.3 kB / 404.3 MB, free: 7.098 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.707e-05/0.5217, allocations: 33.7 kB / 404.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.5218, allocations: 0 / 404.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.5218, allocations: 4 kB / 404.4 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.437e-05/0.5219, allocations: 8 kB / 404.4 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.5219, allocations: 3.953 kB / 404.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.32e-05/0.522, allocations: 7.984 kB / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.5221, allocations: 8 kB / 404.4 MB, free: 7.027 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 9.625e-05/0.5222, allocations: 105 kB / 404.5 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.5222, allocations: 11.81 kB / 404.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.5225, allocations: 94.75 kB / 404.6 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5225, allocations: 7.984 kB / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5226, allocations: 0 / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.5226, allocations: 4.047 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005714/0.5232, allocations: 382.4 kB / 405 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.5232, allocations: 4 kB / 405 MB, free: 6.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.479e-05/0.5233, allocations: 11.92 kB / 405 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.5233, allocations: 192 / 405 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.5233, allocations: 8 kB / 405 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.5233, allocations: 3.953 kB / 405 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5233, allocations: 4 kB / 405 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.5236, allocations: 171.4 kB / 405.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.352e-05/0.5237, allocations: 101 kB / 405.3 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.5237, allocations: 0 / 405.3 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.5238, allocations: 4 kB / 405.3 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.5239, allocations: 7.938 kB / 405.3 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.5239, allocations: 8 kB / 405.3 MB, free: 6.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002665/0.5242, allocations: 185.1 kB / 405.5 MB, free: 5.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.5242, allocations: 0 / 405.5 MB, free: 5.836 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004029/0.5246, allocations: 40 kB / 405.5 MB, free: 5.797 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.001456/0.5261, allocations: 0.9583 MB / 406.5 MB, free: 4.867 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002696/0.5264, allocations: 115.3 kB / 406.6 MB, free: 4.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5264, allocations: 0 / 406.6 MB, free: 4.742 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.436e-05/0.5265, allocations: 20 kB / 406.6 MB, free: 4.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.5269, allocations: 20.12 kB / 406.6 MB, free: 4.699 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008306/0.5277, allocations: 285 kB / 406.9 MB, free: 4.383 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.5281, allocations: 0.716 MB / 407.6 MB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.707e-05/0.5282, allocations: 35.42 kB / 407.7 MB, free: 3.605 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5282, allocations: 0 / 407.7 MB, free: 3.605 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_Test1CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1FMU.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_Test1.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1CalcHelperMain.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_Test1_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test1.fmu] Error 1