Running command: translateModel(PowerGrids.Controls.Test.TestLimiterWithLag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLimiterWithLag") Notification: Performance of loadModel(PowerGrids): time 2.091/2.091, allocations: 220.2 MB / 232.3 MB, free: 12.14 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.472e-05, allocations: 4 kB / 286.3 MB, free: 7.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09283/0.09289, allocations: 51.11 MB / 337.4 MB, free: 3.965 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3534/0.4464, allocations: 78.24 MB / 415.7 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4466, allocations: 68.08 kB / 415.7 MB, free: 15.08 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01169/0.4583, allocations: 2.643 MB / 418.4 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.156e-06/0.4584, allocations: 0 / 418.4 MB, free: 12.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.4584, allocations: 4 kB / 418.4 MB, free: 12.74 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001079/0.4595, allocations: 0.5454 MB / 418.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4596, allocations: 15.97 kB / 418.9 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.801e-05/0.4597, allocations: 19.81 kB / 419 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.46, allocations: 216.6 kB / 419.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.46, allocations: 8 kB / 419.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.4601, allocations: 8 kB / 419.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.4604, allocations: 122 kB / 419.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.874e-06/0.4605, allocations: 0 / 419.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.4605, allocations: 4 kB / 419.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.896e-06/0.4605, allocations: 0 / 419.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004717/0.461, allocations: 80.17 kB / 419.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.4623, allocations: 0.4893 MB / 419.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.4627, allocations: 118.8 kB / 420 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.4629, allocations: 67.86 kB / 420.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.4629, allocations: 4.109 kB / 420.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005398/0.4635, allocations: 355.3 kB / 420.4 MB, free: 10.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 3.325e-06/0.4635, allocations: 4 kB / 420.4 MB, free: 10.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006735/0.4642, allocations: 264.3 kB / 420.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/0.4644, allocations: 247.1 kB / 420.9 MB, free: 10.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.4646, allocations: 150.9 kB / 421.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.4647, allocations: 33.45 kB / 421.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.4648, allocations: 110.9 kB / 421.2 MB, free: 9.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.4649, allocations: 50.41 kB / 421.3 MB, free: 9.898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-05/0.4649, allocations: 0 / 421.3 MB, free: 9.898 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.4651, allocations: 337.2 kB / 421.6 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.4653, allocations: 62.94 kB / 421.6 MB, free: 9.531 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.4655, allocations: 66.48 kB / 421.7 MB, free: 9.492 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.4658, allocations: 142.6 kB / 421.8 MB, free: 9.355 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.092e-06/0.4658, allocations: 0 / 421.8 MB, free: 9.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006688/0.4665, allocations: 318.2 kB / 422.2 MB, free: 9.074 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.4666, allocations: 178.7 kB / 422.3 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.31e-06/0.4666, allocations: 4 kB / 422.3 MB, free: 8.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.4667, allocations: 4 kB / 422.3 MB, free: 8.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.467, allocations: 51.75 kB / 422.4 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.301e-06/0.4671, allocations: 4 kB / 422.4 MB, free: 8.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.4675, allocations: 79.77 kB / 422.5 MB, free: 8.742 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.4676, allocations: 11.31 kB / 422.5 MB, free: 8.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.4676, allocations: 4 kB / 422.5 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007382/0.4684, allocations: 322.5 kB / 422.8 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.961e-06/0.4684, allocations: 7.984 kB / 422.8 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.539e-06/0.4684, allocations: 0 / 422.8 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.4687, allocations: 55.88 kB / 422.9 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.658e-06/0.4687, allocations: 0 / 422.9 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004404/0.4692, allocations: 82.89 kB / 422.9 MB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.4692, allocations: 7.188 kB / 423 MB, free: 8.324 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.limiterWithLag.state,limiterWithLag.state,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.satON,limiterWithLag.satON,$PRE.LfSignal.T_start,LfSignal.T_start,$PRE.LfSignal.count,LfSignal.count,$PRE.HfSignal.T_start,HfSignal.T_start,$PRE.HfSignal.count,HfSignal.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * 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.0002071/0.4695, allocations: 167.6 kB / 423.1 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.559e-05/0.4696, allocations: 23.77 kB / 423.1 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.285e-05/0.4696, allocations: 20.7 kB / 423.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.113e-06/0.4696, allocations: 0 / 423.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.952e-06/0.4697, allocations: 0 / 423.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.114e-06/0.4697, allocations: 4 kB / 423.2 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003253/0.47, allocations: 259.1 kB / 423.4 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.319e-06/0.47, allocations: 0 / 423.4 MB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002972/0.4703, allocations: 63.28 kB / 423.5 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/0.4704, allocations: 0 / 423.5 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.4704, allocations: 7.984 kB / 423.5 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.81e-06/0.4704, allocations: 0 / 423.5 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.4704, allocations: 0 / 423.5 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007093/0.4711, allocations: 332 kB / 423.8 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.238e-05/0.4712, allocations: 96.84 kB / 423.9 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.4713, allocations: 8 kB / 423.9 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/0.4718, allocations: 74.92 kB / 424 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.472, allocations: 47.23 kB / 424 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.472, allocations: 4 kB / 424 MB, free: 7.266 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001556/0.4722, allocations: 133.4 kB / 424.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.38e-07/0.4722, allocations: 0 / 424.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005291/0.4727, allocations: 83.27 kB / 424.2 MB, free: 7.074 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,limiterWithLag.state,limiterWithLag.saturationLimitReached,limiterWithLag.satON,LfSignal.T_start,LfSignal.count,HfSignal.T_start,HfSignal.count) * Number of discrete states: 11 (LfSignal.count,HfSignal.count,limiterWithLag.satON,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,limiterWithLag.saturationLimitReached,limiterWithLag.state,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0001945/0.4729, allocations: 130.8 kB / 424.4 MB, free: 6.941 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.474, allocations: 0.6991 MB / 425.1 MB, free: 6.344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.777e-06/0.4741, allocations: 0 / 425.1 MB, free: 6.344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.4745, allocations: 300 kB / 425.4 MB, free: 6.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.4748, allocations: 27.8 kB / 425.4 MB, free: 6.152 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007022/0.4755, allocations: 236.2 kB / 425.6 MB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.476, allocations: 0.7248 MB / 426.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.4762, allocations: 29.75 kB / 426.4 MB, free: 5.152 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.743e-05/0.4763, allocations: 14.44 kB / 426.4 MB, free: 5.141 MB / 346.7 MB Notification: Performance of SimCode: time 1.694e-06/0.4763, allocations: 4 kB / 426.4 MB, free: 5.137 MB / 346.7 MB Notification: Performance of Templates: time 0.009827/0.4862, allocations: 3.628 MB / 430 MB, free: 1.531 MB / 346.7 MB