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.001132/0.001132, allocations: 111.7 kB / 16.62 MB, free: 6.812 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.001053/0.001053, allocations: 190 kB / 17.55 MB, free: 5.934 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.535/1.535, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001162/0.001162, allocations: 55.88 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1342, allocations: 46.62 MB / 326.1 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004524/0.1387, allocations: 2.479 MB / 328.6 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.141, allocations: 1.248 MB / 329.8 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.1412, allocations: 7.938 kB / 329.9 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008428/0.1421, allocations: 211.3 kB / 330.1 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003757/0.1424, allocations: 139.5 kB / 330.2 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006929/0.1432, allocations: 243.6 kB / 330.4 MB, free: 468 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/0.1438, allocations: 471.8 kB / 330.9 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004063/0.1442, allocations: 213.7 kB / 331.1 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002313/0.1444, allocations: 187.2 kB / 331.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.1447, allocations: 215 kB / 331.5 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.1447, allocations: 36 kB / 331.5 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.145, allocations: 123.9 kB / 331.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1452, allocations: 123.6 kB / 331.8 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002876/0.1455, allocations: 230.6 kB / 332 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008197/0.1463, allocations: 0.5298 MB / 332.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1464, allocations: 0 / 332.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.61e-06/0.1464, allocations: 4 kB / 332.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.1464, allocations: 0 / 332.5 MB, free: 14.34 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.001716/0.1481, allocations: 0.8512 MB / 333.4 MB, free: 13.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.1482, allocations: 8.031 kB / 333.4 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.1484, allocations: 60.28 kB / 333.5 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007291/0.1491, allocations: 391 kB / 333.8 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1492, allocations: 63.2 kB / 333.9 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.1493, allocations: 39.94 kB / 333.9 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000805/0.1501, allocations: 428.7 kB / 334.4 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1501, allocations: 0 / 334.4 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.1502, allocations: 19.98 kB / 334.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.052e-05/0.1502, allocations: 12.44 kB / 334.4 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004811/0.1507, allocations: 265.4 kB / 334.6 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.1528, allocations: 1.682 MB / 336.3 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006941/0.1536, allocations: 292 kB / 336.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.1538, allocations: 138.3 kB / 336.7 MB, free: 9.863 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001216/0.154, allocations: 16.05 kB / 336.8 MB, free: 9.848 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006181/0.1546, allocations: 327.7 kB / 337.1 MB, free: 9.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.344e-06/0.1546, allocations: 4 kB / 337.1 MB, free: 9.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.001057/0.1557, allocations: 482.5 kB / 337.6 MB, free: 9 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.1558, allocations: 166.2 kB / 337.7 MB, free: 8.801 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006253/0.1565, allocations: 493.2 kB / 338.2 MB, free: 8.312 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.1565, allocations: 41.7 kB / 338.2 MB, free: 8.266 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.1567, allocations: 236.5 kB / 338.5 MB, free: 8.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.017e-05/0.1568, allocations: 75 kB / 338.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.157, allocations: 122.2 kB / 338.7 MB, free: 7.832 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1571, allocations: 366.7 kB / 339 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.1574, allocations: 117.1 kB / 339.1 MB, free: 7.352 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.1577, allocations: 266.7 kB / 339.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006537/0.1584, allocations: 422.4 kB / 339.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1584, allocations: 4 kB / 339.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007956/0.1592, allocations: 478.2 kB / 340.3 MB, free: 6.062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.166e-05/0.1592, allocations: 41.69 kB / 340.3 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1593, allocations: 4.312 kB / 340.3 MB, free: 6.012 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.1593, allocations: 4 kB / 340.3 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1595, allocations: 47.84 kB / 340.4 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.088e-05/0.1595, allocations: 8.469 kB / 340.4 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.1597, allocations: 51.67 kB / 340.4 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.1598, allocations: 20 kB / 340.5 MB, free: 5.883 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.0002908/0.1601, allocations: 252.5 kB / 340.7 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.129e-05/0.1602, allocations: 47.44 kB / 340.7 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005219/0.1607, allocations: 261.3 kB / 341 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1607, allocations: 4 kB / 341 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.1607, allocations: 3.984 kB / 341 MB, free: 5.293 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.1607, allocations: 0 / 341 MB, free: 5.293 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.1621, allocations: 0.7865 MB / 341.8 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1622, allocations: 8 kB / 341.8 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.794e-05/0.1622, allocations: 15.98 kB / 341.8 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.1622, allocations: 11.98 kB / 341.8 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.1623, allocations: 11.94 kB / 341.8 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1623, allocations: 3.938 kB / 341.8 MB, free: 4.398 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1623, allocations: 4 kB / 341.9 MB, free: 4.395 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007976/0.1631, allocations: 0.5094 MB / 342.4 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.1632, allocations: 116.6 kB / 342.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.155e-05/0.1633, allocations: 15.94 kB / 342.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.1635, allocations: 23.97 kB / 342.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.1636, allocations: 39.95 kB / 342.6 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.1637, allocations: 23.92 kB / 342.6 MB, free: 3.625 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003513/0.164, allocations: 319.1 kB / 342.9 MB, free: 3.316 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.164, allocations: 4 kB / 342.9 MB, free: 3.312 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005445/0.1646, allocations: 120 kB / 343 MB, free: 3.195 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.001181/0.1658, allocations: 457.5 kB / 343.5 MB, free: 2.754 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008164/0.1666, allocations: 423.2 kB / 343.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1666, allocations: 0 / 343.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003584/0.167, allocations: 243.5 kB / 344.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.1676, allocations: 82.34 kB / 344.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.1694, allocations: 0.9253 MB / 345.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006649/0.1701, allocations: 0.8361 MB / 345.9 MB, free: 180 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002654/0.1704, allocations: 83.81 kB / 346 MB, free: 96 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.1705, allocations: 43.42 kB / 346.1 MB, free: 56 kB / 286.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1705, allocations: 0 / 346.1 MB, free: 56 kB / 286.1 MB Notification: Performance of Templates: time 0.01132/0.1818, allocations: 5.333 MB / 351.4 MB, free: 10.72 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)