Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestPIWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestPIWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.289/2.289, allocations: 220.2 MB / 232.3 MB, free: 12.14 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.513e-05/3.52e-05, allocations: 6.344 kB / 287.9 MB, free: 5.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 51.11 MB / 339 MB, free: 2.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4369/0.5506, allocations: 79.53 MB / 418.5 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.551, allocations: 73.02 kB / 418.6 MB, free: 13.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03254/0.5835, allocations: 6.604 MB / 425.2 MB, free: 8.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5836, allocations: 0 / 425.2 MB, free: 8.297 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.5836, allocations: 8 kB / 425.2 MB, free: 8.289 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.001294/0.5849, allocations: 0.5855 MB / 425.8 MB, free: 7.672 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.585, allocations: 12.03 kB / 425.8 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.5851, allocations: 53.36 kB / 425.9 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.5853, allocations: 39.53 kB / 425.9 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007705/0.5861, allocations: 335.8 kB / 426.2 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.5861, allocations: 19.31 kB / 426.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.06e-05/0.5862, allocations: 19.64 kB / 426.3 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007254/0.587, allocations: 252.1 kB / 426.5 MB, free: 6.996 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.587, allocations: 7.938 kB / 426.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/0.5871, allocations: 14.12 kB / 426.6 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.5871, allocations: 4 kB / 426.6 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.5875, allocations: 142.9 kB / 426.7 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.59, allocations: 0.9609 MB / 427.7 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.5912, allocations: 251.9 kB / 427.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.5915, allocations: 115.9 kB / 428 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.5916, allocations: 7.938 kB / 428 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.592, allocations: 204.1 kB / 428.2 MB, free: 5.242 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.406e-06/0.592, allocations: 0 / 428.2 MB, free: 5.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009194/0.5929, allocations: 308 kB / 428.5 MB, free: 4.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.5931, allocations: 209.6 kB / 428.7 MB, free: 4.676 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004551/0.5936, allocations: 255.4 kB / 429 MB, free: 4.418 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.051e-05/0.5936, allocations: 33.7 kB / 429 MB, free: 4.379 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.5938, allocations: 172.5 kB / 429.2 MB, free: 4.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.386e-05/0.5939, allocations: 71.02 kB / 429.2 MB, free: 4.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.594, allocations: 12.06 kB / 429.3 MB, free: 4.125 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.5941, allocations: 334.8 kB / 429.6 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.5944, allocations: 79.92 kB / 429.7 MB, free: 3.711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.5947, allocations: 152.6 kB / 429.8 MB, free: 3.531 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.595, allocations: 117.8 kB / 429.9 MB, free: 3.414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.595, allocations: 0 / 429.9 MB, free: 3.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000877/0.5959, allocations: 333.2 kB / 430.3 MB, free: 3.078 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002162/0.5962, allocations: 389.8 kB / 430.6 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5962, allocations: 0 / 430.6 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.5962, allocations: 4 kB / 430.6 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.5967, allocations: 55.95 kB / 430.7 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.5968, allocations: 3.953 kB / 430.7 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.5973, allocations: 51.81 kB / 430.7 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.5974, allocations: 12 kB / 430.8 MB, free: 2.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.5974, allocations: 4 kB / 430.8 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007536/0.5982, allocations: 293.5 kB / 431.1 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5982, allocations: 4 kB / 431.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/0.5982, allocations: 0 / 431.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.5986, allocations: 35.97 kB / 431.1 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.5986, allocations: 0 / 431.1 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.599, allocations: 35.92 kB / 431.1 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.599, allocations: 12 kB / 431.1 MB, free: 2.156 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.0002169/0.5993, allocations: 156.4 kB / 431.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.336e-05/0.5994, allocations: 31.67 kB / 431.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.5995, allocations: 34.08 kB / 431.4 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.5995, allocations: 4 kB / 431.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.5995, allocations: 0 / 431.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.5996, allocations: 0 / 431.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000526/0.6001, allocations: 349.3 kB / 431.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.6001, allocations: 7.953 kB / 431.7 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.6006, allocations: 51.97 kB / 431.8 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.6006, allocations: 0 / 431.8 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.6007, allocations: 11.98 kB / 431.8 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.873e-06/0.6007, allocations: 4 kB / 431.8 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.6007, allocations: 0 / 431.8 MB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.6019, allocations: 0.5073 MB / 432.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.6021, allocations: 112.6 kB / 432.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.852e-05/0.6021, allocations: 8 kB / 432.4 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.6026, allocations: 40.03 kB / 432.4 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.6027, allocations: 19.91 kB / 432.5 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-05/0.6028, allocations: 11.94 kB / 432.5 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003482/0.6031, allocations: 207.1 kB / 432.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6032, allocations: 0 / 432.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006965/0.6039, allocations: 123.8 kB / 432.8 MB, free: 388 kB / 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.001695/0.6056, allocations: 1.178 MB / 434 MB, free: 15.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.6067, allocations: 464.9 kB / 434.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.6067, allocations: 0 / 434.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003485/0.6071, allocations: 183.3 kB / 434.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.6077, allocations: 55.88 kB / 434.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.6094, allocations: 0.4944 MB / 435.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.6099, allocations: 0.7804 MB / 435.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004433/0.6103, allocations: 59.05 kB / 436 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.6106, allocations: 83.41 kB / 436.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6106, allocations: 0 / 436.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/0.6501, allocations: 6.907 MB / 443 MB, free: 6.117 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000432/0.6506, allocations: 144.1 kB / 443.1 MB, free: 5.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/3.523, allocations: 0 / 443.1 MB, free: 5.898 MB / 362.7 MB