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.Test56.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.Test56,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.976/1.976, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004381, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3782, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test56): time 0.002336/0.3806, allocations: 1.301 MB / 332.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.3825, allocations: 0.9876 MB / 333.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.382e-05/0.3826, allocations: 0 / 333.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003059/0.3829, allocations: 27.67 kB / 333.6 MB, free: 5.141 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.3832, allocations: 34.67 kB / 333.6 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.3834, allocations: 63.03 kB / 333.7 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.3836, allocations: 56.66 kB / 333.7 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.975e-05/0.3837, allocations: 8.703 kB / 333.8 MB, free: 5.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.3838, allocations: 26.7 kB / 333.8 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.384, allocations: 29.14 kB / 333.8 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.384, allocations: 2.625 kB / 333.8 MB, free: 5.031 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.3842, allocations: 49.06 kB / 333.9 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.965e-05/0.3842, allocations: 14.41 kB / 333.9 MB, free: 5.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.747e-05/0.3843, allocations: 33.48 kB / 333.9 MB, free: 4.977 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.3846, allocations: 91.48 kB / 334 MB, free: 4.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.3846, allocations: 4 kB / 334 MB, free: 4.949 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3846, allocations: 0 / 334 MB, free: 4.949 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.3846, allocations: 1.156 kB / 334 MB, free: 4.949 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.0005649/0.3852, allocations: 414.1 kB / 334.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3852, allocations: 9.75 kB / 334.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.726e-05/0.3853, allocations: 36.94 kB / 334.4 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.3853, allocations: 4.25 kB / 334.5 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.3855, allocations: 194.1 kB / 334.6 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.3856, allocations: 5.406 kB / 334.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.3856, allocations: 5.469 kB / 334.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.3858, allocations: 55.2 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3858, allocations: 1.672 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.3858, allocations: 0 / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3858, allocations: 1.406 kB / 334.7 MB, free: 4.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.605e-05/0.3859, allocations: 17.38 kB / 334.7 MB, free: 4.203 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.3863, allocations: 281.9 kB / 335 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.3865, allocations: 37.94 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.3865, allocations: 2.312 kB / 335 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.3867, allocations: 63.91 kB / 335.1 MB, free: 3.828 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/0.3867, allocations: 0 / 335.1 MB, free: 3.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004443/0.3872, allocations: 102.5 kB / 335.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.3872, allocations: 87.14 kB / 335.3 MB, free: 3.672 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.3874, allocations: 135.4 kB / 335.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.3874, allocations: 32.17 kB / 335.5 MB, free: 3.523 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.906e-05/0.3875, allocations: 160 kB / 335.6 MB, free: 3.367 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.3875, allocations: 16.42 kB / 335.6 MB, free: 3.355 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-06/0.3875, allocations: 1.406 kB / 335.6 MB, free: 3.355 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.293e-05/0.3876, allocations: 321.5 kB / 335.9 MB, free: 3.035 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.285e-05/0.3877, allocations: 15.28 kB / 336 MB, free: 3.031 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.631e-05/0.3878, allocations: 37.56 kB / 336 MB, free: 3.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.526e-05/0.3879, allocations: 51.83 kB / 336 MB, free: 2.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3879, allocations: 0 / 336 MB, free: 2.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000222/0.3881, allocations: 118.9 kB / 336.2 MB, free: 2.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.3882, allocations: 38.55 kB / 336.2 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3882, allocations: 0 / 336.2 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.3882, allocations: 1.188 kB / 336.2 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.17e-05/0.3883, allocations: 12.2 kB / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.3883, allocations: 1.031 kB / 336.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.369e-05/0.3884, allocations: 11.75 kB / 336.2 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.3884, allocations: 3.094 kB / 336.2 MB, free: 2.828 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 9.109e-05/0.3885, allocations: 125.7 kB / 336.3 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.3885, allocations: 6.781 kB / 336.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/0.3886, allocations: 16.41 kB / 336.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3886, allocations: 1.125 kB / 336.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3886, allocations: 0 / 336.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3886, allocations: 1.094 kB / 336.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.389, allocations: 333.7 kB / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.389, allocations: 1.953 kB / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.266e-05/0.3891, allocations: 6.062 kB / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3891, allocations: 0 / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.3891, allocations: 2.312 kB / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3891, allocations: 0 / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3891, allocations: 0.5156 kB / 336.7 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.3893, allocations: 176.4 kB / 336.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-05/0.3894, allocations: 91.94 kB / 337 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.3894, allocations: 2.453 kB / 337 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.394e-05/0.3895, allocations: 7.344 kB / 337 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.377e-05/0.3896, allocations: 3.156 kB / 337 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.3896, allocations: 3.828 kB / 337 MB, free: 2.098 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.594e-05/0.3897, allocations: 104.2 kB / 337.1 MB, free: 2.016 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3897, allocations: 0 / 337.1 MB, free: 2.016 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003728/0.3901, allocations: 38.86 kB / 337.1 MB, free: 2.004 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.00146/0.3916, allocations: 1.052 MB / 338.2 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.3918, allocations: 103.2 kB / 338.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3919, allocations: 1.25 kB / 338.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.196e-05/0.3919, allocations: 19.41 kB / 338.3 MB, free: 1.047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.3922, allocations: 15.61 kB / 338.3 MB, free: 1.043 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007569/0.393, allocations: 426.7 kB / 338.7 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.3933, allocations: 0.6947 MB / 339.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.176e-05/0.3934, allocations: 32.02 kB / 339.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of SimCode: time 8.51e-07/0.3934, allocations: 0 / 339.5 MB, free: 15.92 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_Test56CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56InitializeParameter.cpp:39:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp23; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56InitializeParameter.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_v6.mat", tmp23); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp8; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.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_v6.mat", tmp8); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.cpp:293:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56Initialize.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_Test56CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56.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_Test56CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56FMU.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_Test56CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test56CalcHelperMain.o] Error 1