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.1_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 171.2 MB / 183.3 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.086e-05/5.109e-05, allocations: 0 / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2562, allocations: 38.77 MB / 263.8 MB, free: 9.812 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.3752, allocations: 69.79 MB / 333.6 MB, free: 3.926 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003531/0.3756, allocations: 67.97 kB / 333.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02209/0.3977, allocations: 4.934 MB / 338.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.239e-06/0.3977, allocations: 0 / 338.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.997e-05/0.3978, allocations: 16 kB / 338.6 MB, free: 14.89 MB / 298.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.001129/0.3989, allocations: 0.6415 MB / 339.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.399, allocations: 8.031 kB / 339.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.3991, allocations: 47.44 kB / 339.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005203/0.3997, allocations: 293.6 kB / 339.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.3998, allocations: 66.36 kB / 339.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.167e-05/0.3999, allocations: 40 kB / 339.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008311/0.4007, allocations: 395.5 kB / 340 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.4008, allocations: 0 / 340 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.957e-05/0.4008, allocations: 12 kB / 340.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.309e-05/0.4009, allocations: 12.44 kB / 340.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005805/0.4015, allocations: 232.7 kB / 340.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/0.404, allocations: 1.581 MB / 341.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006344/0.4047, allocations: 248 kB / 342.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.405, allocations: 130.5 kB / 342.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.404e-05/0.4051, allocations: 12 kB / 342.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005904/0.4057, allocations: 345.6 kB / 342.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.61e-06/0.4057, allocations: 0 / 342.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.000944/0.4066, allocations: 403.6 kB / 343 MB, free: 10.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.4068, allocations: 199.9 kB / 343.2 MB, free: 9.902 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.4072, allocations: 258.8 kB / 343.4 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.4073, allocations: 41.7 kB / 343.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.4075, allocations: 196 kB / 343.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.4076, allocations: 75.05 kB / 343.7 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.4077, allocations: 12 kB / 343.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4079, allocations: 346.8 kB / 344.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.4082, allocations: 109.1 kB / 344.2 MB, free: 8.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/0.4086, allocations: 231 kB / 344.4 MB, free: 8.578 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003727/0.4089, allocations: 217 kB / 344.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-06/0.409, allocations: 3.984 kB / 344.6 MB, free: 8.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001046/0.41, allocations: 0.4905 MB / 345.1 MB, free: 7.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.526e-05/0.4101, allocations: 97.12 kB / 345.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.4102, allocations: 8 kB / 345.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.4102, allocations: 4 kB / 345.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.4104, allocations: 39.84 kB / 345.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.4104, allocations: 8.078 kB / 345.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.4107, allocations: 31.89 kB / 345.3 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-05/0.4108, allocations: 27.98 kB / 345.3 MB, free: 7.598 MB / 298.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.000299/0.4111, allocations: 236.1 kB / 345.6 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.4112, allocations: 31.62 kB / 345.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005953/0.4118, allocations: 231.6 kB / 345.8 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4118, allocations: 7.938 kB / 345.8 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.591e-06/0.4119, allocations: 4.062 kB / 345.8 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.766e-06/0.4119, allocations: 8.031 kB / 345.8 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.4137, allocations: 0.9862 MB / 346.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.066e-06/0.4138, allocations: 0 / 346.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.4138, allocations: 15.92 kB / 346.8 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.641e-06/0.4139, allocations: 0 / 346.8 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.384e-05/0.4139, allocations: 19.98 kB / 346.9 MB, free: 5.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.024e-06/0.4139, allocations: 3.953 kB / 346.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.532e-06/0.4139, allocations: 4 kB / 346.9 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.415, allocations: 0.6303 MB / 347.5 MB, free: 5.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.4151, allocations: 108.7 kB / 347.6 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.952e-05/0.4152, allocations: 12 kB / 347.6 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.4156, allocations: 31.97 kB / 347.7 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.4157, allocations: 35.94 kB / 347.7 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.4158, allocations: 20 kB / 347.7 MB, free: 5.066 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000242/0.416, allocations: 171.1 kB / 347.9 MB, free: 4.898 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.4161, allocations: 4 kB / 347.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007005/0.4168, allocations: 104.1 kB / 348 MB, free: 4.793 MB / 298.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.0003602/0.4172, allocations: 173.3 kB / 348.2 MB, free: 4.617 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000898/0.4181, allocations: 482.8 kB / 348.6 MB, free: 4.109 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.292e-06/0.4181, allocations: 320 / 348.6 MB, free: 4.109 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004767/0.4186, allocations: 302.7 kB / 348.9 MB, free: 3.789 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.4191, allocations: 40.53 kB / 349 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.4203, allocations: 481.2 kB / 349.4 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005544/0.4209, allocations: 0.7958 MB / 350.2 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.4211, allocations: 67.12 kB / 350.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.4213, allocations: 35.42 kB / 350.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of SimCode: time 1.827e-06/0.4213, allocations: 0 / 350.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of Templates: time 0.01143/0.4327, allocations: 3.518 MB / 353.8 MB, free: 14.82 MB / 314.7 MB