Running command: translateModel(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=480,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestPIWithNonWindupLimiter") Notification: Performance of loadModel(PowerGrids): time 2.128/2.128, allocations: 220.2 MB / 232.3 MB, free: 12.23 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.849e-05/2.866e-05, allocations: 4 kB / 287.8 MB, free: 5.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1025, allocations: 51.1 MB / 338.9 MB, free: 2.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3996/0.5022, allocations: 79.54 MB / 418.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/0.5026, allocations: 63.47 kB / 418.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03946/0.5421, allocations: 6.61 MB / 425.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.088e-06/0.5422, allocations: 4 kB / 425.1 MB, free: 8.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.5422, allocations: 4 kB / 425.1 MB, free: 8.645 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009957/0.5432, allocations: 0.5903 MB / 425.7 MB, free: 8.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.5433, allocations: 8.031 kB / 425.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.5434, allocations: 39.53 kB / 425.8 MB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006178/0.544, allocations: 330.1 kB / 426.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.5441, allocations: 16 kB / 426.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/0.5441, allocations: 20 kB / 426.1 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005968/0.5447, allocations: 260.4 kB / 426.4 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.5448, allocations: 0 / 426.4 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.925e-05/0.5448, allocations: 8 kB / 426.4 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.5448, allocations: 4 kB / 426.4 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004108/0.5453, allocations: 152.2 kB / 426.5 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.5471, allocations: 0.9493 MB / 427.5 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008877/0.5481, allocations: 255.9 kB / 427.7 MB, free: 5.863 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.5483, allocations: 114.6 kB / 427.8 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.5484, allocations: 7.922 kB / 427.9 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003866/0.5488, allocations: 208.3 kB / 428.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.829e-06/0.5488, allocations: 0 / 428.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.000774/0.5496, allocations: 307.8 kB / 428.4 MB, free: 5.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.5498, allocations: 217.6 kB / 428.6 MB, free: 4.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.5502, allocations: 251.5 kB / 428.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.5502, allocations: 25.77 kB / 428.8 MB, free: 4.641 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.5504, allocations: 192.4 kB / 429 MB, free: 4.449 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.43e-05/0.5505, allocations: 63.05 kB / 429.1 MB, free: 4.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.5506, allocations: 4 kB / 429.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.5508, allocations: 338.8 kB / 429.4 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.551, allocations: 79.97 kB / 429.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.5513, allocations: 156.5 kB / 429.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.5515, allocations: 109.2 kB / 429.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.094e-06/0.5516, allocations: 0 / 429.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007417/0.5523, allocations: 329.4 kB / 430.1 MB, free: 3.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.5526, allocations: 397.7 kB / 430.5 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.855e-06/0.5526, allocations: 0 / 430.5 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.5526, allocations: 4 kB / 430.5 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.553, allocations: 55.91 kB / 430.5 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.553, allocations: 7.969 kB / 430.5 MB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.5533, allocations: 55.77 kB / 430.6 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.5534, allocations: 8 kB / 430.6 MB, free: 2.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.5534, allocations: 6.188 kB / 430.6 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006864/0.5541, allocations: 296.4 kB / 430.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-06/0.5541, allocations: 0 / 430.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.49e-06/0.5542, allocations: 4 kB / 430.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.5544, allocations: 35.98 kB / 430.9 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.25e-06/0.5544, allocations: 4.094 kB / 430.9 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.5547, allocations: 35.83 kB / 431 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.5547, allocations: 15.94 kB / 431 MB, free: 2.398 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * 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 prepare postOptimizeDAE: time 0.0001705/0.5549, allocations: 146.6 kB / 431.1 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.658e-05/0.555, allocations: 31.67 kB / 431.2 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.729e-05/0.5551, allocations: 34.08 kB / 431.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.263e-06/0.5551, allocations: 0 / 431.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.955e-06/0.5551, allocations: 8 kB / 431.2 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.613e-06/0.5551, allocations: 3.984 kB / 431.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004847/0.5556, allocations: 349.3 kB / 431.5 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.051e-06/0.5556, allocations: 0 / 431.5 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.556, allocations: 47.92 kB / 431.6 MB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.556, allocations: 7.984 kB / 431.6 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.5561, allocations: 8 kB / 431.6 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.5561, allocations: 0 / 431.6 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.5561, allocations: 8 kB / 431.6 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.5572, allocations: 0.5041 MB / 432.1 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.5573, allocations: 100.8 kB / 432.2 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.546e-05/0.5574, allocations: 12.05 kB / 432.2 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.5577, allocations: 39.97 kB / 432.3 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/0.5578, allocations: 15.98 kB / 432.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.5579, allocations: 11.94 kB / 432.3 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003139/0.5582, allocations: 203.1 kB / 432.5 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.5582, allocations: 4 kB / 432.5 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006067/0.5588, allocations: 123.7 kB / 432.6 MB, free: 0.6367 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (PIController.firstOrder.y,PIControllerNegativeKp.firstOrder.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 (16): * Single equations (assignments): 15 * 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.0002761/0.5591, allocations: 153 kB / 432.8 MB, free: 492 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008859/0.56, allocations: 468.6 kB / 433.2 MB, free: 16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.335e-06/0.56, allocations: 0 / 433.2 MB, free: 16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.5604, allocations: 175.3 kB / 433.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.5608, allocations: 56.28 kB / 433.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.5619, allocations: 424.4 kB / 433.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/0.5625, allocations: 0.7804 MB / 434.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003323/0.5628, allocations: 55.03 kB / 434.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.858e-05/0.5629, allocations: 19.44 kB / 434.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of SimCode: time 1.779e-06/0.5629, allocations: 4 kB / 434.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of Templates: time 0.01254/0.5755, allocations: 4.318 MB / 439 MB, free: 10.13 MB / 362.7 MB