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_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.98e-05/3.002e-05, allocations: 7.984 kB / 225 MB, free: 2.793 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.214, allocations: 38.76 MB / 263.7 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3212, allocations: 69.78 MB / 333.5 MB, free: 3.996 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.3215, allocations: 63.97 kB / 333.6 MB, free: 3.934 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02077/0.3423, allocations: 4.937 MB / 338.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3423, allocations: 0 / 338.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.176e-05/0.3424, allocations: 12 kB / 338.5 MB, free: 14.96 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.00114/0.3435, allocations: 0.6415 MB / 339.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.3436, allocations: 8.031 kB / 339.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.3437, allocations: 51.38 kB / 339.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005359/0.3442, allocations: 285.6 kB / 339.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.3444, allocations: 66.42 kB / 339.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-05/0.3445, allocations: 40 kB / 339.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008924/0.3454, allocations: 383.5 kB / 340 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3454, allocations: 11.94 kB / 340 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.3455, allocations: 16 kB / 340 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.804e-05/0.3455, allocations: 12.44 kB / 340 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005987/0.3461, allocations: 236.7 kB / 340.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.3487, allocations: 1.569 MB / 341.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/0.3493, allocations: 264 kB / 342.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.3496, allocations: 122.5 kB / 342.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.204e-05/0.3497, allocations: 19.98 kB / 342.2 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.3503, allocations: 341.6 kB / 342.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.28e-06/0.3503, allocations: 0 / 342.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009302/0.3512, allocations: 403.6 kB / 343 MB, free: 10.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.3514, allocations: 199.8 kB / 343.2 MB, free: 9.973 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.3518, allocations: 258.9 kB / 343.4 MB, free: 9.703 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.3519, allocations: 45.69 kB / 343.4 MB, free: 9.652 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.3521, allocations: 239.1 kB / 343.7 MB, free: 9.418 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3522, allocations: 79.05 kB / 343.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.3523, allocations: 12 kB / 343.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.3525, allocations: 334.8 kB / 344.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.3528, allocations: 101.1 kB / 344.2 MB, free: 8.895 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.3532, allocations: 235 kB / 344.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003833/0.3536, allocations: 221 kB / 344.6 MB, free: 8.379 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.748e-06/0.3536, allocations: 4 kB / 344.6 MB, free: 8.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00103/0.3546, allocations: 490 kB / 345.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.09e-05/0.3547, allocations: 93.53 kB / 345.2 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.3548, allocations: 8 kB / 345.2 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.3548, allocations: 8 kB / 345.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.355, allocations: 35.84 kB / 345.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.839e-05/0.355, allocations: 12.06 kB / 345.3 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.3553, allocations: 35.89 kB / 345.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.911e-05/0.3554, allocations: 24 kB / 345.3 MB, free: 7.641 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.0002821/0.3557, allocations: 232.7 kB / 345.6 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.926e-05/0.3558, allocations: 31.62 kB / 345.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006199/0.3564, allocations: 242 kB / 345.8 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-06/0.3564, allocations: 4 kB / 345.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.748e-06/0.3565, allocations: 3.938 kB / 345.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.3565, allocations: 7.984 kB / 345.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.3584, allocations: 0.9809 MB / 346.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.693e-06/0.3584, allocations: 0 / 346.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.252e-05/0.3585, allocations: 19.92 kB / 346.8 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.512e-06/0.3585, allocations: 0 / 346.8 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/0.3585, allocations: 15.98 kB / 346.9 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.242e-06/0.3586, allocations: 7.953 kB / 346.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.329e-06/0.3586, allocations: 4 kB / 346.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.3596, allocations: 0.63 MB / 347.5 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.3598, allocations: 108.7 kB / 347.6 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.08e-05/0.3599, allocations: 16 kB / 347.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003511/0.3602, allocations: 31.97 kB / 347.7 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.3604, allocations: 39.94 kB / 347.7 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.3604, allocations: 12 kB / 347.7 MB, free: 5.113 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002558/0.3607, allocations: 179.1 kB / 347.9 MB, free: 4.938 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.3607, allocations: 0 / 347.9 MB, free: 4.938 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007054/0.3614, allocations: 104.1 kB / 348 MB, free: 4.836 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.0003403/0.3618, allocations: 173.3 kB / 348.2 MB, free: 4.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009221/0.3627, allocations: 483 kB / 348.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3628, allocations: 0 / 348.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005027/0.3633, allocations: 302.8 kB / 348.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.3638, allocations: 52.42 kB / 349 MB, free: 3.785 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.3651, allocations: 0.4951 MB / 349.5 MB, free: 3.254 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005594/0.3657, allocations: 0.8075 MB / 350.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3659, allocations: 31.42 kB / 350.3 MB, free: 2.391 MB / 298.7 MB Notification: Performance of SimCode: time 1.848e-06/0.3659, allocations: 4 kB / 350.3 MB, free: 2.387 MB / 298.7 MB Notification: Performance of Templates: time 0.0099/0.3758, allocations: 4.53 MB / 354.8 MB, free: 13.86 MB / 314.7 MB