Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTable1Ds.Test20.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.Test20,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable1Ds.Test20,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20",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.002028/0.002033, allocations: 179 kB / 8.364 MB, free: 0.707 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.257/2.257, 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.001123/0.001123, allocations: 86.83 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.3339/0.3339, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.997e-05/2.008e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4137, allocations: 58.84 MB / 477.2 MB, free: 5.281 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.5781, allocations: 85.89 MB / 0.5499 GB, free: 13.39 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.5785, allocations: 75.95 kB / 0.5499 GB, free: 13.32 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01753/0.5961, allocations: 3.994 MB / 0.5538 GB, free: 9.324 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.5961, allocations: 0 / 0.5538 GB, free: 9.324 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.5961, allocations: 0 / 0.5538 GB, free: 9.324 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.0004665/0.5966, allocations: 370.3 kB / 0.5542 GB, free: 8.918 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.5967, allocations: 20.02 kB / 0.5542 GB, free: 8.898 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.5968, allocations: 8.531 kB / 0.5542 GB, free: 8.891 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.597, allocations: 184.4 kB / 0.5544 GB, free: 8.672 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.5971, allocations: 0 / 0.5544 GB, free: 8.672 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.5971, allocations: 7.984 kB / 0.5544 GB, free: 8.664 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.035e-05/0.5972, allocations: 8 kB / 0.5544 GB, free: 8.656 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.5973, allocations: 59.34 kB / 0.5545 GB, free: 8.586 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.5973, allocations: 0 / 0.5545 GB, free: 8.586 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.5974, allocations: 0 / 0.5545 GB, free: 8.586 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.5974, allocations: 4 kB / 0.5545 GB, free: 8.582 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003905/0.5978, allocations: 249.4 kB / 0.5547 GB, free: 8.301 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.598, allocations: 34.56 kB / 0.5547 GB, free: 8.258 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.474e-05/0.5981, allocations: 12.86 kB / 0.5548 GB, free: 8.242 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.5981, allocations: 3.984 kB / 0.5548 GB, free: 8.238 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.5981, allocations: 42.5 kB / 0.5548 GB, free: 8.188 MB / 395.1 MB Notification: Performance of pre-optimization done (n=3): time 1.783e-06/0.5982, allocations: 0 / 0.5548 GB, free: 8.188 MB / 395.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004994/0.5987, allocations: 93.48 kB / 0.5549 GB, free: 8.09 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.5987, allocations: 81.09 kB / 0.555 GB, free: 7.992 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.5989, allocations: 117.7 kB / 0.5551 GB, free: 7.871 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.5989, allocations: 25.7 kB / 0.5551 GB, free: 7.84 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.999e-05/0.599, allocations: 162.5 kB / 0.5553 GB, free: 7.68 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.5991, allocations: 23.69 kB / 0.5553 GB, free: 7.656 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.5991, allocations: 0 / 0.5553 GB, free: 7.656 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5992, allocations: 315 kB / 0.5556 GB, free: 7.34 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.191e-05/0.5993, allocations: 8 kB / 0.5556 GB, free: 7.332 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.716e-05/0.5993, allocations: 25.7 kB / 0.5556 GB, free: 7.301 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.991e-05/0.5994, allocations: 8 kB / 0.5556 GB, free: 7.293 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.5994, allocations: 0 / 0.5556 GB, free: 7.293 MB / 395.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001315/0.5995, allocations: 53.69 kB / 0.5557 GB, free: 7.234 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.5996, allocations: 15.97 kB / 0.5557 GB, free: 7.219 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.5996, allocations: 0 / 0.5557 GB, free: 7.219 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.5996, allocations: 0 / 0.5557 GB, free: 7.219 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.5997, allocations: 12 kB / 0.5557 GB, free: 7.207 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.5998, allocations: 0 / 0.5557 GB, free: 7.207 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.235e-05/0.5998, allocations: 7.984 kB / 0.5557 GB, free: 7.199 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.5999, allocations: 7.938 kB / 0.5557 GB, free: 7.191 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 8.875e-05/0.6, allocations: 108.9 kB / 0.5558 GB, free: 7.078 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001433/0.6001, allocations: 65.84 kB / 0.5559 GB, free: 7.008 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.811e-05/0.6002, allocations: 7.906 kB / 0.5559 GB, free: 7 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.6004, allocations: 58.09 kB / 0.5559 GB, free: 6.938 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.6004, allocations: 0 / 0.5559 GB, free: 6.938 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6004, allocations: 3.938 kB / 0.5559 GB, free: 6.934 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-06/0.6004, allocations: 7.953 kB / 0.556 GB, free: 6.926 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004271/0.6009, allocations: 295.2 kB / 0.5562 GB, free: 6.594 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.6009, allocations: 4 kB / 0.5562 GB, free: 6.59 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.601, allocations: 16.12 kB / 0.5563 GB, free: 6.574 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.601, allocations: 0 / 0.5563 GB, free: 6.574 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.601, allocations: 3.984 kB / 0.5563 GB, free: 6.57 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.6011, allocations: 0 / 0.5563 GB, free: 6.57 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.6011, allocations: 3.953 kB / 0.5563 GB, free: 6.566 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.6013, allocations: 159.4 kB / 0.5564 GB, free: 6.395 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/0.6013, allocations: 93 kB / 0.5565 GB, free: 6.285 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.6014, allocations: 4 kB / 0.5565 GB, free: 6.281 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.6015, allocations: 8 kB / 0.5565 GB, free: 6.273 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.316e-05/0.6016, allocations: 3.984 kB / 0.5565 GB, free: 6.27 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.6016, allocations: 3.953 kB / 0.5565 GB, free: 6.266 MB / 395.1 MB Notification: Performance of sorting global known variables: time 9.757e-05/0.6017, allocations: 107.7 kB / 0.5566 GB, free: 6.16 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6017, allocations: 0 / 0.5566 GB, free: 6.16 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.6021, allocations: 28 kB / 0.5567 GB, free: 6.133 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.001552/0.6036, allocations: 0.9705 MB / 0.5576 GB, free: 5.184 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.6038, allocations: 24 kB / 0.5576 GB, free: 5.16 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.6038, allocations: 0 / 0.5576 GB, free: 5.16 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 4.75e-05/0.6039, allocations: 15.94 kB / 0.5576 GB, free: 5.145 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.6042, allocations: 19.84 kB / 0.5577 GB, free: 5.125 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000634/0.6049, allocations: 171.3 kB / 0.5578 GB, free: 4.91 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.6052, allocations: 0.6963 MB / 0.5585 GB, free: 4.188 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.468e-05/0.6053, allocations: 23.42 kB / 0.5585 GB, free: 4.164 MB / 395.1 MB Notification: Performance of SimCode: time 8.91e-07/0.6053, allocations: 4 kB / 0.5585 GB, free: 4.16 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_Test20CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.cpp:38:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp24; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20InitializeParameter.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_v6.mat", tmp24); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_v6.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.cpp:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20Initialize.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_Test20CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_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_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20FMU.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_Test20CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1Ds_Test20CalcHelperMain.o] Error 1