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.Test60.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.Test60,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.Test60") Notification: Performance of loadModel(ModelicaTest): time 1.933/1.933, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.255e-05/3.272e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2924, allocations: 48.68 MB / 320 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1903/0.4828, allocations: 75.33 MB / 395.3 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003343/0.4832, allocations: 67.97 kB / 395.4 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0192/0.5024, allocations: 4.342 MB / 399.8 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.699e-06/0.5024, allocations: 3.938 kB / 399.8 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.5025, allocations: 8 kB / 399.8 MB, free: 0.7109 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.0004813/0.5029, allocations: 408 kB / 400.2 MB, free: 268 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.503, allocations: 12.03 kB / 400.2 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.5031, allocations: 3.906 kB / 400.2 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.5033, allocations: 192 kB / 400.4 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.5034, allocations: 0 / 400.4 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.5034, allocations: 7.938 kB / 400.4 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.866e-05/0.5035, allocations: 16.03 kB / 400.4 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.5036, allocations: 55.36 kB / 400.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.5036, allocations: 0 / 400.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.5037, allocations: 4 kB / 400.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.5037, allocations: 3.984 kB / 400.4 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.5041, allocations: 253.4 kB / 400.7 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.5043, allocations: 46.56 kB / 400.7 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.304e-05/0.5043, allocations: 12.86 kB / 400.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.5044, allocations: 0 / 400.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/0.5045, allocations: 63.48 kB / 400.8 MB, free: 15.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 2.191e-06/0.5045, allocations: 0 / 400.8 MB, free: 15.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004089/0.5049, allocations: 101.3 kB / 400.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/0.505, allocations: 81.11 kB / 401 MB, free: 15.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.5052, allocations: 129.9 kB / 401.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.5052, allocations: 33.7 kB / 401.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.5053, allocations: 158.6 kB / 401.3 MB, free: 14.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.5054, allocations: 11.75 kB / 401.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-06/0.5054, allocations: 0 / 401.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.5055, allocations: 326.8 kB / 401.6 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.219e-05/0.5056, allocations: 12 kB / 401.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.754e-05/0.5057, allocations: 37.64 kB / 401.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.028e-05/0.5058, allocations: 23.98 kB / 401.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.5058, allocations: 4.031 kB / 401.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002062/0.506, allocations: 81.72 kB / 401.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/0.5061, allocations: 41.69 kB / 401.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.5061, allocations: 0 / 401.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.5061, allocations: 0 / 401.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.941e-05/0.5062, allocations: 11.94 kB / 401.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.455e-06/0.5062, allocations: 0 / 401.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.761e-05/0.5062, allocations: 4 kB / 401.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.5063, allocations: 0 / 401.9 MB, free: 14.39 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 9.772e-05/0.5064, allocations: 112.9 kB / 402 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.5064, allocations: 11.89 kB / 402 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.5067, allocations: 78.08 kB / 402 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.15e-06/0.5067, allocations: 4 kB / 402.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.951e-06/0.5067, allocations: 3.938 kB / 402.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.06e-06/0.5067, allocations: 0 / 402.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004002/0.5071, allocations: 319 kB / 402.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.81e-06/0.5071, allocations: 0 / 402.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.662e-05/0.5072, allocations: 12 kB / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.563e-06/0.5072, allocations: 0 / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.5072, allocations: 0 / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.179e-06/0.5072, allocations: 0 / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.699e-06/0.5072, allocations: 0 / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.5075, allocations: 179.5 kB / 402.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.5076, allocations: 81.08 kB / 402.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.5076, allocations: 8 kB / 402.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.064e-05/0.5077, allocations: 4 kB / 402.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.5078, allocations: 11.98 kB / 402.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.5078, allocations: 0 / 402.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.747e-05/0.5079, allocations: 104.7 kB / 402.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.5079, allocations: 0 / 402.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00039/0.5083, allocations: 47.94 kB / 402.8 MB, free: 13.35 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.001132/0.5094, allocations: 379.8 kB / 403.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002071/0.5097, allocations: 103.3 kB / 403.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.148e-06/0.5097, allocations: 0 / 403.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.348e-05/0.5098, allocations: 19.94 kB / 403.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.51, allocations: 21.36 kB / 403.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000327/0.5104, allocations: 128.1 kB / 403.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.5107, allocations: 0.6924 MB / 404.1 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.959e-05/0.5108, allocations: 31.36 kB / 404.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.444e-06/0.5108, allocations: 0 / 404.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of Templates: time 0.004444/0.5153, allocations: 1.884 MB / 406.1 MB, free: 10.1 MB / 346.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test60_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test60_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test60_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test60_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test60_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test60_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