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.Test42.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.Test42,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test42",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.264/2.264, allocations: 234.9 MB / 250.4 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005898/0.00059, allocations: 12 kB / 314.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3589, allocations: 54.86 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test42): time 0.002572/0.3615, allocations: 1.349 MB / 370.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.3632, allocations: 0.7241 MB / 371.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.741e-05/0.3633, allocations: 0 / 371.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.3636, allocations: 23.84 kB / 371.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001927/0.3638, allocations: 35.95 kB / 371.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.3641, allocations: 55.75 kB / 371.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.3643, allocations: 67.92 kB / 371.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.197e-05/0.3644, allocations: 7.984 kB / 371.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.3645, allocations: 39.84 kB / 371.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.141e-05/0.3646, allocations: 31.84 kB / 371.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.3646, allocations: 0 / 371.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.3647, allocations: 27.98 kB / 371.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.707e-05/0.3648, allocations: 19.92 kB / 371.7 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.886e-05/0.3649, allocations: 41.58 kB / 371.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.3651, allocations: 92.84 kB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.3651, allocations: 0 / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3651, allocations: 0 / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.3651, allocations: 0 / 371.8 MB, free: 10.23 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000613/0.3657, allocations: 462.2 kB / 372.2 MB, free: 9.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.3658, allocations: 8.031 kB / 372.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.816e-05/0.3659, allocations: 38.5 kB / 372.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.3659, allocations: 7.906 kB / 372.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.3662, allocations: 206.8 kB / 372.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.3662, allocations: 8 kB / 372.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.3663, allocations: 4 kB / 372.5 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.3665, allocations: 57.61 kB / 372.6 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.3665, allocations: 0 / 372.6 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.3665, allocations: 3.953 kB / 372.6 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3665, allocations: 0 / 372.6 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.3667, allocations: 19.98 kB / 372.6 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004811/0.3672, allocations: 312.8 kB / 372.9 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.3674, allocations: 58.67 kB / 372.9 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.3675, allocations: 4 kB / 373 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.3677, allocations: 67.34 kB / 373 MB, free: 8.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.914e-06/0.3678, allocations: 0 / 373 MB, free: 8.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007731/0.3685, allocations: 185.1 kB / 373.2 MB, free: 8.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.3686, allocations: 51.41 kB / 373.2 MB, free: 8.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.3689, allocations: 195.3 kB / 373.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.3689, allocations: 25.7 kB / 373.5 MB, free: 8.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.369, allocations: 170.4 kB / 373.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.876e-05/0.3691, allocations: 23.64 kB / 373.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/0.3691, allocations: 7.938 kB / 373.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3693, allocations: 314.8 kB / 374 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.3694, allocations: 31.98 kB / 374 MB, free: 7.785 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.3696, allocations: 45.7 kB / 374 MB, free: 7.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.3697, allocations: 65.69 kB / 374.1 MB, free: 7.664 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3697, allocations: 0 / 374.1 MB, free: 7.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003783/0.3701, allocations: 155.2 kB / 374.3 MB, free: 7.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.489e-05/0.3702, allocations: 41.69 kB / 374.3 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3702, allocations: 0 / 374.3 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3702, allocations: 8.031 kB / 374.3 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.3704, allocations: 12 kB / 374.3 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3704, allocations: 0 / 374.3 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.281e-05/0.3705, allocations: 4 kB / 374.3 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.3705, allocations: 7.984 kB / 374.3 MB, free: 7.422 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 (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.0001411/0.3707, allocations: 133.8 kB / 374.5 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.3707, allocations: 11.86 kB / 374.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.309e-05/0.3708, allocations: 21.39 kB / 374.5 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3708, allocations: 3.938 kB / 374.5 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3708, allocations: 4 kB / 374.5 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3708, allocations: 96 / 374.5 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006469/0.3715, allocations: 399.2 kB / 374.9 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3715, allocations: 0 / 374.9 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.3716, allocations: 8 kB / 374.9 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.3716, allocations: 4 kB / 374.9 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.3716, allocations: 0 / 374.9 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.3716, allocations: 4.141 kB / 374.9 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3716, allocations: 4.031 kB / 374.9 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003478/0.372, allocations: 216.5 kB / 375.1 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.762e-05/0.3721, allocations: 96.95 kB / 375.2 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.3721, allocations: 0 / 375.2 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3723, allocations: 12 kB / 375.2 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.3723, allocations: 7.984 kB / 375.2 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.3723, allocations: 8 kB / 375.2 MB, free: 6.406 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001685/0.3725, allocations: 139.9 kB / 375.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3725, allocations: 0 / 375.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00034/0.3729, allocations: 32 kB / 375.4 MB, free: 6.238 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 (8): * Single equations (assignments): 6 * 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.001841/0.3747, allocations: 1.083 MB / 376.5 MB, free: 5.219 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000376/0.3751, allocations: 143.4 kB / 376.6 MB, free: 5.066 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3751, allocations: 0 / 376.6 MB, free: 5.066 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.3753, allocations: 36.11 kB / 376.7 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.3756, allocations: 19.92 kB / 376.7 MB, free: 5.012 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009799/0.3766, allocations: 0.5076 MB / 377.2 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.377, allocations: 0.7082 MB / 377.9 MB, free: 3.715 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.555e-05/0.3771, allocations: 31.42 kB / 377.9 MB, free: 3.684 MB / 298.7 MB Notification: Performance of SimCode: time 8.92e-07/0.3771, allocations: 4 kB / 377.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.547/2.924, allocations: 2.401 MB / 380.3 MB, free: 1.277 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test42_res.mat failed! " Variables in the reference:time,t_new.nextTimeEvent,t_new.y[1],d_t_new.y Variables in the result:d_t_new.u,d_t_new.y,der(d_t_new.u),der(t_new.timeScaled),t_new.columns[1],t_new.extrapolation,t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new.nout,t_new.offset[1],t_new.p_offset[1],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[2,1],t_new.table[2,2],t_new.table[3,1],t_new.table[3,2],t_new.table[4,1],t_new.table[4,2],t_new.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],time