Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1D.Test19.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test19,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1D.Test19,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002362/0.002368, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.214/2.214, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001207/0.001207, allocations: 90.09 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5465/0.5465, allocations: 43.56 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006544/0.0006546, allocations: 16 kB / 431.5 MB, free: 6.055 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.144, allocations: 58.84 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable1D.Test19): time 0.002474/0.1465, allocations: 1.263 MB / 491.6 MB, free: 9.848 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1483, allocations: 0.879 MB / 492.5 MB, free: 8.961 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.315e-05/0.1484, allocations: 0 / 492.5 MB, free: 8.961 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.1487, allocations: 15.92 kB / 492.5 MB, free: 8.945 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.1489, allocations: 35.83 kB / 492.5 MB, free: 8.91 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003793/0.1493, allocations: 79.91 kB / 492.6 MB, free: 8.832 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.1495, allocations: 35.91 kB / 492.6 MB, free: 8.797 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1496, allocations: 19.95 kB / 492.6 MB, free: 8.777 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.147e-05/0.1497, allocations: 11.94 kB / 492.6 MB, free: 8.766 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1498, allocations: 27.84 kB / 492.7 MB, free: 8.738 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.1499, allocations: 0 / 492.7 MB, free: 8.738 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.15, allocations: 31.92 kB / 492.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.434e-05/0.1501, allocations: 11.98 kB / 492.7 MB, free: 8.695 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.185e-05/0.1501, allocations: 37.64 kB / 492.8 MB, free: 8.652 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.1503, allocations: 60.17 kB / 492.8 MB, free: 8.594 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1503, allocations: 0 / 492.8 MB, free: 8.594 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1504, allocations: 3.938 kB / 492.8 MB, free: 8.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1504, allocations: 0 / 492.8 MB, free: 8.59 MB / 378.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.0005739/0.1509, allocations: 371.2 kB / 493.2 MB, free: 8.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.151, allocations: 8.031 kB / 493.2 MB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.1511, allocations: 38.55 kB / 493.2 MB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.1511, allocations: 11.86 kB / 493.2 MB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.1514, allocations: 182.9 kB / 493.4 MB, free: 7.895 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1514, allocations: 3.938 kB / 493.4 MB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.1514, allocations: 4 kB / 493.4 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.1516, allocations: 67.39 kB / 493.5 MB, free: 7.809 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1517, allocations: 0 / 493.5 MB, free: 7.809 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1517, allocations: 0 / 493.5 MB, free: 7.809 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.1517, allocations: 7.953 kB / 493.5 MB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.1519, allocations: 23.98 kB / 493.5 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005074/0.1524, allocations: 280.9 kB / 493.8 MB, free: 7.453 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.1527, allocations: 50.56 kB / 493.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1527, allocations: 0 / 493.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.1528, allocations: 38.5 kB / 493.9 MB, free: 7.348 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.1528, allocations: 0 / 493.9 MB, free: 7.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0008796/0.1537, allocations: 165.4 kB / 494 MB, free: 7.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.1538, allocations: 81.11 kB / 494.1 MB, free: 7.082 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.154, allocations: 129.8 kB / 494.2 MB, free: 6.945 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.154, allocations: 29.64 kB / 494.3 MB, free: 6.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.19e-05/0.1541, allocations: 162.4 kB / 494.4 MB, free: 6.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.1542, allocations: 15.81 kB / 494.5 MB, free: 6.734 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.185e-05/0.1542, allocations: 4 kB / 494.5 MB, free: 6.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1543, allocations: 314.8 kB / 494.8 MB, free: 6.414 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.1545, allocations: 23.98 kB / 494.8 MB, free: 6.391 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.1546, allocations: 41.64 kB / 494.8 MB, free: 6.344 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.1548, allocations: 32.02 kB / 494.9 MB, free: 6.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1548, allocations: 0 / 494.9 MB, free: 6.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003428/0.1552, allocations: 89.84 kB / 494.9 MB, free: 6.219 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1552, allocations: 7.953 kB / 495 MB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.1552, allocations: 4.062 kB / 495 MB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1552, allocations: 4 kB / 495 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.1554, allocations: 15.98 kB / 495 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1554, allocations: 0 / 495 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.313e-05/0.1555, allocations: 4 kB / 495 MB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1555, allocations: 4 kB / 495 MB, free: 6.18 MB / 378.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 (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 prepare postOptimizeDAE: time 0.0001239/0.1556, allocations: 125.8 kB / 495.1 MB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.303e-05/0.1557, allocations: 11.91 kB / 495.1 MB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003951/0.1561, allocations: 105.6 kB / 495.2 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1561, allocations: 0 / 495.2 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1561, allocations: 288 / 495.2 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1561, allocations: 0 / 495.2 MB, free: 5.926 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006834/0.1568, allocations: 362.5 kB / 495.6 MB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1569, allocations: 0 / 495.6 MB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.157, allocations: 23.92 kB / 495.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.157, allocations: 0 / 495.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.157, allocations: 0 / 495.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.157, allocations: 4 kB / 495.6 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.157, allocations: 0 / 495.6 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003795/0.1574, allocations: 191.4 kB / 495.8 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.528e-05/0.1575, allocations: 85 kB / 495.9 MB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.1576, allocations: 12.08 kB / 495.9 MB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.1577, allocations: 12 kB / 495.9 MB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.1578, allocations: 11.98 kB / 495.9 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.425e-06/0.1578, allocations: 3.938 kB / 495.9 MB, free: 5.145 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.1579, allocations: 99.77 kB / 496 MB, free: 5.047 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1579, allocations: 7.938 kB / 496 MB, free: 5.039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003646/0.1583, allocations: 16 kB / 496 MB, free: 5.023 MB / 378.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.001897/0.1602, allocations: 1.058 MB / 497.1 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.1606, allocations: 63.89 kB / 497.2 MB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1606, allocations: 4 kB / 497.2 MB, free: 3.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.1608, allocations: 31.98 kB / 497.2 MB, free: 3.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.1612, allocations: 19.88 kB / 497.2 MB, free: 3.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.1627, allocations: 0.5586 MB / 497.8 MB, free: 3.262 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.1631, allocations: 0.7004 MB / 498.5 MB, free: 2.535 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.1632, allocations: 19.42 kB / 498.5 MB, free: 2.52 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.1632, allocations: 0 / 498.5 MB, free: 2.52 MB / 378.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp23; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19InitializeParameter.cpp:39:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/test_v4.mat", tmp23); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Tables/test_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:245:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.cpp:246:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp15); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19.cpp:714:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19FMU.cpp:11: /var/lib/jenkins1/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_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o] Error 1