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.Test16.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.Test16,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.3 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000448/0.0004481, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3398, allocations: 48.71 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test16): time 0.00227/0.3422, allocations: 1.291 MB / 332.6 MB, free: 5.859 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.3432, allocations: 412.6 kB / 333 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.805e-05/0.3433, allocations: 0 / 333 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002926/0.3436, allocations: 29.14 kB / 333 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.3439, allocations: 26.61 kB / 333 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.3442, allocations: 62.36 kB / 333.1 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.3444, allocations: 56.55 kB / 333.2 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.761e-05/0.3445, allocations: 13.44 kB / 333.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.938e-05/0.3446, allocations: 28.14 kB / 333.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.501e-05/0.3446, allocations: 20.41 kB / 333.2 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.3447, allocations: 2.594 kB / 333.2 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.3448, allocations: 33.19 kB / 333.2 MB, free: 5.469 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.435e-05/0.3449, allocations: 12.44 kB / 333.3 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.296e-05/0.345, allocations: 33.14 kB / 333.3 MB, free: 5.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.3452, allocations: 83.3 kB / 333.4 MB, free: 5.406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3452, allocations: 7.938 kB / 333.4 MB, free: 5.398 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3452, allocations: 0 / 333.4 MB, free: 5.398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.3452, allocations: 1.062 kB / 333.4 MB, free: 5.398 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.0005024/0.3458, allocations: 395.4 kB / 333.8 MB, free: 4.988 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3458, allocations: 9.562 kB / 333.8 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.197e-05/0.3459, allocations: 36.3 kB / 333.8 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.3459, allocations: 11.44 kB / 333.8 MB, free: 4.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.3461, allocations: 198.6 kB / 334 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.3462, allocations: 1.5 kB / 334 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.3462, allocations: 6.625 kB / 334 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.3463, allocations: 42.69 kB / 334.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3464, allocations: 0 / 334.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.3464, allocations: 1.547 kB / 334.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3464, allocations: 1.219 kB / 334.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.69e-05/0.3465, allocations: 13.75 kB / 334.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003808/0.3469, allocations: 277 kB / 334.4 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.3471, allocations: 47.09 kB / 334.4 MB, free: 4.359 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.3471, allocations: 4 kB / 334.4 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001658/0.3473, allocations: 55.72 kB / 334.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 2.335e-06/0.3473, allocations: 0 / 334.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004821/0.3478, allocations: 115.9 kB / 334.6 MB, free: 4.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.3479, allocations: 53.72 kB / 334.6 MB, free: 4.176 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.3481, allocations: 161.8 kB / 334.8 MB, free: 4.051 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.3481, allocations: 27.53 kB / 334.8 MB, free: 4.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.153e-05/0.3482, allocations: 160.2 kB / 335 MB, free: 3.863 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.3482, allocations: 12.19 kB / 335 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.3482, allocations: 1.125 kB / 335 MB, free: 3.855 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.3483, allocations: 317.5 kB / 335.3 MB, free: 3.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.199e-05/0.3484, allocations: 15.2 kB / 335.3 MB, free: 3.535 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.663e-05/0.3484, allocations: 24.06 kB / 335.3 MB, free: 3.523 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.163e-05/0.3485, allocations: 47.33 kB / 335.4 MB, free: 3.484 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3485, allocations: 4.797 kB / 335.4 MB, free: 3.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002309/0.3488, allocations: 117.3 kB / 335.5 MB, free: 3.395 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.3488, allocations: 38.66 kB / 335.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3489, allocations: 0 / 335.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.3489, allocations: 0 / 335.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.359e-05/0.349, allocations: 8.875 kB / 335.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.349, allocations: 1.75 kB / 335.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.871e-05/0.3491, allocations: 14.38 kB / 335.6 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.3491, allocations: 6.844 kB / 335.6 MB, free: 3.344 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.0001011/0.3492, allocations: 123.2 kB / 335.7 MB, free: 3.223 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.3492, allocations: 8.156 kB / 335.7 MB, free: 3.219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.3493, allocations: 13.14 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3493, allocations: 1.094 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3493, allocations: 0.75 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3494, allocations: 1.031 kB / 335.7 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.3497, allocations: 339.1 kB / 336 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3498, allocations: 1.031 kB / 336 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.439e-05/0.3498, allocations: 4.25 kB / 336 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3498, allocations: 5.844 kB / 336 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.3498, allocations: 5.062 kB / 336.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3499, allocations: 1.062 kB / 336.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3499, allocations: 4.984 kB / 336.1 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.3501, allocations: 164.1 kB / 336.2 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.188e-05/0.3501, allocations: 87.69 kB / 336.3 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.3501, allocations: 2.016 kB / 336.3 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.996e-05/0.3502, allocations: 3.219 kB / 336.3 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.3503, allocations: 7.609 kB / 336.3 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.3503, allocations: 10.83 kB / 336.3 MB, free: 2.609 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001143/0.3504, allocations: 119.2 kB / 336.4 MB, free: 2.527 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3505, allocations: 0 / 336.4 MB, free: 2.527 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003697/0.3508, allocations: 31.97 kB / 336.5 MB, free: 2.516 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.001254/0.3521, allocations: 0.9701 MB / 337.4 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002436/0.3524, allocations: 105 kB / 337.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3524, allocations: 0 / 337.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.698e-05/0.3525, allocations: 16.69 kB / 337.6 MB, free: 1.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.3528, allocations: 18.08 kB / 337.6 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007678/0.3536, allocations: 445.2 kB / 338 MB, free: 1.207 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/0.3538, allocations: 0.7 MB / 338.7 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.228e-05/0.3539, allocations: 24.42 kB / 338.7 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3539, allocations: 0 / 338.7 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.713/3.067, allocations: 2.034 MB / 340.8 MB, free: 15.71 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat failed! Error: Could not read variable t_new.tableID.id in file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_res.mat. Warning: Get data of variable t_new.tableID.id from file ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test16_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