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.Test20.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.Test20,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.187/2.187, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000423/0.000423, allocations: 19.98 kB / 314.4 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3481, allocations: 54.86 MB / 369.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1Ds.Test20): time 0.002276/0.3504, allocations: 1.219 MB / 370.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.352, allocations: 0.8335 MB / 371.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.007e-05/0.3521, allocations: 0 / 371.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.3523, allocations: 15.92 kB / 371.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.3525, allocations: 27.91 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001428/0.3526, allocations: 31.84 kB / 371.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.3528, allocations: 35.95 kB / 371.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.542e-05/0.3529, allocations: 8 kB / 371.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.339e-05/0.353, allocations: 19.91 kB / 371.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.3531, allocations: 31.86 kB / 371.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.3532, allocations: 0 / 371.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.3533, allocations: 31.98 kB / 371.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.394e-05/0.3533, allocations: 7.969 kB / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.3534, allocations: 33.64 kB / 371.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.3536, allocations: 63.86 kB / 371.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.3536, allocations: 0 / 371.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3536, allocations: 0 / 371.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.3536, allocations: 4 kB / 371.6 MB, free: 10.41 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.0005152/0.3541, allocations: 393.8 kB / 372 MB, free: 9.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3542, allocations: 8.031 kB / 372 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.548e-05/0.3542, allocations: 34.56 kB / 372.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.3543, allocations: 3.953 kB / 372.1 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.3545, allocations: 179 kB / 372.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.3545, allocations: 4 kB / 372.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.3545, allocations: 4 kB / 372.2 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.3547, allocations: 71.33 kB / 372.3 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3548, allocations: 0 / 372.3 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.3548, allocations: 7.875 kB / 372.3 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3548, allocations: 4 kB / 372.3 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.355, allocations: 27.94 kB / 372.4 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003783/0.3554, allocations: 265 kB / 372.6 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.3556, allocations: 50.5 kB / 372.7 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3557, allocations: 3.984 kB / 372.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.3557, allocations: 34.56 kB / 372.7 MB, free: 9.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.3557, allocations: 0 / 372.7 MB, free: 9.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0007973/0.3565, allocations: 161.4 kB / 372.9 MB, free: 8.992 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.3566, allocations: 77.11 kB / 372.9 MB, free: 8.898 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.3567, allocations: 125.8 kB / 373.1 MB, free: 8.766 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.3568, allocations: 33.7 kB / 373.1 MB, free: 8.727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.925e-05/0.3569, allocations: 158.5 kB / 373.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.3569, allocations: 11.75 kB / 373.3 MB, free: 8.559 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.3569, allocations: 4 kB / 373.3 MB, free: 8.555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.357, allocations: 318.8 kB / 373.6 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.3572, allocations: 23.98 kB / 373.6 MB, free: 8.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.3573, allocations: 37.7 kB / 373.6 MB, free: 8.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.3575, allocations: 57.7 kB / 373.7 MB, free: 8.105 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3575, allocations: 4 kB / 373.7 MB, free: 8.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003477/0.3579, allocations: 123.3 kB / 373.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.3579, allocations: 29.7 kB / 373.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.358, allocations: 8.234 kB / 373.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.358, allocations: 0 / 373.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.3581, allocations: 12 kB / 373.9 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.3581, allocations: 3.984 kB / 373.9 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.598e-05/0.3582, allocations: 4 kB / 373.9 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.3582, allocations: 4 kB / 373.9 MB, free: 7.902 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.0001033/0.3583, allocations: 117.8 kB / 374 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.3584, allocations: 7.891 kB / 374 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003625/0.3588, allocations: 105.5 kB / 374.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.3588, allocations: 7.891 kB / 374.1 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3588, allocations: 4.312 kB / 374.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.3588, allocations: 3.984 kB / 374.1 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005829/0.3594, allocations: 346.6 kB / 374.5 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3594, allocations: 3.938 kB / 374.5 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.3595, allocations: 16 kB / 374.5 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.3596, allocations: 7.938 kB / 374.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.3596, allocations: 0 / 374.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3596, allocations: 0 / 374.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3596, allocations: 0 / 374.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.36, allocations: 187.4 kB / 374.7 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.36, allocations: 89.03 kB / 374.7 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.3601, allocations: 3.953 kB / 374.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3602, allocations: 4 kB / 374.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.3602, allocations: 7.984 kB / 374.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.3602, allocations: 0 / 374.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.432e-05/0.3604, allocations: 99.27 kB / 374.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.164e-06/0.3604, allocations: 0 / 374.9 MB, free: 6.805 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003322/0.3607, allocations: 31.84 kB / 374.9 MB, free: 6.773 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.001553/0.3623, allocations: 0.9945 MB / 375.9 MB, free: 5.844 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003572/0.3626, allocations: 119.3 kB / 376 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3627, allocations: 0 / 376 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3628, allocations: 27.98 kB / 376 MB, free: 5.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.3631, allocations: 15.94 kB / 376 MB, free: 5.672 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007182/0.3638, allocations: 396.5 kB / 376.4 MB, free: 5.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.3641, allocations: 0.6887 MB / 377.1 MB, free: 4.516 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.3642, allocations: 27.36 kB / 377.1 MB, free: 4.488 MB / 298.7 MB Notification: Performance of SimCode: time 2.524e-06/0.3642, allocations: 0 / 377.1 MB, free: 4.488 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_Test20CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.cpp:35:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp21; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.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_v6.mat", tmp21); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:261:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp16; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_CombiTable1Ds_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20FMU.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_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.o] Error 1