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.633/1.633, allocations: 171.2 MB / 185.7 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.526e-05, allocations: 4 kB / 228.1 MB, free: 7.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07787/0.07792, allocations: 38.77 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002914/0.08089, allocations: 1.688 MB / 268.6 MB, free: 14.78 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.08264, allocations: 0.7564 MB / 269.3 MB, free: 14.02 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.08281, allocations: 19.94 kB / 269.4 MB, free: 14 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.08296, allocations: 27.7 kB / 269.4 MB, free: 13.97 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.08313, allocations: 47.75 kB / 269.4 MB, free: 13.93 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000616/0.08375, allocations: 151.7 kB / 269.6 MB, free: 13.78 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.08405, allocations: 164.6 kB / 269.8 MB, free: 13.62 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.08434, allocations: 116.2 kB / 269.9 MB, free: 13.5 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.08447, allocations: 75.77 kB / 269.9 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.08464, allocations: 99.53 kB / 270 MB, free: 13.33 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.08487, allocations: 79.88 kB / 270.1 MB, free: 13.25 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.963e-05/0.08495, allocations: 12 kB / 270.1 MB, free: 13.24 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.906e-05/0.08506, allocations: 59.77 kB / 270.2 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.934e-05/0.08514, allocations: 27.94 kB / 270.2 MB, free: 13.15 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.08558, allocations: 263.7 kB / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.08559, allocations: 0 / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.08561, allocations: 0 / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.08562, allocations: 0 / 270.5 MB, free: 12.89 MB / 234.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.001175/0.08681, allocations: 0.6544 MB / 271.1 MB, free: 12.17 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.08686, allocations: 8.031 kB / 271.1 MB, free: 12.16 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.08698, allocations: 47.53 kB / 271.2 MB, free: 12.12 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.08747, allocations: 301.3 kB / 271.5 MB, free: 11.79 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.233e-05/0.08758, allocations: 58.31 kB / 271.5 MB, free: 11.72 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.359e-05/0.08767, allocations: 39.98 kB / 271.6 MB, free: 11.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009378/0.08863, allocations: 401.8 kB / 272 MB, free: 11.25 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.08866, allocations: 4 kB / 272 MB, free: 11.25 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.799e-05/0.08872, allocations: 19.97 kB / 272 MB, free: 11.23 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.343e-05/0.08876, allocations: 16.44 kB / 272 MB, free: 11.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007155/0.08949, allocations: 261.4 kB / 272.3 MB, free: 10.96 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.09198, allocations: 1.589 MB / 273.8 MB, free: 9.285 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007265/0.09273, allocations: 279.8 kB / 274.1 MB, free: 8.984 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-05/0.09282, allocations: 11.98 kB / 274.1 MB, free: 8.973 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006355/0.09346, allocations: 353.3 kB / 274.5 MB, free: 8.582 MB / 234.7 MB Notification: Performance of pre-optimization done (n=36): time 2.845e-06/0.09348, allocations: 0 / 274.5 MB, free: 8.582 MB / 234.7 MB Notification: Performance of matching and sorting (n=36): time 0.001475/0.09497, allocations: 0.6807 MB / 275.2 MB, free: 7.852 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.09509, allocations: 195.9 kB / 275.3 MB, free: 7.617 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.09547, allocations: 269.4 kB / 275.6 MB, free: 7.352 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.82e-05/0.09554, allocations: 41.7 kB / 275.6 MB, free: 7.305 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.09571, allocations: 188.7 kB / 275.8 MB, free: 7.117 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.09583, allocations: 79 kB / 275.9 MB, free: 7.039 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.09587, allocations: 12 kB / 275.9 MB, free: 7.027 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.09602, allocations: 342.8 kB / 276.3 MB, free: 6.684 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/0.09638, allocations: 117 kB / 276.4 MB, free: 6.566 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/0.09683, allocations: 240.1 kB / 276.6 MB, free: 6.285 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004233/0.09726, allocations: 221.1 kB / 276.8 MB, free: 6.051 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.09729, allocations: 8 kB / 276.8 MB, free: 6.043 MB / 234.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001125/0.09842, allocations: 0.5135 MB / 277.3 MB, free: 5.504 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.222e-05/0.09851, allocations: 85.55 kB / 277.4 MB, free: 5.402 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.09854, allocations: 11.98 kB / 277.4 MB, free: 5.391 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.09857, allocations: 8 kB / 277.4 MB, free: 5.383 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.09875, allocations: 27.92 kB / 277.5 MB, free: 5.355 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.09878, allocations: 11.94 kB / 277.5 MB, free: 5.344 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/0.09915, allocations: 59.53 kB / 277.5 MB, free: 5.285 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.395e-05/0.09923, allocations: 27.98 kB / 277.6 MB, free: 5.258 MB / 234.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,sampleTriggerSet.y,sampleTriggerReset.y,$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.0003213/0.09956, allocations: 253 kB / 277.8 MB, free: 4.988 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.421e-05/0.09964, allocations: 31.62 kB / 277.8 MB, free: 4.957 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007129/0.1004, allocations: 255.4 kB / 278.1 MB, free: 4.703 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.1004, allocations: 4 kB / 278.1 MB, free: 4.699 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.1004, allocations: 0 / 278.1 MB, free: 4.699 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1004, allocations: 7.938 kB / 278.1 MB, free: 4.691 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.1023, allocations: 1.004 MB / 279.1 MB, free: 3.617 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1023, allocations: 0 / 279.1 MB, free: 3.617 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.94e-05/0.1024, allocations: 15.92 kB / 279.1 MB, free: 3.602 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.1024, allocations: 11.95 kB / 279.1 MB, free: 3.59 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/0.1025, allocations: 12 kB / 279.2 MB, free: 3.578 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.1025, allocations: 3.984 kB / 279.2 MB, free: 3.574 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1025, allocations: 0 / 279.2 MB, free: 3.574 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.1037, allocations: 0.6498 MB / 279.8 MB, free: 2.879 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/0.1038, allocations: 112.7 kB / 279.9 MB, free: 2.75 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.264e-05/0.1039, allocations: 15.94 kB / 279.9 MB, free: 2.734 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003628/0.1042, allocations: 27.98 kB / 280 MB, free: 2.707 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.1044, allocations: 39.94 kB / 280 MB, free: 2.668 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/0.1045, allocations: 15.98 kB / 280 MB, free: 2.652 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002278/0.1047, allocations: 182 kB / 280.2 MB, free: 2.473 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1047, allocations: 0 / 280.2 MB, free: 2.473 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0006465/0.1054, allocations: 119.7 kB / 280.3 MB, free: 2.355 MB / 234.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,sampleTriggerSet.y,sampleTriggerReset.y,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 (falling.not_u,rising.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.0003764/0.1058, allocations: 161.5 kB / 280.5 MB, free: 2.191 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.1069, allocations: 0.4944 MB / 281 MB, free: 1.66 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1069, allocations: 0 / 281 MB, free: 1.66 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.1075, allocations: 317.8 kB / 281.3 MB, free: 1.328 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.1081, allocations: 42.56 kB / 281.3 MB, free: 1.289 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.1098, allocations: 0.7171 MB / 282 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.1102, allocations: 0.7958 MB / 282.8 MB, free: 15.71 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.1105, allocations: 58.94 kB / 282.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1106, allocations: 35.42 kB / 282.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1106, allocations: 0 / 282.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of Templates: time 0.01181/0.1224, allocations: 3.558 MB / 286.5 MB, free: 12.07 MB / 250.7 MB