Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.347e-05/2.354e-05, allocations: 3.984 kB / 292.1 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 50.41 MB / 342.5 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4887/0.5955, allocations: 84.11 MB / 426.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.5957, allocations: 73.64 kB / 426.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03713/0.6329, allocations: 9.178 MB / 435.9 MB, free: 2.285 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.6329, allocations: 0 / 435.9 MB, free: 2.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.4e-05/0.633, allocations: 12 kB / 435.9 MB, free: 2.273 MB / 346.7 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.001382/0.6344, allocations: 0.7263 MB / 436.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.6344, allocations: 8.031 kB / 436.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.6346, allocations: 63.3 kB / 436.7 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008041/0.6354, allocations: 382.5 kB / 437.1 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.615e-05/0.6355, allocations: 68.91 kB / 437.2 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.642e-05/0.6356, allocations: 37.56 kB / 437.2 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008295/0.6365, allocations: 406.2 kB / 437.6 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.6365, allocations: 0 / 437.6 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.361e-05/0.6366, allocations: 21.36 kB / 437.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.238e-05/0.6366, allocations: 16.39 kB / 437.6 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005929/0.6372, allocations: 240 kB / 437.9 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00264/0.6399, allocations: 1.669 MB / 439.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006414/0.6405, allocations: 285.9 kB / 439.8 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002813/0.6408, allocations: 120.8 kB / 439.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.26e-05/0.6409, allocations: 20.11 kB / 440 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005413/0.6415, allocations: 312.9 kB / 440.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.734e-06/0.6415, allocations: 0 / 440.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0008875/0.6424, allocations: 366.9 kB / 440.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.6426, allocations: 174 kB / 440.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007149/0.6433, allocations: 437 kB / 441.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.093e-05/0.6434, allocations: 44.2 kB / 441.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.6436, allocations: 231.6 kB / 441.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.6437, allocations: 81.8 kB / 441.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.6438, allocations: 9.812 kB / 441.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.644, allocations: 362.2 kB / 441.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.6443, allocations: 106.7 kB / 442 MB, free: 12.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.6447, allocations: 255 kB / 442.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003382/0.6451, allocations: 163.3 kB / 442.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.674e-06/0.6451, allocations: 0 / 442.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001026/0.6461, allocations: 449.1 kB / 442.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.805e-05/0.6462, allocations: 41.67 kB / 442.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.6462, allocations: 4 kB / 442.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/0.6462, allocations: 8 kB / 442.9 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.6465, allocations: 47.78 kB / 443 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.322e-05/0.6465, allocations: 7.938 kB / 443 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.6469, allocations: 43 kB / 443 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.735e-05/0.6469, allocations: 21.31 kB / 443 MB, free: 11.82 MB / 362.7 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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002424/0.6472, allocations: 197.1 kB / 443.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.6473, allocations: 47.44 kB / 443.3 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009385/0.6483, allocations: 402.3 kB / 443.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.71e-06/0.6483, allocations: 8 kB / 443.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-06/0.6483, allocations: 0 / 443.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.442e-06/0.6483, allocations: 7.938 kB / 443.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.6499, allocations: 0.7903 MB / 444.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.882e-06/0.6499, allocations: 0 / 444.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.65, allocations: 19.92 kB / 444.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.6501, allocations: 4 kB / 444.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.6501, allocations: 19.11 kB / 444.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.641e-06/0.6501, allocations: 4 kB / 444.5 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.6501, allocations: 3.953 kB / 444.5 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009477/0.6511, allocations: 0.5111 MB / 445 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.6513, allocations: 143.7 kB / 445.2 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.6514, allocations: 21.55 kB / 445.2 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003103/0.6517, allocations: 30.42 kB / 445.2 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.6519, allocations: 35.62 kB / 445.3 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.652, allocations: 19.05 kB / 445.3 MB, free: 9.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005075/0.6525, allocations: 313.6 kB / 445.6 MB, free: 9.559 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.78e-07/0.6525, allocations: 4 kB / 445.6 MB, free: 9.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007159/0.6532, allocations: 111 kB / 445.7 MB, free: 9.461 MB / 362.7 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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/0.6548, allocations: 458.2 kB / 446.2 MB, free: 9.129 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008601/0.6557, allocations: 379.2 kB / 446.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.542e-06/0.6557, allocations: 0.9375 kB / 446.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004295/0.6561, allocations: 231.6 kB / 446.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.6567, allocations: 82.12 kB / 446.8 MB, free: 8.586 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.6583, allocations: 0.5894 MB / 447.4 MB, free: 8.055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006514/0.6589, allocations: 0.8624 MB / 448.3 MB, free: 7.168 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002982/0.6592, allocations: 83.03 kB / 448.4 MB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.6594, allocations: 46.55 kB / 448.4 MB, free: 7.047 MB / 362.7 MB Notification: Performance of SimCode: time 1.481e-06/0.6594, allocations: 3.938 kB / 448.4 MB, free: 7.043 MB / 362.7 MB Notification: Performance of Templates: time 0.01798/0.6774, allocations: 5.104 MB / 453.5 MB, free: 1.98 MB / 362.7 MB