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 1.979/1.979, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.005e-05/4.02e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4892/0.5989, allocations: 76.53 MB / 398.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.5992, allocations: 75.94 kB / 398.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0156/0.6149, allocations: 3.212 MB / 401.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6149, allocations: 4 kB / 401.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.6149, allocations: 0 / 401.7 MB, free: 10.12 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.0007131/0.6157, allocations: 469.6 kB / 402.1 MB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/0.6157, allocations: 12.03 kB / 402.1 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.418e-05/0.6158, allocations: 34.56 kB / 402.2 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.6159, allocations: 15.84 kB / 402.2 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.6162, allocations: 204.5 kB / 402.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.6163, allocations: 0 / 402.4 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.6163, allocations: 12 kB / 402.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.6165, allocations: 65.61 kB / 402.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.6166, allocations: 0 / 402.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.6166, allocations: 8 kB / 402.5 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.6166, allocations: 3.938 kB / 402.5 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.6167, allocations: 28 kB / 402.5 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007599/0.6175, allocations: 360.5 kB / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.6179, allocations: 74.67 kB / 402.9 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.422e-05/0.618, allocations: 20.98 kB / 402.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.618, allocations: 0 / 402.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.6182, allocations: 79.33 kB / 403 MB, free: 8.578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.314e-06/0.6182, allocations: 0 / 403 MB, free: 8.578 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003368/0.6186, allocations: 89.44 kB / 403.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.6186, allocations: 51.52 kB / 403.1 MB, free: 8.422 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.6189, allocations: 152.8 kB / 403.3 MB, free: 8.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.619, allocations: 33.7 kB / 403.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.6191, allocations: 162.5 kB / 403.5 MB, free: 8.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.6192, allocations: 23.73 kB / 403.5 MB, free: 8.047 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-06/0.6192, allocations: 0 / 403.5 MB, free: 8.047 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.6194, allocations: 318.8 kB / 403.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.6195, allocations: 28 kB / 403.8 MB, free: 7.699 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.6196, allocations: 38.25 kB / 403.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.6197, allocations: 69.67 kB / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.6198, allocations: 0 / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003538/0.6201, allocations: 135.3 kB / 404.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.14e-05/0.6202, allocations: 37.7 kB / 404.1 MB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.6202, allocations: 7.969 kB / 404.1 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.6203, allocations: 0 / 404.1 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.6204, allocations: 19.94 kB / 404.1 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.6205, allocations: 4 kB / 404.2 MB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.6206, allocations: 15.78 kB / 404.2 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.6206, allocations: 7.984 kB / 404.2 MB, free: 7.34 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.0001106/0.6208, allocations: 113 kB / 404.3 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.6208, allocations: 7.906 kB / 404.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.6211, allocations: 102.2 kB / 404.4 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.6211, allocations: 7.984 kB / 404.4 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.6212, allocations: 3.953 kB / 404.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.6212, allocations: 0 / 404.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/0.6214, allocations: 197.6 kB / 404.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.6214, allocations: 0 / 404.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.6216, allocations: 15.98 kB / 404.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.6216, allocations: 0 / 404.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.6216, allocations: 192 / 404.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.6217, allocations: 0 / 404.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6217, allocations: 11.94 kB / 404.6 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003753/0.6221, allocations: 148.8 kB / 404.8 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.93e-05/0.6222, allocations: 89.05 kB / 404.9 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.6222, allocations: 3.984 kB / 404.9 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.545e-05/0.6223, allocations: 8 kB / 404.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.6224, allocations: 7.984 kB / 404.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.6224, allocations: 4.062 kB / 404.9 MB, free: 6.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001499/0.6226, allocations: 123.3 kB / 405 MB, free: 6.418 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6226, allocations: 0 / 405 MB, free: 6.418 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003775/0.623, allocations: 39.89 kB / 405 MB, free: 6.379 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.001524/0.6245, allocations: 0.8778 MB / 405.9 MB, free: 5.523 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003473/0.6249, allocations: 127.3 kB / 406 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6249, allocations: 0 / 406 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.158e-05/0.625, allocations: 24 kB / 406.1 MB, free: 5.363 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.6254, allocations: 28.03 kB / 406.1 MB, free: 5.336 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000806/0.6262, allocations: 259.7 kB / 406.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.6266, allocations: 0.7044 MB / 407.1 MB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.6267, allocations: 35.42 kB / 407.1 MB, free: 4.273 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6267, allocations: 0 / 407.1 MB, free: 4.273 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