Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTable1Ds.Test18.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.CombiTable1Ds.Test18,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.152/2.152, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005894/0.0005896, allocations: 12 kB / 314.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3308, allocations: 54.87 MB / 369.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1Ds.Test18): time 0.002304/0.3331, allocations: 1.235 MB / 370.5 MB, free: 9.344 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.3347, allocations: 0.8375 MB / 371.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.432e-05/0.3348, allocations: 0 / 371.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.335, allocations: 19.86 kB / 371.4 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.3351, allocations: 19.97 kB / 371.4 MB, free: 8.461 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.3353, allocations: 39.84 kB / 371.4 MB, free: 8.422 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.3354, allocations: 43.89 kB / 371.5 MB, free: 8.379 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.3356, allocations: 15.98 kB / 371.5 MB, free: 8.363 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.994e-05/0.3356, allocations: 27.91 kB / 371.5 MB, free: 8.336 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.3358, allocations: 19.92 kB / 371.5 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.3358, allocations: 0 / 371.5 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.3359, allocations: 35.91 kB / 371.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.336, allocations: 15.92 kB / 371.6 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.357e-05/0.336, allocations: 29.7 kB / 371.6 MB, free: 8.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.3362, allocations: 67.91 kB / 371.7 MB, free: 8.164 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.3362, allocations: 4 kB / 371.7 MB, free: 8.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3363, allocations: 0 / 371.7 MB, free: 8.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.3363, allocations: 3.938 kB / 371.7 MB, free: 8.156 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000559/0.3368, allocations: 397.8 kB / 372.1 MB, free: 7.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3369, allocations: 11.97 kB / 372.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.3369, allocations: 38.56 kB / 372.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.415e-05/0.337, allocations: 7.859 kB / 372.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002094/0.3372, allocations: 190.9 kB / 372.3 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.3372, allocations: 4 kB / 372.3 MB, free: 7.418 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.3373, allocations: 4 kB / 372.3 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.3375, allocations: 75.39 kB / 372.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3375, allocations: 0 / 372.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.3375, allocations: 0 / 372.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.3376, allocations: 7.953 kB / 372.4 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.3377, allocations: 35.91 kB / 372.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004496/0.3382, allocations: 296.8 kB / 372.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.3384, allocations: 50.56 kB / 372.8 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.3384, allocations: 3.938 kB / 372.8 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3385, allocations: 46.64 kB / 372.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.543e-06/0.3385, allocations: 0 / 372.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0009105/0.3394, allocations: 197.4 kB / 373 MB, free: 6.629 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.3395, allocations: 77.11 kB / 373.1 MB, free: 6.535 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.3397, allocations: 137.7 kB / 373.2 MB, free: 6.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.3397, allocations: 29.7 kB / 373.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.852e-05/0.3398, allocations: 154.8 kB / 373.4 MB, free: 6.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/0.3398, allocations: 27.64 kB / 373.4 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.3398, allocations: 0 / 373.4 MB, free: 6.176 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.34, allocations: 310.8 kB / 373.7 MB, free: 5.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.3401, allocations: 35.98 kB / 373.8 MB, free: 5.828 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.3403, allocations: 49.69 kB / 373.8 MB, free: 5.773 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.3405, allocations: 65.62 kB / 373.9 MB, free: 5.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3405, allocations: 4.031 kB / 373.9 MB, free: 5.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004152/0.3409, allocations: 147.3 kB / 374 MB, free: 5.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.341, allocations: 29.7 kB / 374.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.341, allocations: 3.938 kB / 374.1 MB, free: 5.504 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.341, allocations: 4 kB / 374.1 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.3412, allocations: 23.92 kB / 374.1 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3412, allocations: 4 kB / 374.1 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.029e-05/0.3413, allocations: 8 kB / 374.1 MB, free: 5.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.3413, allocations: 4 kB / 374.1 MB, free: 5.461 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 (9): * Single equations (assignments): 8 * 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.0001124/0.3415, allocations: 117.8 kB / 374.2 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.468e-05/0.3415, allocations: 11.86 kB / 374.2 MB, free: 5.324 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000442/0.342, allocations: 130 kB / 374.4 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.342, allocations: 0 / 374.4 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.342, allocations: 0 / 374.4 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.342, allocations: 4 kB / 374.4 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006838/0.3427, allocations: 386.5 kB / 374.7 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3427, allocations: 4 kB / 374.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.3429, allocations: 19.92 kB / 374.8 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3429, allocations: 4 kB / 374.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.3429, allocations: 0 / 374.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3429, allocations: 0 / 374.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3429, allocations: 240 / 374.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.3433, allocations: 215.4 kB / 375 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.389e-05/0.3434, allocations: 88.97 kB / 375.1 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.3435, allocations: 0 / 375.1 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.3436, allocations: 8.359 kB / 375.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.765e-05/0.3436, allocations: 19.97 kB / 375.1 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.3437, allocations: 4 kB / 375.1 MB, free: 4.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001038/0.3438, allocations: 99.27 kB / 375.2 MB, free: 4.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3438, allocations: 0 / 375.2 MB, free: 4.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.3441, allocations: 28 kB / 375.2 MB, free: 4.234 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 (8): * Single equations (assignments): 8 * 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.001685/0.3458, allocations: 1.03 MB / 376.3 MB, free: 3.266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004062/0.3462, allocations: 135.3 kB / 376.4 MB, free: 3.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3463, allocations: 0 / 376.4 MB, free: 3.121 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.3464, allocations: 31.98 kB / 376.4 MB, free: 3.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.3467, allocations: 16.17 kB / 376.4 MB, free: 3.074 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00083/0.3475, allocations: 448.7 kB / 376.9 MB, free: 2.582 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.3479, allocations: 0.6926 MB / 377.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.395e-05/0.348, allocations: 27.42 kB / 377.6 MB, free: 1.836 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.348, allocations: 0 / 377.6 MB, free: 1.836 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_CombiTable1Ds_Test18CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18InitializeParameter.cpp:36:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp25; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18InitializeParameter.cpp:37: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", tmp25); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp11; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.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", tmp11); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:295:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18Initialize.cpp:296:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp20); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18.cpp:745:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18FMU.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_CombiTable1Ds_Test18CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test18CalcHelperMain.o] Error 1