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.Test49.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.Test49,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test49",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.288/2.288, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.0004462, allocations: 12 kB / 314.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3617, allocations: 54.87 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test49): time 0.002458/0.3643, allocations: 1.357 MB / 370.6 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.3659, allocations: 0.7125 MB / 371.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.267e-05/0.366, allocations: 0 / 371.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002775/0.3663, allocations: 27.84 kB / 371.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.3666, allocations: 43.88 kB / 371.4 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.3668, allocations: 55.81 kB / 371.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001751/0.367, allocations: 67.86 kB / 371.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3672, allocations: 15.97 kB / 371.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.3673, allocations: 31.86 kB / 371.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.573e-05/0.3674, allocations: 39.83 kB / 371.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.3674, allocations: 0 / 371.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.3676, allocations: 24 kB / 371.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.596e-05/0.3676, allocations: 35.84 kB / 371.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.324e-05/0.3677, allocations: 41.64 kB / 371.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.3679, allocations: 96.84 kB / 371.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.3679, allocations: 0 / 371.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3679, allocations: 4 kB / 371.8 MB, free: 10.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.368, allocations: 0 / 371.8 MB, free: 10.17 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.0006191/0.3686, allocations: 478 kB / 372.3 MB, free: 9.645 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3686, allocations: 8.031 kB / 372.3 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.3687, allocations: 30.56 kB / 372.3 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.774e-05/0.3688, allocations: 19.81 kB / 372.3 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.369, allocations: 214.7 kB / 372.6 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.3691, allocations: 4 kB / 372.6 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.3691, allocations: 7.938 kB / 372.6 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.3693, allocations: 53.67 kB / 372.6 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3693, allocations: 4 kB / 372.6 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.3694, allocations: 3.953 kB / 372.6 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.3694, allocations: 0 / 372.6 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.3695, allocations: 19.98 kB / 372.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004324/0.3699, allocations: 316.8 kB / 373 MB, free: 8.871 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002372/0.3702, allocations: 54.69 kB / 373 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3702, allocations: 0 / 373 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.3705, allocations: 75.28 kB / 373.1 MB, free: 8.723 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.944e-06/0.3705, allocations: 4 kB / 373.1 MB, free: 8.719 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007554/0.3712, allocations: 177.1 kB / 373.3 MB, free: 8.539 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.3713, allocations: 59.34 kB / 373.3 MB, free: 8.469 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/0.3717, allocations: 250.5 kB / 373.6 MB, free: 8.211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.3717, allocations: 33.7 kB / 373.6 MB, free: 8.172 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3718, allocations: 178.4 kB / 373.8 MB, free: 7.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.3719, allocations: 23.66 kB / 373.8 MB, free: 7.973 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.3719, allocations: 4 kB / 373.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.372, allocations: 318.8 kB / 374.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3721, allocations: 31.98 kB / 374.1 MB, free: 7.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.3723, allocations: 48.94 kB / 374.2 MB, free: 7.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.3724, allocations: 65.69 kB / 374.2 MB, free: 7.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3725, allocations: 0 / 374.2 MB, free: 7.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003768/0.3728, allocations: 155.2 kB / 374.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.805e-05/0.3729, allocations: 41.73 kB / 374.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.3729, allocations: 0 / 374.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.373, allocations: 0 / 374.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.3731, allocations: 19.98 kB / 374.5 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.3731, allocations: 0 / 374.5 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.599e-05/0.3732, allocations: 4 kB / 374.5 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.3732, allocations: 4 kB / 374.5 MB, free: 7.258 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.0001542/0.3734, allocations: 141.8 kB / 374.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.3735, allocations: 19.77 kB / 374.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.088e-05/0.3735, allocations: 29.33 kB / 374.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3735, allocations: 96 / 374.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3736, allocations: 3.938 kB / 374.7 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3736, allocations: 0 / 374.7 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006381/0.3742, allocations: 407.3 kB / 375.1 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3742, allocations: 384 / 375.1 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.498e-05/0.3743, allocations: 8 kB / 375.1 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.3743, allocations: 4 kB / 375.1 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.3743, allocations: 8.031 kB / 375.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3743, allocations: 0 / 375.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3744, allocations: 4 kB / 375.1 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.3747, allocations: 204.1 kB / 375.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.653e-05/0.3748, allocations: 100.9 kB / 375.4 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.3749, allocations: 7.984 kB / 375.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.375, allocations: 12 kB / 375.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.375, allocations: 0 / 375.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.3751, allocations: 7.984 kB / 375.4 MB, free: 6.219 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002647/0.3753, allocations: 188.5 kB / 375.6 MB, free: 6.035 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3754, allocations: 0 / 375.6 MB, free: 6.035 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003535/0.3757, allocations: 32 kB / 375.6 MB, free: 6.004 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.001803/0.3775, allocations: 1.094 MB / 376.7 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003828/0.3779, allocations: 147.3 kB / 376.9 MB, free: 4.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.378, allocations: 3.938 kB / 376.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.3781, allocations: 31.98 kB / 376.9 MB, free: 4.785 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.3784, allocations: 24.05 kB / 376.9 MB, free: 4.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3795, allocations: 0.5722 MB / 377.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.3798, allocations: 0.7199 MB / 378.2 MB, free: 3.387 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.461e-05/0.3799, allocations: 39.42 kB / 378.2 MB, free: 3.348 MB / 298.7 MB Notification: Performance of SimCode: time 9.81e-07/0.38, allocations: 0 / 378.2 MB, free: 3.348 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.504/2.884, allocations: 2.687 MB / 380.9 MB, free: 0.6602 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_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.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.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],time