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.001149/0.001149, 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.001275/0.001275, allocations: 192.8 kB / 16.14 MB, free: 6.668 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.403/1.403, allocations: 205.1 MB / 222 MB, free: 4.719 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.001166/0.001166, allocations: 51.92 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2933, allocations: 46.63 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004/0.2974, allocations: 2.474 MB / 327.1 MB, free: 12 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.2999, allocations: 1.255 MB / 328.4 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/0.3002, allocations: 9.031 kB / 328.4 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009068/0.3011, allocations: 217.5 kB / 328.6 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003621/0.3015, allocations: 131.1 kB / 328.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007613/0.3023, allocations: 248.7 kB / 329 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006264/0.3029, allocations: 449.4 kB / 329.4 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.3033, allocations: 199.5 kB / 329.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.3035, allocations: 177 kB / 329.8 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.3039, allocations: 200.8 kB / 330 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.812e-05/0.3039, allocations: 21.34 kB / 330 MB, free: 14.02 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000261/0.3042, allocations: 104.7 kB / 330.1 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3044, allocations: 116.1 kB / 330.2 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.3047, allocations: 210.6 kB / 330.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006321/0.3053, allocations: 0.4913 MB / 330.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3053, allocations: 0 / 330.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3053, allocations: 1.281 kB / 330.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.3054, allocations: 0 / 330.9 MB, free: 13.39 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.001643/0.307, allocations: 0.8548 MB / 331.8 MB, free: 12.63 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3071, allocations: 9.031 kB / 331.8 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.3072, allocations: 64.34 kB / 331.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.3078, allocations: 392.1 kB / 332.2 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-05/0.3079, allocations: 57.27 kB / 332.3 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.091e-05/0.308, allocations: 39.66 kB / 332.3 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008085/0.3088, allocations: 429.7 kB / 332.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.3088, allocations: 1.281 kB / 332.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.3089, allocations: 21.41 kB / 332.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-05/0.3089, allocations: 16.5 kB / 332.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005189/0.3095, allocations: 268.1 kB / 333 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.3117, allocations: 1.682 MB / 334.7 MB, free: 9.844 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006475/0.3123, allocations: 296 kB / 335 MB, free: 9.527 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.3126, allocations: 130.4 kB / 335.1 MB, free: 9.391 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.872e-05/0.3127, allocations: 15.98 kB / 335.2 MB, free: 9.375 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005355/0.3132, allocations: 324.5 kB / 335.5 MB, free: 9.02 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 2.675e-06/0.3133, allocations: 3.938 kB / 335.5 MB, free: 9.016 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.00107/0.3143, allocations: 491 kB / 336 MB, free: 8.523 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3144, allocations: 162.2 kB / 336.1 MB, free: 8.328 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005336/0.315, allocations: 0.4894 MB / 336.6 MB, free: 7.832 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/0.315, allocations: 37.7 kB / 336.6 MB, free: 7.789 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.3152, allocations: 232.6 kB / 336.9 MB, free: 7.559 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/0.3153, allocations: 78.91 kB / 337 MB, free: 7.48 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.3155, allocations: 118.2 kB / 337.1 MB, free: 7.359 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3157, allocations: 362.7 kB / 337.4 MB, free: 6.996 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.3159, allocations: 117.1 kB / 337.5 MB, free: 6.883 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.3162, allocations: 266.7 kB / 337.8 MB, free: 6.559 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.3169, allocations: 426.5 kB / 338.2 MB, free: 6.074 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3169, allocations: 0 / 338.2 MB, free: 6.074 MB / 270.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007679/0.3177, allocations: 470.7 kB / 338.7 MB, free: 5.602 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.486e-05/0.3177, allocations: 45.75 kB / 338.7 MB, free: 5.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3177, allocations: 4 kB / 338.7 MB, free: 5.547 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.839e-05/0.3178, allocations: 8 kB / 338.7 MB, free: 5.539 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3179, allocations: 44.16 kB / 338.8 MB, free: 5.496 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.155e-05/0.318, allocations: 8 kB / 338.8 MB, free: 5.488 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.3182, allocations: 51.58 kB / 338.8 MB, free: 5.438 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.3183, allocations: 20 kB / 338.8 MB, free: 5.418 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.0002865/0.3185, allocations: 256.5 kB / 339.1 MB, free: 5.148 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.064e-05/0.3186, allocations: 47.44 kB / 339.1 MB, free: 5.102 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005037/0.3191, allocations: 265.2 kB / 339.4 MB, free: 4.828 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3192, allocations: 7.984 kB / 339.4 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.3192, allocations: 0 / 339.4 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3192, allocations: 0 / 339.4 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.3202, allocations: 0.7828 MB / 340.2 MB, free: 3.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3203, allocations: 0 / 340.2 MB, free: 3.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.857e-05/0.3203, allocations: 15.98 kB / 340.2 MB, free: 3.965 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3203, allocations: 11.88 kB / 340.2 MB, free: 3.953 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.3204, allocations: 11.94 kB / 340.2 MB, free: 3.941 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.3204, allocations: 8 kB / 340.2 MB, free: 3.934 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3204, allocations: 7.938 kB / 340.2 MB, free: 3.926 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007081/0.3211, allocations: 0.5107 MB / 340.8 MB, free: 3.391 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.551e-05/0.3212, allocations: 112.6 kB / 340.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.709e-05/0.3213, allocations: 15.94 kB / 340.9 MB, free: 3.246 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.3215, allocations: 27.97 kB / 340.9 MB, free: 3.219 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.3216, allocations: 39.95 kB / 341 MB, free: 3.18 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.3217, allocations: 19.92 kB / 341 MB, free: 3.16 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003475/0.322, allocations: 319.1 kB / 341.3 MB, free: 2.852 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.322, allocations: 4 kB / 341.3 MB, free: 2.848 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004854/0.3225, allocations: 119.7 kB / 341.4 MB, free: 2.73 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.001035/0.3236, allocations: 457.8 kB / 341.9 MB, free: 2.281 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006649/0.3242, allocations: 391.3 kB / 342.2 MB, free: 1.887 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3242, allocations: 0.9375 kB / 342.2 MB, free: 1.887 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.3246, allocations: 243.5 kB / 342.5 MB, free: 1.637 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005606/0.3251, allocations: 81.91 kB / 342.6 MB, free: 1.555 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.3267, allocations: 0.9309 MB / 343.5 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004707/0.3271, allocations: 0.8436 MB / 344.3 MB, free: 15.72 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.3274, allocations: 83.48 kB / 344.4 MB, free: 15.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.3275, allocations: 43.42 kB / 344.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3275, allocations: 0 / 344.4 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Templates: time 0.01024/0.3377, allocations: 5.118 MB / 349.6 MB, free: 10.48 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)