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.001152/0.001152, allocations: 108.3 kB / 16.92 MB, free: 5.754 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.001241/0.001241, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.612/1.612, allocations: 205.1 MB / 223.7 MB, free: 12.35 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.001741/0.001742, allocations: 55.92 kB / 280 MB, free: 3.195 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1445, allocations: 46.64 MB / 326.6 MB, free: 4.492 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004691/0.1492, allocations: 2.433 MB / 329 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002456/0.1517, allocations: 1.26 MB / 330.3 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002375/0.152, allocations: 11.94 kB / 330.3 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008786/0.1529, allocations: 230.9 kB / 330.5 MB, free: 0.5273 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004136/0.1533, allocations: 155.2 kB / 330.7 MB, free: 384 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007267/0.1541, allocations: 275.4 kB / 331 MB, free: 108 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005305/0.1546, allocations: 467.8 kB / 331.4 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003573/0.155, allocations: 209.8 kB / 331.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002313/0.1552, allocations: 191.2 kB / 331.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1554, allocations: 215 kB / 332 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-05/0.1555, allocations: 36 kB / 332.1 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002526/0.1558, allocations: 123.9 kB / 332.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1559, allocations: 131.5 kB / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.1562, allocations: 218.7 kB / 332.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006131/0.1568, allocations: 0.5298 MB / 333.1 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1568, allocations: 0 / 333.1 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1568, allocations: 0 / 333.1 MB, free: 14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.1568, allocations: 0 / 333.1 MB, free: 14 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.001465/0.1583, allocations: 0.8551 MB / 333.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1583, allocations: 8.031 kB / 333.9 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.1585, allocations: 56.28 kB / 334 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005107/0.159, allocations: 395 kB / 334.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-05/0.1591, allocations: 55.27 kB / 334.4 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.457e-05/0.1591, allocations: 43.94 kB / 334.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006886/0.1598, allocations: 432.7 kB / 334.9 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1599, allocations: 0 / 334.9 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.1599, allocations: 20 kB / 334.9 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/0.1599, allocations: 16.38 kB / 334.9 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005422/0.1605, allocations: 265.5 kB / 335.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.1625, allocations: 1.682 MB / 336.9 MB, free: 9.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005807/0.163, allocations: 287.9 kB / 337.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.1633, allocations: 142.5 kB / 337.3 MB, free: 9.512 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.437e-05/0.1634, allocations: 4 kB / 337.3 MB, free: 9.508 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.1639, allocations: 339.8 kB / 337.6 MB, free: 9.137 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.583e-06/0.1639, allocations: 4 kB / 337.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.001013/0.1649, allocations: 486.4 kB / 338.1 MB, free: 8.645 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.1651, allocations: 158.2 kB / 338.2 MB, free: 8.453 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005473/0.1656, allocations: 0.4894 MB / 338.7 MB, free: 7.957 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.1657, allocations: 37.7 kB / 338.8 MB, free: 7.914 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.1659, allocations: 232.5 kB / 339 MB, free: 7.684 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.068e-05/0.166, allocations: 83 kB / 339.1 MB, free: 7.602 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.1661, allocations: 118.2 kB / 339.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1663, allocations: 366.7 kB / 339.5 MB, free: 7.113 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.1665, allocations: 113.1 kB / 339.7 MB, free: 7.004 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.1669, allocations: 266.7 kB / 339.9 MB, free: 6.684 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.1675, allocations: 426.4 kB / 340.3 MB, free: 6.199 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1675, allocations: 0 / 340.3 MB, free: 6.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008265/0.1683, allocations: 478.2 kB / 340.8 MB, free: 5.719 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.357e-05/0.1684, allocations: 33.7 kB / 340.8 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.1684, allocations: 7.938 kB / 340.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.1684, allocations: 8 kB / 340.9 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1686, allocations: 43.84 kB / 340.9 MB, free: 5.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.1686, allocations: 8.469 kB / 340.9 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.1689, allocations: 55.97 kB / 341 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.1689, allocations: 24 kB / 341 MB, free: 5.535 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.00031/0.1692, allocations: 252.5 kB / 341.2 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.501e-05/0.1693, allocations: 43.44 kB / 341.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005215/0.1699, allocations: 269.2 kB / 341.5 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1699, allocations: 4 kB / 341.5 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1699, allocations: 0 / 341.5 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.1699, allocations: 7.984 kB / 341.5 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.1711, allocations: 0.7827 MB / 342.3 MB, free: 4.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.1711, allocations: 4 kB / 342.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.366e-05/0.1712, allocations: 19.86 kB / 342.3 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1712, allocations: 4 kB / 342.4 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.1712, allocations: 11.94 kB / 342.4 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.1712, allocations: 4 kB / 342.4 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.1712, allocations: 3.984 kB / 342.4 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007928/0.172, allocations: 0.5172 MB / 342.9 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.1722, allocations: 116.6 kB / 343 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.831e-05/0.1723, allocations: 19.92 kB / 343 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.1725, allocations: 19.98 kB / 343 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.1726, allocations: 39.95 kB / 343.1 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.1726, allocations: 15.98 kB / 343.1 MB, free: 3.285 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003376/0.173, allocations: 323.1 kB / 343.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.173, allocations: 4 kB / 343.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004653/0.1734, allocations: 120 kB / 343.5 MB, free: 2.855 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.001013/0.1745, allocations: 459.7 kB / 344 MB, free: 2.41 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007066/0.1752, allocations: 419.2 kB / 344.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1752, allocations: 3.938 kB / 344.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003383/0.1755, allocations: 239.5 kB / 344.6 MB, free: 1.738 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.1761, allocations: 90.25 kB / 344.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.1775, allocations: 0.7926 MB / 345.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005224/0.178, allocations: 0.8362 MB / 346.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.1783, allocations: 83.8 kB / 346.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1784, allocations: 43.36 kB / 346.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1784, allocations: 4 kB / 346.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Templates: time 0.01197/0.1904, allocations: 5.477 MB / 352 MB, free: 10.35 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)