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 2.072/2.072, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.971e-05, allocations: 11.91 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3111, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004397/0.3156, allocations: 1.692 MB / 305 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003/0.3187, allocations: 0.7685 MB / 305.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003466/0.3191, allocations: 15.09 kB / 305.8 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002201/0.3193, allocations: 28.84 kB / 305.8 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.3196, allocations: 51.09 kB / 305.8 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.3207, allocations: 151.8 kB / 306 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005928/0.3213, allocations: 162.4 kB / 306.1 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000422/0.3218, allocations: 118.6 kB / 306.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.322, allocations: 75.53 kB / 306.3 MB, free: 10.37 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.3223, allocations: 102.1 kB / 306.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.3227, allocations: 73.95 kB / 306.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.344e-05/0.3228, allocations: 16.53 kB / 306.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.3229, allocations: 56.08 kB / 306.6 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.3231, allocations: 22.66 kB / 306.6 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007381/0.3238, allocations: 266 kB / 306.9 MB, free: 10.05 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3238, allocations: 3.938 kB / 306.9 MB, free: 10.04 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3239, allocations: 0 / 306.9 MB, free: 10.04 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.3239, allocations: 0 / 306.9 MB, free: 10.04 MB / 250.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.001777/0.3257, allocations: 0.652 MB / 307.5 MB, free: 9.398 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.3258, allocations: 12.03 kB / 307.5 MB, free: 9.387 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.326, allocations: 47.44 kB / 307.6 MB, free: 9.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007507/0.3268, allocations: 297.4 kB / 307.9 MB, free: 9.012 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.3269, allocations: 58.34 kB / 307.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.3271, allocations: 40 kB / 308 MB, free: 8.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.3285, allocations: 397.8 kB / 308.3 MB, free: 8.484 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.3285, allocations: 11.94 kB / 308.4 MB, free: 8.473 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.032e-05/0.3286, allocations: 12 kB / 308.4 MB, free: 8.461 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.496e-05/0.3287, allocations: 16.42 kB / 308.4 MB, free: 8.445 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.3298, allocations: 261.5 kB / 308.6 MB, free: 8.188 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004042/0.3338, allocations: 1.604 MB / 310.2 MB, free: 6.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.335, allocations: 275.9 kB / 310.5 MB, free: 6.203 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.165e-05/0.3352, allocations: 7.984 kB / 310.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009924/0.3362, allocations: 357.4 kB / 310.9 MB, free: 5.801 MB / 250.7 MB Notification: Performance of pre-optimization done (n=36): time 4.188e-06/0.3362, allocations: 0 / 310.9 MB, free: 5.801 MB / 250.7 MB Notification: Performance of matching and sorting (n=36): time 0.002202/0.3384, allocations: 0.6641 MB / 311.5 MB, free: 5.086 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/0.3387, allocations: 200.1 kB / 311.7 MB, free: 4.848 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005734/0.3393, allocations: 265.4 kB / 312 MB, free: 4.578 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.99e-05/0.3394, allocations: 45.64 kB / 312 MB, free: 4.527 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.3397, allocations: 243 kB / 312.3 MB, free: 4.285 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.3398, allocations: 79.08 kB / 312.3 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-05/0.3399, allocations: 12 kB / 312.4 MB, free: 4.195 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3401, allocations: 326.8 kB / 312.7 MB, free: 3.867 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005201/0.3406, allocations: 117.3 kB / 312.8 MB, free: 3.754 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006314/0.3413, allocations: 232.1 kB / 313 MB, free: 3.477 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006241/0.3419, allocations: 228.9 kB / 313.2 MB, free: 3.234 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/0.342, allocations: 11.92 kB / 313.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00167/0.3437, allocations: 0.4983 MB / 313.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.3438, allocations: 93.19 kB / 313.8 MB, free: 2.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.3439, allocations: 7.953 kB / 313.9 MB, free: 2.582 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.288e-05/0.3439, allocations: 8 kB / 313.9 MB, free: 2.574 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.3442, allocations: 35.86 kB / 313.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/0.3442, allocations: 4 kB / 313.9 MB, free: 2.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000582/0.3448, allocations: 55.66 kB / 314 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.585e-05/0.3449, allocations: 24 kB / 314 MB, free: 2.457 MB / 250.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.000537/0.3455, allocations: 261 kB / 314.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.3456, allocations: 35.62 kB / 314.3 MB, free: 2.145 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001056/0.3467, allocations: 253.5 kB / 314.5 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.3467, allocations: 11.95 kB / 314.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.3468, allocations: 0 / 314.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/0.3468, allocations: 7.984 kB / 314.5 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.3497, allocations: 1 MB / 315.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.3497, allocations: 0 / 315.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.3498, allocations: 19.88 kB / 315.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.3499, allocations: 0 / 315.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.163e-05/0.3499, allocations: 15.98 kB / 315.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.35, allocations: 0 / 315.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.35, allocations: 4 kB / 315.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.3517, allocations: 0.6469 MB / 316.2 MB, free: 72 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.3519, allocations: 104.7 kB / 316.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.3521, allocations: 16 kB / 316.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006024/0.3527, allocations: 31.97 kB / 316.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3529, allocations: 39.8 kB / 316.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.635e-05/0.353, allocations: 24 kB / 316.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003648/0.3534, allocations: 181.9 kB / 316.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3534, allocations: 0 / 316.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001166/0.3546, allocations: 112 kB / 316.7 MB, free: 15.55 MB / 266.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.0004799/0.3551, allocations: 161.4 kB / 316.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.3564, allocations: 0.5018 MB / 317.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.3565, allocations: 0 / 317.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006469/0.3571, allocations: 311 kB / 317.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006024/0.3577, allocations: 55.38 kB / 317.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.3598, allocations: 0.7386 MB / 318.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/0.3604, allocations: 0.7997 MB / 319.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.3606, allocations: 39.42 kB / 319.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of SimCode: time 1.292e-06/0.3607, allocations: 0 / 319.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of Templates: time 0.01184/0.3725, allocations: 4.581 MB / 323.9 MB, free: 8.238 MB / 266.7 MB