Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001297/0.001297, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001779/0.001779, allocations: 191.8 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.00124/0.00124, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3457, allocations: 46.63 MB / 324.8 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005015/0.3508, allocations: 2.471 MB / 327.3 MB, free: 132 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.3537, allocations: 1.244 MB / 328.6 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002845/0.354, allocations: 9.594 kB / 328.6 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009427/0.355, allocations: 212.7 kB / 328.8 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004359/0.3555, allocations: 140.4 kB / 328.9 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008819/0.3564, allocations: 245.2 kB / 329.1 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006386/0.357, allocations: 476.8 kB / 329.6 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004536/0.3575, allocations: 206.2 kB / 329.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.3578, allocations: 200.7 kB / 330 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.3581, allocations: 219 kB / 330.2 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.268e-05/0.3582, allocations: 34.66 kB / 330.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.3585, allocations: 116.7 kB / 330.4 MB, free: 14.05 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.3586, allocations: 128.7 kB / 330.5 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.3589, allocations: 222.2 kB / 330.7 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007668/0.3597, allocations: 0.5271 MB / 331.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3597, allocations: 1.062 kB / 331.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3597, allocations: 0 / 331.2 MB, free: 13.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.3597, allocations: 7.922 kB / 331.2 MB, free: 13.41 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.001699/0.3614, allocations: 0.8507 MB / 332.1 MB, free: 12.66 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.3615, allocations: 9.938 kB / 332.1 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.3616, allocations: 57.38 kB / 332.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.3622, allocations: 391 kB / 332.5 MB, free: 12.28 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.82e-05/0.3623, allocations: 58.27 kB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.666e-05/0.3624, allocations: 50.38 kB / 332.7 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007424/0.3632, allocations: 429.6 kB / 333.1 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3632, allocations: 0 / 333.1 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.3632, allocations: 16 kB / 333.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.092e-05/0.3633, allocations: 12.44 kB / 333.1 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.3637, allocations: 269.5 kB / 333.4 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.3658, allocations: 1.678 MB / 335 MB, free: 9.762 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.3664, allocations: 295.9 kB / 335.3 MB, free: 9.445 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.3666, allocations: 138.4 kB / 335.5 MB, free: 9.301 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.199e-05/0.3667, allocations: 8 kB / 335.5 MB, free: 9.293 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005439/0.3673, allocations: 332.5 kB / 335.8 MB, free: 8.93 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 1.694e-06/0.3673, allocations: 3.938 kB / 335.8 MB, free: 8.926 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.001034/0.3683, allocations: 478.5 kB / 336.3 MB, free: 8.445 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.3685, allocations: 170.2 kB / 336.4 MB, free: 8.242 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005592/0.369, allocations: 493.2 kB / 336.9 MB, free: 7.754 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.549e-05/0.3691, allocations: 45.69 kB / 337 MB, free: 7.703 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.3693, allocations: 220.7 kB / 337.2 MB, free: 7.484 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.565e-05/0.3694, allocations: 90.89 kB / 337.3 MB, free: 7.395 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.3696, allocations: 118.2 kB / 337.4 MB, free: 7.273 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002262/0.3698, allocations: 358.7 kB / 337.7 MB, free: 6.914 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.3701, allocations: 109.1 kB / 337.8 MB, free: 6.809 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.3704, allocations: 278.6 kB / 338.1 MB, free: 6.473 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006303/0.3711, allocations: 422.7 kB / 338.5 MB, free: 5.992 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3711, allocations: 0 / 338.5 MB, free: 5.992 MB / 270.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007552/0.3719, allocations: 478.7 kB / 339 MB, free: 5.512 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.862e-05/0.3719, allocations: 33.7 kB / 339 MB, free: 5.473 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3719, allocations: 4 kB / 339 MB, free: 5.469 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-05/0.372, allocations: 11.98 kB / 339 MB, free: 5.457 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.3721, allocations: 43.86 kB / 339.1 MB, free: 5.414 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.3722, allocations: 4 kB / 339.1 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.3724, allocations: 55.56 kB / 339.1 MB, free: 5.355 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/0.3725, allocations: 24.16 kB / 339.2 MB, free: 5.332 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.0003074/0.3728, allocations: 260.5 kB / 339.4 MB, free: 5.059 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.3729, allocations: 43.44 kB / 339.5 MB, free: 5.016 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005174/0.3734, allocations: 265.2 kB / 339.7 MB, free: 4.742 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3734, allocations: 4 kB / 339.7 MB, free: 4.738 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.3734, allocations: 8.062 kB / 339.7 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3734, allocations: 4 kB / 339.7 MB, free: 4.727 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.3747, allocations: 0.775 MB / 340.5 MB, free: 3.895 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3747, allocations: 0 / 340.5 MB, free: 3.895 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.034e-05/0.3747, allocations: 15.98 kB / 340.5 MB, free: 3.879 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3747, allocations: 3.938 kB / 340.5 MB, free: 3.875 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.3748, allocations: 19.92 kB / 340.5 MB, free: 3.855 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3748, allocations: 7.938 kB / 340.6 MB, free: 3.848 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3748, allocations: 0 / 340.6 MB, free: 3.848 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007708/0.3756, allocations: 0.5106 MB / 341.1 MB, free: 3.312 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.992e-05/0.3757, allocations: 116.6 kB / 341.2 MB, free: 3.18 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.175e-05/0.3758, allocations: 19.94 kB / 341.2 MB, free: 3.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.376, allocations: 23.98 kB / 341.2 MB, free: 3.137 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.3761, allocations: 43.92 kB / 341.3 MB, free: 3.094 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.419e-05/0.3762, allocations: 15.94 kB / 341.3 MB, free: 3.078 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003545/0.3765, allocations: 327.1 kB / 341.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3765, allocations: 0 / 341.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005097/0.3771, allocations: 119.9 kB / 341.7 MB, free: 2.645 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.00128/0.3783, allocations: 456.9 kB / 342.2 MB, free: 2.195 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000754/0.3791, allocations: 423.8 kB / 342.6 MB, free: 1.77 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3791, allocations: 4 kB / 342.6 MB, free: 1.766 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.3795, allocations: 247.4 kB / 342.8 MB, free: 1.512 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006043/0.3801, allocations: 81.7 kB / 342.9 MB, free: 1.43 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.3819, allocations: 0.9292 MB / 343.8 MB, free: 480 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005595/0.3825, allocations: 0.84 MB / 344.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.3827, allocations: 75.55 kB / 344.7 MB, free: 15.53 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.3828, allocations: 43.44 kB / 344.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3828, allocations: 0 / 344.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of Templates: time 0.01248/0.3953, allocations: 5.333 MB / 350.1 MB, free: 10.15 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)