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_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.04e-05, allocations: 0 / 255.4 MB, free: 2.711 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.07997, allocations: 44.5 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3521/0.4321, allocations: 75.09 MB / 375 MB, free: 22.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.4324, allocations: 64.53 kB / 375 MB, free: 22.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01979/0.4522, allocations: 4.933 MB / 380 MB, free: 22 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.358e-06/0.4523, allocations: 0 / 380 MB, free: 22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.332e-05/0.4523, allocations: 12.56 kB / 380 MB, free: 22 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001005/0.4533, allocations: 0.6501 MB / 380.6 MB, free: 21.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4534, allocations: 8.906 kB / 380.6 MB, free: 21.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4535, allocations: 43.44 kB / 380.7 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.454, allocations: 297.7 kB / 381 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.448e-05/0.4541, allocations: 57.03 kB / 381 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.436e-05/0.4542, allocations: 42.44 kB / 381.1 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007629/0.4549, allocations: 392.5 kB / 381.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.455, allocations: 0 / 381.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.795e-05/0.455, allocations: 21.66 kB / 381.5 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.311e-05/0.4551, allocations: 17.58 kB / 381.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005386/0.4556, allocations: 221.7 kB / 381.7 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.4577, allocations: 1.572 MB / 383.3 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.4583, allocations: 264 kB / 383.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002494/0.4586, allocations: 129.1 kB / 383.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-05/0.4587, allocations: 15.09 kB / 383.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004969/0.4592, allocations: 344.1 kB / 384 MB, free: 19.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.812e-06/0.4592, allocations: 0 / 384 MB, free: 19.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008912/0.4601, allocations: 406 kB / 384.4 MB, free: 19.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.4602, allocations: 199.1 kB / 384.6 MB, free: 19.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.4605, allocations: 263.7 kB / 384.9 MB, free: 19.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/0.4606, allocations: 39.61 kB / 384.9 MB, free: 19.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.4607, allocations: 187.3 kB / 385.1 MB, free: 19.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.359e-05/0.4608, allocations: 78.02 kB / 385.2 MB, free: 19.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.4609, allocations: 10.12 kB / 385.2 MB, free: 19.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.8e-05/0.461, allocations: 345 kB / 385.5 MB, free: 18.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.4612, allocations: 107 kB / 385.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.4616, allocations: 234.1 kB / 385.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.4619, allocations: 227.1 kB / 386.1 MB, free: 18.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.113e-06/0.4619, allocations: 1.375 kB / 386.1 MB, free: 18.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009653/0.4629, allocations: 0.4892 MB / 386.5 MB, free: 18.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.833e-05/0.463, allocations: 94.83 kB / 386.6 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.463, allocations: 3.781 kB / 386.6 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.971e-05/0.4631, allocations: 14.48 kB / 386.7 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.4632, allocations: 32.17 kB / 386.7 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.4632, allocations: 6.625 kB / 386.7 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.4636, allocations: 41.62 kB / 386.7 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.4636, allocations: 23.41 kB / 386.8 MB, free: 18.18 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 3 * 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.0002065/0.4639, allocations: 225.6 kB / 387 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.505e-05/0.464, allocations: 36.22 kB / 387 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005557/0.4645, allocations: 240.2 kB / 387.2 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.895e-06/0.4646, allocations: 2.875 kB / 387.2 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4646, allocations: 6.203 kB / 387.3 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.361e-06/0.4646, allocations: 3.703 kB / 387.3 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.4662, allocations: 0.9771 MB / 388.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.747e-06/0.4662, allocations: 1.531 kB / 388.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/0.4663, allocations: 19.89 kB / 388.3 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-06/0.4663, allocations: 5.656 kB / 388.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.134e-05/0.4663, allocations: 14.33 kB / 388.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.299e-06/0.4663, allocations: 1.625 kB / 388.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.4664, allocations: 6.031 kB / 388.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008632/0.4672, allocations: 0.6259 MB / 388.9 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.4673, allocations: 107.7 kB / 389 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.716e-05/0.4674, allocations: 10.28 kB / 389 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/0.4677, allocations: 34.59 kB / 389.1 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.4679, allocations: 40 kB / 389.1 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.344e-05/0.4679, allocations: 15.72 kB / 389.1 MB, free: 17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002052/0.4682, allocations: 173.8 kB / 389.3 MB, free: 16.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.78e-07/0.4682, allocations: 1.375 kB / 389.3 MB, free: 16.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007091/0.4689, allocations: 105.4 kB / 389.4 MB, free: 16.91 MB / 314.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: 38 (onDelay.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulsStart,booleanPulse2.pulsStart,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: 14 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,rSFlipFlop.pre.u,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay.t_next,onDelay.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.0002916/0.4692, allocations: 172.8 kB / 389.6 MB, free: 16.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007939/0.47, allocations: 486.7 kB / 390 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.683e-06/0.47, allocations: 4.812 kB / 390 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000393/0.4704, allocations: 296.2 kB / 390.3 MB, free: 16.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.471, allocations: 49.64 kB / 390.4 MB, free: 16.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.4721, allocations: 470.7 kB / 390.8 MB, free: 16.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.4724, allocations: 0.8014 MB / 391.6 MB, free: 15.58 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.4726, allocations: 60.31 kB / 391.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.813e-05/0.4727, allocations: 34.41 kB / 391.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of SimCode: time 1.921e-06/0.4727, allocations: 0 / 391.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of Templates: time 0.01016/0.4829, allocations: 3.519 MB / 395.2 MB, free: 15.25 MB / 314.7 MB