Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test57.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test57,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.271/2.271, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.768e-05, allocations: 8 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3752/0.3752, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.5233, allocations: 81.6 MB / 439.7 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.5236, allocations: 71.97 kB / 439.8 MB, free: 13.07 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.02021/0.5439, allocations: 4.84 MB / 444.6 MB, free: 8.227 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5439, allocations: 0 / 444.6 MB, free: 8.227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.5439, allocations: 0 / 444.6 MB, free: 8.227 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.0005311/0.5445, allocations: 457.5 kB / 445.1 MB, free: 7.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.5445, allocations: 8.031 kB / 445.1 MB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.5446, allocations: 15.91 kB / 445.1 MB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.5449, allocations: 204.3 kB / 445.3 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.5449, allocations: 7.984 kB / 445.3 MB, free: 7.453 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.545, allocations: 0 / 445.3 MB, free: 7.453 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.92e-05/0.5451, allocations: 16 kB / 445.3 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.5452, allocations: 71.33 kB / 445.4 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.5453, allocations: 3.953 kB / 445.4 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.5453, allocations: 0 / 445.4 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.5453, allocations: 0 / 445.4 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004034/0.5457, allocations: 273.4 kB / 445.7 MB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.5459, allocations: 50.69 kB / 445.7 MB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.503e-05/0.5459, allocations: 20.92 kB / 445.7 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.546, allocations: 4 kB / 445.7 MB, free: 6.961 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.5461, allocations: 71.34 kB / 445.8 MB, free: 6.879 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.014e-06/0.5461, allocations: 0 / 445.8 MB, free: 6.879 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005459/0.5467, allocations: 154 kB / 446 MB, free: 6.723 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.5467, allocations: 81.11 kB / 446 MB, free: 6.625 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.5469, allocations: 127.4 kB / 446.2 MB, free: 6.492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.5469, allocations: 25.7 kB / 446.2 MB, free: 6.461 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.002e-05/0.547, allocations: 166.4 kB / 446.4 MB, free: 6.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.642e-05/0.5471, allocations: 23.73 kB / 446.4 MB, free: 6.273 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-06/0.5471, allocations: 0 / 446.4 MB, free: 6.273 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5472, allocations: 318.8 kB / 446.7 MB, free: 5.953 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.041e-05/0.5473, allocations: 31.98 kB / 446.7 MB, free: 5.922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.965e-05/0.5474, allocations: 53.19 kB / 446.8 MB, free: 5.863 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/0.5476, allocations: 35.98 kB / 446.8 MB, free: 5.828 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5476, allocations: 0 / 446.8 MB, free: 5.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002882/0.5479, allocations: 121.5 kB / 446.9 MB, free: 5.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.5479, allocations: 45.75 kB / 447 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.5479, allocations: 0 / 447 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.548, allocations: 0 / 447 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.5481, allocations: 12 kB / 447 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.5481, allocations: 4 kB / 447 MB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.798e-05/0.5482, allocations: 8.078 kB / 447 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.5483, allocations: 7.938 kB / 447 MB, free: 5.621 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.752e-05/0.5484, allocations: 108.9 kB / 447.1 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002156/0.5486, allocations: 101.5 kB / 447.2 MB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.5486, allocations: 11.91 kB / 447.2 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/0.5489, allocations: 106.2 kB / 447.3 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.5489, allocations: 0 / 447.3 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.549, allocations: 0 / 447.3 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.549, allocations: 7.984 kB / 447.3 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004977/0.5495, allocations: 364 kB / 447.7 MB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.5495, allocations: 7.984 kB / 447.7 MB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.411e-05/0.5496, allocations: 12.02 kB / 447.7 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.5496, allocations: 8 kB / 447.7 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.5496, allocations: 4 kB / 447.7 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5496, allocations: 0 / 447.7 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5496, allocations: 240 / 447.7 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.5499, allocations: 213.9 kB / 447.9 MB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.157e-05/0.55, allocations: 93 kB / 448 MB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.5501, allocations: 7.984 kB / 448 MB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.5502, allocations: 4 kB / 448 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.5503, allocations: 11.94 kB / 448 MB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.5503, allocations: 7.984 kB / 448.1 MB, free: 4.465 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.974e-05/0.5504, allocations: 109.1 kB / 448.2 MB, free: 4.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5504, allocations: 0 / 448.2 MB, free: 4.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003945/0.5508, allocations: 43.94 kB / 448.2 MB, free: 4.316 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.001694/0.5525, allocations: 1.16 MB / 449.4 MB, free: 3.188 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002768/0.5528, allocations: 151.3 kB / 449.5 MB, free: 3.027 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5528, allocations: 0 / 449.5 MB, free: 3.027 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.241e-05/0.5529, allocations: 28.19 kB / 449.5 MB, free: 3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.5532, allocations: 24.83 kB / 449.6 MB, free: 2.977 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006298/0.5539, allocations: 221.7 kB / 449.8 MB, free: 2.711 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.5542, allocations: 0.7081 MB / 450.5 MB, free: 1.977 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.244e-05/0.5543, allocations: 31.42 kB / 450.5 MB, free: 1.949 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5543, allocations: 0 / 450.5 MB, free: 1.949 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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57InitializeParameter.cpp:43:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v7.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v7.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:301:39: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_t_new_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:304:13: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp17 = 1.797693134862316e+308; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57Initialize.cpp:363:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp18); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:208:41: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_t_new_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:211:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp1 = 1.797693134862316e+308; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57.cpp:785:24: error: use of undeclared identifier 'tmp4' _t_new_P_fileName_ = tmp4; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57FMU.cpp:11: /var/lib/jenkins/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) { ^ 5 warnings and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test57CalcHelperMain.o] Error 1