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.001398/0.001398, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.523/1.523, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.00118/0.001181, allocations: 52.39 kB / 278.7 MB, free: 12.4 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2618, allocations: 46.63 MB / 325.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003738/0.2656, allocations: 2.436 MB / 327.7 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.268, allocations: 1.252 MB / 329 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002225/0.2683, allocations: 13.59 kB / 329 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007628/0.2691, allocations: 236.6 kB / 329.2 MB, free: 14.83 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004115/0.2695, allocations: 159.9 kB / 329.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006859/0.2702, allocations: 267.4 kB / 329.6 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.2707, allocations: 474.6 kB / 330.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.271, allocations: 211.8 kB / 330.3 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.2713, allocations: 191.6 kB / 330.5 MB, free: 14 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.2715, allocations: 211.9 kB / 330.7 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.584e-05/0.2716, allocations: 39.22 kB / 330.8 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003087/0.2719, allocations: 112.6 kB / 330.9 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.2722, allocations: 132.2 kB / 331 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.2724, allocations: 220.8 kB / 331.2 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006835/0.2731, allocations: 0.5275 MB / 331.7 MB, free: 13.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2732, allocations: 4 kB / 331.7 MB, free: 13.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2732, allocations: 1.031 kB / 331.7 MB, free: 13.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.2732, allocations: 0 / 331.7 MB, free: 13.18 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.00154/0.2747, allocations: 0.8511 MB / 332.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.2748, allocations: 8.844 kB / 332.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.2749, allocations: 61.27 kB / 332.7 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005978/0.2755, allocations: 387.8 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.291e-05/0.2756, allocations: 65.67 kB / 333.1 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.427e-05/0.2757, allocations: 39.12 kB / 333.1 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000712/0.2764, allocations: 426.5 kB / 333.6 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.2764, allocations: 3.938 kB / 333.6 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/0.2765, allocations: 19.98 kB / 333.6 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.039e-05/0.2765, allocations: 16.44 kB / 333.6 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004797/0.277, allocations: 261.4 kB / 333.9 MB, free: 11.24 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.2796, allocations: 1.678 MB / 335.5 MB, free: 9.477 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007124/0.2803, allocations: 307.9 kB / 335.8 MB, free: 9.148 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.2806, allocations: 134.5 kB / 336 MB, free: 9.008 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.641e-05/0.2807, allocations: 7.984 kB / 336 MB, free: 9 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006079/0.2813, allocations: 332.4 kB / 336.3 MB, free: 8.637 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 3.036e-06/0.2813, allocations: 0 / 336.3 MB, free: 8.637 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.001173/0.2825, allocations: 486.5 kB / 336.8 MB, free: 8.148 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002275/0.2828, allocations: 162.2 kB / 336.9 MB, free: 7.953 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000704/0.2835, allocations: 497.2 kB / 337.4 MB, free: 7.461 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.479e-05/0.2835, allocations: 37.7 kB / 337.4 MB, free: 7.418 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.2838, allocations: 228.7 kB / 337.7 MB, free: 7.191 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.468e-05/0.2839, allocations: 90.83 kB / 337.8 MB, free: 7.102 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.2841, allocations: 114.2 kB / 337.9 MB, free: 6.984 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.2843, allocations: 366.7 kB / 338.2 MB, free: 6.617 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.2846, allocations: 117.1 kB / 338.3 MB, free: 6.504 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.2851, allocations: 266.7 kB / 338.6 MB, free: 6.18 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005692/0.2857, allocations: 418.5 kB / 339 MB, free: 5.703 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2857, allocations: 3.938 kB / 339 MB, free: 5.699 MB / 270.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007723/0.2864, allocations: 474.3 kB / 339.5 MB, free: 5.223 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.103e-05/0.2865, allocations: 45.62 kB / 339.5 MB, free: 5.172 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.2865, allocations: 4 kB / 339.5 MB, free: 5.168 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.2866, allocations: 8 kB / 339.5 MB, free: 5.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.2867, allocations: 35.86 kB / 339.6 MB, free: 5.125 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.2867, allocations: 11.98 kB / 339.6 MB, free: 5.113 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.287, allocations: 59.92 kB / 339.6 MB, free: 5.055 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.287, allocations: 24 kB / 339.7 MB, free: 5.031 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.0002795/0.2873, allocations: 248.5 kB / 339.9 MB, free: 4.773 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.2874, allocations: 47.44 kB / 340 MB, free: 4.727 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005562/0.288, allocations: 269.5 kB / 340.2 MB, free: 4.449 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.288, allocations: 4 kB / 340.2 MB, free: 4.445 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.288, allocations: 0 / 340.2 MB, free: 4.445 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.288, allocations: 3.984 kB / 340.2 MB, free: 4.441 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.2894, allocations: 0.7828 MB / 341 MB, free: 3.602 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.2894, allocations: 0 / 341 MB, free: 3.602 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.224e-05/0.2894, allocations: 15.94 kB / 341 MB, free: 3.586 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.531e-05/0.2895, allocations: 4 kB / 341 MB, free: 3.582 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.2896, allocations: 19.92 kB / 341 MB, free: 3.562 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.2896, allocations: 4 kB / 341.1 MB, free: 3.559 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.2896, allocations: 0 / 341.1 MB, free: 3.559 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000836/0.2904, allocations: 0.5182 MB / 341.6 MB, free: 3.016 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.2906, allocations: 116.6 kB / 341.7 MB, free: 2.883 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.86e-05/0.2906, allocations: 15.94 kB / 341.7 MB, free: 2.867 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.2909, allocations: 27.97 kB / 341.7 MB, free: 2.84 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.291, allocations: 35.95 kB / 341.8 MB, free: 2.805 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.291, allocations: 20 kB / 341.8 MB, free: 2.785 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003327/0.2914, allocations: 327.1 kB / 342.1 MB, free: 2.473 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2914, allocations: 0 / 342.1 MB, free: 2.473 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005116/0.2919, allocations: 119.9 kB / 342.2 MB, free: 2.355 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.001188/0.2931, allocations: 461.1 kB / 342.7 MB, free: 1.902 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000803/0.2939, allocations: 427.6 kB / 343.1 MB, free: 1.473 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2939, allocations: 0 / 343.1 MB, free: 1.473 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003622/0.2943, allocations: 243.3 kB / 343.3 MB, free: 1.223 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/0.2949, allocations: 81.75 kB / 343.4 MB, free: 1.141 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.2963, allocations: 0.8006 MB / 344.2 MB, free: 316 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.2967, allocations: 0.8361 MB / 345 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.2969, allocations: 79.55 kB / 345.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.297, allocations: 47.42 kB / 345.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2971, allocations: 7.938 kB / 345.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of Templates: time 0.01061/0.3077, allocations: 5.474 MB / 350.6 MB, free: 9.836 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)