Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test17,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.2 MB / 224.8 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006092/0.0006093, allocations: 19.94 kB / 282.6 MB, free: 9.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3478, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test17): time 0.002346/0.3502, allocations: 1.295 MB / 332.6 MB, free: 5.848 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.3513, allocations: 409.8 kB / 333 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.401e-05/0.3514, allocations: 1.062 kB / 333 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.3517, allocations: 28.2 kB / 333 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.3519, allocations: 34.3 kB / 333 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.3522, allocations: 60.06 kB / 333.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.3524, allocations: 52.39 kB / 333.2 MB, free: 5.492 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.3525, allocations: 8.984 kB / 333.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.785e-05/0.3526, allocations: 31.38 kB / 333.2 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.3527, allocations: 20.77 kB / 333.2 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.3527, allocations: 2.188 kB / 333.2 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.3529, allocations: 38.11 kB / 333.3 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.365e-05/0.3529, allocations: 16.05 kB / 333.3 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.001e-05/0.353, allocations: 38.2 kB / 333.3 MB, free: 5.406 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.3532, allocations: 82.81 kB / 333.4 MB, free: 5.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3532, allocations: 0 / 333.4 MB, free: 5.383 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3533, allocations: 0 / 333.4 MB, free: 5.383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.3533, allocations: 0 / 333.4 MB, free: 5.383 MB / 266.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.0004726/0.3538, allocations: 395.6 kB / 333.8 MB, free: 4.973 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3538, allocations: 13.81 kB / 333.8 MB, free: 4.969 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.205e-05/0.3539, allocations: 33.25 kB / 333.8 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.3539, allocations: 6.625 kB / 333.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.3541, allocations: 198 kB / 334 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.3541, allocations: 6.328 kB / 334 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.3542, allocations: 2.812 kB / 334 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.3543, allocations: 42.77 kB / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3544, allocations: 0 / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.3544, allocations: 6.141 kB / 334.1 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3544, allocations: 0 / 334.1 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.736e-05/0.3545, allocations: 14.31 kB / 334.1 MB, free: 4.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004365/0.3549, allocations: 281 kB / 334.4 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.3552, allocations: 38 kB / 334.4 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.3552, allocations: 1.094 kB / 334.4 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001787/0.3554, allocations: 59.3 kB / 334.5 MB, free: 4.293 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.554e-06/0.3554, allocations: 0.9688 kB / 334.5 MB, free: 4.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004947/0.356, allocations: 119.7 kB / 334.6 MB, free: 4.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.356, allocations: 56.69 kB / 334.6 MB, free: 4.156 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.3562, allocations: 157.3 kB / 334.8 MB, free: 4.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.3562, allocations: 28.02 kB / 334.8 MB, free: 4.004 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.04e-05/0.3563, allocations: 156.2 kB / 335 MB, free: 3.852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.3563, allocations: 17.05 kB / 335 MB, free: 3.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-06/0.3563, allocations: 0 / 335 MB, free: 3.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.748e-05/0.3564, allocations: 317.5 kB / 335.3 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.084e-05/0.3565, allocations: 16.06 kB / 335.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.704e-05/0.3565, allocations: 23.45 kB / 335.3 MB, free: 3.508 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.408e-05/0.3566, allocations: 51.91 kB / 335.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3567, allocations: 0 / 335.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002292/0.3569, allocations: 113.3 kB / 335.5 MB, free: 3.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.3569, allocations: 36.52 kB / 335.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.357, allocations: 1.406 kB / 335.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.357, allocations: 0.5625 kB / 335.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.397e-05/0.3571, allocations: 9.266 kB / 335.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3571, allocations: 4 kB / 335.5 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.3572, allocations: 15.2 kB / 335.6 MB, free: 3.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.3572, allocations: 8.469 kB / 335.6 MB, free: 3.328 MB / 266.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 () * Number of clocked 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.972e-05/0.3573, allocations: 122.6 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.3574, allocations: 11.89 kB / 335.7 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.3574, allocations: 13.03 kB / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3574, allocations: 1.688 kB / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3574, allocations: 0 / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3575, allocations: 0.7031 kB / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.3579, allocations: 330.9 kB / 336 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3579, allocations: 4 kB / 336 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-05/0.3579, allocations: 6.734 kB / 336 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3579, allocations: 1.312 kB / 336 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.358, allocations: 2.297 kB / 336 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.358, allocations: 3.938 kB / 336.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.358, allocations: 3.953 kB / 336.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.3582, allocations: 168.5 kB / 336.2 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.3582, allocations: 84.97 kB / 336.3 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.3583, allocations: 5.734 kB / 336.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.089e-05/0.3584, allocations: 2.031 kB / 336.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.3584, allocations: 4.641 kB / 336.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3584, allocations: 5.938 kB / 336.3 MB, free: 2.602 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001223/0.3586, allocations: 123.5 kB / 336.4 MB, free: 2.516 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3586, allocations: 0 / 336.4 MB, free: 2.516 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004058/0.359, allocations: 33 kB / 336.5 MB, free: 2.504 MB / 266.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.001282/0.3603, allocations: 0.9738 MB / 337.4 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002568/0.3606, allocations: 102.8 kB / 337.5 MB, free: 1.609 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3606, allocations: 0 / 337.5 MB, free: 1.609 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.04e-05/0.3607, allocations: 23.84 kB / 337.6 MB, free: 1.598 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.361, allocations: 26.11 kB / 337.6 MB, free: 1.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007573/0.3618, allocations: 436.4 kB / 338 MB, free: 1.184 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.362, allocations: 0.6966 MB / 338.7 MB, free: 500 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.109e-05/0.3621, allocations: 24.2 kB / 338.7 MB, free: 484 kB / 266.7 MB Notification: Performance of SimCode: time 1.373e-06/0.3621, allocations: 0 / 338.7 MB, free: 484 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.883/3.245, allocations: 2.036 MB / 340.8 MB, free: 15.7 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test17_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),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[2,1],t_new.table[2,2],t_new.verboseRead,t_new.y[1],time