Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.149/2.149, allocations: 220.2 MB / 232.3 MB, free: 12.22 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.031e-05/5.061e-05, allocations: 4 kB / 286.4 MB, free: 7.094 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 51.1 MB / 337.5 MB, free: 3.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.45/0.5593, allocations: 76.62 MB / 414.1 MB, free: 336 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.5596, allocations: 61.28 kB / 414.2 MB, free: 304 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01077/0.5704, allocations: 0.676 MB / 414.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5705, allocations: 0 / 414.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.5705, allocations: 0 / 414.9 MB, free: 15.67 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004777/0.571, allocations: 338.9 kB / 415.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.571, allocations: 8.031 kB / 415.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.665e-05/0.5711, allocations: 34.56 kB / 415.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.514e-05/0.5712, allocations: 3.938 kB / 415.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.5714, allocations: 182.8 kB / 415.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.5715, allocations: 3.062 kB / 415.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.5715, allocations: 3.953 kB / 415.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.5717, allocations: 63.45 kB / 415.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.5717, allocations: 4 kB / 415.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.5718, allocations: 0 / 415.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.5718, allocations: 0 / 415.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.445e-05/0.5719, allocations: 11.88 kB / 415.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005242/0.5771, allocations: 343.4 kB / 415.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001369/0.5773, allocations: 44.69 kB / 415.9 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.101e-05/0.5774, allocations: 17.66 kB / 415.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.5775, allocations: 4 kB / 415.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.5775, allocations: 40.69 kB / 416 MB, free: 14.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 3.066e-06/0.5775, allocations: 0 / 416 MB, free: 14.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002705/0.5778, allocations: 44.64 kB / 416 MB, free: 14.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.448e-05/0.5779, allocations: 102.8 kB / 416.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.578, allocations: 92.98 kB / 416.2 MB, free: 14.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.5781, allocations: 33.39 kB / 416.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.5782, allocations: 84.14 kB / 416.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.5782, allocations: 11.75 kB / 416.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.5782, allocations: 0 / 416.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.5784, allocations: 314.4 kB / 416.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.045e-05/0.5785, allocations: 4 kB / 416.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.852e-05/0.5786, allocations: 30 kB / 416.7 MB, free: 13.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.613e-05/0.5786, allocations: 8.031 kB / 416.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.5786, allocations: 3.953 kB / 416.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001651/0.5788, allocations: 48.7 kB / 416.7 MB, free: 13.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.579, allocations: 186.6 kB / 416.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.579, allocations: 4.062 kB / 416.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.579, allocations: 0 / 416.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.5792, allocations: 8 kB / 416.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.5793, allocations: 7.984 kB / 416.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.5794, allocations: 8.719 kB / 416.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.5795, allocations: 4 kB / 416.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.5795, allocations: 4 kB / 416.9 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 8.602e-05/0.5796, allocations: 23.8 kB / 417 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/0.5796, allocations: 0 / 417 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.174e-06/0.5796, allocations: 4 kB / 417 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.733e-05/0.5797, allocations: 4 kB / 417 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.5797, allocations: 3.938 kB / 417 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.874e-05/0.5798, allocations: 4 kB / 417 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.5798, allocations: 3.938 kB / 417 MB, free: 13.36 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.00011/0.58, allocations: 111.9 kB / 417.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.728e-05/0.5801, allocations: 3.953 kB / 417.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.5801, allocations: 13.58 kB / 417.1 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.5801, allocations: 4 kB / 417.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5802, allocations: 0 / 417.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.5802, allocations: 288 / 417.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004377/0.584, allocations: 156.7 kB / 417.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.584, allocations: 7.984 kB / 417.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.5842, allocations: 8 kB / 417.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.5843, allocations: 7.938 kB / 417.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.5843, allocations: 0 / 417.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/0.5843, allocations: 12 kB / 417.3 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.5843, allocations: 0 / 417.3 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.5846, allocations: 232.1 kB / 417.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/0.5847, allocations: 85.05 kB / 417.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.5848, allocations: 4 kB / 417.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002769/0.5851, allocations: 12 kB / 417.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.036e-05/0.5852, allocations: 7.547 kB / 417.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-06/0.5852, allocations: 0 / 417.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.841e-05/0.5853, allocations: 79.28 kB / 417.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5853, allocations: 0 / 417.7 MB, free: 12.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007025/0.586, allocations: 11.94 kB / 417.7 MB, free: 12.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0007318/0.5868, allocations: 0.8369 MB / 418.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001924/0.587, allocations: 27.8 kB / 418.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.958e-06/0.587, allocations: 0 / 418.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.405e-05/0.5871, allocations: 14.94 kB / 418.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.5874, allocations: 0.9375 kB / 418.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008118/0.5883, allocations: 113.4 kB / 418.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.5887, allocations: 0.6809 MB / 419.4 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.416e-05/0.5888, allocations: 4 kB / 419.4 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.293e-05/0.5889, allocations: 11.44 kB / 419.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of SimCode: time 9.91e-07/0.5889, allocations: 0 / 419.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0714/0.6603, allocations: 1.144 MB / 420.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002788/0.6606, allocations: 155 kB / 420.7 MB, free: 9.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/3, allocations: 0 / 420.7 MB, free: 9.48 MB / 346.7 MB