Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.062e-05, allocations: 4 kB / 331.8 MB, free: 12.4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2084, allocations: 44.51 MB / 376.3 MB, free: 73.49 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09039/0.2989, allocations: 74.82 MB / 451.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.2991, allocations: 67.97 kB / 451.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06853/0.3676, allocations: 19.69 MB / 470.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3677, allocations: 0 / 470.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.801e-05/0.3678, allocations: 27.94 kB / 470.9 MB, free: 8.652 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002831/0.3706, allocations: 1.275 MB / 472.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.3707, allocations: 8.031 kB / 472.2 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004668/0.3712, allocations: 126.6 kB / 472.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001822/0.373, allocations: 0.6239 MB / 472.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/0.3733, allocations: 151.7 kB / 473.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.3736, allocations: 87.92 kB / 473.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003586/0.3772, allocations: 0.8245 MB / 474 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003576/0.3809, allocations: 1.158 MB / 475.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/0.3809, allocations: 3.938 kB / 475.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.3811, allocations: 16 kB / 475.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.511e-05/0.3812, allocations: 45.98 kB / 475.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.3912, allocations: 4.88 MB / 480.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.3937, allocations: 0.9235 MB / 481 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.3949, allocations: 416.5 kB / 481.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001893/0.3951, allocations: 93.89 kB / 481.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001681/0.3968, allocations: 0.6618 MB / 482.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=110): time 6.51e-06/0.3969, allocations: 0 / 482.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.003094/0.4, allocations: 0.9043 MB / 483.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003178/0.4003, allocations: 411.3 kB / 483.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.4014, allocations: 452.2 kB / 483.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002781/0.4017, allocations: 73.67 kB / 484 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005847/0.4023, allocations: 424.3 kB / 484.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004504/0.4027, allocations: 252.8 kB / 484.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.4029, allocations: 4 kB / 484.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002969/0.4032, allocations: 386.7 kB / 485 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.4045, allocations: 360 kB / 485.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.4062, allocations: 0.6566 MB / 486.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.4077, allocations: 382.1 kB / 486.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.4078, allocations: 7.938 kB / 486.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003667/0.4115, allocations: 1.148 MB / 487.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002467/0.4117, allocations: 268.3 kB / 487.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/0.4118, allocations: 8 kB / 487.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.879e-05/0.4118, allocations: 20 kB / 487.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008838/0.4127, allocations: 147.6 kB / 488 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.844e-05/0.4128, allocations: 23.92 kB / 488 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008693/0.4137, allocations: 59.52 kB / 488.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002073/0.4139, allocations: 71.97 kB / 488.2 MB, free: 6.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 149 ($PRE.tankController.makeProduct.T1.enableFire,$PRE.tankController.makeProduct.T3.enableFire,$PRE.tankController.makeProduct.T2.enableFire,$PRE.tankController.makeProduct.T4.enableFire,$PRE.tankController.T1.enableFire,$PRE.tankController.T2.enableFire,$PRE.tankController.T3.enableFire,$PRE.tankController.T4.enableFire,$PRE.tankController.T5.enableFire,$PRE.tankController.T6.enableFire,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$PRE.tankController.s1.localActive,tankController.s1.localActive,tankController.s1.inPort[2].occupied,$PRE.tankController.s1.newActive,tankController.s1.newActive,$PRE.tankController.s1.oldActive,tankController.s1.oldActive,tankController.s1.active,tankController.makeProduct.stateGraphRoot.suspend,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.condition,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.condition,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.active,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.T2.enableFire,tankController.makeProduct.T2.fire,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.t_start,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T4.enableFire,tankController.makeProduct.T4.fire,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.enableFire,tankController.T2.condition,tankController.T3.enableFire,$PRE.tankController.s2.localActive,tankController.s2.localActive,tankController.s2.outPort[2].available,$PRE.tankController.s2.newActive,tankController.s2.newActive,$PRE.tankController.s2.oldActive,tankController.s2.oldActive,tankController.s2.active,tankController.T4.enableFire,tankController.T5.enableFire,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.oldActive,tankController.emptyTanks.active,tankController.T6.enableFire,tankController.T6.condition,tankController.valve2,tankController.valve3,$PRE.start.reset[1],start.reset[1],$PRE.start.reset[2],start.reset[2],$PRE.start.on,start.on,$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,$PRE.stop.reset[1],stop.reset[1],$PRE.stop.reset[2],stop.reset[2],$PRE.stop.on,stop.on,$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,$PRE.shut.reset[1],shut.reset[1],$PRE.shut.reset[2],shut.reset[2],$PRE.shut.on,shut.on,$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,tankController.makeProduct.T4.condition,tankController.makeProduct.T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 9 * 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.0005689/0.4145, allocations: 437.5 kB / 488.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.4147, allocations: 79.11 kB / 488.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002504/0.4172, allocations: 0.9385 MB / 489.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.4173, allocations: 15.98 kB / 489.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.4173, allocations: 0 / 489.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.4173, allocations: 3.984 kB / 489.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004868/0.4222, allocations: 2.087 MB / 491.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.338e-06/0.4222, allocations: 0 / 491.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/0.4227, allocations: 59.83 kB / 491.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.585e-05/0.4227, allocations: 4 kB / 491.8 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.4228, allocations: 31.91 kB / 491.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-06/0.4228, allocations: 8 kB / 491.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.847e-06/0.4229, allocations: 0 / 491.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007288/0.4302, allocations: 3.348 MB / 495.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004522/0.4307, allocations: 240.1 kB / 495.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.4309, allocations: 27.98 kB / 495.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004687/0.4313, allocations: 36.08 kB / 495.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004129/0.4318, allocations: 157.1 kB / 495.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.4319, allocations: 43.94 kB / 495.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003909/0.4323, allocations: 255 kB / 495.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.74e-07/0.4323, allocations: 3.938 kB / 495.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001364/0.4337, allocations: 251.8 kB / 496.2 MB, free: 14.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank1.level,tank2.level) * Number of discrete variables: 95 (tankController.makeProduct.stateGraphRoot.suspend,tankController.emptyTanks.localActive,tankController.s2.localActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.localActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.localActive,tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank1.localActive,tankController.s1.localActive,$cse1,$cse2,$cse4,$cse6,$cse7,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.s1.active,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.condition,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.condition,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.enableFire,tankController.T2.condition,tankController.T3.enableFire,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.s2.active,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.emptyTanks.active,tankController.T6.enableFire,tankController.T6.condition,tankController.valve2,tankController.valve3,start.reset[1],start.reset[2],start.on,start.table.y,start.table.nextTime,start.table.index,stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.nextTime,shut.table.index,stateGraphRoot.activeSteps) * Number of discrete states: 36 (tankController.s1.newActive,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait2.newActive,tankController.makeProduct.newActive,tankController.s2.newActive,tankController.emptyTanks.newActive,start.table.y,start.table.nextTime,start.table.index,$whenCondition12,$whenCondition11,$whenCondition10,start.on,start.reset[1],start.reset[2],stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition9,$whenCondition8,$whenCondition7,stop.on,stop.reset[1],stop.reset[2],shut.table.y,shut.table.nextTime,shut.table.index,$whenCondition6,$whenCondition5,$whenCondition4,shut.on,shut.reset[1],shut.reset[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 10 * 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.0005435/0.4343, allocations: 257 kB / 496.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00281/0.4371, allocations: 1.482 MB / 497.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.806e-06/0.4372, allocations: 0 / 497.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.4388, allocations: 0.8294 MB / 498.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009333/0.4398, allocations: 75.03 kB / 498.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006057/0.4459, allocations: 1.818 MB / 0.4889 GB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.4473, allocations: 1.076 MB / 0.4899 GB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001229/0.4486, allocations: 126.9 kB / 0.4901 GB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005482/0.4492, allocations: 87.39 kB / 0.4901 GB, free: 8.238 MB / 366.1 MB Notification: Performance of SimCode: time 1.741e-06/0.4492, allocations: 0 / 0.4901 GB, free: 8.238 MB / 366.1 MB Notification: Performance of Templates: time 0.03011/0.4793, allocations: 10.06 MB / 0.5 GB, free: 14.19 MB / 382.1 MB