Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test59,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.059/2.059, allocations: 209.3 MB / 224.8 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004561/0.0004566, allocations: 16 kB / 282.6 MB, free: 9.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3565, allocations: 48.7 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test59): time 0.002454/0.359, allocations: 1.291 MB / 332.6 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.361, allocations: 0.9911 MB / 333.6 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.3612, allocations: 1.562 kB / 333.6 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.3616, allocations: 26.86 kB / 333.6 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.3618, allocations: 34.83 kB / 333.6 MB, free: 5.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.3622, allocations: 67.58 kB / 333.7 MB, free: 5.066 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001961/0.3624, allocations: 50.94 kB / 333.7 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.3625, allocations: 14.41 kB / 333.8 MB, free: 5.035 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.3626, allocations: 21.52 kB / 333.8 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.3629, allocations: 33.94 kB / 333.8 MB, free: 5.012 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.3629, allocations: 2.875 kB / 333.8 MB, free: 5.012 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002627/0.3632, allocations: 44.62 kB / 333.9 MB, free: 5.004 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.606e-05/0.3632, allocations: 18.7 kB / 333.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.3633, allocations: 41.42 kB / 333.9 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.3636, allocations: 88.31 kB / 334 MB, free: 4.926 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3636, allocations: 0 / 334 MB, free: 4.926 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3637, allocations: 1.641 kB / 334 MB, free: 4.926 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3637, allocations: 0 / 334 MB, free: 4.926 MB / 266.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.0006218/0.3643, allocations: 403.7 kB / 334.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.3644, allocations: 10.19 kB / 334.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.3644, allocations: 36.55 kB / 334.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.3645, allocations: 3.5 kB / 334.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.3647, allocations: 201.7 kB / 334.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.3648, allocations: 2.344 kB / 334.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.107e-05/0.3648, allocations: 3.281 kB / 334.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.365, allocations: 62.11 kB / 334.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.365, allocations: 1.031 kB / 334.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.365, allocations: 0 / 334.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.3651, allocations: 1.703 kB / 334.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.004e-05/0.3651, allocations: 10.05 kB / 334.7 MB, free: 4.188 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004455/0.3656, allocations: 281.2 kB / 335 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.3659, allocations: 42.5 kB / 335 MB, free: 3.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.366, allocations: 2.172 kB / 335 MB, free: 3.867 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.3662, allocations: 56.06 kB / 335.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.635e-06/0.3662, allocations: 0 / 335.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005361/0.3667, allocations: 114.1 kB / 335.2 MB, free: 3.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.3668, allocations: 79.12 kB / 335.3 MB, free: 3.656 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.367, allocations: 136.2 kB / 335.4 MB, free: 3.543 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.367, allocations: 27.2 kB / 335.4 MB, free: 3.512 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.315e-05/0.3671, allocations: 160.8 kB / 335.6 MB, free: 3.355 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.3671, allocations: 17.03 kB / 335.6 MB, free: 3.344 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-06/0.3671, allocations: 0 / 335.6 MB, free: 3.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.324e-05/0.3672, allocations: 317.6 kB / 335.9 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.586e-05/0.3673, allocations: 27.52 kB / 336 MB, free: 3.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.837e-05/0.3674, allocations: 33.95 kB / 336 MB, free: 2.988 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.3675, allocations: 55.91 kB / 336 MB, free: 2.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.3675, allocations: 0.5625 kB / 336 MB, free: 2.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002719/0.3678, allocations: 113.8 kB / 336.2 MB, free: 2.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.331e-05/0.3678, allocations: 33.72 kB / 336.2 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3679, allocations: 0 / 336.2 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3679, allocations: 5.562 kB / 336.2 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.268e-05/0.368, allocations: 13.78 kB / 336.2 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-06/0.368, allocations: 4.094 kB / 336.2 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.3681, allocations: 8.109 kB / 336.2 MB, free: 2.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.3681, allocations: 7 kB / 336.2 MB, free: 2.809 MB / 266.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 () * Number of clocked 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.0001162/0.3683, allocations: 120.7 kB / 336.3 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.3683, allocations: 11.7 kB / 336.4 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.581e-05/0.3684, allocations: 8.141 kB / 336.4 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3684, allocations: 0.8438 kB / 336.4 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3684, allocations: 1.562 kB / 336.4 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3684, allocations: 0.7031 kB / 336.4 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004481/0.3689, allocations: 342 kB / 336.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3689, allocations: 0 / 336.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.369, allocations: 5.75 kB / 336.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.369, allocations: 2.625 kB / 336.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.369, allocations: 1.5 kB / 336.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.369, allocations: 0 / 336.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.369, allocations: 5.016 kB / 336.7 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002254/0.3693, allocations: 175.3 kB / 336.9 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.3693, allocations: 85.08 kB / 337 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.647e-05/0.3694, allocations: 2.047 kB / 337 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.3695, allocations: 6 kB / 337 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.3696, allocations: 4.438 kB / 337 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.3696, allocations: 8.125 kB / 337 MB, free: 2.078 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.3697, allocations: 105.5 kB / 337.1 MB, free: 1.992 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3697, allocations: 1.438 kB / 337.1 MB, free: 1.992 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004328/0.3702, allocations: 38.64 kB / 337.1 MB, free: 1.98 MB / 266.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.001606/0.3718, allocations: 1.05 MB / 338.2 MB, free: 1.113 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003104/0.3722, allocations: 106.9 kB / 338.3 MB, free: 1.031 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3722, allocations: 0 / 338.3 MB, free: 1.031 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.602e-05/0.3723, allocations: 16.31 kB / 338.3 MB, free: 1.027 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3726, allocations: 19.59 kB / 338.3 MB, free: 1.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009144/0.3736, allocations: 422.2 kB / 338.7 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.3739, allocations: 0.6961 MB / 339.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.374, allocations: 21.69 kB / 339.4 MB, free: 15.91 MB / 282.7 MB Notification: Performance of SimCode: time 1.433e-06/0.374, allocations: 3.938 kB / 339.5 MB, free: 15.9 MB / 282.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_Test59CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp23; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59InitializeParameter.cpp:40:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/test.txt", tmp23); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Tables/test.txt", tmp8); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:293:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59Initialize.cpp:294:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp16); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59.cpp:728:24: error: use of undeclared identifier 'tmp3' _t_new_P_fileName_ = tmp3; ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59FMU.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 and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test59CalcHelperMain.o] Error 1