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.Test5.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.Test5,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004535/0.0004536, allocations: 16 kB / 314.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3341, allocations: 54.87 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.002495/0.3366, allocations: 1.365 MB / 370.6 MB, free: 9.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.3383, allocations: 0.7163 MB / 371.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.664e-05/0.3385, allocations: 4 kB / 371.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003919/0.3389, allocations: 99.72 kB / 371.5 MB, free: 8.516 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.3391, allocations: 59.84 kB / 371.5 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.3394, allocations: 55.81 kB / 371.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.3396, allocations: 95.81 kB / 371.7 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.3397, allocations: 20.22 kB / 371.7 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3399, allocations: 47.83 kB / 371.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.34, allocations: 51.83 kB / 371.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.34, allocations: 4 kB / 371.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.3402, allocations: 35.91 kB / 371.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.313e-05/0.3402, allocations: 31.91 kB / 371.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.3403, allocations: 37.64 kB / 371.9 MB, free: 8.078 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.3405, allocations: 104.8 kB / 372 MB, free: 7.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.3405, allocations: 0 / 372 MB, free: 7.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3406, allocations: 4 kB / 372 MB, free: 7.973 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.3406, allocations: 0 / 372 MB, free: 7.973 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006352/0.3412, allocations: 484.9 kB / 372.5 MB, free: 7.441 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.3413, allocations: 8.031 kB / 372.5 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.438e-05/0.3413, allocations: 38.5 kB / 372.5 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/0.3414, allocations: 15.81 kB / 372.5 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.3417, allocations: 210.8 kB / 372.7 MB, free: 7.125 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.3417, allocations: 8 kB / 372.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.3418, allocations: 11.92 kB / 372.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.342, allocations: 69.61 kB / 372.8 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.342, allocations: 4 kB / 372.8 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3421, allocations: 3.953 kB / 372.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3421, allocations: 0 / 372.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.3422, allocations: 35.97 kB / 372.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004961/0.3428, allocations: 320.8 kB / 373.2 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.3431, allocations: 78.77 kB / 373.3 MB, free: 6.539 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.3431, allocations: 4 kB / 373.3 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.3434, allocations: 79.31 kB / 373.3 MB, free: 6.445 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.843e-06/0.3434, allocations: 0 / 373.3 MB, free: 6.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008839/0.3443, allocations: 229 kB / 373.6 MB, free: 6.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.3443, allocations: 55.41 kB / 373.6 MB, free: 6.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.3447, allocations: 242.2 kB / 373.9 MB, free: 5.902 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3447, allocations: 37.64 kB / 373.9 MB, free: 5.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3448, allocations: 170.5 kB / 374.1 MB, free: 5.691 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.682e-05/0.3449, allocations: 31.56 kB / 374.1 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.799e-06/0.3449, allocations: 0 / 374.1 MB, free: 5.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.345, allocations: 322.8 kB / 374.4 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.3452, allocations: 39.92 kB / 374.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.3454, allocations: 65.69 kB / 374.5 MB, free: 5.227 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.3456, allocations: 78.34 kB / 374.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3456, allocations: 0 / 374.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000481/0.3461, allocations: 193.1 kB / 374.8 MB, free: 4.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.623e-05/0.3461, allocations: 33.7 kB / 374.8 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3462, allocations: 0 / 374.8 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.3462, allocations: 0 / 374.8 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.3464, allocations: 31.98 kB / 374.8 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.3464, allocations: 4.031 kB / 374.8 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.326e-05/0.3465, allocations: 4 kB / 374.8 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3465, allocations: 7.984 kB / 374.9 MB, free: 4.859 MB / 298.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0001672/0.3467, allocations: 141.8 kB / 375 MB, free: 4.711 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/0.3467, allocations: 19.77 kB / 375 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.126e-05/0.3468, allocations: 21.41 kB / 375 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3468, allocations: 0 / 375 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3469, allocations: 0 / 375 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.3469, allocations: 15.92 kB / 375.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008152/0.3477, allocations: 447.2 kB / 375.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.3477, allocations: 7.984 kB / 375.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.703e-05/0.3478, allocations: 12 kB / 375.5 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.3478, allocations: 0 / 375.5 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.3479, allocations: 7.938 kB / 375.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3479, allocations: 7.938 kB / 375.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3479, allocations: 0 / 375.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/0.3483, allocations: 228.3 kB / 375.7 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.94e-05/0.3484, allocations: 104.9 kB / 375.8 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.3485, allocations: 3.984 kB / 375.9 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3486, allocations: 4 kB / 375.9 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.3487, allocations: 11.98 kB / 375.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.3487, allocations: 8 kB / 375.9 MB, free: 3.738 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000223/0.3489, allocations: 176.4 kB / 376 MB, free: 3.566 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.349, allocations: 3.938 kB / 376.1 MB, free: 3.562 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003612/0.3493, allocations: 36 kB / 376.1 MB, free: 3.527 MB / 298.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001903/0.3512, allocations: 1.115 MB / 377.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004379/0.3517, allocations: 179.2 kB / 377.4 MB, free: 2.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3517, allocations: 4 kB / 377.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.3519, allocations: 39.92 kB / 377.4 MB, free: 2.234 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.3522, allocations: 24.08 kB / 377.4 MB, free: 2.211 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.3533, allocations: 0.5997 MB / 378 MB, free: 1.555 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3537, allocations: 0.7199 MB / 378.8 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.3538, allocations: 47.41 kB / 378.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.3538, allocations: 0 / 378.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.649/3.003, allocations: 2.875 MB / 381.7 MB, free: 13.89 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat failed! " Variables in the reference:time,t_new.nextTimeEvent,t_new.y[1],t_new.y[2],d_t_new.y,d_t_new2.y Variables in the result:d_t_new.u,d_t_new.y,d_t_new2.u,d_t_new2.y,der(d_t_new.u),der(d_t_new2.u),der(t_new.timeScaled),t_new.columns[1],t_new.columns[2],t_new.extrapolation,t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new.nout,t_new.offset[1],t_new.p_offset[1],t_new.p_offset[2],t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_maxScaled,t_new.t_min,t_new.t_minScaled,t_new.tableOnFile,t_new.tableOnFileRead,t_new.table[1,1],t_new.table[1,2],t_new.table[1,3],t_new.table[2,1],t_new.table[2,2],t_new.table[2,3],t_new.table[3,1],t_new.table[3,2],t_new.table[3,3],t_new.table[4,1],t_new.table[4,2],t_new.table[4,3],t_new.table[5,1],t_new.table[5,2],t_new.table[5,3],t_new.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],t_new.y[2],time