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.0009286/0.0009286, allocations: 87.52 kB / 16.65 MB, free: 6.535 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.001152/0.001152, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.697/1.697, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.000545/0.0005451, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1329, allocations: 47.58 MB / 328.3 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003552/0.1365, allocations: 2.101 MB / 330.4 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.1394, allocations: 1.229 MB / 331.6 MB, free: 428 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002722/0.1397, allocations: 11.94 kB / 331.6 MB, free: 416 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.1407, allocations: 207.3 kB / 331.9 MB, free: 208 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004201/0.1411, allocations: 135.5 kB / 332 MB, free: 72 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000887/0.142, allocations: 247.9 kB / 332.2 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000617/0.1427, allocations: 447.7 kB / 332.7 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004495/0.1431, allocations: 197.8 kB / 332.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.1434, allocations: 147.2 kB / 333 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000281/0.1437, allocations: 167.1 kB / 333.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.1437, allocations: 16 kB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.144, allocations: 91.89 kB / 333.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.1442, allocations: 103.5 kB / 333.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1444, allocations: 204.4 kB / 333.6 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006452/0.145, allocations: 486 kB / 334 MB, free: 13.99 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1451, allocations: 4 kB / 334 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1451, allocations: 0 / 334 MB, free: 13.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1451, allocations: 0 / 334 MB, free: 13.98 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.00154/0.1466, allocations: 0.7735 MB / 334.8 MB, free: 13.15 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.272e-05/0.1467, allocations: 15.97 kB / 334.8 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1469, allocations: 56.28 kB / 334.9 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.1475, allocations: 387 kB / 335.3 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.1477, allocations: 55.27 kB / 335.3 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.1477, allocations: 51.92 kB / 335.4 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006882/0.1484, allocations: 424.7 kB / 335.8 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.1484, allocations: 0 / 335.8 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.1485, allocations: 16 kB / 335.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/0.1485, allocations: 12.44 kB / 335.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005025/0.149, allocations: 277.3 kB / 336.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.1512, allocations: 1.698 MB / 337.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006425/0.1518, allocations: 295.9 kB / 338.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.1521, allocations: 134.5 kB / 338.2 MB, free: 9.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.88e-05/0.1522, allocations: 12.06 kB / 338.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005485/0.1528, allocations: 335.6 kB / 338.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.663e-06/0.1528, allocations: 0 / 338.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.001044/0.1538, allocations: 486.5 kB / 339 MB, free: 8.691 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.154, allocations: 166.2 kB / 339.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/0.1545, allocations: 485.3 kB / 339.7 MB, free: 8.012 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.916e-05/0.1546, allocations: 45.7 kB / 339.7 MB, free: 7.961 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.1548, allocations: 228.5 kB / 339.9 MB, free: 7.734 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.953e-05/0.1549, allocations: 86.98 kB / 340 MB, free: 7.648 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/0.155, allocations: 73.67 kB / 340.1 MB, free: 7.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.1552, allocations: 362.7 kB / 340.4 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.1555, allocations: 113.1 kB / 340.5 MB, free: 7.098 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.1558, allocations: 274.7 kB / 340.8 MB, free: 6.766 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005906/0.1564, allocations: 438.6 kB / 341.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.1564, allocations: 0 / 341.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008097/0.1573, allocations: 470.6 kB / 341.7 MB, free: 5.797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.1573, allocations: 41.78 kB / 341.7 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1573, allocations: 4 kB / 341.7 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.1574, allocations: 8 kB / 341.8 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.1575, allocations: 43.86 kB / 341.8 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.1576, allocations: 7.984 kB / 341.8 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.1578, allocations: 59.61 kB / 341.9 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.1579, allocations: 20 kB / 341.9 MB, free: 5.609 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.000298/0.1582, allocations: 252.6 kB / 342.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.588e-05/0.1582, allocations: 47.44 kB / 342.2 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005151/0.1588, allocations: 265.5 kB / 342.4 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1588, allocations: 8 kB / 342.4 MB, free: 5.016 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1588, allocations: 4 kB / 342.4 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.1588, allocations: 3.984 kB / 342.5 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.1599, allocations: 0.7827 MB / 343.2 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.16, allocations: 4 kB / 343.2 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.822e-05/0.16, allocations: 15.94 kB / 343.3 MB, free: 4.148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.16, allocations: 4 kB / 343.3 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.1601, allocations: 15.92 kB / 343.3 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1601, allocations: 11.88 kB / 343.3 MB, free: 4.117 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1601, allocations: 3.984 kB / 343.3 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007913/0.1609, allocations: 0.5103 MB / 343.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.161, allocations: 116.6 kB / 343.9 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.557e-05/0.1611, allocations: 19.94 kB / 343.9 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.1613, allocations: 31.91 kB / 344 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.1614, allocations: 39.95 kB / 344 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.1615, allocations: 15.98 kB / 344 MB, free: 3.336 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003707/0.1619, allocations: 323.1 kB / 344.3 MB, free: 3.023 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1619, allocations: 4 kB / 344.3 MB, free: 3.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005319/0.1624, allocations: 120 kB / 344.5 MB, free: 2.902 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.001122/0.1635, allocations: 451.7 kB / 344.9 MB, free: 2.465 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007042/0.1642, allocations: 403.2 kB / 345.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1643, allocations: 0 / 345.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003382/0.1646, allocations: 243.1 kB / 345.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006233/0.1652, allocations: 90.83 kB / 345.6 MB, free: 1.719 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.1667, allocations: 0.9244 MB / 346.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.1671, allocations: 0.8397 MB / 347.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000204/0.1674, allocations: 75.25 kB / 347.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.1675, allocations: 43.42 kB / 347.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1675, allocations: 0 / 347.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01109/0.1786, allocations: 5.076 MB / 352.6 MB, free: 10.71 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)