Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1D.Test24.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test24,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.193/2.193, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004239/0.000424, allocations: 12 kB / 314.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3426, allocations: 54.87 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test24): time 0.002243/0.3449, allocations: 1.216 MB / 370.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.3464, allocations: 0.8258 MB / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.762e-05/0.3465, allocations: 0 / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.3467, allocations: 23.91 kB / 371.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.3469, allocations: 23.91 kB / 371.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.3471, allocations: 35.84 kB / 371.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000128/0.3472, allocations: 35.95 kB / 371.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.078e-05/0.3473, allocations: 12 kB / 371.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.398e-05/0.3474, allocations: 19.92 kB / 371.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.3476, allocations: 23.84 kB / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.3476, allocations: 0 / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.3477, allocations: 31.98 kB / 371.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.329e-05/0.3477, allocations: 4 kB / 371.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.3478, allocations: 37.62 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.348, allocations: 67.84 kB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.348, allocations: 4 kB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.348, allocations: 0 / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.348, allocations: 3.938 kB / 371.6 MB, free: 10.36 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004915/0.3485, allocations: 385.8 kB / 372 MB, free: 9.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3486, allocations: 16.02 kB / 372 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.074e-05/0.3486, allocations: 34.56 kB / 372.1 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.3487, allocations: 7.953 kB / 372.1 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.3489, allocations: 171 kB / 372.2 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.3489, allocations: 8 kB / 372.2 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.3489, allocations: 4 kB / 372.2 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.3491, allocations: 75.33 kB / 372.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3492, allocations: 0 / 372.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.3492, allocations: 3.938 kB / 372.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.3492, allocations: 0 / 372.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.3494, allocations: 31.94 kB / 372.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004745/0.3499, allocations: 277 kB / 372.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.3501, allocations: 54.48 kB / 372.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.3502, allocations: 0 / 372.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.3502, allocations: 38.56 kB / 372.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.3502, allocations: 0 / 372.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008424/0.3511, allocations: 169.3 kB / 372.9 MB, free: 8.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.3512, allocations: 81.11 kB / 373 MB, free: 8.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.3513, allocations: 117.8 kB / 373.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.3514, allocations: 29.7 kB / 373.1 MB, free: 8.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.3515, allocations: 162.5 kB / 373.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.3515, allocations: 19.73 kB / 373.3 MB, free: 8.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.3515, allocations: 4 kB / 373.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3517, allocations: 310.8 kB / 373.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.3518, allocations: 31.97 kB / 373.6 MB, free: 8.133 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.352, allocations: 41.7 kB / 373.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.3522, allocations: 65.73 kB / 373.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3522, allocations: 0 / 373.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003613/0.3526, allocations: 123.3 kB / 373.8 MB, free: 7.883 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.3526, allocations: 29.7 kB / 373.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3526, allocations: 3.953 kB / 373.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.3527, allocations: 4 kB / 373.9 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3528, allocations: 19.98 kB / 373.9 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.3528, allocations: 0 / 373.9 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.418e-05/0.3529, allocations: 4 kB / 373.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.3529, allocations: 4 kB / 373.9 MB, free: 7.812 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 5 * 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.0001099/0.353, allocations: 121.8 kB / 374 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.3531, allocations: 3.906 kB / 374 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003869/0.3535, allocations: 113.6 kB / 374.1 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3535, allocations: 7.891 kB / 374.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3535, allocations: 0 / 374.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3535, allocations: 0 / 374.2 MB, free: 7.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006083/0.3541, allocations: 362.8 kB / 374.5 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3541, allocations: 0 / 374.5 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3543, allocations: 15.98 kB / 374.5 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.3543, allocations: 3.953 kB / 374.5 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3543, allocations: 4 kB / 374.5 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3543, allocations: 0 / 374.5 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3543, allocations: 3.984 kB / 374.5 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003636/0.3547, allocations: 191.4 kB / 374.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.3547, allocations: 77.11 kB / 374.8 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.3548, allocations: 11.95 kB / 374.8 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.3549, allocations: 7.984 kB / 374.8 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.355, allocations: 8 kB / 374.8 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.355, allocations: 0 / 374.8 MB, free: 6.793 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.337e-05/0.3551, allocations: 99.27 kB / 374.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3551, allocations: 3.938 kB / 374.9 MB, free: 6.691 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003285/0.3555, allocations: 27.89 kB / 375 MB, free: 6.664 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001568/0.357, allocations: 1 MB / 376 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003694/0.3574, allocations: 127.3 kB / 376.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3574, allocations: 0 / 376.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.3576, allocations: 31.98 kB / 376.1 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.3578, allocations: 11.95 kB / 376.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/0.3586, allocations: 400.5 kB / 376.5 MB, free: 5.109 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.3589, allocations: 0.6965 MB / 377.2 MB, free: 4.387 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.393e-05/0.359, allocations: 27.36 kB / 377.2 MB, free: 4.359 MB / 298.7 MB Notification: Performance of SimCode: time 3.035e-06/0.359, allocations: 0 / 377.2 MB, free: 4.359 MB / 298.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24InitializeParameter.cpp:36: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.2/Resources/Data/Tables/test.txt", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24Initialize.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.2/Resources/Data/Tables/test.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24Initialize.cpp:262:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp16); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24FMU.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_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1D_Test24CalcHelperMain.o] Error 1