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.002425/0.002425, allocations: 179.6 kB / 8.362 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.164/2.164, 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.001156/0.001156, allocations: 87.95 kB / 262.1 MB, free: 13.88 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.341/0.341, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.578e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4124, allocations: 58.86 MB / 477.2 MB, free: 5.277 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.5775, allocations: 85.98 MB / 0.55 GB, free: 13.3 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.5779, allocations: 83.45 kB / 0.55 GB, free: 13.22 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01761/0.5955, allocations: 4.004 MB / 0.554 GB, free: 9.219 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5956, allocations: 0 / 0.554 GB, free: 9.219 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.5956, allocations: 4 kB / 0.554 GB, free: 9.215 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.0005002/0.5961, allocations: 374.3 kB / 0.5543 GB, free: 8.805 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.5962, allocations: 8.031 kB / 0.5543 GB, free: 8.797 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.12e-05/0.5963, allocations: 12.53 kB / 0.5543 GB, free: 8.785 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.5966, allocations: 190.9 kB / 0.5545 GB, free: 8.559 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.5966, allocations: 7.984 kB / 0.5545 GB, free: 8.551 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.5966, allocations: 4 kB / 0.5545 GB, free: 8.547 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.215e-05/0.5967, allocations: 11.94 kB / 0.5545 GB, free: 8.535 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.5969, allocations: 55.41 kB / 0.5546 GB, free: 8.469 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.5969, allocations: 4 kB / 0.5546 GB, free: 8.465 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.5969, allocations: 4 kB / 0.5546 GB, free: 8.461 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.5969, allocations: 0 / 0.5546 GB, free: 8.461 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004739/0.5974, allocations: 253.4 kB / 0.5548 GB, free: 8.176 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.5976, allocations: 46.5 kB / 0.5549 GB, free: 8.121 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.847e-05/0.5977, allocations: 12.86 kB / 0.5549 GB, free: 8.105 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.5977, allocations: 0 / 0.5549 GB, free: 8.105 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.5978, allocations: 38.5 kB / 0.5549 GB, free: 8.059 MB / 395.1 MB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.5978, allocations: 0 / 0.5549 GB, free: 8.059 MB / 395.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005241/0.5983, allocations: 109.4 kB / 0.555 GB, free: 7.945 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.5984, allocations: 77.11 kB / 0.5551 GB, free: 7.852 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.5986, allocations: 121 kB / 0.5552 GB, free: 7.727 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.5986, allocations: 29.7 kB / 0.5553 GB, free: 7.691 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.398e-05/0.5987, allocations: 158.5 kB / 0.5554 GB, free: 7.535 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.5988, allocations: 23.73 kB / 0.5554 GB, free: 7.512 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.5988, allocations: 0 / 0.5554 GB, free: 7.512 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.5989, allocations: 315 kB / 0.5557 GB, free: 7.195 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.165e-05/0.599, allocations: 12 kB / 0.5557 GB, free: 7.184 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.385e-05/0.5991, allocations: 25.7 kB / 0.5558 GB, free: 7.152 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.791e-05/0.5991, allocations: 16.03 kB / 0.5558 GB, free: 7.137 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.5991, allocations: 0 / 0.5558 GB, free: 7.137 MB / 395.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001487/0.5993, allocations: 57.69 kB / 0.5558 GB, free: 7.074 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.5993, allocations: 8 kB / 0.5558 GB, free: 7.066 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.5994, allocations: 0 / 0.5558 GB, free: 7.066 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.5994, allocations: 0 / 0.5558 GB, free: 7.066 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.5995, allocations: 19.92 kB / 0.5559 GB, free: 7.047 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.5995, allocations: 0 / 0.5559 GB, free: 7.047 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.391e-05/0.5996, allocations: 7.984 kB / 0.5559 GB, free: 7.039 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.5997, allocations: 8 kB / 0.5559 GB, free: 7.031 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.683e-05/0.5998, allocations: 104.9 kB / 0.556 GB, free: 6.922 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000163/0.5999, allocations: 61.84 kB / 0.556 GB, free: 6.855 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.6, allocations: 7.906 kB / 0.556 GB, free: 6.848 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.6002, allocations: 82.08 kB / 0.5561 GB, free: 6.762 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.6002, allocations: 0 / 0.5561 GB, free: 6.762 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6003, allocations: 0 / 0.5561 GB, free: 6.762 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.6003, allocations: 3.953 kB / 0.5561 GB, free: 6.758 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004739/0.6008, allocations: 311.2 kB / 0.5564 GB, free: 6.41 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.6008, allocations: 0 / 0.5564 GB, free: 6.41 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.6009, allocations: 15.98 kB / 0.5564 GB, free: 6.395 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.6009, allocations: 0 / 0.5564 GB, free: 6.395 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.6009, allocations: 0 / 0.5564 GB, free: 6.395 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.601, allocations: 3.938 kB / 0.5564 GB, free: 6.391 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.601, allocations: 3.953 kB / 0.5564 GB, free: 6.387 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/0.6012, allocations: 163.5 kB / 0.5566 GB, free: 6.211 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.01e-05/0.6013, allocations: 93 kB / 0.5567 GB, free: 6.102 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.6013, allocations: 0 / 0.5567 GB, free: 6.102 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.6014, allocations: 7.984 kB / 0.5567 GB, free: 6.094 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.6015, allocations: 4 kB / 0.5567 GB, free: 6.09 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.6015, allocations: 7.891 kB / 0.5567 GB, free: 6.082 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.000104/0.6016, allocations: 103.2 kB / 0.5568 GB, free: 5.98 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6016, allocations: 0 / 0.5568 GB, free: 5.98 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003846/0.602, allocations: 28 kB / 0.5568 GB, free: 5.953 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.001628/0.6037, allocations: 0.9795 MB / 0.5578 GB, free: 5 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001745/0.6039, allocations: 32 kB / 0.5578 GB, free: 4.969 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6039, allocations: 0 / 0.5578 GB, free: 4.969 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 5.928e-05/0.604, allocations: 23.94 kB / 0.5578 GB, free: 4.945 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.6043, allocations: 11.84 kB / 0.5579 GB, free: 4.934 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006615/0.605, allocations: 187.2 kB / 0.558 GB, free: 4.703 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.6053, allocations: 0.6963 MB / 0.5587 GB, free: 3.98 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.6055, allocations: 23.42 kB / 0.5587 GB, free: 3.957 MB / 395.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6055, allocations: 0 / 0.5587 GB, free: 3.957 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_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/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_CombiTable1D_Test19CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTable1D_Test19CalcHelperMain.o] Error 1