Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0015/0.0015, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00163/0.00163, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2431/0.2431, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002494/0.002494, allocations: 80.42 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1357, allocations: 62.45 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004926/0.1406, allocations: 2.323 MB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003489/0.1442, allocations: 1.694 MB / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003534/0.1445, allocations: 7.938 kB / 484.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004944/0.1451, allocations: 139.3 kB / 484.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007984/0.1459, allocations: 278.8 kB / 484.6 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.1474, allocations: 0.5343 MB / 485.2 MB, free: 168 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008385/0.1483, allocations: 0.5649 MB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.1485, allocations: 77.05 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004088/0.1489, allocations: 227.1 kB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003616/0.1493, allocations: 227 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.294e-05/0.1494, allocations: 28 kB / 486.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003343/0.1497, allocations: 155.8 kB / 486.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001762/0.1499, allocations: 139.5 kB / 486.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.1502, allocations: 206.6 kB / 486.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007752/0.1509, allocations: 0.5883 MB / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.151, allocations: 0 / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.151, allocations: 4 kB / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.151, allocations: 0 / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001302/0.1523, allocations: 0.9058 MB / 488.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1523, allocations: 8.031 kB / 488.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.606e-05/0.1524, allocations: 50.73 kB / 488.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.911e-05/0.1525, allocations: 52.28 kB / 488.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006244/0.1531, allocations: 479.9 kB / 488.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.1532, allocations: 12.61 kB / 488.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.1532, allocations: 23.88 kB / 488.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.1537, allocations: 260.9 kB / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1537, allocations: 0 / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.1538, allocations: 15.92 kB / 489.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1538, allocations: 4 kB / 489.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.1541, allocations: 99.94 kB / 489.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.1553, allocations: 0.8875 MB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006981/0.156, allocations: 306.5 kB / 490.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.1562, allocations: 115.3 kB / 490.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.1563, allocations: 4 kB / 490.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.1568, allocations: 226.4 kB / 490.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.1568, allocations: 0 / 490.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009769/0.1578, allocations: 400.7 kB / 491.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002067/0.158, allocations: 346.1 kB / 491.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008497/0.1589, allocations: 0.667 MB / 492.2 MB, free: 8.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.1589, allocations: 33.7 kB / 492.2 MB, free: 8.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.1592, allocations: 240.5 kB / 492.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.884e-05/0.1592, allocations: 67.22 kB / 492.5 MB, free: 8.406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.1594, allocations: 61.69 kB / 492.6 MB, free: 8.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.1596, allocations: 370.7 kB / 492.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.1598, allocations: 79.95 kB / 493 MB, free: 7.891 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000361/0.1602, allocations: 249 kB / 493.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000485/0.1607, allocations: 223.8 kB / 493.5 MB, free: 7.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.1607, allocations: 0 / 493.5 MB, free: 7.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000706/0.1614, allocations: 324.8 kB / 493.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.1614, allocations: 10.33 kB / 493.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1614, allocations: 4 kB / 493.8 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.1615, allocations: 3.938 kB / 493.8 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.1617, allocations: 55.91 kB / 493.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1617, allocations: 4 kB / 493.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.162, allocations: 31.77 kB / 493.9 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.162, allocations: 12 kB / 493.9 MB, free: 6.902 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.1623, allocations: 230.1 kB / 494.1 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.651e-05/0.1624, allocations: 51.34 kB / 494.2 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.1625, allocations: 60.19 kB / 494.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1625, allocations: 4 kB / 494.2 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1626, allocations: 0 / 494.2 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.1626, allocations: 7.984 kB / 494.2 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004915/0.1631, allocations: 417.2 kB / 494.7 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1631, allocations: 0 / 494.7 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.1632, allocations: 31.92 kB / 494.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1632, allocations: 4 kB / 494.7 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.1633, allocations: 15.92 kB / 494.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1633, allocations: 0 / 494.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1633, allocations: 0 / 494.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006982/0.164, allocations: 373.7 kB / 495.1 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.1641, allocations: 128.5 kB / 495.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.1642, allocations: 15.92 kB / 495.2 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.1644, allocations: 15.98 kB / 495.2 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.1645, allocations: 39.95 kB / 495.3 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.1645, allocations: 15.88 kB / 495.3 MB, free: 5.414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006005/0.1651, allocations: 498.8 kB / 495.8 MB, free: 4.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1651, allocations: 0 / 495.8 MB, free: 4.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004462/0.1656, allocations: 99.84 kB / 495.9 MB, free: 4.832 MB / 366.1 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,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002578/0.1682, allocations: 1.254 MB / 497.1 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.1688, allocations: 239.7 kB / 497.4 MB, free: 3.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.1688, allocations: 0 / 497.4 MB, free: 3.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.1692, allocations: 171.8 kB / 497.5 MB, free: 3.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.1698, allocations: 150.8 kB / 497.7 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00714/0.177, allocations: 4.391 MB / 0.4903 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.1775, allocations: 0.8506 MB / 0.4911 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002876/0.1778, allocations: 87.19 kB / 0.4912 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.1781, allocations: 175.4 kB / 0.4914 GB, free: 13.46 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1781, allocations: 0 / 0.4914 GB, free: 13.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.2202, allocations: 12.6 MB / 0.5037 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/8.398, allocations: 12.94 kB / 0.5037 GB, free: 0.9297 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe 2>&1)