Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.338/2.338, allocations: 220.2 MB / 232.3 MB, free: 12.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.266e-05/4.281e-05, allocations: 4 kB / 287.9 MB, free: 5.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 51.1 MB / 339 MB, free: 2.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4755/0.5989, allocations: 79.71 MB / 418.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5993, allocations: 64.09 kB / 418.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02926/0.6286, allocations: 6.217 MB / 425 MB, free: 8.852 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6287, allocations: 4 kB / 425 MB, free: 8.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.512e-05/0.6287, allocations: 4 kB / 425 MB, free: 8.844 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.001217/0.6299, allocations: 0.5618 MB / 425.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.63, allocations: 16.03 kB / 425.6 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001027/0.6301, allocations: 54.53 kB / 425.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.6302, allocations: 35.62 kB / 425.7 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/0.631, allocations: 318.3 kB / 426 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-05/0.6311, allocations: 19.95 kB / 426 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.332e-05/0.6311, allocations: 20 kB / 426 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006559/0.6318, allocations: 272.1 kB / 426.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.6318, allocations: 0 / 426.3 MB, free: 7.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.743e-05/0.6319, allocations: 12 kB / 426.3 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.6319, allocations: 4 kB / 426.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.6324, allocations: 144.2 kB / 426.4 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.6344, allocations: 1.08 MB / 427.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/0.6352, allocations: 217.2 kB / 427.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.6355, allocations: 117.7 kB / 427.8 MB, free: 5.773 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.454e-05/0.6356, allocations: 4.125 kB / 427.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004196/0.636, allocations: 202.4 kB / 428 MB, free: 5.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.416e-06/0.636, allocations: 4 kB / 428 MB, free: 5.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009032/0.6369, allocations: 318.1 kB / 428.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.6371, allocations: 158.2 kB / 428.5 MB, free: 5.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000411/0.6375, allocations: 239.2 kB / 428.7 MB, free: 4.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.6376, allocations: 33.7 kB / 428.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.6377, allocations: 168.4 kB / 428.9 MB, free: 4.586 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.6378, allocations: 71 kB / 429 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-05/0.6379, allocations: 3.938 kB / 429 MB, free: 4.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.6381, allocations: 347 kB / 429.4 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.6383, allocations: 75.98 kB / 429.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.6386, allocations: 166.3 kB / 429.6 MB, free: 3.891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.6389, allocations: 120.7 kB / 429.7 MB, free: 3.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.639, allocations: 0 / 429.7 MB, free: 3.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001667/0.6406, allocations: 484.2 kB / 430.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002873/0.641, allocations: 0.5545 MB / 430.7 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.641, allocations: 4 kB / 430.7 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004846/0.6415, allocations: 97.7 kB / 430.8 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.6417, allocations: 23.98 kB / 430.9 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/0.6436, allocations: 1.265 MB / 432.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.6441, allocations: 39.89 kB / 432.2 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.6442, allocations: 8 kB / 432.2 MB, free: 1.184 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.6442, allocations: 7.953 kB / 432.2 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001022/0.6453, allocations: 369.8 kB / 432.5 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.6453, allocations: 0 / 432.5 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003223/0.6456, allocations: 77.84 kB / 432.6 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.6459, allocations: 27.92 kB / 432.6 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00346/0.6493, allocations: 3.001 MB / 435.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.6498, allocations: 23.86 kB / 435.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.6499, allocations: 12 kB / 435.7 MB, free: 13.38 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.0002448/0.6501, allocations: 158.6 kB / 435.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.291e-05/0.6502, allocations: 39.62 kB / 435.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.6504, allocations: 29.95 kB / 435.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.6504, allocations: 7.953 kB / 435.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6504, allocations: 0 / 435.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.6504, allocations: 0 / 435.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004897/0.6509, allocations: 337.6 kB / 436.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6509, allocations: 128 / 436.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.6513, allocations: 39.97 kB / 436.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.6514, allocations: 8 kB / 436.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.6514, allocations: 11.94 kB / 436.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.6514, allocations: 0 / 436.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.6514, allocations: 3.953 kB / 436.3 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.6526, allocations: 498.5 kB / 436.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/0.6528, allocations: 100.7 kB / 436.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.176e-05/0.6528, allocations: 16.06 kB / 436.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003408/0.6532, allocations: 23.94 kB / 436.9 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-05/0.6533, allocations: 19.91 kB / 436.9 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.146e-05/0.6533, allocations: 12 kB / 437 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003161/0.6537, allocations: 195.1 kB / 437.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6537, allocations: 3.938 kB / 437.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008234/0.6545, allocations: 119.8 kB / 437.3 MB, free: 11.68 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.001593/0.6561, allocations: 1.117 MB / 438.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002251/0.6584, allocations: 0.8247 MB / 439.2 MB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.6585, allocations: 0 / 439.2 MB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.6588, allocations: 183.3 kB / 439.4 MB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.6594, allocations: 40.53 kB / 439.4 MB, free: 9.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.6619, allocations: 0.6121 MB / 440 MB, free: 8.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.6624, allocations: 0.7687 MB / 440.8 MB, free: 7.977 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.6627, allocations: 55.08 kB / 440.9 MB, free: 7.922 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.6629, allocations: 83.41 kB / 440.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.493e-06/0.6629, allocations: 0 / 440.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04134/0.7043, allocations: 7.134 MB / 448.1 MB, free: 0.793 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003969/0.7048, allocations: 195.5 kB / 448.3 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.742/3.447, allocations: 0 / 448.3 MB, free: 0.5586 MB / 362.7 MB