Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test59,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59") Notification: Performance of loadModel(ModelicaTest): time 1.925/1.925, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.232e-05/2.233e-05, allocations: 7.984 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3224, allocations: 48.69 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1135/0.436, allocations: 75.33 MB / 395.3 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.4363, allocations: 71.95 kB / 395.4 MB, free: 5.027 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01759/0.4539, allocations: 4.342 MB / 399.8 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.367e-06/0.4539, allocations: 0 / 399.8 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.454, allocations: 0 / 399.8 MB, free: 0.6797 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004992/0.4545, allocations: 400.1 kB / 400.1 MB, free: 244 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.4545, allocations: 12.03 kB / 400.2 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.225e-05/0.4546, allocations: 11.84 kB / 400.2 MB, free: 220 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.4549, allocations: 192.5 kB / 400.4 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.4549, allocations: 0 / 400.4 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.455, allocations: 4 kB / 400.4 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.72e-05/0.4551, allocations: 19.86 kB / 400.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.4552, allocations: 63.39 kB / 400.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.4552, allocations: 4 kB / 400.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.4553, allocations: 4 kB / 400.5 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.406e-06/0.4553, allocations: 0 / 400.5 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004368/0.4557, allocations: 257.4 kB / 400.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.4559, allocations: 38.56 kB / 400.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.736e-05/0.456, allocations: 16.95 kB / 400.8 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.456, allocations: 3.984 kB / 400.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/0.4562, allocations: 59.39 kB / 400.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 2.417e-06/0.4562, allocations: 0 / 400.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004099/0.4566, allocations: 97.36 kB / 400.9 MB, free: 15.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.4567, allocations: 85.09 kB / 401 MB, free: 15.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.4569, allocations: 125.9 kB / 401.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.4569, allocations: 29.7 kB / 401.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.457, allocations: 158.6 kB / 401.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.457, allocations: 15.75 kB / 401.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-06/0.4571, allocations: 0 / 401.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4572, allocations: 322.8 kB / 401.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.496e-05/0.4573, allocations: 16 kB / 401.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.12e-05/0.4574, allocations: 33.66 kB / 401.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.86e-05/0.4575, allocations: 19.98 kB / 401.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4575, allocations: 4.031 kB / 401.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000214/0.4577, allocations: 81.69 kB / 401.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.4578, allocations: 37.69 kB / 401.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4578, allocations: 0 / 401.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.4578, allocations: 0 / 401.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.339e-05/0.4579, allocations: 12.03 kB / 401.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.145e-06/0.4579, allocations: 3.938 kB / 401.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.447e-05/0.458, allocations: 4 kB / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.458, allocations: 0 / 401.8 MB, free: 14.36 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001073/0.4581, allocations: 124 kB / 402 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.4581, allocations: 7.906 kB / 402 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.4584, allocations: 82.22 kB / 402.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.898e-06/0.4584, allocations: 4 kB / 402.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.4584, allocations: 0 / 402.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.074e-06/0.4584, allocations: 3.938 kB / 402.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004239/0.4589, allocations: 319 kB / 402.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.01e-06/0.4589, allocations: 0 / 402.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.05e-05/0.459, allocations: 16 kB / 402.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.644e-06/0.459, allocations: 0 / 402.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.459, allocations: 0 / 402.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.459, allocations: 0 / 402.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/0.459, allocations: 4 kB / 402.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.4593, allocations: 179.5 kB / 402.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.801e-05/0.4593, allocations: 85.02 kB / 402.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.4594, allocations: 0 / 402.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.605e-05/0.4595, allocations: 4 kB / 402.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.4595, allocations: 7.984 kB / 402.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.4596, allocations: 4 kB / 402.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.4597, allocations: 105.7 kB / 402.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.48e-07/0.4597, allocations: 0 / 402.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004013/0.4601, allocations: 47.92 kB / 402.8 MB, free: 13.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00114/0.4613, allocations: 375 kB / 403.2 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.4615, allocations: 103.3 kB / 403.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.908e-06/0.4615, allocations: 0 / 403.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.867e-05/0.4616, allocations: 20 kB / 403.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.4619, allocations: 21.44 kB / 403.3 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.4623, allocations: 136 kB / 403.5 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.4627, allocations: 0.6963 MB / 404.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.4627, allocations: 19.44 kB / 404.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of SimCode: time 3.632e-06/0.4628, allocations: 0 / 404.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of Templates: time 0.004653/0.4674, allocations: 1.877 MB / 406 MB, free: 10.07 MB / 346.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test59_res.mat failed! " Variables in the reference:time,t_new.nextTimeEvent,t_new.y[1],d_t_new.y Variables in the result:_D_cse1,_D_whenCondition1,der(d_t_new.u),d_t_new.u,d_t_new.y,t_new.columns[1],t_new.extrapolation,t_new.nextTimeEvent,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_min,t_new.tableOnFile,t_new.tableOnFileRead,t_new.verboseRead,t_new.y[1],time