Running command: translateModel(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter") Notification: Performance of loadModel(PowerGrids): time 2.077/2.077, allocations: 220.2 MB / 232.3 MB, free: 12.23 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.364e-05/4.39e-05, allocations: 4 kB / 287.8 MB, free: 5.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09762, allocations: 51.11 MB / 338.9 MB, free: 2.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3672/0.4648, allocations: 79.7 MB / 418.6 MB, free: 14.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4651, allocations: 71.64 kB / 418.7 MB, free: 14.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02691/0.4921, allocations: 6.207 MB / 424.9 MB, free: 8.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.147e-06/0.4921, allocations: 0 / 424.9 MB, free: 8.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.13e-05/0.4921, allocations: 11.94 kB / 424.9 MB, free: 8.789 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0009495/0.4931, allocations: 0.56 MB / 425.5 MB, free: 8.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.4932, allocations: 8.031 kB / 425.5 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.4933, allocations: 39.53 kB / 425.5 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.4939, allocations: 318.3 kB / 425.8 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.748e-05/0.494, allocations: 14.75 kB / 425.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.4941, allocations: 31.62 kB / 425.9 MB, free: 7.801 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005698/0.4946, allocations: 272.9 kB / 426.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.4947, allocations: 0 / 426.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.4947, allocations: 8 kB / 426.1 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.4947, allocations: 7.984 kB / 426.1 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004095/0.4952, allocations: 152.2 kB / 426.3 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.497, allocations: 1.068 MB / 427.4 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006481/0.4976, allocations: 221.1 kB / 427.6 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.4979, allocations: 117.7 kB / 427.7 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.498, allocations: 4.141 kB / 427.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004048/0.4984, allocations: 199.2 kB / 427.9 MB, free: 5.664 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.233e-06/0.4984, allocations: 0 / 427.9 MB, free: 5.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000791/0.4992, allocations: 306.3 kB / 428.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.4994, allocations: 162.2 kB / 428.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.4998, allocations: 243.1 kB / 428.6 MB, free: 4.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.4998, allocations: 33.73 kB / 428.6 MB, free: 4.879 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.5, allocations: 176.4 kB / 428.8 MB, free: 4.703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.718e-05/0.5001, allocations: 67.02 kB / 428.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.5002, allocations: 4 kB / 428.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.5004, allocations: 342.9 kB / 429.2 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.5006, allocations: 83.91 kB / 429.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.5009, allocations: 162.3 kB / 429.4 MB, free: 4.012 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.5012, allocations: 124.4 kB / 429.6 MB, free: 3.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.835e-06/0.5012, allocations: 4 kB / 429.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001318/0.5025, allocations: 476.2 kB / 430 MB, free: 3.398 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003662/0.5029, allocations: 0.5545 MB / 430.6 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.379e-06/0.5029, allocations: 4 kB / 430.6 MB, free: 2.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004173/0.5034, allocations: 97.67 kB / 430.7 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.5036, allocations: 31.94 kB / 430.7 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.5052, allocations: 1.257 MB / 432 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.5055, allocations: 35.86 kB / 432 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.525e-05/0.5056, allocations: 15.98 kB / 432 MB, free: 1.301 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.5056, allocations: 4 kB / 432 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009347/0.5066, allocations: 370.9 kB / 432.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.855e-06/0.5066, allocations: 0 / 432.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/0.5069, allocations: 69.69 kB / 432.5 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.5071, allocations: 23.98 kB / 432.5 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003492/0.5106, allocations: 3.013 MB / 435.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.5109, allocations: 23.84 kB / 435.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.511, allocations: 16.05 kB / 435.5 MB, free: 13.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000213/0.5112, allocations: 151.4 kB / 435.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.303e-05/0.5113, allocations: 27.72 kB / 435.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.104e-05/0.5114, allocations: 37.83 kB / 435.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.371e-06/0.5114, allocations: 3.953 kB / 435.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.34e-06/0.5115, allocations: 4 kB / 435.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.5115, allocations: 3.984 kB / 435.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004843/0.512, allocations: 333.5 kB / 436.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.581e-06/0.512, allocations: 4 kB / 436.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.5123, allocations: 39.97 kB / 436.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.948e-06/0.5123, allocations: 4.125 kB / 436.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.5124, allocations: 16.08 kB / 436.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.45e-06/0.5124, allocations: 0 / 436.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.726e-06/0.5124, allocations: 3.953 kB / 436.1 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.5135, allocations: 0.5006 MB / 436.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.5136, allocations: 96.86 kB / 436.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.411e-05/0.5137, allocations: 8 kB / 436.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.514, allocations: 31.92 kB / 436.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.5141, allocations: 15.92 kB / 436.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/0.5141, allocations: 16.06 kB / 436.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002923/0.5144, allocations: 195.1 kB / 437 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.18e-07/0.5144, allocations: 0 / 437 MB, free: 11.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008402/0.5153, allocations: 127.7 kB / 437.1 MB, free: 11.79 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (leadLagPositiveGain.integ_fb.y,leadLagNegativeGain.integ_fb.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0003022/0.5156, allocations: 155.8 kB / 437.3 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.5175, allocations: 0.8127 MB / 438.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.407e-06/0.5176, allocations: 4.312 kB / 438.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003426/0.5179, allocations: 183.3 kB / 438.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004264/0.5184, allocations: 49.03 kB / 438.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.5201, allocations: 0.5247 MB / 438.8 MB, free: 9.984 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.5206, allocations: 0.7765 MB / 439.6 MB, free: 9.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002855/0.5209, allocations: 47.06 kB / 439.7 MB, free: 9.133 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.521, allocations: 15.44 kB / 439.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of SimCode: time 1.848e-06/0.521, allocations: 0 / 439.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of Templates: time 0.01348/0.5345, allocations: 4.527 MB / 444.2 MB, free: 4.59 MB / 362.7 MB