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.777/1.777, allocations: 194.9 MB / 208.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.698e-05/2.704e-05, allocations: 3.469 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08392/0.08396, allocations: 44.51 MB / 299.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.317/0.4011, allocations: 75.09 MB / 374.9 MB, free: 22.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.4013, allocations: 64.03 kB / 375 MB, free: 22.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01892/0.4202, allocations: 4.928 MB / 379.9 MB, free: 22.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.296e-06/0.4203, allocations: 0 / 379.9 MB, free: 22.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.4203, allocations: 16.12 kB / 380 MB, free: 22.04 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.0008793/0.4212, allocations: 0.6447 MB / 380.6 MB, free: 21.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.4213, allocations: 8.656 kB / 380.6 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.4214, allocations: 43.78 kB / 380.6 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.4218, allocations: 304.1 kB / 380.9 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.892e-05/0.4219, allocations: 58.08 kB / 381 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.007e-05/0.422, allocations: 40.12 kB / 381 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007172/0.4227, allocations: 392.5 kB / 381.4 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.4228, allocations: 0 / 381.4 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.867e-05/0.4228, allocations: 17.58 kB / 381.4 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.4229, allocations: 12.28 kB / 381.5 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005319/0.4234, allocations: 229.2 kB / 381.7 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.4254, allocations: 1.578 MB / 383.3 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.4259, allocations: 261.1 kB / 383.5 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002377/0.4262, allocations: 125.6 kB / 383.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.546e-05/0.4262, allocations: 13.88 kB / 383.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004372/0.4267, allocations: 342.3 kB / 384 MB, free: 19.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.236e-06/0.4267, allocations: 0 / 384 MB, free: 19.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008095/0.4275, allocations: 405.8 kB / 384.4 MB, free: 19.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.4276, allocations: 203.1 kB / 384.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.4279, allocations: 262.1 kB / 384.8 MB, free: 19.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.873e-05/0.428, allocations: 37.67 kB / 384.9 MB, free: 19.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.4281, allocations: 238.1 kB / 385.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.774e-05/0.4282, allocations: 76.5 kB / 385.2 MB, free: 19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-05/0.4282, allocations: 10.53 kB / 385.2 MB, free: 19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.524e-05/0.4283, allocations: 332.2 kB / 385.5 MB, free: 18.69 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/0.4286, allocations: 107.8 kB / 385.6 MB, free: 18.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003124/0.4289, allocations: 233.1 kB / 385.8 MB, free: 18.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.4292, allocations: 221 kB / 386.1 MB, free: 18.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.089e-06/0.4293, allocations: 1.375 kB / 386.1 MB, free: 18.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008983/0.4302, allocations: 489.2 kB / 386.5 MB, free: 18.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.251e-05/0.4302, allocations: 94.55 kB / 386.6 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4303, allocations: 8.312 kB / 386.6 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.4303, allocations: 11.2 kB / 386.6 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.4305, allocations: 36.41 kB / 386.7 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.4305, allocations: 5.562 kB / 386.7 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.4308, allocations: 39.03 kB / 386.7 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.4309, allocations: 21.88 kB / 386.7 MB, free: 18.16 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.0001812/0.431, allocations: 227.8 kB / 387 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.4311, allocations: 36.3 kB / 387 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005138/0.4317, allocations: 237.2 kB / 387.2 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.993e-06/0.4317, allocations: 4.125 kB / 387.2 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.586e-06/0.4317, allocations: 5.328 kB / 387.2 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.788e-06/0.4317, allocations: 5.781 kB / 387.3 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.4332, allocations: 0.9835 MB / 388.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.752e-06/0.4333, allocations: 1.469 kB / 388.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.798e-05/0.4333, allocations: 13.53 kB / 388.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.292e-06/0.4333, allocations: 6.953 kB / 388.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/0.4334, allocations: 18.83 kB / 388.3 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.547e-06/0.4334, allocations: 7.359 kB / 388.3 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.122e-06/0.4334, allocations: 1.5 kB / 388.3 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008316/0.4343, allocations: 0.628 MB / 388.9 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.429e-05/0.4343, allocations: 102.6 kB / 389 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.4344, allocations: 18.94 kB / 389 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.4348, allocations: 26.59 kB / 389.1 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.4349, allocations: 40.94 kB / 389.1 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.4349, allocations: 12.16 kB / 389.1 MB, free: 16.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000181/0.4351, allocations: 178.3 kB / 389.3 MB, free: 16.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.8e-07/0.4351, allocations: 0 / 389.3 MB, free: 16.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006283/0.4358, allocations: 108.8 kB / 389.4 MB, free: 16.89 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.0002718/0.4361, allocations: 166.6 kB / 389.6 MB, free: 16.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000753/0.4368, allocations: 489.1 kB / 390 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4369, allocations: 192 / 390 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003947/0.4373, allocations: 309.4 kB / 390.3 MB, free: 16.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.4377, allocations: 45.06 kB / 390.4 MB, free: 16.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.4388, allocations: 0.4956 MB / 390.9 MB, free: 16.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.4391, allocations: 0.8022 MB / 391.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.4392, allocations: 30.94 kB / 391.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of SimCode: time 1.39e-06/0.4392, allocations: 4 kB / 391.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of Templates: time 0.007977/0.4472, allocations: 4.534 MB / 396.2 MB, free: 15.1 MB / 314.7 MB