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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 2.179/2.179, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.254e-05, allocations: 10.5 kB / 292.7 MB, free: 8.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1405, allocations: 50.42 MB / 343.1 MB, free: 5.938 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4594/0.5999, allocations: 84.11 MB / 427.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.6002, allocations: 70.72 kB / 427.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03722/0.6374, allocations: 9.193 MB / 436.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6374, allocations: 0 / 436.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.677e-05/0.6375, allocations: 15.94 kB / 436.5 MB, free: 2.332 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.00135/0.6389, allocations: 0.7224 MB / 437.2 MB, free: 1.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.6389, allocations: 8.031 kB / 437.2 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.6391, allocations: 59.3 kB / 437.2 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000794/0.6399, allocations: 390.5 kB / 437.6 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.778e-05/0.64, allocations: 56.42 kB / 437.7 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.764e-05/0.6401, allocations: 41.94 kB / 437.7 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008078/0.6409, allocations: 399.9 kB / 438.1 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.6409, allocations: 0 / 438.1 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.641, allocations: 26.22 kB / 438.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.6e-05/0.641, allocations: 16.39 kB / 438.2 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005591/0.6416, allocations: 232.9 kB / 438.4 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.6444, allocations: 1.677 MB / 440.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006623/0.6451, allocations: 277.1 kB / 440.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/0.6454, allocations: 121.8 kB / 440.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.368e-05/0.6454, allocations: 24.05 kB / 440.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005862/0.6461, allocations: 313.2 kB / 440.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.907e-06/0.6461, allocations: 0 / 440.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.0009287/0.647, allocations: 366.2 kB / 441.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.6472, allocations: 166.2 kB / 441.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/0.6479, allocations: 436.4 kB / 441.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.654e-05/0.648, allocations: 43.89 kB / 441.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.6482, allocations: 239.2 kB / 442 MB, free: 13.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.6484, allocations: 75.92 kB / 442.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.6484, allocations: 10.94 kB / 442.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.6486, allocations: 363.3 kB / 442.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.6489, allocations: 105.2 kB / 442.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004014/0.6493, allocations: 259.6 kB / 442.8 MB, free: 12.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.6497, allocations: 160.2 kB / 443 MB, free: 12.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.6497, allocations: 0 / 443 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001015/0.6507, allocations: 452.1 kB / 443.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.68e-05/0.6508, allocations: 37.23 kB / 443.4 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.6508, allocations: 4 kB / 443.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.6509, allocations: 12 kB / 443.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.6511, allocations: 47.78 kB / 443.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/0.6511, allocations: 7.938 kB / 443.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.6515, allocations: 42.38 kB / 443.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/0.6516, allocations: 18.69 kB / 443.6 MB, free: 11.88 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.0002528/0.6518, allocations: 199 kB / 443.8 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.652, allocations: 51.38 kB / 443.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000933/0.6529, allocations: 395.8 kB / 444.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.6529, allocations: 4 kB / 444.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.653, allocations: 4 kB / 444.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.653, allocations: 19.92 kB / 444.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.6545, allocations: 0.7888 MB / 445 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.226e-06/0.6546, allocations: 0 / 445 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.6547, allocations: 15.98 kB / 445 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.6547, allocations: 4 kB / 445 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.6548, allocations: 14.67 kB / 445 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.138e-05/0.6548, allocations: 11.94 kB / 445.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.061e-06/0.6548, allocations: 3.953 kB / 445.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009591/0.6558, allocations: 0.5081 MB / 445.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.656, allocations: 139.4 kB / 445.7 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.55e-05/0.6561, allocations: 15.05 kB / 445.7 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000315/0.6564, allocations: 31.48 kB / 445.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.6566, allocations: 39.56 kB / 445.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.745e-05/0.6566, allocations: 19.64 kB / 445.8 MB, free: 9.863 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004954/0.6571, allocations: 314.4 kB / 446.1 MB, free: 9.625 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.07e-07/0.6572, allocations: 0 / 446.1 MB, free: 9.625 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006976/0.6579, allocations: 113.2 kB / 446.2 MB, free: 9.527 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.001573/0.6595, allocations: 466 kB / 446.7 MB, free: 9.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008368/0.6603, allocations: 376.9 kB / 447 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.6603, allocations: 0 / 447 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004205/0.6608, allocations: 233.9 kB / 447.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.6614, allocations: 79.38 kB / 447.4 MB, free: 8.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.6629, allocations: 0.5956 MB / 447.9 MB, free: 8.117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006353/0.6635, allocations: 0.8556 MB / 448.8 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003247/0.6639, allocations: 87.59 kB / 448.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.664, allocations: 47.36 kB / 448.9 MB, free: 7.105 MB / 362.7 MB Notification: Performance of SimCode: time 1.639e-06/0.6641, allocations: 0 / 448.9 MB, free: 7.105 MB / 362.7 MB Notification: Performance of Templates: time 0.01536/0.6794, allocations: 5.09 MB / 454 MB, free: 2.059 MB / 362.7 MB