Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.IntegerTable.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01294/0.01294, allocations: 163.8 kB / 15.12 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.801/1.801, allocations: 170.8 MB / 186.7 MB, free: 1.109 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001771/0.001771, allocations: 99.83 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4562/0.4562, allocations: 38.04 MB / 303.7 MB, free: 42.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005569, allocations: 12 kB / 363 MB, free: 5.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1076, allocations: 48.73 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002025/0.1097, allocations: 1.109 MB / 412.8 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1112, allocations: 0.5496 MB / 413.4 MB, free: 3.047 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.025e-05/0.1113, allocations: 0 / 413.4 MB, free: 3.047 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.1115, allocations: 51.86 kB / 413.4 MB, free: 2.996 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.1116, allocations: 55.91 kB / 413.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001769/0.1134, allocations: 371.3 kB / 413.8 MB, free: 2.578 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.1136, allocations: 103.8 kB / 413.9 MB, free: 2.477 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.722e-05/0.1137, allocations: 11.92 kB / 413.9 MB, free: 2.465 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.1138, allocations: 55.86 kB / 414 MB, free: 2.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.114, allocations: 91.75 kB / 414.1 MB, free: 2.32 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.1141, allocations: 8 kB / 414.1 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005442/0.1146, allocations: 211.8 kB / 414.3 MB, free: 2.105 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.078e-05/0.1147, allocations: 35.95 kB / 414.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.255e-05/0.1148, allocations: 37.64 kB / 414.4 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000385/0.1152, allocations: 187.9 kB / 414.6 MB, free: 1.844 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1152, allocations: 0 / 414.6 MB, free: 1.844 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1152, allocations: 0 / 414.6 MB, free: 1.844 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.1152, allocations: 0 / 414.6 MB, free: 1.844 MB / 314.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.001071/0.1163, allocations: 0.5484 MB / 415.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1164, allocations: 12.02 kB / 415.1 MB, free: 1.211 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.801e-05/0.1165, allocations: 38.56 kB / 415.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.1165, allocations: 11.81 kB / 415.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.1167, allocations: 188.2 kB / 415.4 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.1168, allocations: 4 kB / 415.4 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.1168, allocations: 11.98 kB / 415.4 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.1173, allocations: 180.9 kB / 415.5 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1173, allocations: 0 / 415.5 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.1174, allocations: 3.984 kB / 415.5 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1174, allocations: 4 kB / 415.6 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.1177, allocations: 71.89 kB / 415.6 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003343/0.118, allocations: 248.2 kB / 415.9 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.1186, allocations: 186.5 kB / 416 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.1189, allocations: 95.48 kB / 416.1 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.1189, allocations: 0 / 416.1 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005966/0.1195, allocations: 210.5 kB / 416.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 2.304e-06/0.1195, allocations: 0 / 416.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.001305/0.1208, allocations: 389.3 kB / 416.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.121, allocations: 144.5 kB / 416.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002438/0.1212, allocations: 194 kB / 417.1 MB, free: 15.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.1213, allocations: 37.69 kB / 417.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.1214, allocations: 100.1 kB / 417.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.703e-05/0.1214, allocations: 35.55 kB / 417.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.353e-05/0.1215, allocations: 4 kB / 417.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1216, allocations: 338.8 kB / 417.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.1218, allocations: 56.2 kB / 417.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.122, allocations: 104.6 kB / 417.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.1222, allocations: 170.8 kB / 417.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1222, allocations: 0 / 417.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006294/0.1229, allocations: 372.2 kB / 418.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.123, allocations: 126.7 kB / 418.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.123, allocations: 4 kB / 418.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.123, allocations: 0 / 418.4 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.075e-05/0.1231, allocations: 11.98 kB / 418.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.1231, allocations: 3.938 kB / 418.4 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.1233, allocations: 23.84 kB / 418.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.1233, allocations: 16.98 kB / 418.4 MB, free: 13.54 MB / 330.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.000198/0.1235, allocations: 153.4 kB / 418.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.9e-05/0.1236, allocations: 19.8 kB / 418.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.502e-05/0.1236, allocations: 16.25 kB / 418.6 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.1237, allocations: 8 kB / 418.6 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1237, allocations: 0 / 418.6 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1237, allocations: 4 kB / 418.6 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.124, allocations: 225.5 kB / 418.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.124, allocations: 0 / 418.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.025e-05/0.124, allocations: 4 kB / 418.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.124, allocations: 0 / 418.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.1241, allocations: 11.98 kB / 418.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/0.1241, allocations: 4 kB / 418.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.1241, allocations: 0 / 418.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009015/0.125, allocations: 359.2 kB / 419.2 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.476e-05/0.1251, allocations: 89 kB / 419.3 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.527e-05/0.1252, allocations: 8 kB / 419.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.1254, allocations: 11.98 kB / 419.3 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.611e-05/0.1255, allocations: 15.98 kB / 419.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.796e-05/0.1256, allocations: 31.89 kB / 419.4 MB, free: 12.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001705/0.1257, allocations: 135.2 kB / 419.5 MB, free: 12.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1258, allocations: 0 / 419.5 MB, free: 12.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005441/0.1263, allocations: 87.92 kB / 419.6 MB, free: 12.27 MB / 330.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.001704/0.128, allocations: 0.989 MB / 420.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008306/0.1289, allocations: 413.5 kB / 421 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.1289, allocations: 0 / 421 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003464/0.1293, allocations: 103.9 kB / 421.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.1296, allocations: 8 kB / 421.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.1322, allocations: 1.146 MB / 422.2 MB, free: 9.469 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.1326, allocations: 0.716 MB / 423 MB, free: 8.727 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.456e-05/0.1326, allocations: 12.88 kB / 423 MB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.1327, allocations: 35.36 kB / 423 MB, free: 8.676 MB / 330.7 MB Notification: Performance of SimCode: time 1.422e-06/0.1327, allocations: 0 / 423 MB, free: 8.676 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.164, allocations: 3.966 MB / 427 MB, free: 4.75 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002944/0.1643, allocations: 170.8 kB / 427.1 MB, free: 4.508 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.69/2.854, allocations: 0 / 427.1 MB, free: 4.508 MB / 330.7 MB "" 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