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.Test41.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.Test41,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Tables_CombiTimeTable_Test41",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.245/2.245, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004274/0.0004275, allocations: 20 kB / 314.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3648, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test41): time 0.002471/0.3674, allocations: 1.353 MB / 370.6 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.3691, allocations: 0.7203 MB / 371.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.328e-05/0.3692, allocations: 3.938 kB / 371.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.3695, allocations: 71.77 kB / 371.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.3698, allocations: 51.91 kB / 371.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.37, allocations: 55.83 kB / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.3702, allocations: 79.83 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.358e-05/0.3703, allocations: 4 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.3704, allocations: 47.83 kB / 371.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.3705, allocations: 43.83 kB / 371.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.3706, allocations: 4 kB / 371.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.3707, allocations: 27.98 kB / 371.7 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.179e-05/0.3707, allocations: 23.91 kB / 371.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.807e-05/0.3708, allocations: 45.58 kB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.371, allocations: 84.86 kB / 371.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.371, allocations: 0 / 371.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.371, allocations: 0 / 371.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.738e-06/0.3711, allocations: 4 kB / 371.9 MB, free: 10.15 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.0005877/0.3717, allocations: 462.2 kB / 372.3 MB, free: 9.637 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.3717, allocations: 12.03 kB / 372.3 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.3718, allocations: 34.5 kB / 372.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.35e-05/0.3719, allocations: 7.906 kB / 372.4 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.3721, allocations: 215.5 kB / 372.6 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.3722, allocations: 4 kB / 372.6 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.3722, allocations: 0 / 372.6 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.3724, allocations: 65.61 kB / 372.7 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3725, allocations: 0 / 372.7 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3725, allocations: 3.953 kB / 372.7 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3725, allocations: 0 / 372.7 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.3726, allocations: 19.98 kB / 372.7 MB, free: 9.227 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004392/0.3731, allocations: 300.8 kB / 373 MB, free: 8.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.3733, allocations: 62.61 kB / 373 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.3734, allocations: 3.984 kB / 373.1 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.3736, allocations: 71.34 kB / 373.1 MB, free: 8.727 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.904e-06/0.3736, allocations: 0 / 373.1 MB, free: 8.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007486/0.3744, allocations: 185.1 kB / 373.3 MB, free: 8.539 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.3744, allocations: 51.41 kB / 373.4 MB, free: 8.477 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.3747, allocations: 206.4 kB / 373.6 MB, free: 8.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.3747, allocations: 25.7 kB / 373.6 MB, free: 8.234 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.575e-05/0.3749, allocations: 174.3 kB / 373.7 MB, free: 8.062 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.3749, allocations: 27.64 kB / 373.8 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/0.3749, allocations: 0 / 373.8 MB, free: 8.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3751, allocations: 314.8 kB / 374.1 MB, free: 7.719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.3752, allocations: 35.92 kB / 374.1 MB, free: 7.684 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.3753, allocations: 49.69 kB / 374.2 MB, free: 7.629 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.3755, allocations: 61.7 kB / 374.2 MB, free: 7.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3755, allocations: 0 / 374.2 MB, free: 7.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003898/0.3759, allocations: 151.3 kB / 374.4 MB, free: 7.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.33e-05/0.376, allocations: 41.69 kB / 374.4 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.376, allocations: 0 / 374.4 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.376, allocations: 4.031 kB / 374.4 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3762, allocations: 19.98 kB / 374.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3762, allocations: 0 / 374.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.087e-05/0.3763, allocations: 4 kB / 374.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.3763, allocations: 4 kB / 374.4 MB, free: 7.324 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.0001671/0.3765, allocations: 133.8 kB / 374.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.3765, allocations: 19.77 kB / 374.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.609e-05/0.3766, allocations: 13.41 kB / 374.6 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.3766, allocations: 7.938 kB / 374.6 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.3766, allocations: 0 / 374.6 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.3767, allocations: 8.062 kB / 374.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006297/0.3773, allocations: 403.2 kB / 375 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3773, allocations: 0 / 375 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.636e-05/0.3774, allocations: 8 kB / 375 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3774, allocations: 0 / 375 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.3774, allocations: 4.375 kB / 375 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3774, allocations: 4.031 kB / 375 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.3774, allocations: 8 kB / 375 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003295/0.3778, allocations: 208.3 kB / 375.2 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.3779, allocations: 92.95 kB / 375.3 MB, free: 6.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.3779, allocations: 15.92 kB / 375.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.378, allocations: 0 / 375.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.3781, allocations: 8 kB / 375.4 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.3781, allocations: 7.984 kB / 375.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001786/0.3783, allocations: 151.2 kB / 375.5 MB, free: 6.152 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.3783, allocations: 0 / 375.5 MB, free: 6.152 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003575/0.3787, allocations: 32 kB / 375.5 MB, free: 6.121 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.001804/0.3805, allocations: 1.084 MB / 376.6 MB, free: 5.102 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.3809, allocations: 147.4 kB / 376.8 MB, free: 4.945 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3809, allocations: 0 / 376.8 MB, free: 4.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.381, allocations: 36.11 kB / 376.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.3814, allocations: 19.92 kB / 376.8 MB, free: 4.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000942/0.3823, allocations: 0.524 MB / 377.4 MB, free: 4.312 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.3826, allocations: 0.7082 MB / 378.1 MB, free: 3.578 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.584e-05/0.3827, allocations: 35.42 kB / 378.1 MB, free: 3.543 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.3827, allocations: 0 / 378.1 MB, free: 3.543 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.638/3.021, allocations: 2.446 MB / 380.5 MB, free: 1.094 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat failed! Error: Could not read variable t_new.DBL_MAX in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat. Warning: Get data of variable t_new.DBL_MAX from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_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.timeScale,t_new.timeScaled,t_new.verboseRead,t_new.y[1],time