Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001144/0.001144, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001307/0.001307, allocations: 194.4 kB / 16.14 MB, free: 6.66 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.595/1.595, allocations: 205.1 MB / 222 MB, free: 4.734 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.001738/0.001739, allocations: 55.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3429, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003976/0.3469, allocations: 2.473 MB / 327.1 MB, free: 4 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.3494, allocations: 1.252 MB / 328.4 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.3496, allocations: 9.656 kB / 328.4 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007424/0.3504, allocations: 215.8 kB / 328.6 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.3507, allocations: 139.4 kB / 328.7 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000648/0.3514, allocations: 237.5 kB / 329 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005263/0.3519, allocations: 456.8 kB / 329.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.3523, allocations: 203.3 kB / 329.6 MB, free: 14.24 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.3525, allocations: 177.8 kB / 329.8 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.3528, allocations: 205.1 kB / 330 MB, free: 14 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.526e-05/0.3528, allocations: 20.59 kB / 330 MB, free: 14 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002838/0.3531, allocations: 96.27 kB / 330.1 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.3533, allocations: 121.2 kB / 330.2 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.3535, allocations: 205.8 kB / 330.4 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006068/0.3542, allocations: 0.4909 MB / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3542, allocations: 1.062 kB / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3542, allocations: 0 / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.3542, allocations: 0 / 330.9 MB, free: 13.38 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.001488/0.3557, allocations: 0.859 MB / 331.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.3557, allocations: 9.156 kB / 331.8 MB, free: 12.62 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.3559, allocations: 58.44 kB / 331.8 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.3564, allocations: 386.9 kB / 332.2 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-05/0.3565, allocations: 57.45 kB / 332.3 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.3566, allocations: 46.59 kB / 332.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007763/0.3574, allocations: 430.7 kB / 332.7 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.3574, allocations: 3.938 kB / 332.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.3574, allocations: 17.34 kB / 332.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-05/0.3575, allocations: 13.12 kB / 332.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.358, allocations: 266.2 kB / 333 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.36, allocations: 1.682 MB / 334.7 MB, free: 9.844 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006248/0.3606, allocations: 299.9 kB / 335 MB, free: 9.523 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.3608, allocations: 126.5 kB / 335.1 MB, free: 9.391 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.147e-05/0.3609, allocations: 11.98 kB / 335.2 MB, free: 9.379 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005292/0.3615, allocations: 332.4 kB / 335.5 MB, free: 9.016 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/0.3615, allocations: 0 / 335.5 MB, free: 9.016 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.001134/0.3626, allocations: 491.1 kB / 336 MB, free: 8.523 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.3628, allocations: 170.2 kB / 336.1 MB, free: 8.32 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005972/0.3634, allocations: 493.2 kB / 336.6 MB, free: 7.832 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.728e-05/0.3634, allocations: 41.7 kB / 336.6 MB, free: 7.785 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.3637, allocations: 228.6 kB / 336.9 MB, free: 7.559 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.517e-05/0.3638, allocations: 86.91 kB / 337 MB, free: 7.473 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.3639, allocations: 118.2 kB / 337.1 MB, free: 7.352 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3641, allocations: 362.7 kB / 337.4 MB, free: 6.988 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.3644, allocations: 117.1 kB / 337.5 MB, free: 6.875 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.3647, allocations: 270.7 kB / 337.8 MB, free: 6.547 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005233/0.3652, allocations: 418.5 kB / 338.2 MB, free: 6.07 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.3653, allocations: 0 / 338.2 MB, free: 6.07 MB / 270.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007509/0.366, allocations: 474.6 kB / 338.7 MB, free: 5.594 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.08e-05/0.3661, allocations: 37.69 kB / 338.7 MB, free: 5.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3661, allocations: 4 kB / 338.7 MB, free: 5.547 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3661, allocations: 8 kB / 338.7 MB, free: 5.539 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.3662, allocations: 47.84 kB / 338.8 MB, free: 5.492 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.3663, allocations: 7.938 kB / 338.8 MB, free: 5.484 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.3665, allocations: 51.58 kB / 338.8 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/0.3666, allocations: 24 kB / 338.8 MB, free: 5.41 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,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.0002595/0.3668, allocations: 252.7 kB / 339.1 MB, free: 5.145 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-05/0.3669, allocations: 43.44 kB / 339.1 MB, free: 5.102 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/0.3674, allocations: 265.3 kB / 339.4 MB, free: 4.828 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.3674, allocations: 4 kB / 339.4 MB, free: 4.824 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.3674, allocations: 11.98 kB / 339.4 MB, free: 4.812 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3675, allocations: 0 / 339.4 MB, free: 4.812 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.3685, allocations: 0.7789 MB / 340.2 MB, free: 3.977 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.3685, allocations: 0 / 340.2 MB, free: 3.977 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/0.3686, allocations: 15.94 kB / 340.2 MB, free: 3.961 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3686, allocations: 3.984 kB / 340.2 MB, free: 3.957 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.3686, allocations: 23.94 kB / 340.2 MB, free: 3.934 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.3686, allocations: 0 / 340.2 MB, free: 3.934 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3686, allocations: 3.938 kB / 340.2 MB, free: 3.93 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000722/0.3694, allocations: 0.5145 MB / 340.8 MB, free: 3.391 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.384e-05/0.3695, allocations: 116.6 kB / 340.9 MB, free: 3.258 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.3695, allocations: 19.94 kB / 340.9 MB, free: 3.238 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.3698, allocations: 27.97 kB / 340.9 MB, free: 3.211 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.3699, allocations: 39.94 kB / 341 MB, free: 3.172 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.3699, allocations: 15.98 kB / 341 MB, free: 3.156 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003485/0.3703, allocations: 323.1 kB / 341.3 MB, free: 2.844 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3703, allocations: 0 / 341.3 MB, free: 2.844 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004792/0.3708, allocations: 119.7 kB / 341.4 MB, free: 2.727 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 (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.001042/0.3718, allocations: 461.2 kB / 341.9 MB, free: 2.273 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007284/0.3726, allocations: 396 kB / 342.2 MB, free: 1.875 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3726, allocations: 0 / 342.2 MB, free: 1.875 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.3729, allocations: 247.6 kB / 342.5 MB, free: 1.621 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.3735, allocations: 89.58 kB / 342.6 MB, free: 1.531 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.3749, allocations: 0.9191 MB / 343.5 MB, free: 0.582 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.3754, allocations: 0.8475 MB / 344.3 MB, free: 15.71 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002244/0.3756, allocations: 75.52 kB / 344.4 MB, free: 15.63 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.3758, allocations: 39.42 kB / 344.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3758, allocations: 0 / 344.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Templates: time 0.01083/0.3866, allocations: 5.119 MB / 349.6 MB, free: 10.48 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)