Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestLimiterWithLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLimiterWithLag",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.229/2.229, allocations: 220.2 MB / 232.3 MB, free: 12.23 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.871e-05/4.884e-05, allocations: 12 kB / 286.4 MB, free: 7.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 51.11 MB / 337.5 MB, free: 3.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.5825, allocations: 78.24 MB / 415.8 MB, free: 14.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.5828, allocations: 66.97 kB / 415.8 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01414/0.597, allocations: 2.641 MB / 418.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.597, allocations: 4 kB / 418.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.597, allocations: 0 / 418.5 MB, free: 12.41 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001463/0.5985, allocations: 0.5573 MB / 419 MB, free: 11.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.5986, allocations: 12.02 kB / 419 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.457e-05/0.5987, allocations: 38.19 kB / 419.1 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.5987, allocations: 23.81 kB / 419.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.5991, allocations: 211 kB / 419.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.5991, allocations: 7.125 kB / 419.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.661e-05/0.5992, allocations: 11.95 kB / 419.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.5996, allocations: 114.2 kB / 419.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.5996, allocations: 3.938 kB / 419.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.5996, allocations: 3.25 kB / 419.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.5997, allocations: 4 kB / 419.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.6, allocations: 79.73 kB / 419.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.6014, allocations: 493.3 kB / 420 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.6018, allocations: 118.2 kB / 420.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.602, allocations: 77.16 kB / 420.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.6021, allocations: 7.875 kB / 420.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005533/0.6026, allocations: 349.7 kB / 420.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 2.966e-06/0.6027, allocations: 0 / 420.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007381/0.6034, allocations: 263 kB / 420.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/0.6036, allocations: 247.2 kB / 421.1 MB, free: 9.828 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.6038, allocations: 151.6 kB / 421.2 MB, free: 9.691 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.92e-05/0.6039, allocations: 36.94 kB / 421.2 MB, free: 9.652 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.604, allocations: 105.6 kB / 421.3 MB, free: 9.559 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.604, allocations: 54.48 kB / 421.4 MB, free: 9.512 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/0.6041, allocations: 4 kB / 421.4 MB, free: 9.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.6042, allocations: 333.5 kB / 421.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.6045, allocations: 61.44 kB / 421.8 MB, free: 9.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.6047, allocations: 67.36 kB / 421.8 MB, free: 9.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.605, allocations: 142.8 kB / 422 MB, free: 8.965 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.605, allocations: 0 / 422 MB, free: 8.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007022/0.6057, allocations: 318.2 kB / 422.3 MB, free: 8.688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.6058, allocations: 186.3 kB / 422.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.6058, allocations: 0 / 422.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.6059, allocations: 0 / 422.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.6064, allocations: 51.89 kB / 422.5 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.6064, allocations: 0 / 422.5 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007006/0.6071, allocations: 87.14 kB / 422.6 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-05/0.6072, allocations: 15.31 kB / 422.6 MB, free: 8.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.6072, allocations: 4 kB / 422.6 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007432/0.6079, allocations: 324.4 kB / 423 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-06/0.6079, allocations: 0 / 423 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.747e-06/0.608, allocations: 0 / 423 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.6084, allocations: 47.94 kB / 423 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.6084, allocations: 11.94 kB / 423 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006993/0.6091, allocations: 79.2 kB / 423.1 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.6092, allocations: 11.19 kB / 423.1 MB, free: 7.934 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.limiterWithLag.state,limiterWithLag.state,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.satON,limiterWithLag.satON,$PRE.LfSignal.T_start,LfSignal.T_start,$PRE.LfSignal.count,LfSignal.count,$PRE.HfSignal.T_start,HfSignal.T_start,$PRE.HfSignal.count,HfSignal.count) * 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: 3 * 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.0001752/0.6094, allocations: 159 kB / 423.3 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.802e-05/0.6094, allocations: 23.77 kB / 423.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.6095, allocations: 20.64 kB / 423.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.6095, allocations: 0 / 423.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6095, allocations: 0 / 423.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.6095, allocations: 0 / 423.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.6099, allocations: 264.7 kB / 423.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6099, allocations: 7.953 kB / 423.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.6103, allocations: 43.95 kB / 423.6 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.6103, allocations: 0 / 423.6 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.6104, allocations: 11.3 kB / 423.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.6104, allocations: 7.938 kB / 423.6 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6104, allocations: 4 kB / 423.6 MB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.6112, allocations: 325.7 kB / 423.9 MB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.863e-05/0.6113, allocations: 92.23 kB / 424 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.656e-05/0.6114, allocations: 4 kB / 424 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006931/0.6121, allocations: 79.48 kB / 424.1 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.6123, allocations: 44.86 kB / 424.2 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.6124, allocations: 8 kB / 424.2 MB, free: 6.891 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001483/0.6125, allocations: 133.4 kB / 424.3 MB, free: 6.773 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6125, allocations: 0 / 424.3 MB, free: 6.773 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004943/0.613, allocations: 95.11 kB / 424.4 MB, free: 6.688 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,limiterWithLag.state,limiterWithLag.saturationLimitReached,limiterWithLag.satON,LfSignal.T_start,LfSignal.count,HfSignal.T_start,HfSignal.count) * Number of discrete states: 11 (LfSignal.count,HfSignal.count,limiterWithLag.satON,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,limiterWithLag.saturationLimitReached,limiterWithLag.state,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.001132/0.6142, allocations: 0.8772 MB / 425.3 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.6154, allocations: 0.696 MB / 426 MB, free: 5.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6154, allocations: 3.938 kB / 426 MB, free: 5.246 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.6159, allocations: 308.4 kB / 426.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.6162, allocations: 28.62 kB / 426.3 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.6173, allocations: 285.8 kB / 426.6 MB, free: 4.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.6176, allocations: 0.7209 MB / 427.3 MB, free: 4.02 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002479/0.6179, allocations: 37.73 kB / 427.3 MB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.618, allocations: 38.55 kB / 427.4 MB, free: 3.969 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.618, allocations: 4 kB / 427.4 MB, free: 3.965 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03269/0.6507, allocations: 5.199 MB / 432.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002828/0.6511, allocations: 139.7 kB / 432.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.682/3.333, allocations: 4.062 kB / 432.7 MB, free: 14.61 MB / 362.7 MB