Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 97.33 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.1 MB / 223.3 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 43.94 kB / 279.3 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.146, allocations: 46.63 MB / 325.9 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004627/0.1507, allocations: 2.479 MB / 328.4 MB, free: 2.398 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.1532, allocations: 1.24 MB / 329.7 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001991/0.1534, allocations: 11.94 kB / 329.7 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008838/0.1543, allocations: 215.3 kB / 329.9 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.1547, allocations: 139.5 kB / 330 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006412/0.1553, allocations: 247.6 kB / 330.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/0.1558, allocations: 447.8 kB / 330.7 MB, free: 112 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.1562, allocations: 205.8 kB / 330.9 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.1564, allocations: 175.1 kB / 331.1 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002824/0.1567, allocations: 207 kB / 331.3 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.494e-05/0.1567, allocations: 20 kB / 331.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.157, allocations: 95.89 kB / 331.4 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.1571, allocations: 115.6 kB / 331.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.1573, allocations: 210.7 kB / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.1579, allocations: 0.4946 MB / 332.2 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.1579, allocations: 4 kB / 332.2 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1579, allocations: 4 kB / 332.2 MB, free: 14.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.1579, allocations: 0 / 332.2 MB, free: 14.59 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001709/0.1596, allocations: 0.8513 MB / 333.1 MB, free: 13.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1597, allocations: 12.03 kB / 333.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.1598, allocations: 56.28 kB / 333.1 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005255/0.1603, allocations: 387 kB / 333.5 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.674e-05/0.1604, allocations: 63.27 kB / 333.6 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1605, allocations: 39.94 kB / 333.6 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000675/0.1612, allocations: 428.7 kB / 334 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1612, allocations: 3.984 kB / 334 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.1612, allocations: 16 kB / 334 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.1613, allocations: 12.44 kB / 334.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000488/0.1618, allocations: 261.5 kB / 334.3 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.1639, allocations: 1.678 MB / 336 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006421/0.1646, allocations: 299.9 kB / 336.3 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002492/0.1648, allocations: 126.5 kB / 336.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.301e-05/0.165, allocations: 23.92 kB / 336.4 MB, free: 10.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005824/0.1655, allocations: 323.9 kB / 336.8 MB, free: 9.742 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.635e-06/0.1656, allocations: 0 / 336.8 MB, free: 9.742 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.001156/0.1667, allocations: 490.7 kB / 337.2 MB, free: 9.25 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.1669, allocations: 166.2 kB / 337.4 MB, free: 9.051 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006175/0.1675, allocations: 493.2 kB / 337.9 MB, free: 8.562 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.411e-05/0.1676, allocations: 41.7 kB / 337.9 MB, free: 8.516 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.1678, allocations: 232.5 kB / 338.1 MB, free: 8.285 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/0.1679, allocations: 79 kB / 338.2 MB, free: 8.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.168, allocations: 118.2 kB / 338.3 MB, free: 8.086 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002538/0.1683, allocations: 370.7 kB / 338.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.1686, allocations: 121 kB / 338.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.169, allocations: 266.7 kB / 339.1 MB, free: 7.273 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006105/0.1696, allocations: 434.5 kB / 339.5 MB, free: 6.781 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1696, allocations: 4 kB / 339.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007396/0.1703, allocations: 466.5 kB / 340 MB, free: 6.309 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.612e-05/0.1704, allocations: 41.69 kB / 340 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1704, allocations: 8 kB / 340 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.1705, allocations: 4 kB / 340 MB, free: 6.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.1706, allocations: 39.92 kB / 340 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.1706, allocations: 15.92 kB / 340.1 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.1709, allocations: 39.95 kB / 340.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.1709, allocations: 28 kB / 340.1 MB, free: 6.129 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0002746/0.1712, allocations: 252.5 kB / 340.4 MB, free: 5.863 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-05/0.1713, allocations: 47.44 kB / 340.4 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005007/0.1718, allocations: 257.3 kB / 340.7 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1718, allocations: 8 kB / 340.7 MB, free: 5.543 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1718, allocations: 4 kB / 340.7 MB, free: 5.539 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1718, allocations: 3.984 kB / 340.7 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.173, allocations: 0.7827 MB / 341.5 MB, free: 4.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.173, allocations: 0 / 341.5 MB, free: 4.695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.1731, allocations: 19.94 kB / 341.5 MB, free: 4.676 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.1731, allocations: 4 kB / 341.5 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.1731, allocations: 23.86 kB / 341.5 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.1732, allocations: 0 / 341.5 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1732, allocations: 3.938 kB / 341.5 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009311/0.1741, allocations: 0.5017 MB / 342 MB, free: 4.117 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.862e-05/0.1742, allocations: 124.6 kB / 342.1 MB, free: 3.977 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.709e-05/0.1743, allocations: 15.94 kB / 342.2 MB, free: 3.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.1745, allocations: 23.97 kB / 342.2 MB, free: 3.938 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.1746, allocations: 39.94 kB / 342.2 MB, free: 3.898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.1747, allocations: 23.98 kB / 342.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003349/0.175, allocations: 315.1 kB / 342.6 MB, free: 3.57 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.175, allocations: 0 / 342.6 MB, free: 3.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005164/0.1755, allocations: 120 kB / 342.7 MB, free: 3.453 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.001249/0.1768, allocations: 468.6 kB / 343.1 MB, free: 3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007801/0.1776, allocations: 396.1 kB / 343.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1776, allocations: 4.125 kB / 343.5 MB, free: 2.598 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.178, allocations: 239.1 kB / 343.8 MB, free: 2.352 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.1786, allocations: 82.31 kB / 343.8 MB, free: 2.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.1801, allocations: 0.9191 MB / 344.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/0.1806, allocations: 0.8439 MB / 345.6 MB, free: 460 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.1808, allocations: 79.5 kB / 345.7 MB, free: 380 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1809, allocations: 43.42 kB / 345.7 MB, free: 340 kB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1809, allocations: 4 kB / 345.7 MB, free: 336 kB / 286.1 MB Notification: Performance of Templates: time 0.01066/0.1915, allocations: 5.126 MB / 350.8 MB, free: 11.2 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)