Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001604/0.001604, allocations: 111.8 kB / 17.06 MB, free: 6.004 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.001614/0.001614, allocations: 198.9 kB / 18 MB, free: 5.082 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.564/1.564, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001671/0.001671, allocations: 55.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.143, allocations: 46.62 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004435/0.1475, allocations: 2.444 MB / 376.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.1498, allocations: 1.255 MB / 378.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.15, allocations: 7.938 kB / 378.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008054/0.1509, allocations: 235 kB / 378.4 MB, free: 0.6094 MB / 318.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.000378/0.1512, allocations: 155.2 kB / 378.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006757/0.1519, allocations: 271.3 kB / 378.8 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.3187/0.4706, allocations: 476.1 kB / 379.3 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005843/0.4713, allocations: 214.2 kB / 379.5 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004536/0.4717, allocations: 197.2 kB / 379.7 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004388/0.4722, allocations: 208.4 kB / 379.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.4723, allocations: 37.22 kB / 379.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005597/0.4729, allocations: 123.5 kB / 380.1 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.4731, allocations: 130.9 kB / 380.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002674/0.4734, allocations: 219.7 kB / 380.4 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.4745, allocations: 0.5594 MB / 381 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4745, allocations: 0 / 381 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4745, allocations: 3.562 kB / 381 MB, free: 9.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.4745, allocations: 0 / 381 MB, free: 9.594 MB / 318.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.001803/0.4763, allocations: 0.8455 MB / 381.8 MB, free: 8.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.4764, allocations: 9.344 kB / 381.8 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.4765, allocations: 60.91 kB / 381.9 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007318/0.4773, allocations: 398.9 kB / 382.3 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.4774, allocations: 59.14 kB / 382.3 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.477e-05/0.4775, allocations: 37.98 kB / 382.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007956/0.4783, allocations: 430 kB / 382.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.4783, allocations: 5.719 kB / 382.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.4784, allocations: 16.92 kB / 382.8 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-05/0.4784, allocations: 17.05 kB / 382.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006169/0.4791, allocations: 263.5 kB / 383.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/0.4812, allocations: 1.667 MB / 384.8 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.4819, allocations: 295 kB / 385 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.4821, allocations: 133.3 kB / 385.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.995e-05/0.4822, allocations: 16.05 kB / 385.2 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005307/0.4828, allocations: 330.5 kB / 385.5 MB, free: 7.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.344e-06/0.4828, allocations: 1.844 kB / 385.5 MB, free: 7.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001115/0.4839, allocations: 487.7 kB / 386 MB, free: 7.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.431e-05/0.484, allocations: 162.2 kB / 386.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006672/0.4847, allocations: 493.4 kB / 386.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.4847, allocations: 40.66 kB / 386.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.4849, allocations: 229.3 kB / 386.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.851e-05/0.485, allocations: 86.55 kB / 387 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.4852, allocations: 121 kB / 387.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.4854, allocations: 362.2 kB / 387.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.4857, allocations: 112.5 kB / 387.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.4861, allocations: 269.6 kB / 387.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006684/0.4867, allocations: 424 kB / 388.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4867, allocations: 1.922 kB / 388.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009696/0.4877, allocations: 476.1 kB / 388.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.283e-05/0.4878, allocations: 36.36 kB / 388.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.4878, allocations: 4.531 kB / 388.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.498e-05/0.4879, allocations: 6.094 kB / 388.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.488, allocations: 44.55 kB / 388.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.108e-05/0.4881, allocations: 16.61 kB / 388.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.4884, allocations: 52.92 kB / 388.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.4884, allocations: 24 kB / 388.9 MB, free: 5.121 MB / 318.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.0003021/0.4887, allocations: 250.9 kB / 389.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.158e-05/0.4888, allocations: 46.36 kB / 389.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000657/0.4895, allocations: 263.1 kB / 389.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.4895, allocations: 4.188 kB / 389.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.4895, allocations: 1.766 kB / 389.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.4895, allocations: 3.469 kB / 389.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.4911, allocations: 0.7771 MB / 390.2 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4911, allocations: 1.344 kB / 390.2 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.918e-05/0.4912, allocations: 20.48 kB / 390.2 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.4912, allocations: 1.25 kB / 390.2 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.4913, allocations: 16.73 kB / 390.3 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.4913, allocations: 6.266 kB / 390.3 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.4913, allocations: 8.906 kB / 390.3 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.4923, allocations: 0.5057 MB / 390.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.4925, allocations: 128.5 kB / 390.9 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.203e-05/0.4926, allocations: 10.47 kB / 390.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.4928, allocations: 26.03 kB / 390.9 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.493, allocations: 46.42 kB / 391 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.493, allocations: 14.91 kB / 391 MB, free: 3.859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000524/0.4936, allocations: 323.7 kB / 391.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4936, allocations: 0 / 391.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006715/0.4943, allocations: 119 kB / 391.4 MB, free: 3.68 MB / 318.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.001402/0.4957, allocations: 476.4 kB / 391.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009223/0.4966, allocations: 399.5 kB / 392.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4966, allocations: 0 / 392.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004464/0.4971, allocations: 241.4 kB / 392.5 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/0.4977, allocations: 81.5 kB / 392.6 MB, free: 3.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.4994, allocations: 0.7728 MB / 393.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.4999, allocations: 0.8366 MB / 394.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002288/0.5001, allocations: 81.17 kB / 394.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.5003, allocations: 43.97 kB / 394.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5003, allocations: 0 / 394.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of Templates: time 0.01527/0.5155, allocations: 5.672 MB / 400 MB, free: 0.5586 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)