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.001194/0.001194, allocations: 108 kB / 15.61 MB, free: 152 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.001264/0.001264, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.561/1.561, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.00125/0.00125, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2817, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00354/0.2853, allocations: 2.444 MB / 327.7 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.2876, allocations: 1.252 MB / 329 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.2878, allocations: 9.562 kB / 329 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007294/0.2885, allocations: 237.1 kB / 329.2 MB, free: 14.79 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.0003922/0.2889, allocations: 162.3 kB / 329.4 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006198/0.2896, allocations: 267.2 kB / 329.7 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005069/0.2901, allocations: 476.6 kB / 330.1 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.2904, allocations: 205.8 kB / 330.3 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.2907, allocations: 192.3 kB / 330.5 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.2909, allocations: 212.7 kB / 330.7 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.285e-05/0.291, allocations: 34.59 kB / 330.7 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00028/0.2913, allocations: 124.5 kB / 330.9 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.2915, allocations: 124 kB / 331 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.2917, allocations: 216.8 kB / 331.2 MB, free: 13.51 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006789/0.2924, allocations: 0.5359 MB / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2924, allocations: 0 / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2924, allocations: 0 / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.2924, allocations: 1.219 kB / 331.7 MB, free: 13.13 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.001413/0.2938, allocations: 0.8541 MB / 332.6 MB, free: 12.38 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2939, allocations: 9.562 kB / 332.6 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.294, allocations: 57.16 kB / 332.7 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/0.2945, allocations: 388.5 kB / 333 MB, free: 12 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.195e-05/0.2946, allocations: 56.7 kB / 333.1 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.396e-05/0.2947, allocations: 46.44 kB / 333.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/0.2953, allocations: 434 kB / 333.6 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2953, allocations: 4 kB / 333.6 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.2954, allocations: 15.98 kB / 333.6 MB, free: 11.47 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.768e-05/0.2954, allocations: 12.44 kB / 333.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004512/0.2959, allocations: 265.5 kB / 333.9 MB, free: 11.2 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.2979, allocations: 1.678 MB / 335.5 MB, free: 9.434 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006795/0.2986, allocations: 300 kB / 335.8 MB, free: 9.113 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002346/0.2988, allocations: 126.5 kB / 335.9 MB, free: 8.98 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.438e-05/0.2989, allocations: 20.05 kB / 336 MB, free: 8.961 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000525/0.2995, allocations: 324.4 kB / 336.3 MB, free: 8.605 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 2.304e-06/0.2995, allocations: 0 / 336.3 MB, free: 8.605 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.001014/0.3005, allocations: 482.5 kB / 336.8 MB, free: 8.121 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.3006, allocations: 174.2 kB / 336.9 MB, free: 7.914 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/0.3012, allocations: 493.2 kB / 337.4 MB, free: 7.426 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.3012, allocations: 41.7 kB / 337.4 MB, free: 7.379 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.3014, allocations: 224.6 kB / 337.7 MB, free: 7.156 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.309e-05/0.3015, allocations: 86.91 kB / 337.8 MB, free: 7.07 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.3017, allocations: 118.2 kB / 337.9 MB, free: 6.949 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3019, allocations: 362.7 kB / 338.2 MB, free: 6.586 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.3021, allocations: 117.1 kB / 338.3 MB, free: 6.473 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.3025, allocations: 266.7 kB / 338.6 MB, free: 6.148 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.303, allocations: 422.5 kB / 339 MB, free: 5.668 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.303, allocations: 0 / 339 MB, free: 5.668 MB / 270.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007276/0.3037, allocations: 482.8 kB / 339.5 MB, free: 5.184 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.3038, allocations: 37.69 kB / 339.5 MB, free: 5.141 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3038, allocations: 4 kB / 339.5 MB, free: 5.137 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.3038, allocations: 11.94 kB / 339.5 MB, free: 5.125 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.304, allocations: 43.91 kB / 339.6 MB, free: 5.082 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.304, allocations: 7.938 kB / 339.6 MB, free: 5.074 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.3042, allocations: 51.58 kB / 339.6 MB, free: 5.023 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.3043, allocations: 24 kB / 339.7 MB, free: 5 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.0002646/0.3046, allocations: 260.7 kB / 339.9 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.3046, allocations: 43.44 kB / 340 MB, free: 4.688 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005116/0.3051, allocations: 261.6 kB / 340.2 MB, free: 4.418 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3052, allocations: 4 kB / 340.2 MB, free: 4.414 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3052, allocations: 8 kB / 340.2 MB, free: 4.406 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3052, allocations: 3.984 kB / 340.2 MB, free: 4.402 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.3062, allocations: 0.775 MB / 341 MB, free: 3.57 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3063, allocations: 0 / 341 MB, free: 3.57 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.554e-05/0.3063, allocations: 15.94 kB / 341 MB, free: 3.555 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3063, allocations: 0 / 341 MB, free: 3.555 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.3064, allocations: 23.92 kB / 341 MB, free: 3.531 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3064, allocations: 3.938 kB / 341 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3064, allocations: 0 / 341 MB, free: 3.527 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.3071, allocations: 0.5182 MB / 341.6 MB, free: 2.984 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.627e-05/0.3072, allocations: 116.6 kB / 341.7 MB, free: 2.852 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.735e-05/0.3073, allocations: 19.94 kB / 341.7 MB, free: 2.832 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.3075, allocations: 27.97 kB / 341.7 MB, free: 2.805 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.3076, allocations: 35.95 kB / 341.8 MB, free: 2.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.3076, allocations: 19.98 kB / 341.8 MB, free: 2.75 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003324/0.308, allocations: 323.1 kB / 342.1 MB, free: 2.441 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.308, allocations: 0 / 342.1 MB, free: 2.441 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004653/0.3085, allocations: 123.9 kB / 342.2 MB, free: 2.32 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.001059/0.3095, allocations: 456.8 kB / 342.7 MB, free: 1.871 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007257/0.3103, allocations: 428 kB / 343.1 MB, free: 1.441 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3103, allocations: 192 / 343.1 MB, free: 1.441 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.3106, allocations: 246.9 kB / 343.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005726/0.3112, allocations: 85.69 kB / 343.4 MB, free: 1.102 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.3126, allocations: 0.7964 MB / 344.2 MB, free: 280 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.3131, allocations: 0.8439 MB / 345 MB, free: 15.4 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001927/0.3133, allocations: 79.56 kB / 345.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.715e-05/0.3134, allocations: 43.42 kB / 345.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3134, allocations: 0 / 345.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of Templates: time 0.01109/0.3245, allocations: 5.477 MB / 350.6 MB, free: 9.801 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)