Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test55.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.CombiTimeTable.Test55,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test55,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55",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.003129/0.003129, allocations: 181.3 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.44/2.44, 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.001105/0.001105, allocations: 90.64 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.2985/0.2985, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.713e-05/7.731e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1337, allocations: 58.86 MB / 484.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4995/0.6333, allocations: 87.84 MB / 0.5587 GB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.6336, allocations: 77.86 kB / 0.5588 GB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02775/0.6613, allocations: 5.767 MB / 0.5644 GB, free: 11.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6614, allocations: 7.938 kB / 0.5644 GB, free: 11.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.6614, allocations: 4 kB / 0.5644 GB, free: 11.05 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007092/0.6621, allocations: 398.4 kB / 0.5648 GB, free: 10.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.767e-05/0.6622, allocations: 12.03 kB / 0.5648 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.417e-05/0.6623, allocations: 30.56 kB / 0.5648 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.721e-05/0.6623, allocations: 7.906 kB / 0.5648 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.6628, allocations: 206.1 kB / 0.565 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.6628, allocations: 0 / 0.565 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.6629, allocations: 8 kB / 0.565 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.6631, allocations: 74.14 kB / 0.5651 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.6631, allocations: 0 / 0.5651 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.6632, allocations: 0 / 0.5651 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.6632, allocations: 4 kB / 0.5651 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.967e-05/0.6633, allocations: 27.12 kB / 0.5651 GB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/0.6638, allocations: 278.6 kB / 0.5654 GB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.6641, allocations: 57.44 kB / 0.5655 GB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.744e-05/0.6642, allocations: 23.73 kB / 0.5655 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.6642, allocations: 0 / 0.5655 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000193/0.6644, allocations: 62.52 kB / 0.5655 GB, free: 9.777 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 4.098e-06/0.6644, allocations: 7.922 kB / 0.5655 GB, free: 9.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006797/0.6651, allocations: 161.6 kB / 0.5657 GB, free: 9.629 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.843e-05/0.6652, allocations: 81.09 kB / 0.5658 GB, free: 9.531 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.6654, allocations: 142 kB / 0.5659 GB, free: 9.406 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.6655, allocations: 29.7 kB / 0.5659 GB, free: 9.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.119e-05/0.6656, allocations: 157.6 kB / 0.5661 GB, free: 9.223 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.6656, allocations: 26.77 kB / 0.5661 GB, free: 9.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.629e-06/0.6657, allocations: 7.812 kB / 0.5661 GB, free: 9.195 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6658, allocations: 314.8 kB / 0.5664 GB, free: 8.879 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.901e-05/0.6659, allocations: 22.38 kB / 0.5664 GB, free: 8.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.666, allocations: 41.62 kB / 0.5665 GB, free: 8.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.145e-05/0.6661, allocations: 19.69 kB / 0.5665 GB, free: 8.809 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.6661, allocations: 0 / 0.5665 GB, free: 8.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002662/0.6664, allocations: 94.73 kB / 0.5666 GB, free: 8.727 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.6664, allocations: 7.953 kB / 0.5666 GB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.6665, allocations: 4 kB / 0.5666 GB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.6665, allocations: 4.062 kB / 0.5666 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.6667, allocations: 12 kB / 0.5666 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.6667, allocations: 0 / 0.5666 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.6668, allocations: 10.61 kB / 0.5666 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.6669, allocations: 4 kB / 0.5666 GB, free: 8.688 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001112/0.667, allocations: 108.6 kB / 0.5667 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/0.667, allocations: 7.906 kB / 0.5667 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003606/0.6674, allocations: 119.4 kB / 0.5669 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.6674, allocations: 8 kB / 0.5669 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.6674, allocations: 0 / 0.5669 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.259e-06/0.6674, allocations: 0 / 0.5669 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007307/0.6682, allocations: 401.9 kB / 0.5673 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.6682, allocations: 0 / 0.5673 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.6683, allocations: 15.94 kB / 0.5673 GB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.6683, allocations: 0 / 0.5673 GB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.6684, allocations: 3.25 kB / 0.5673 GB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.6684, allocations: 4.172 kB / 0.5673 GB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6684, allocations: 8.031 kB / 0.5673 GB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003396/0.6687, allocations: 221.9 kB / 0.5675 GB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.178e-05/0.6689, allocations: 85.02 kB / 0.5676 GB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.6689, allocations: 15.61 kB / 0.5676 GB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.6691, allocations: 0 / 0.5676 GB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.6691, allocations: 8 kB / 0.5676 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.6691, allocations: 7.984 kB / 0.5676 GB, free: 7.672 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001616/0.6693, allocations: 120.5 kB / 0.5677 GB, free: 7.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6693, allocations: 0 / 0.5677 GB, free: 7.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004254/0.6698, allocations: 35.5 kB / 0.5678 GB, free: 7.539 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002114/0.6719, allocations: 1.182 MB / 0.5689 GB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.6722, allocations: 57.25 kB / 0.569 GB, free: 6.363 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6723, allocations: 0 / 0.569 GB, free: 6.363 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.6724, allocations: 34.89 kB / 0.569 GB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.6728, allocations: 24.64 kB / 0.569 GB, free: 6.316 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008018/0.6736, allocations: 223 kB / 0.5692 GB, free: 6.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.674, allocations: 0.7121 MB / 0.5699 GB, free: 5.332 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.6742, allocations: 33.22 kB / 0.57 GB, free: 5.309 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6742, allocations: 0 / 0.57 GB, free: 5.309 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_CombiTimeTable_Test55CalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:44:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:45: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", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_CombiTimeTable_Test55Initialize.cpp:300:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp15; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:301:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp15); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55FMU.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_CombiTimeTable_Test55CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o] Error 1