Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable2D.Test31.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.CombiTable2D.Test31,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2D.Test31,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31",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.002438/0.002443, allocations: 188.2 kB / 16.4 MB, free: 5.625 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.422/2.422, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001158/0.001158, allocations: 94.86 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2935/0.2935, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004836/0.0004836, allocations: 12 kB / 431.5 MB, free: 20.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 58.86 MB / 490.3 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2D.Test31): time 0.002821/0.1352, allocations: 1.298 MB / 491.6 MB, free: 7.91 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1371, allocations: 0.8674 MB / 492.5 MB, free: 7.035 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.298e-05/0.1371, allocations: 0 / 492.5 MB, free: 7.035 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.1374, allocations: 23.86 kB / 492.5 MB, free: 7.012 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.1376, allocations: 31.91 kB / 492.5 MB, free: 6.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004514/0.1381, allocations: 99.73 kB / 492.6 MB, free: 6.883 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.1382, allocations: 35.95 kB / 492.7 MB, free: 6.848 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1383, allocations: 28.09 kB / 492.7 MB, free: 6.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.18e-05/0.1384, allocations: 19.86 kB / 492.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.1386, allocations: 19.92 kB / 492.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.1386, allocations: 0 / 492.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.1388, allocations: 39.86 kB / 492.8 MB, free: 6.742 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.644e-05/0.1388, allocations: 11.97 kB / 492.8 MB, free: 6.73 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.743e-05/0.1389, allocations: 37.64 kB / 492.8 MB, free: 6.688 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.1391, allocations: 68.17 kB / 492.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1391, allocations: 0 / 492.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1391, allocations: 0 / 492.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.1391, allocations: 0 / 492.9 MB, free: 6.621 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006538/0.1398, allocations: 395.1 kB / 493.3 MB, free: 6.188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1399, allocations: 8.031 kB / 493.3 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.347e-05/0.1399, allocations: 34.56 kB / 493.3 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.14, allocations: 11.86 kB / 493.3 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.1402, allocations: 185.1 kB / 493.5 MB, free: 5.906 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.1403, allocations: 4 kB / 493.5 MB, free: 5.902 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.1403, allocations: 7.875 kB / 493.5 MB, free: 5.895 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.1406, allocations: 79.38 kB / 493.6 MB, free: 5.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1406, allocations: 4 kB / 493.6 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.1406, allocations: 4 kB / 493.6 MB, free: 5.797 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1406, allocations: 0 / 493.6 MB, free: 5.797 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.1409, allocations: 43.97 kB / 493.7 MB, free: 5.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004925/0.1414, allocations: 292.6 kB / 493.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.1416, allocations: 46.56 kB / 494 MB, free: 5.363 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.1416, allocations: 12.08 kB / 494 MB, free: 5.352 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.1417, allocations: 30.56 kB / 494 MB, free: 5.312 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.763e-06/0.1417, allocations: 0 / 494 MB, free: 5.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.001289/0.143, allocations: 241.2 kB / 494.3 MB, free: 5.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/0.1431, allocations: 81.11 kB / 494.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.1433, allocations: 138.1 kB / 494.5 MB, free: 4.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.1433, allocations: 25.7 kB / 494.5 MB, free: 4.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.956e-05/0.1435, allocations: 162.5 kB / 494.7 MB, free: 4.633 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.1435, allocations: 15.72 kB / 494.7 MB, free: 4.617 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.1435, allocations: 0 / 494.7 MB, free: 4.617 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1437, allocations: 322.8 kB / 495 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.1439, allocations: 39.97 kB / 495 MB, free: 4.254 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.1441, allocations: 61.62 kB / 495.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.1444, allocations: 39.98 kB / 495.1 MB, free: 4.148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1444, allocations: 0 / 495.1 MB, free: 4.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0005056/0.1449, allocations: 121.6 kB / 495.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1449, allocations: 4 kB / 495.3 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.145, allocations: 7.891 kB / 495.3 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.145, allocations: 4 kB / 495.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.1452, allocations: 23.98 kB / 495.3 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1452, allocations: 0 / 495.3 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.1454, allocations: 15.98 kB / 495.3 MB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.1454, allocations: 0 / 495.3 MB, free: 3.969 MB / 330.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 (7): * Single equations (assignments): 7 * 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.0001396/0.1455, allocations: 129.8 kB / 495.4 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.554e-05/0.1456, allocations: 7.906 kB / 495.4 MB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005774/0.1462, allocations: 146.3 kB / 495.6 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.1462, allocations: 3.953 kB / 495.6 MB, free: 3.668 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.1462, allocations: 8 kB / 495.6 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1462, allocations: 7.938 kB / 495.6 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009144/0.1472, allocations: 402.5 kB / 496 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1472, allocations: 0 / 496 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.1474, allocations: 27.97 kB / 496 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.635e-06/0.1474, allocations: 3.953 kB / 496 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1474, allocations: 0 / 496 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1474, allocations: 4 kB / 496 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.1474, allocations: 0.75 kB / 496 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005604/0.148, allocations: 227.3 kB / 496.2 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.843e-05/0.1481, allocations: 92.98 kB / 496.3 MB, free: 2.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.1481, allocations: 11.95 kB / 496.4 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.1483, allocations: 11.98 kB / 496.4 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.1484, allocations: 4 kB / 496.4 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1484, allocations: 0 / 496.4 MB, free: 2.793 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001384/0.1486, allocations: 118.9 kB / 496.5 MB, free: 2.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1486, allocations: 0 / 496.5 MB, free: 2.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003727/0.149, allocations: 20 kB / 496.5 MB, free: 2.66 MB / 330.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 (7): * Single equations (assignments): 7 * 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.002108/0.1511, allocations: 1.092 MB / 497.6 MB, free: 1.598 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005238/0.1516, allocations: 91.94 kB / 497.7 MB, free: 1.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1517, allocations: 0 / 497.7 MB, free: 1.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.1519, allocations: 51.97 kB / 497.7 MB, free: 1.457 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.1523, allocations: 27.81 kB / 497.8 MB, free: 1.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.1541, allocations: 0.6517 MB / 498.4 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.1545, allocations: 0.6965 MB / 499.1 MB, free: 8 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.1546, allocations: 35.52 kB / 499.1 MB, free: 15.97 MB / 346.7 MB Notification: Performance of SimCode: time 8.81e-07/0.1547, allocations: 3.938 kB / 499.1 MB, free: 15.96 MB / 346.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_CombiTable2D_Test31CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31InitializeParameter.cpp:40:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp30; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31InitializeParameter.cpp:41:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/Tables/test_utf8.txt", tmp30); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/Tables/test_utf8.txt", tmp12); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31Initialize.cpp:278:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp20; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31Initialize.cpp:279:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT0, tmp20); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31.cpp:758:24: error: use of undeclared identifier 'tmp6' _t_new_P_fileName_ = tmp6; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31FMU.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_CombiTable2D_Test31CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable2D_Test31CalcHelperMain.o] Error 1