Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test33.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.CombiTable1Ds.Test33,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test33,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33",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.002239/0.002239, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001214/0.001214, allocations: 94.05 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3013/0.3013, allocations: 43.48 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.765e-05/2.772e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4492/0.4493, allocations: 58.86 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1775/0.6269, allocations: 85.88 MB / 0.5499 GB, free: 13.32 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.6273, allocations: 75.95 kB / 0.5499 GB, free: 13.25 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01734/0.6447, allocations: 3.989 MB / 0.5538 GB, free: 9.262 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6447, allocations: 0 / 0.5538 GB, free: 9.262 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.6447, allocations: 0 / 0.5538 GB, free: 9.262 MB / 395.1 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.0004791/0.6452, allocations: 378.3 kB / 0.5542 GB, free: 8.848 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.6453, allocations: 12.03 kB / 0.5542 GB, free: 8.836 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.6453, allocations: 4.531 kB / 0.5542 GB, free: 8.832 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.6456, allocations: 190.9 kB / 0.5544 GB, free: 8.605 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.6457, allocations: 0 / 0.5544 GB, free: 8.605 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.6457, allocations: 0 / 0.5544 GB, free: 8.605 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.261e-05/0.6458, allocations: 12 kB / 0.5544 GB, free: 8.594 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.6459, allocations: 55.41 kB / 0.5545 GB, free: 8.527 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.646, allocations: 0 / 0.5545 GB, free: 8.527 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.646, allocations: 8 kB / 0.5545 GB, free: 8.52 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.646, allocations: 3.938 kB / 0.5545 GB, free: 8.516 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.6464, allocations: 257.4 kB / 0.5547 GB, free: 8.227 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.6466, allocations: 30.58 kB / 0.5547 GB, free: 8.188 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.093e-05/0.6467, allocations: 12.89 kB / 0.5548 GB, free: 8.172 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.6467, allocations: 7.969 kB / 0.5548 GB, free: 8.164 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.6468, allocations: 38.56 kB / 0.5548 GB, free: 8.117 MB / 395.1 MB Notification: Performance of pre-optimization done (n=3): time 1.764e-06/0.6468, allocations: 4 kB / 0.5548 GB, free: 8.113 MB / 395.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004931/0.6473, allocations: 89.33 kB / 0.5549 GB, free: 8.02 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.498e-05/0.6474, allocations: 85.11 kB / 0.555 GB, free: 7.918 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.6475, allocations: 114.2 kB / 0.5551 GB, free: 7.801 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.6476, allocations: 25.7 kB / 0.5551 GB, free: 7.77 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.027e-05/0.6477, allocations: 166.5 kB / 0.5553 GB, free: 7.605 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.6477, allocations: 19.73 kB / 0.5553 GB, free: 7.586 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.6477, allocations: 0 / 0.5553 GB, free: 7.586 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.6479, allocations: 319 kB / 0.5556 GB, free: 7.266 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.55e-05/0.6479, allocations: 8 kB / 0.5556 GB, free: 7.258 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.81e-05/0.648, allocations: 25.66 kB / 0.5556 GB, free: 7.227 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.121e-05/0.648, allocations: 8 kB / 0.5556 GB, free: 7.219 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.6481, allocations: 0 / 0.5556 GB, free: 7.219 MB / 395.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001378/0.6482, allocations: 57.72 kB / 0.5557 GB, free: 7.156 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.6482, allocations: 4 kB / 0.5557 GB, free: 7.152 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.6483, allocations: 4 kB / 0.5557 GB, free: 7.148 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.6483, allocations: 0 / 0.5557 GB, free: 7.148 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.6484, allocations: 15.98 kB / 0.5557 GB, free: 7.133 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.6484, allocations: 0 / 0.5557 GB, free: 7.133 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.989e-05/0.6485, allocations: 4 kB / 0.5557 GB, free: 7.129 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.6486, allocations: 0 / 0.5557 GB, free: 7.129 MB / 395.1 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 () * 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.0001225/0.6487, allocations: 116.9 kB / 0.5558 GB, free: 7.008 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001477/0.6488, allocations: 57.55 kB / 0.5559 GB, free: 6.945 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.499e-05/0.6489, allocations: 7.906 kB / 0.5559 GB, free: 6.938 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000194/0.6491, allocations: 70.06 kB / 0.5559 GB, free: 6.863 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.6491, allocations: 384 / 0.5559 GB, free: 6.863 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.6491, allocations: 0 / 0.5559 GB, free: 6.863 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.6492, allocations: 3.953 kB / 0.5559 GB, free: 6.859 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.6496, allocations: 307.1 kB / 0.5562 GB, free: 6.516 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.6496, allocations: 4 kB / 0.5562 GB, free: 6.512 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.6498, allocations: 15.98 kB / 0.5563 GB, free: 6.496 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.6498, allocations: 0 / 0.5563 GB, free: 6.496 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.6498, allocations: 0 / 0.5563 GB, free: 6.496 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.6498, allocations: 0 / 0.5563 GB, free: 6.496 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.6498, allocations: 3.953 kB / 0.5563 GB, free: 6.492 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.65, allocations: 155.5 kB / 0.5564 GB, free: 6.324 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-05/0.6501, allocations: 96.95 kB / 0.5565 GB, free: 6.211 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.6501, allocations: 0 / 0.5565 GB, free: 6.211 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.6503, allocations: 7.984 kB / 0.5565 GB, free: 6.203 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.6503, allocations: 7.938 kB / 0.5565 GB, free: 6.195 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.6504, allocations: 3.953 kB / 0.5565 GB, free: 6.191 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001048/0.6505, allocations: 111.7 kB / 0.5566 GB, free: 6.082 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6505, allocations: 0 / 0.5566 GB, free: 6.082 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.6509, allocations: 28 kB / 0.5567 GB, free: 6.055 MB / 395.1 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 () * 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.00149/0.6524, allocations: 0.9559 MB / 0.5576 GB, free: 5.121 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.6526, allocations: 28 kB / 0.5576 GB, free: 5.094 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6526, allocations: 0 / 0.5576 GB, free: 5.094 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 4.659e-05/0.6526, allocations: 12 kB / 0.5576 GB, free: 5.082 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.653, allocations: 19.84 kB / 0.5576 GB, free: 5.062 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006065/0.6536, allocations: 171.2 kB / 0.5578 GB, free: 4.848 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.6539, allocations: 0.7002 MB / 0.5585 GB, free: 4.121 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.604e-05/0.654, allocations: 23.42 kB / 0.5585 GB, free: 4.098 MB / 395.1 MB Notification: Performance of SimCode: time 8.32e-07/0.654, allocations: 0 / 0.5585 GB, free: 4.098 MB / 395.1 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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33InitializeParameter.cpp:39: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", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.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", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33Initialize.cpp:245: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_CombiTable1Ds_Test33CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33.cpp:712:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33FMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_CombiTable1Ds_Test33CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test33CalcHelperMain.o] Error 1