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.Test20.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.Test20,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.967/1.967, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006162/0.0006163, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3524, allocations: 48.71 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test20): time 0.002458/0.3549, allocations: 1.297 MB / 332.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.356, allocations: 414.3 kB / 333 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.211e-05/0.3562, allocations: 0.875 kB / 333 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.3565, allocations: 28.97 kB / 333 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.3567, allocations: 23.08 kB / 333 MB, free: 5.559 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003696/0.3571, allocations: 62.59 kB / 333.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.3573, allocations: 56.83 kB / 333.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3574, allocations: 14.91 kB / 333.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.709e-05/0.3575, allocations: 23.27 kB / 333.2 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.08e-05/0.3576, allocations: 30 kB / 333.2 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.3577, allocations: 1.344 kB / 333.2 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001835/0.3579, allocations: 32.83 kB / 333.3 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.908e-05/0.3579, allocations: 14.36 kB / 333.3 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.358, allocations: 33.64 kB / 333.3 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002463/0.3582, allocations: 83.45 kB / 333.4 MB, free: 5.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3583, allocations: 0 / 333.4 MB, free: 5.395 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3583, allocations: 0 / 333.4 MB, free: 5.395 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.3583, allocations: 1.219 kB / 333.4 MB, free: 5.395 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.0005355/0.3588, allocations: 405.4 kB / 333.8 MB, free: 4.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3589, allocations: 12.84 kB / 333.8 MB, free: 4.977 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.3589, allocations: 36.48 kB / 333.8 MB, free: 4.934 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.359, allocations: 7.5 kB / 333.8 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.3592, allocations: 198.5 kB / 334 MB, free: 4.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3593, allocations: 5.562 kB / 334 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.3593, allocations: 7.922 kB / 334 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.3594, allocations: 43.23 kB / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.3595, allocations: 0 / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.3595, allocations: 0 / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3595, allocations: 1.844 kB / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.437e-05/0.3596, allocations: 13.48 kB / 334.1 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004027/0.36, allocations: 278.1 kB / 334.4 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.3603, allocations: 42.23 kB / 334.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.3603, allocations: 1 kB / 334.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001859/0.3605, allocations: 57 kB / 334.5 MB, free: 4.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.945e-06/0.3605, allocations: 3.938 kB / 334.5 MB, free: 4.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005431/0.3611, allocations: 114.9 kB / 334.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.3611, allocations: 57.06 kB / 334.6 MB, free: 4.164 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.3614, allocations: 178.7 kB / 334.8 MB, free: 4.039 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.3614, allocations: 27.56 kB / 334.8 MB, free: 4.008 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.3615, allocations: 164.5 kB / 335 MB, free: 3.848 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.3615, allocations: 17.12 kB / 335 MB, free: 3.836 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.3615, allocations: 0 / 335 MB, free: 3.836 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.3616, allocations: 317.9 kB / 335.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.18e-05/0.3617, allocations: 15.36 kB / 335.3 MB, free: 3.516 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.939e-05/0.3618, allocations: 20.91 kB / 335.4 MB, free: 3.508 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.47e-05/0.3619, allocations: 49.95 kB / 335.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3619, allocations: 0 / 335.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000244/0.3621, allocations: 113.2 kB / 335.5 MB, free: 3.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.3622, allocations: 38 kB / 335.6 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3622, allocations: 288 / 335.6 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.3622, allocations: 2.016 kB / 335.6 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.003e-05/0.3623, allocations: 12.14 kB / 335.6 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.3623, allocations: 1.031 kB / 335.6 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.81e-05/0.3624, allocations: 10.97 kB / 335.6 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3625, allocations: 2.922 kB / 335.6 MB, free: 3.336 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 0.0001235/0.3626, allocations: 132.5 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.3626, allocations: 7.641 kB / 335.7 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.577e-05/0.3627, allocations: 14.48 kB / 335.7 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3627, allocations: 1.188 kB / 335.7 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3627, allocations: 4.062 kB / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3628, allocations: 1.609 kB / 335.7 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.3632, allocations: 339.8 kB / 336.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3632, allocations: 0.7031 kB / 336.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.274e-05/0.3633, allocations: 9.594 kB / 336.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3633, allocations: 1.156 kB / 336.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.3633, allocations: 1.859 kB / 336.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3633, allocations: 0.75 kB / 336.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3633, allocations: 5.234 kB / 336.1 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.3635, allocations: 168.1 kB / 336.3 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.236e-05/0.3636, allocations: 84.66 kB / 336.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/0.3636, allocations: 1.25 kB / 336.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.3637, allocations: 5.906 kB / 336.4 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.3638, allocations: 8.141 kB / 336.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.3638, allocations: 6.922 kB / 336.4 MB, free: 2.594 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.364, allocations: 126.9 kB / 336.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.364, allocations: 0 / 336.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003662/0.3644, allocations: 33.16 kB / 336.5 MB, free: 2.496 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.001401/0.3658, allocations: 0.9704 MB / 337.5 MB, free: 1.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002865/0.3661, allocations: 101.6 kB / 337.6 MB, free: 1.605 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3662, allocations: 0 / 337.6 MB, free: 1.605 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.495e-05/0.3662, allocations: 20.48 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.0003547/0.3666, allocations: 22.52 kB / 337.6 MB, free: 1.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008543/0.3675, allocations: 451.7 kB / 338.1 MB, free: 1.184 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.3677, allocations: 0.703 MB / 338.8 MB, free: 496 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.164e-05/0.3678, allocations: 31.19 kB / 338.8 MB, free: 472 kB / 266.7 MB Notification: Performance of SimCode: time 1.273e-06/0.3678, allocations: 0 / 338.8 MB, free: 472 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.846/3.213, allocations: 2.076 MB / 340.9 MB, free: 15.68 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_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.table[3,1],t_new.table[3,2],t_new.verboseRead,t_new.y[1],time