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.002324/0.002324, allocations: 182.1 kB / 13.66 MB, free: 1.664 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.226/2.226, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001124/0.001124, allocations: 90.69 kB / 267.5 MB, free: 14.04 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.282/0.282, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.547e-05/3.564e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1174, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4685/0.586, allocations: 86.65 MB / 0.5575 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.5862, allocations: 73.23 kB / 0.5576 GB, free: 0.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01672/0.603, allocations: 4.144 MB / 0.5616 GB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.603, allocations: 0 / 0.5616 GB, free: 13.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.799e-05/0.6031, allocations: 4 kB / 0.5616 GB, free: 13.5 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.0004791/0.6035, allocations: 365.7 kB / 0.562 GB, free: 13.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.6036, allocations: 8.031 kB / 0.562 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.754e-05/0.6037, allocations: 37.56 kB / 0.562 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.6037, allocations: 8.531 kB / 0.562 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.604, allocations: 197.8 kB / 0.5622 GB, free: 12.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.6041, allocations: 6.312 kB / 0.5622 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.6041, allocations: 0 / 0.5622 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.6043, allocations: 60.47 kB / 0.5623 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.6043, allocations: 0 / 0.5623 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.6043, allocations: 0 / 0.5623 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.6043, allocations: 0 / 0.5623 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.65e-05/0.6044, allocations: 11.94 kB / 0.5623 GB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004876/0.6049, allocations: 290.8 kB / 0.5626 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.6051, allocations: 41.56 kB / 0.5626 GB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.831e-05/0.6052, allocations: 20.61 kB / 0.5626 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.6052, allocations: 0 / 0.5626 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.6053, allocations: 34.56 kB / 0.5627 GB, free: 12.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.6053, allocations: 0 / 0.5627 GB, free: 12.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005241/0.6058, allocations: 111.7 kB / 0.5628 GB, free: 12.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.6059, allocations: 81.06 kB / 0.5628 GB, free: 12.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.6061, allocations: 124.5 kB / 0.563 GB, free: 11.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.6061, allocations: 25.7 kB / 0.563 GB, free: 11.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.6062, allocations: 160.7 kB / 0.5631 GB, free: 11.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.6062, allocations: 19.75 kB / 0.5632 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.6062, allocations: 3.125 kB / 0.5632 GB, free: 11.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.6064, allocations: 314.8 kB / 0.5635 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.53e-05/0.6064, allocations: 10.88 kB / 0.5635 GB, free: 11.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.915e-05/0.6065, allocations: 27.41 kB / 0.5635 GB, free: 11.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.239e-05/0.6066, allocations: 18.55 kB / 0.5635 GB, free: 11.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.6066, allocations: 0 / 0.5635 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001889/0.6068, allocations: 66.44 kB / 0.5636 GB, free: 11.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.6068, allocations: 8.031 kB / 0.5636 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.6068, allocations: 0 / 0.5636 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.6069, allocations: 3.984 kB / 0.5636 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.607, allocations: 15.98 kB / 0.5636 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.607, allocations: 0 / 0.5636 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.477e-05/0.6071, allocations: 7.953 kB / 0.5636 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.6071, allocations: 7.688 kB / 0.5636 GB, free: 11.32 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 () * 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 9.073e-05/0.6072, allocations: 110.5 kB / 0.5637 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.6073, allocations: 7.906 kB / 0.5637 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002436/0.6075, allocations: 79.62 kB / 0.5638 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.6076, allocations: 0 / 0.5638 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.6076, allocations: 0 / 0.5638 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.6076, allocations: 3.984 kB / 0.5638 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004924/0.6081, allocations: 346.9 kB / 0.5641 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.6081, allocations: 0 / 0.5641 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.6082, allocations: 19.98 kB / 0.5642 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.6083, allocations: 0 / 0.5642 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.6083, allocations: 0 / 0.5642 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.6083, allocations: 0 / 0.5642 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.6083, allocations: 3.953 kB / 0.5642 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.6085, allocations: 165.8 kB / 0.5643 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.6086, allocations: 85 kB / 0.5644 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.6086, allocations: 4.188 kB / 0.5644 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.6088, allocations: 22.86 kB / 0.5644 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.6088, allocations: 3.953 kB / 0.5644 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.6088, allocations: 4 kB / 0.5644 GB, free: 10.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.609, allocations: 112.3 kB / 0.5646 GB, free: 10.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.609, allocations: 0 / 0.5646 GB, free: 10.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003463/0.6093, allocations: 27.44 kB / 0.5646 GB, free: 10.31 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 () * 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.001599/0.6109, allocations: 0.9938 MB / 0.5655 GB, free: 9.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001741/0.6111, allocations: 34.94 kB / 0.5656 GB, free: 9.348 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.6112, allocations: 0 / 0.5656 GB, free: 9.348 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.712e-05/0.6112, allocations: 15.62 kB / 0.5656 GB, free: 9.336 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.6115, allocations: 15.67 kB / 0.5656 GB, free: 9.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006358/0.6122, allocations: 202.7 kB / 0.5658 GB, free: 9.094 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.6125, allocations: 0.6887 MB / 0.5665 GB, free: 8.379 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.629e-05/0.6126, allocations: 26.67 kB / 0.5665 GB, free: 8.359 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6126, allocations: 0 / 0.5665 GB, free: 8.359 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=2 -DSUNDIALS_MINOR_VERSION=6 -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 */ tmp24; ^ ./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", tmp24); ~~~~~~~~~~ ^ 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:244:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19Initialize.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_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