Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable.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.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.051/2.051, allocations: 209.2 MB / 224.8 MB, free: 1.465 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004363/0.0004363, allocations: 12 kB / 282.6 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 48.71 MB / 331.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002082/0.1115, allocations: 1.113 MB / 332.4 MB, free: 7.789 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1128, allocations: 496.1 kB / 332.9 MB, free: 7.305 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.044e-05/0.1129, allocations: 4 kB / 332.9 MB, free: 7.301 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1131, allocations: 47.92 kB / 332.9 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.1132, allocations: 55.84 kB / 333 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001767/0.115, allocations: 375.2 kB / 333.3 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.1152, allocations: 71.91 kB / 333.4 MB, free: 6.762 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.804e-05/0.1153, allocations: 11.98 kB / 333.4 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.864e-05/0.1154, allocations: 59.8 kB / 333.5 MB, free: 6.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.1156, allocations: 79.83 kB / 333.6 MB, free: 6.613 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.1157, allocations: 4 kB / 333.6 MB, free: 6.609 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.1162, allocations: 199.8 kB / 333.8 MB, free: 6.414 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.1163, allocations: 39.89 kB / 333.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.839e-05/0.1164, allocations: 41.64 kB / 333.8 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004534/0.1169, allocations: 191.9 kB / 334 MB, free: 6.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1169, allocations: 0 / 334 MB, free: 6.141 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1169, allocations: 0 / 334 MB, free: 6.141 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1169, allocations: 0 / 334 MB, free: 6.141 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001061/0.118, allocations: 0.5472 MB / 334.6 MB, free: 5.523 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.1181, allocations: 8.031 kB / 334.6 MB, free: 5.516 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.4e-05/0.1182, allocations: 46.48 kB / 334.6 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.913e-05/0.1182, allocations: 7.906 kB / 334.6 MB, free: 5.453 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.1184, allocations: 182.8 kB / 334.8 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.1184, allocations: 11.98 kB / 334.8 MB, free: 5.223 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.1185, allocations: 8 kB / 334.8 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.119, allocations: 172.9 kB / 335 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.119, allocations: 0 / 335 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.1191, allocations: 4 kB / 335 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.1191, allocations: 4 kB / 335 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.1194, allocations: 67.89 kB / 335.1 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003388/0.1197, allocations: 260.2 kB / 335.3 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005409/0.1203, allocations: 186.5 kB / 335.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.1203, allocations: 4 kB / 335.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005979/0.1209, allocations: 206.7 kB / 335.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 3.146e-06/0.1209, allocations: 0 / 335.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of matching and sorting (n=16): time 0.001534/0.1225, allocations: 393.9 kB / 336.1 MB, free: 3.801 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.1227, allocations: 144.5 kB / 336.2 MB, free: 3.629 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003941/0.1231, allocations: 174.2 kB / 336.4 MB, free: 3.449 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.005e-05/0.1232, allocations: 33.7 kB / 336.4 MB, free: 3.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.1234, allocations: 170.5 kB / 336.6 MB, free: 3.242 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.1235, allocations: 35.59 kB / 336.6 MB, free: 3.207 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.1235, allocations: 8 kB / 336.7 MB, free: 3.199 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.1238, allocations: 318.8 kB / 337 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.1241, allocations: 64.16 kB / 337 MB, free: 2.816 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.1244, allocations: 95.81 kB / 337.1 MB, free: 2.711 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/0.1248, allocations: 182.8 kB / 337.3 MB, free: 2.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.1248, allocations: 4 kB / 337.3 MB, free: 2.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00109/0.1259, allocations: 360.3 kB / 337.7 MB, free: 2.121 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.1262, allocations: 126.8 kB / 337.8 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1262, allocations: 0 / 337.8 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/0.1262, allocations: 4 kB / 337.8 MB, free: 1.969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.763e-05/0.1263, allocations: 7.938 kB / 337.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1264, allocations: 0 / 337.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.1266, allocations: 19.84 kB / 337.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.1267, allocations: 8 kB / 337.8 MB, free: 1.934 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition4,$PRE.integerTable4.y,integerTable4.y,$PRE.integerTable4.nextTime,integerTable4.nextTime,$PRE.integerTable4.index,integerTable4.index,$whenCondition3,$PRE.integerTable3.y,integerTable3.y,$PRE.integerTable3.nextTime,integerTable3.nextTime,$PRE.integerTable3.index,integerTable3.index,$whenCondition2,$PRE.integerTable2.y,integerTable2.y,$PRE.integerTable2.nextTime,integerTable2.nextTime,$PRE.integerTable2.index,integerTable2.index,$whenCondition1,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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.0003283/0.1271, allocations: 157.3 kB / 338 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.1272, allocations: 19.75 kB / 338 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-05/0.1273, allocations: 24.23 kB / 338 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1273, allocations: 0 / 338 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.301e-05/0.1273, allocations: 4 kB / 338 MB, free: 1.715 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.1273, allocations: 3.938 kB / 338 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.1278, allocations: 221.5 kB / 338.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.1278, allocations: 0 / 338.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.227e-05/0.1278, allocations: 8.234 kB / 338.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.1279, allocations: 4 kB / 338.3 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.1279, allocations: 12 kB / 338.3 MB, free: 1.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.136e-05/0.128, allocations: 3.984 kB / 338.3 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.128, allocations: 4 kB / 338.3 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.1296, allocations: 347.3 kB / 338.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.1297, allocations: 100.9 kB / 338.7 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.1299, allocations: 8 kB / 338.7 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.1302, allocations: 11.98 kB / 338.7 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.1303, allocations: 15.97 kB / 338.7 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/0.1305, allocations: 28 kB / 338.8 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002688/0.1308, allocations: 143 kB / 338.9 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.1308, allocations: 4 kB / 338.9 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007599/0.1316, allocations: 91.98 kB / 339 MB, free: 0.6328 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable4.y,integerTable4.nextTime,integerTable4.index,$whenCondition3,integerTable3.y,integerTable3.nextTime,integerTable3.index,$whenCondition2,integerTable2.y,integerTable2.nextTime,integerTable2.index,$whenCondition1,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 8 (integerTable.index,integerTable.nextTime,integerTable2.index,integerTable2.nextTime,integerTable3.index,integerTable3.nextTime,integerTable4.index,integerTable4.nextTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.2541/0.3858, allocations: 0.9605 MB / 340 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008648/0.3867, allocations: 427.7 kB / 340.4 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3867, allocations: 0 / 340.4 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.3871, allocations: 98.45 kB / 340.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.3873, allocations: 10.62 kB / 340.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.39, allocations: 1.152 MB / 341.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3903, allocations: 0.7191 MB / 342.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.999e-05/0.3905, allocations: 35.14 kB / 342.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of SimCode: time 1.332e-06/0.3905, allocations: 0 / 342.4 MB, free: 14.02 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.696/3.087, allocations: 3.249 MB / 345.6 MB, free: 13.78 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable_res.mat failed! " Variables in the reference:time,integerTable.index,integerTable.nextTime,integerTable.y,integerTable2.index,integerTable2.nextTime,integerTable2.y,integerTable3.index,integerTable3.nextTime,integerTable3.y,integerTable4.index,integerTable4.nextTime,integerTable4.y Variables in the result:integerTable.index,integerTable.n,integerTable.nextTime,integerTable.table[1,1],integerTable.table[1,2],integerTable.table[2,1],integerTable.table[2,2],integerTable.table[3,1],integerTable.table[3,2],integerTable.table[4,1],integerTable.table[4,2],integerTable.y,integerTable2.index,integerTable2.n,integerTable2.nextTime,integerTable2.table[1,1],integerTable2.table[1,2],integerTable2.y,integerTable3.index,integerTable3.n,integerTable3.nextTime,integerTable3.table[1,1],integerTable3.table[1,2],integerTable3.y,integerTable4.index,integerTable4.n,integerTable4.nextTime,integerTable4.table[1,1],integerTable4.table[1,2],integerTable4.table[2,1],integerTable4.table[2,2],integerTable4.table[3,1],integerTable4.table[3,2],integerTable4.table[4,1],integerTable4.table[4,2],integerTable4.table[5,1],integerTable4.table[5,2],integerTable4.y,time