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.Test55.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test55,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.731/2.731, allocations: 235 MB / 248 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.297e-05/4.302e-05, allocations: 8 kB / 309.8 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4155/0.4156, allocations: 54.84 MB / 364.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1637/0.5793, allocations: 82.28 MB / 446.9 MB, free: 14.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.5796, allocations: 71.95 kB / 447 MB, free: 14.11 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/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/OpenModelica/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.02264/0.6023, allocations: 4.977 MB / 452 MB, free: 9.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6024, allocations: 0 / 452 MB, free: 9.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.6024, allocations: 4 kB / 452 MB, free: 9.156 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.0006792/0.6031, allocations: 449.6 kB / 452.4 MB, free: 8.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.874e-05/0.6032, allocations: 12.03 kB / 452.4 MB, free: 8.648 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.016e-05/0.6032, allocations: 30.56 kB / 452.4 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.6033, allocations: 7.906 kB / 452.4 MB, free: 8.602 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.6037, allocations: 210.8 kB / 452.7 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.6037, allocations: 0 / 452.7 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.6038, allocations: 4 kB / 452.7 MB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.604, allocations: 75.39 kB / 452.7 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.604, allocations: 3.953 kB / 452.7 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.604, allocations: 0 / 452.7 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.604, allocations: 0 / 452.7 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.835e-05/0.6041, allocations: 23.94 kB / 452.8 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005284/0.6047, allocations: 292.9 kB / 453 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.6049, allocations: 60.56 kB / 453.1 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.707e-05/0.605, allocations: 20.94 kB / 453.1 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.605, allocations: 0 / 453.1 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000184/0.6052, allocations: 71.33 kB / 453.2 MB, free: 7.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.903e-06/0.6052, allocations: 0 / 453.2 MB, free: 7.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006693/0.6059, allocations: 165.2 kB / 453.4 MB, free: 7.562 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.606, allocations: 81.11 kB / 453.4 MB, free: 7.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.6062, allocations: 136.6 kB / 453.6 MB, free: 7.324 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/0.6063, allocations: 33.64 kB / 453.6 MB, free: 7.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.226e-05/0.6064, allocations: 163.2 kB / 453.8 MB, free: 7.125 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.6064, allocations: 31.62 kB / 453.8 MB, free: 7.094 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.018e-05/0.6064, allocations: 0 / 453.8 MB, free: 7.094 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6066, allocations: 318.8 kB / 454.1 MB, free: 6.773 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.466e-05/0.6067, allocations: 24 kB / 454.1 MB, free: 6.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.6069, allocations: 58.56 kB / 454.2 MB, free: 6.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.607, allocations: 66.52 kB / 454.2 MB, free: 6.613 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.607, allocations: 0 / 454.2 MB, free: 6.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000379/0.6074, allocations: 152.7 kB / 454.4 MB, free: 6.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.075e-05/0.6075, allocations: 41.69 kB / 454.4 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.6075, allocations: 0 / 454.4 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.6076, allocations: 4 kB / 454.4 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.6077, allocations: 12 kB / 454.5 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.6078, allocations: 8 kB / 454.5 MB, free: 6.383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.6079, allocations: 7.984 kB / 454.5 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.6079, allocations: 4.75 kB / 454.5 MB, free: 6.371 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 0.0001309/0.6081, allocations: 120.9 kB / 454.6 MB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.6081, allocations: 7.906 kB / 454.6 MB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003587/0.6085, allocations: 119.5 kB / 454.7 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.6085, allocations: 4 kB / 454.7 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.6085, allocations: 0 / 454.7 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.6085, allocations: 4 kB / 454.7 MB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006776/0.6092, allocations: 399.3 kB / 455.1 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.6092, allocations: 0 / 455.1 MB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.535e-05/0.6093, allocations: 11.98 kB / 455.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.6094, allocations: 0 / 455.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.6094, allocations: 4 kB / 455.1 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.6094, allocations: 160 / 455.1 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6094, allocations: 0 / 455.1 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003409/0.6098, allocations: 230.5 kB / 455.4 MB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.901e-05/0.6099, allocations: 97 kB / 455.4 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.678e-05/0.6099, allocations: 0 / 455.4 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.6101, allocations: 15.92 kB / 455.5 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/0.6101, allocations: 4 kB / 455.5 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.6102, allocations: 3.984 kB / 455.5 MB, free: 5.266 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.6103, allocations: 130.6 kB / 455.6 MB, free: 5.141 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6103, allocations: 0 / 455.6 MB, free: 5.141 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004269/0.6107, allocations: 43.94 kB / 455.6 MB, free: 5.098 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.00206/0.6128, allocations: 1.211 MB / 456.9 MB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004012/0.6133, allocations: 151.3 kB / 457 MB, free: 3.773 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.6133, allocations: 0 / 457 MB, free: 3.773 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.6134, allocations: 31.94 kB / 457 MB, free: 3.742 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.6138, allocations: 19.94 kB / 457.1 MB, free: 3.723 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007863/0.6146, allocations: 221.9 kB / 457.3 MB, free: 3.457 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.615, allocations: 0.712 MB / 458 MB, free: 2.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.6152, allocations: 31.41 kB / 458 MB, free: 2.688 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6152, allocations: 0 / 458 MB, free: 2.688 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:42:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp27; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55InitializeParameter.cpp:43:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v4.mat", tmp27); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp9; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Tables/test_v4.mat", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_Test55Initialize.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_Test55Initialize.cpp:362:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp18; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55Initialize.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_Test55CalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55.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_Test55.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_Test55.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_Test55CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55FMU.cpp:11: /var/lib/jenkins/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) { ^ 5 warnings and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test55CalcHelperMain.o] Error 1