Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.293/2.293, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.356e-05/4.366e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.539, allocations: 75.73 MB / 397.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5394, allocations: 67.97 kB / 397.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01853/0.558, allocations: 3.832 MB / 401.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.558, allocations: 0 / 401.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.5581, allocations: 0 / 401.5 MB, free: 10.32 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.0006975/0.5588, allocations: 408 kB / 401.9 MB, free: 9.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/0.5589, allocations: 8.031 kB / 401.9 MB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.5589, allocations: 38.56 kB / 401.9 MB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.507e-05/0.559, allocations: 7.906 kB / 401.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.5594, allocations: 194.8 kB / 402.1 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.5594, allocations: 4 kB / 402.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.5595, allocations: 0 / 402.1 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.5597, allocations: 49.62 kB / 402.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.5597, allocations: 0 / 402.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.5597, allocations: 0 / 402.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.5597, allocations: 0 / 402.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.137e-05/0.5598, allocations: 15.98 kB / 402.2 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005941/0.5605, allocations: 292.9 kB / 402.5 MB, free: 9.172 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.5608, allocations: 46.97 kB / 402.5 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.616e-05/0.5609, allocations: 16.94 kB / 402.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.5609, allocations: 0 / 402.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.5611, allocations: 59.41 kB / 402.6 MB, free: 9.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.705e-06/0.5611, allocations: 0 / 402.6 MB, free: 9.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005775/0.5617, allocations: 113.3 kB / 402.7 MB, free: 8.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.5618, allocations: 59.34 kB / 402.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.562, allocations: 133 kB / 402.9 MB, free: 8.699 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.5621, allocations: 25.7 kB / 402.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.5622, allocations: 158.6 kB / 403.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.921e-05/0.5623, allocations: 19.73 kB / 403.1 MB, free: 8.492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/0.5623, allocations: 4 kB / 403.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.5625, allocations: 322.8 kB / 403.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.5626, allocations: 16 kB / 403.4 MB, free: 8.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.755e-05/0.5627, allocations: 27.98 kB / 403.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.5629, allocations: 45.7 kB / 403.5 MB, free: 8.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.5629, allocations: 3.938 kB / 403.5 MB, free: 8.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003974/0.5633, allocations: 131.2 kB / 403.6 MB, free: 7.926 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.588e-05/0.5634, allocations: 33.7 kB / 403.7 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.5634, allocations: 3.984 kB / 403.7 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.5634, allocations: 0 / 403.7 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.5635, allocations: 12 kB / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.5636, allocations: 3.953 kB / 403.7 MB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.5637, allocations: 8 kB / 403.7 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.5637, allocations: 7.938 kB / 403.7 MB, free: 7.852 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.0001185/0.5639, allocations: 105.1 kB / 403.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.5639, allocations: 7.891 kB / 403.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003514/0.5643, allocations: 93.81 kB / 403.9 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.5643, allocations: 4 kB / 403.9 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.5643, allocations: 4 kB / 403.9 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.5643, allocations: 3.953 kB / 403.9 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006287/0.565, allocations: 338.6 kB / 404.2 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.565, allocations: 7.938 kB / 404.2 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/0.5651, allocations: 4 kB / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.5651, allocations: 0 / 404.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.5652, allocations: 4 kB / 404.2 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.5652, allocations: 3.953 kB / 404.2 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5652, allocations: 0 / 404.2 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.5655, allocations: 183.4 kB / 404.4 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.5656, allocations: 85.02 kB / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.5657, allocations: 0 / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.5658, allocations: 0 / 404.5 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.182e-05/0.5659, allocations: 11.94 kB / 404.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.5659, allocations: 8 kB / 404.5 MB, free: 6.906 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001675/0.5661, allocations: 110.4 kB / 404.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5661, allocations: 4 kB / 404.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005763/0.5667, allocations: 35.94 kB / 404.7 MB, free: 6.762 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.00202/0.5687, allocations: 0.953 MB / 405.6 MB, free: 5.836 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003705/0.5692, allocations: 107.4 kB / 405.7 MB, free: 5.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5692, allocations: 0 / 405.7 MB, free: 5.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.785e-05/0.5693, allocations: 19.94 kB / 405.8 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.5698, allocations: 19.94 kB / 405.8 MB, free: 5.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009338/0.5707, allocations: 201.6 kB / 406 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.5712, allocations: 0.7043 MB / 406.7 MB, free: 4.707 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.5713, allocations: 19.44 kB / 406.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.5714, allocations: 0 / 406.7 MB, free: 4.688 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_Test2CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2FMU.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_Test2.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2CalcHelperMain.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_Test2_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test2.fmu] Error 1