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_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.18e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2504, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.3999, allocations: 74.43 MB / 368.5 MB, free: 7.547 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4002, allocations: 71.91 kB / 368.6 MB, free: 7.477 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01959/0.4198, allocations: 4.89 MB / 373.5 MB, free: 2.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.101e-06/0.4198, allocations: 0 / 373.5 MB, free: 2.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.387e-05/0.4199, allocations: 12 kB / 373.5 MB, free: 2.555 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.001086/0.421, allocations: 0.6531 MB / 374.2 MB, free: 1.836 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.421, allocations: 8.031 kB / 374.2 MB, free: 1.828 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.4212, allocations: 43.53 kB / 374.2 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.4217, allocations: 293.5 kB / 374.5 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.642e-05/0.4218, allocations: 46.47 kB / 374.5 MB, free: 1.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.118e-05/0.4219, allocations: 24 kB / 374.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005677/0.4225, allocations: 209.4 kB / 374.8 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.4232, allocations: 347.5 kB / 375.1 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.4232, allocations: 4 kB / 375.1 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.4233, allocations: 7.984 kB / 375.1 MB, free: 0.793 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.4233, allocations: 8.438 kB / 375.1 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.4257, allocations: 1.499 MB / 376.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.4264, allocations: 256 kB / 376.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000243/0.4266, allocations: 115 kB / 377 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.265e-05/0.4267, allocations: 15.88 kB / 377 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005411/0.4273, allocations: 333.2 kB / 377.3 MB, free: 14.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 3.629e-06/0.4273, allocations: 0 / 377.3 MB, free: 14.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001028/0.4283, allocations: 332.5 kB / 377.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.4285, allocations: 195.9 kB / 377.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.4289, allocations: 249.9 kB / 378.1 MB, free: 13.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/0.4289, allocations: 37.7 kB / 378.1 MB, free: 13.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.4291, allocations: 235.1 kB / 378.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.4293, allocations: 83.09 kB / 378.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.4293, allocations: 0 / 378.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4295, allocations: 326.8 kB / 378.8 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.4297, allocations: 105.1 kB / 378.9 MB, free: 12.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003441/0.4301, allocations: 219 kB / 379.1 MB, free: 12.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.4306, allocations: 127.2 kB / 379.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.317e-06/0.4306, allocations: 0 / 379.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001068/0.4317, allocations: 393 kB / 379.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.101e-05/0.4318, allocations: 93.09 kB / 379.7 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4319, allocations: 4 kB / 379.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.4319, allocations: 4 kB / 379.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.432, allocations: 35.86 kB / 379.7 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.4321, allocations: 11.98 kB / 379.7 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.4324, allocations: 32.12 kB / 379.8 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.887e-05/0.4325, allocations: 24 kB / 379.8 MB, free: 11.83 MB / 330.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.000264/0.4328, allocations: 213.2 kB / 380 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/0.4329, allocations: 35.62 kB / 380 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007099/0.4336, allocations: 227.7 kB / 380.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.4336, allocations: 4 kB / 380.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4336, allocations: 8 kB / 380.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.401e-06/0.4336, allocations: 0 / 380.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.4354, allocations: 0.8492 MB / 381.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.685e-06/0.4355, allocations: 8 kB / 381.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.4356, allocations: 11.94 kB / 381.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.4356, allocations: 4 kB / 381.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.136e-05/0.4356, allocations: 11.94 kB / 381.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.106e-06/0.4357, allocations: 4 kB / 381.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.328e-06/0.4357, allocations: 0 / 381.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.4367, allocations: 0.5551 MB / 381.7 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.844e-05/0.4369, allocations: 100.7 kB / 381.8 MB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/0.437, allocations: 11.98 kB / 381.8 MB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.4373, allocations: 19.98 kB / 381.8 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.4375, allocations: 39.94 kB / 381.9 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.703e-05/0.4375, allocations: 16 kB / 381.9 MB, free: 9.605 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002181/0.4378, allocations: 166 kB / 382 MB, free: 9.441 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.193e-06/0.4378, allocations: 0 / 382 MB, free: 9.441 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007033/0.4385, allocations: 88.06 kB / 382.1 MB, free: 9.355 MB / 330.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.0003541/0.4389, allocations: 169.4 kB / 382.3 MB, free: 9.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008431/0.4397, allocations: 470 kB / 382.8 MB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.633e-06/0.4397, allocations: 0 / 382.8 MB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004546/0.4402, allocations: 294.7 kB / 383 MB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.4407, allocations: 40.72 kB / 383.1 MB, free: 8.336 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.442, allocations: 487 kB / 383.6 MB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005454/0.4425, allocations: 0.8033 MB / 384.4 MB, free: 6.992 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.4427, allocations: 39.42 kB / 384.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of SimCode: time 1.906e-06/0.4427, allocations: 0 / 384.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of Templates: time 0.009768/0.4525, allocations: 4.506 MB / 388.9 MB, free: 2.445 MB / 330.7 MB