Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.318/2.318, allocations: 220.2 MB / 232.3 MB, free: 12.22 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.459e-05/4.437e-05, allocations: 4 kB / 287.9 MB, free: 5.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.139, allocations: 51.11 MB / 339 MB, free: 2.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4553/0.5944, allocations: 79.89 MB / 418.9 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.5947, allocations: 67 kB / 419 MB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02967/0.6244, allocations: 6.179 MB / 425.1 MB, free: 8.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6244, allocations: 0 / 425.1 MB, free: 8.297 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.219e-05/0.6245, allocations: 12 kB / 425.2 MB, free: 8.285 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001339/0.6258, allocations: 0.5799 MB / 425.7 MB, free: 7.672 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.6259, allocations: 8.031 kB / 425.7 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.626, allocations: 51.3 kB / 425.8 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.6262, allocations: 31.62 kB / 425.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007154/0.6269, allocations: 302.3 kB / 426.1 MB, free: 7.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.627, allocations: 15.25 kB / 426.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.6271, allocations: 19.77 kB / 426.2 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006944/0.6278, allocations: 264.7 kB / 426.4 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.6278, allocations: 0 / 426.4 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.6279, allocations: 11.25 kB / 426.4 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.6279, allocations: 4 kB / 426.4 MB, free: 7.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004551/0.6283, allocations: 152.5 kB / 426.6 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.6305, allocations: 1.073 MB / 427.6 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.6313, allocations: 221.3 kB / 427.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003218/0.6317, allocations: 117.7 kB / 428 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.6317, allocations: 0 / 428 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000467/0.6322, allocations: 214 kB / 428.2 MB, free: 5.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.935e-06/0.6322, allocations: 3.938 kB / 428.2 MB, free: 5.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009567/0.6332, allocations: 310.3 kB / 428.5 MB, free: 4.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.6333, allocations: 158.2 kB / 428.6 MB, free: 4.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.6337, allocations: 231.1 kB / 428.9 MB, free: 4.559 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.6338, allocations: 29.7 kB / 428.9 MB, free: 4.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.634, allocations: 168.4 kB / 429.1 MB, free: 4.355 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.934e-05/0.6341, allocations: 67 kB / 429.1 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.6342, allocations: 4 kB / 429.1 MB, free: 4.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.6343, allocations: 338.8 kB / 429.5 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.6346, allocations: 87.92 kB / 429.6 MB, free: 3.859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003368/0.6349, allocations: 156.5 kB / 429.7 MB, free: 3.676 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.6353, allocations: 112.7 kB / 429.8 MB, free: 3.562 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.6353, allocations: 3.953 kB / 429.8 MB, free: 3.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002007/0.6373, allocations: 0.5275 MB / 430.3 MB, free: 3.012 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002997/0.6376, allocations: 0.5545 MB / 430.9 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.6377, allocations: 7.984 kB / 430.9 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004026/0.6381, allocations: 81.69 kB / 431 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.6384, allocations: 35.92 kB / 431 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.6403, allocations: 1.245 MB / 432.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005632/0.6409, allocations: 59.91 kB / 432.3 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.924e-05/0.641, allocations: 11.98 kB / 432.3 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.641, allocations: 4 kB / 432.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008028/0.6418, allocations: 300.2 kB / 432.6 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.6419, allocations: 4 kB / 432.6 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/0.6419, allocations: 0 / 432.6 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.6423, allocations: 55.91 kB / 432.7 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.6423, allocations: 4.109 kB / 432.7 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.6427, allocations: 31.83 kB / 432.7 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.6427, allocations: 12 kB / 432.7 MB, free: 0.5078 MB / 346.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,firstOrderNegativeGain.I.local_reset,firstOrderPositiveGain.I.local_reset) * 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: 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 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002413/0.643, allocations: 162.5 kB / 432.9 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.89e-05/0.6431, allocations: 31.64 kB / 432.9 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.6432, allocations: 33.89 kB / 433 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.6432, allocations: 4 kB / 433 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.6432, allocations: 0 / 433 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.6433, allocations: 7.953 kB / 433 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005742/0.6438, allocations: 337.5 kB / 433.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.6439, allocations: 0 / 433.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000521/0.6444, allocations: 55.89 kB / 433.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.6444, allocations: 4 kB / 433.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.6445, allocations: 11.98 kB / 433.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.6445, allocations: 4 kB / 433.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6445, allocations: 0 / 433.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.6458, allocations: 0.4973 MB / 433.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.6459, allocations: 96.86 kB / 434 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.001e-05/0.646, allocations: 8 kB / 434 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004257/0.6465, allocations: 48.02 kB / 434 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.6466, allocations: 35.84 kB / 434.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.797e-05/0.6467, allocations: 8 kB / 434.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002988/0.647, allocations: 183.1 kB / 434.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.647, allocations: 0 / 434.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007509/0.6478, allocations: 111.8 kB / 434.4 MB, free: 14.78 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (firstOrderPositiveGain.I.y,firstOrderNegativeGain.I.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.001706/0.6495, allocations: 1.115 MB / 435.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.6516, allocations: 0.5939 MB / 436.1 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.6517, allocations: 0 / 436.1 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003956/0.6521, allocations: 195.6 kB / 436.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.6526, allocations: 61.55 kB / 436.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.6541, allocations: 453.8 kB / 436.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.6545, allocations: 0.7723 MB / 437.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003732/0.6549, allocations: 39.06 kB / 437.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002024/0.6551, allocations: 79.41 kB / 437.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6552, allocations: 0 / 437.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04373/0.6989, allocations: 7.135 MB / 444.8 MB, free: 4.293 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003226/0.6993, allocations: 191.8 kB / 445 MB, free: 4.062 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.714/3.413, allocations: 0 / 445 MB, free: 4.062 MB / 362.7 MB