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.Test49.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.Test49,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test49",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.986/1.986, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004482/0.0004484, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3578, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test49): time 0.002335/0.3602, allocations: 1.296 MB / 332.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.3613, allocations: 422.1 kB / 333 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.726e-05/0.3614, allocations: 1.062 kB / 333 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002754/0.3616, allocations: 25.45 kB / 333 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.3619, allocations: 32.64 kB / 333.1 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.3621, allocations: 63.92 kB / 333.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.3623, allocations: 62.34 kB / 333.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.002e-05/0.3624, allocations: 9.312 kB / 333.2 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.802e-05/0.3625, allocations: 27.73 kB / 333.2 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.238e-05/0.3626, allocations: 32.2 kB / 333.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.3626, allocations: 2.125 kB / 333.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.3627, allocations: 29.38 kB / 333.3 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.497e-05/0.3628, allocations: 21.11 kB / 333.3 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.393e-05/0.3629, allocations: 45.45 kB / 333.3 MB, free: 5.402 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.3631, allocations: 94.62 kB / 333.4 MB, free: 5.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.3631, allocations: 0 / 333.4 MB, free: 5.379 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3631, allocations: 0 / 333.4 MB, free: 5.379 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3631, allocations: 0 / 333.4 MB, free: 5.379 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.0005043/0.3637, allocations: 429.5 kB / 333.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3637, allocations: 10.06 kB / 333.9 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.296e-05/0.3638, allocations: 31.27 kB / 333.9 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.124e-05/0.3638, allocations: 10.34 kB / 333.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.364, allocations: 206 kB / 334.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.3641, allocations: 5.688 kB / 334.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.3641, allocations: 2.812 kB / 334.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.3642, allocations: 47.2 kB / 334.2 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.3643, allocations: 0 / 334.2 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3643, allocations: 5.344 kB / 334.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.3643, allocations: 0 / 334.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.464e-05/0.3644, allocations: 14.17 kB / 334.2 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.3647, allocations: 297.8 kB / 334.5 MB, free: 4.336 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.365, allocations: 41.66 kB / 334.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.365, allocations: 2.219 kB / 334.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.3652, allocations: 59.67 kB / 334.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 3.166e-06/0.3652, allocations: 0 / 334.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004699/0.3657, allocations: 125.8 kB / 334.7 MB, free: 4.176 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.3658, allocations: 56.75 kB / 334.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.3661, allocations: 241.2 kB / 335 MB, free: 3.969 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.3661, allocations: 27.14 kB / 335 MB, free: 3.938 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.685e-05/0.3662, allocations: 174.4 kB / 335.2 MB, free: 3.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.3662, allocations: 11.77 kB / 335.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.3662, allocations: 4 kB / 335.2 MB, free: 3.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.021e-05/0.3663, allocations: 318.3 kB / 335.5 MB, free: 3.441 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.116e-05/0.3664, allocations: 18.88 kB / 335.5 MB, free: 3.434 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.43e-05/0.3664, allocations: 17.12 kB / 335.5 MB, free: 3.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.9e-05/0.3665, allocations: 54.89 kB / 335.6 MB, free: 3.383 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3665, allocations: 0 / 335.6 MB, free: 3.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002159/0.3668, allocations: 116.6 kB / 335.7 MB, free: 3.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.3668, allocations: 32.55 kB / 335.7 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3668, allocations: 0.6562 kB / 335.7 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3669, allocations: 1.312 kB / 335.7 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.468e-05/0.3669, allocations: 9.297 kB / 335.7 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.367, allocations: 3.938 kB / 335.8 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.824e-05/0.367, allocations: 3.531 kB / 335.8 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.3671, allocations: 3.016 kB / 335.8 MB, free: 3.262 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.0001177/0.3672, allocations: 144.7 kB / 335.9 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.3672, allocations: 9.312 kB / 335.9 MB, free: 3.125 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.188e-05/0.3673, allocations: 19.25 kB / 335.9 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3673, allocations: 0 / 335.9 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3673, allocations: 1.406 kB / 335.9 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3673, allocations: 0.5625 kB / 335.9 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.3677, allocations: 355.9 kB / 336.3 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3678, allocations: 4.891 kB / 336.3 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.097e-05/0.3678, allocations: 10.42 kB / 336.3 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.3678, allocations: 1.406 kB / 336.3 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3678, allocations: 1.281 kB / 336.3 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3678, allocations: 0 / 336.3 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3679, allocations: 5.156 kB / 336.3 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.368, allocations: 169.6 kB / 336.5 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.3681, allocations: 92.8 kB / 336.6 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.3681, allocations: 2.188 kB / 336.6 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.3682, allocations: 10.38 kB / 336.6 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.3683, allocations: 3.922 kB / 336.6 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.3683, allocations: 3.312 kB / 336.6 MB, free: 2.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002127/0.3685, allocations: 188.6 kB / 336.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3686, allocations: 1.25 kB / 336.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003429/0.3689, allocations: 27.78 kB / 336.8 MB, free: 2.395 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.001298/0.3702, allocations: 0.9641 MB / 337.8 MB, free: 1.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.3705, allocations: 109.4 kB / 337.9 MB, free: 1.504 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3705, allocations: 0 / 337.9 MB, free: 1.504 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.986e-05/0.3705, allocations: 16.42 kB / 337.9 MB, free: 1.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.3709, allocations: 19.95 kB / 337.9 MB, free: 1.492 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009405/0.3718, allocations: 0.5328 MB / 338.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.372, allocations: 0.7149 MB / 339.1 MB, free: 356 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.075e-05/0.3721, allocations: 35.59 kB / 339.2 MB, free: 328 kB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3721, allocations: 0 / 339.2 MB, free: 328 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.69/3.062, allocations: 2.413 MB / 341.6 MB, free: 15.3 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test49_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_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),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.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