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.Test6.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.Test6,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.Test6") Notification: Performance of loadModel(ModelicaTest): time 1.963/1.963, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.46e-05/2.464e-05, allocations: 8 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.259, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.3711, allocations: 75.11 MB / 395.1 MB, free: 5.328 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.3713, allocations: 67.95 kB / 395.2 MB, free: 5.262 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01718/0.3885, allocations: 4.316 MB / 399.5 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.273e-06/0.3886, allocations: 4 kB / 399.5 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.3886, allocations: 0 / 399.5 MB, free: 0.9375 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.0005694/0.3892, allocations: 447.7 kB / 400 MB, free: 460 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3893, allocations: 8.031 kB / 400 MB, free: 452 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.028e-05/0.3893, allocations: 15.81 kB / 400 MB, free: 436 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.3897, allocations: 211.6 kB / 400.2 MB, free: 180 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3897, allocations: 0 / 400.2 MB, free: 180 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.3897, allocations: 4 kB / 400.2 MB, free: 176 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.292e-05/0.3898, allocations: 15.98 kB / 400.2 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.3899, allocations: 45.62 kB / 400.2 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.39, allocations: 3.938 kB / 400.3 MB, free: 104 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.39, allocations: 8 kB / 400.3 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.39, allocations: 4 kB / 400.3 MB, free: 92 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.3905, allocations: 285.3 kB / 400.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.3907, allocations: 38.56 kB / 400.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.277e-05/0.3907, allocations: 8.859 kB / 400.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.3908, allocations: 7.984 kB / 400.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.3909, allocations: 67.42 kB / 400.7 MB, free: 15.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 2.642e-06/0.3909, allocations: 0 / 400.7 MB, free: 15.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.000424/0.3914, allocations: 105.3 kB / 400.8 MB, free: 15.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.3914, allocations: 51.41 kB / 400.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.3918, allocations: 229.4 kB / 401 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.3918, allocations: 29.69 kB / 401.1 MB, free: 15.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.3919, allocations: 178.4 kB / 401.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.392, allocations: 15.91 kB / 401.3 MB, free: 15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-06/0.392, allocations: 0 / 401.3 MB, free: 15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3922, allocations: 314.8 kB / 401.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.416e-05/0.3922, allocations: 27.92 kB / 401.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.341e-05/0.3923, allocations: 20 kB / 401.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.252e-05/0.3924, allocations: 23.98 kB / 401.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.3924, allocations: 0 / 401.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002324/0.3926, allocations: 93.62 kB / 401.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/0.3927, allocations: 30.48 kB / 401.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.909e-06/0.3927, allocations: 4 kB / 401.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.868e-05/0.3928, allocations: 11.92 kB / 401.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.218e-05/0.3928, allocations: 8 kB / 401.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.416e-06/0.3928, allocations: 0 / 401.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.227e-05/0.3929, allocations: 0 / 401.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.3929, allocations: 4 kB / 401.8 MB, free: 14.45 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.745e-05/0.3931, allocations: 108.9 kB / 401.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.3931, allocations: 7.906 kB / 401.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002536/0.3934, allocations: 107.5 kB / 402 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.098e-06/0.3934, allocations: 3.984 kB / 402 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.417e-06/0.3934, allocations: 0 / 402 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.653e-06/0.3934, allocations: 3.938 kB / 402 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004883/0.3939, allocations: 351.1 kB / 402.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.273e-06/0.3939, allocations: 3.938 kB / 402.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.861e-05/0.394, allocations: 8 kB / 402.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.503e-06/0.394, allocations: 0 / 402.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.394, allocations: 0 / 402.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.394, allocations: 4 kB / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.528e-06/0.3941, allocations: 4 kB / 402.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.3943, allocations: 187.4 kB / 402.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.3944, allocations: 93.02 kB / 402.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.3945, allocations: 4 kB / 402.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.89e-05/0.3946, allocations: 3.984 kB / 402.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.3946, allocations: 4 kB / 402.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.3946, allocations: 0 / 402.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.3949, allocations: 192.3 kB / 402.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.53e-07/0.3949, allocations: 0 / 402.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003798/0.3953, allocations: 43.92 kB / 402.9 MB, free: 13.26 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.0009209/0.3962, allocations: 308.7 kB / 403.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002197/0.3965, allocations: 115.3 kB / 403.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.578e-06/0.3965, allocations: 0 / 403.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.279e-05/0.3965, allocations: 16 kB / 403.3 MB, free: 12.87 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.3968, allocations: 21.55 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.0005156/0.3974, allocations: 226.4 kB / 403.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.3978, allocations: 0.7197 MB / 404.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.11e-05/0.3979, allocations: 19.42 kB / 404.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of SimCode: time 1.63e-06/0.3979, allocations: 3.938 kB / 404.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of Templates: time 0.004621/0.4025, allocations: 1.954 MB / 406.3 MB, free: 9.879 MB / 346.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_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.table[1,1],t_new.table[1,2],t_new.table[10,1],t_new.table[10,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.table[5,1],t_new.table[5,2],t_new.table[6,1],t_new.table[6,2],t_new.table[7,1],t_new.table[7,2],t_new.table[8,1],t_new.table[8,2],t_new.table[9,1],t_new.table[9,2],t_new.verboseRead,t_new.y[1],time