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.0009807/0.0009808, allocations: 90.72 kB / 16.31 MB, free: 6.461 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.001249/0.001249, allocations: 185.7 kB / 17.21 MB, free: 6.328 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.645/1.645, allocations: 205.4 MB / 223.4 MB, free: 5.824 MB / 174.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.0004678/0.0004678, allocations: 12 kB / 280.1 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3385, allocations: 47.58 MB / 327.7 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002816/0.3414, allocations: 2.037 MB / 329.7 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.3437, allocations: 1.184 MB / 330.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.3439, allocations: 9.094 kB / 330.9 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007449/0.3447, allocations: 206.6 kB / 331.1 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003753/0.3451, allocations: 132.7 kB / 331.3 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.3457, allocations: 220.3 kB / 331.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006139/0.3463, allocations: 424.7 kB / 331.9 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.3467, allocations: 153.2 kB / 332.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.3469, allocations: 142.6 kB / 332.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.3472, allocations: 166.1 kB / 332.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.3472, allocations: 14.62 kB / 332.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.3475, allocations: 90.78 kB / 332.5 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.3476, allocations: 86.64 kB / 332.5 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.3477, allocations: 100.2 kB / 332.6 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.3482, allocations: 376.6 kB / 333 MB, free: 13.55 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.431e-05/0.3482, allocations: 7.938 kB / 333 MB, free: 13.54 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3482, allocations: 0 / 333 MB, free: 13.54 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.3482, allocations: 1.031 kB / 333 MB, free: 13.54 MB / 270.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.001367/0.3496, allocations: 0.7698 MB / 333.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3497, allocations: 9.375 kB / 333.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.3498, allocations: 56.28 kB / 333.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.3503, allocations: 382.6 kB / 334.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-05/0.3504, allocations: 60.05 kB / 334.3 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.3505, allocations: 39.44 kB / 334.3 MB, free: 12.41 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007484/0.3512, allocations: 424 kB / 334.7 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3513, allocations: 1.031 kB / 334.7 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.3513, allocations: 21.23 kB / 334.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.404e-05/0.3514, allocations: 13.41 kB / 334.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005041/0.3519, allocations: 261.4 kB / 335 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.3538, allocations: 1.697 MB / 336.7 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005835/0.3544, allocations: 292 kB / 337 MB, free: 9.945 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.3547, allocations: 126.5 kB / 337.1 MB, free: 9.812 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.321e-05/0.3547, allocations: 11.98 kB / 337.1 MB, free: 9.801 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004698/0.3552, allocations: 333.2 kB / 337.5 MB, free: 9.438 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/0.3552, allocations: 3.938 kB / 337.5 MB, free: 9.434 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009869/0.3562, allocations: 496.8 kB / 338 MB, free: 8.938 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.3563, allocations: 158.2 kB / 338.1 MB, free: 8.746 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005493/0.3569, allocations: 0.4894 MB / 338.6 MB, free: 8.25 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.3569, allocations: 37.7 kB / 338.6 MB, free: 8.207 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.3572, allocations: 228.6 kB / 338.9 MB, free: 7.98 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.171e-05/0.3573, allocations: 86.94 kB / 338.9 MB, free: 7.895 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.968e-05/0.3573, allocations: 8 kB / 339 MB, free: 7.887 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3575, allocations: 354.8 kB / 339.3 MB, free: 7.531 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.3577, allocations: 121 kB / 339.4 MB, free: 7.414 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003296/0.358, allocations: 266.7 kB / 339.7 MB, free: 7.094 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.3583, allocations: 165.6 kB / 339.8 MB, free: 6.926 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.3583, allocations: 4 kB / 339.8 MB, free: 6.922 MB / 270.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007597/0.3591, allocations: 482.5 kB / 340.3 MB, free: 6.438 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.3592, allocations: 33.7 kB / 340.3 MB, free: 6.398 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3592, allocations: 4 kB / 340.4 MB, free: 6.395 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3592, allocations: 8 kB / 340.4 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.3594, allocations: 43.91 kB / 340.4 MB, free: 6.344 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.3594, allocations: 7.938 kB / 340.4 MB, free: 6.336 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3596, allocations: 67.75 kB / 340.5 MB, free: 6.27 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.3597, allocations: 20 kB / 340.5 MB, free: 6.25 MB / 270.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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000297/0.36, allocations: 244.6 kB / 340.7 MB, free: 5.992 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.799e-05/0.3601, allocations: 55.38 kB / 340.8 MB, free: 5.938 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.3606, allocations: 269.5 kB / 341.1 MB, free: 5.66 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3606, allocations: 4 kB / 341.1 MB, free: 5.656 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.3606, allocations: 0 / 341.1 MB, free: 5.656 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.3606, allocations: 0 / 341.1 MB, free: 5.656 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.3617, allocations: 0.7789 MB / 341.8 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3618, allocations: 7.984 kB / 341.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.159e-05/0.3618, allocations: 19.92 kB / 341.9 MB, free: 4.793 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3618, allocations: 4 kB / 341.9 MB, free: 4.789 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.3619, allocations: 8 kB / 341.9 MB, free: 4.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.227e-06/0.3619, allocations: 7.984 kB / 341.9 MB, free: 4.773 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3619, allocations: 3.938 kB / 341.9 MB, free: 4.77 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000728/0.3626, allocations: 0.5034 MB / 342.4 MB, free: 4.242 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.365e-05/0.3627, allocations: 124.5 kB / 342.5 MB, free: 4.102 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.577e-05/0.3628, allocations: 16 kB / 342.5 MB, free: 4.086 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.363, allocations: 23.98 kB / 342.5 MB, free: 4.062 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3631, allocations: 35.94 kB / 342.6 MB, free: 4.027 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/0.3632, allocations: 27.98 kB / 342.6 MB, free: 4 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003753/0.3636, allocations: 319.1 kB / 342.9 MB, free: 3.688 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3636, allocations: 0 / 342.9 MB, free: 3.688 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004905/0.3641, allocations: 123.9 kB / 343 MB, free: 3.566 MB / 270.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/0.3652, allocations: 456.5 kB / 343.5 MB, free: 3.121 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006629/0.3658, allocations: 399.2 kB / 343.9 MB, free: 2.719 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3659, allocations: 0 / 343.9 MB, free: 2.719 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.3662, allocations: 251.1 kB / 344.1 MB, free: 2.461 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005301/0.3668, allocations: 90.55 kB / 344.2 MB, free: 2.375 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.3681, allocations: 0.8737 MB / 345.1 MB, free: 1.473 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.3686, allocations: 0.8475 MB / 345.9 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.3688, allocations: 71.52 kB / 346 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.741e-05/0.3689, allocations: 39.42 kB / 346 MB, free: 500 kB / 270.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3689, allocations: 0 / 346 MB, free: 500 kB / 270.1 MB Notification: Performance of Templates: time 0.01135/0.3802, allocations: 4.942 MB / 351 MB, free: 11.54 MB / 286.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)