Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.442/2.442, allocations: 254.6 MB / 267.6 MB, free: 12.45 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.238e-05, allocations: 4 kB / 330.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4068, allocations: 60.24 MB / 391.1 MB, free: 4.762 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1584/0.5653, allocations: 86.87 MB / 478 MB, free: 13.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.5656, allocations: 75.89 kB / 478.1 MB, free: 13.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01767/0.5833, allocations: 3.958 MB / 482 MB, free: 9.719 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5834, allocations: 0 / 482 MB, free: 9.719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.374e-05/0.5834, allocations: 8 kB / 482 MB, free: 9.711 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009563/0.5844, allocations: 0.4898 MB / 482.5 MB, free: 9.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.5844, allocations: 12.03 kB / 482.5 MB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.662e-05/0.5845, allocations: 46.55 kB / 482.6 MB, free: 9.109 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.746e-05/0.5846, allocations: 35.58 kB / 482.6 MB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.5851, allocations: 261.6 kB / 482.9 MB, free: 8.781 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.926e-05/0.5852, allocations: 45.7 kB / 482.9 MB, free: 8.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.5853, allocations: 19.89 kB / 482.9 MB, free: 8.711 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.5857, allocations: 171 kB / 483.1 MB, free: 8.531 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.5857, allocations: 0 / 483.1 MB, free: 8.531 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.5857, allocations: 4 kB / 483.1 MB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.5858, allocations: 7.953 kB / 483.1 MB, free: 8.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.5861, allocations: 103.7 kB / 483.2 MB, free: 8.418 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.5875, allocations: 0.6582 MB / 483.9 MB, free: 7.699 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.588, allocations: 138.6 kB / 484 MB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002039/0.5882, allocations: 76.89 kB / 484.1 MB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.5883, allocations: 0 / 484.1 MB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.5883, allocations: 42.84 kB / 484.1 MB, free: 7.426 MB / 410.7 MB Notification: Performance of pre-optimization done (n=19): time 4.448e-06/0.5883, allocations: 0 / 484.1 MB, free: 7.426 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.001187/0.5895, allocations: 0.4989 MB / 484.6 MB, free: 6.879 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.5896, allocations: 55.41 kB / 484.7 MB, free: 6.812 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/0.5899, allocations: 205.1 kB / 484.9 MB, free: 6.605 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.59, allocations: 29.7 kB / 484.9 MB, free: 6.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.5901, allocations: 156.2 kB / 485.1 MB, free: 6.414 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.974e-05/0.5902, allocations: 66.95 kB / 485.1 MB, free: 6.348 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.57e-05/0.5902, allocations: 4 kB / 485.1 MB, free: 6.344 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.5904, allocations: 338.8 kB / 485.5 MB, free: 6.004 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.5906, allocations: 48 kB / 485.5 MB, free: 5.957 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.5908, allocations: 69.64 kB / 485.6 MB, free: 5.883 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.591, allocations: 51.98 kB / 485.6 MB, free: 5.832 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.591, allocations: 0 / 485.6 MB, free: 5.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004883/0.5915, allocations: 189.7 kB / 485.8 MB, free: 5.641 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.5915, allocations: 4 kB / 485.8 MB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.5915, allocations: 7.938 kB / 485.8 MB, free: 5.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.5915, allocations: 7.922 kB / 485.8 MB, free: 5.621 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008057/0.5924, allocations: 75.98 kB / 485.9 MB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.5924, allocations: 4 kB / 485.9 MB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.5926, allocations: 12 kB / 485.9 MB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.5927, allocations: 4 kB / 485.9 MB, free: 5.527 MB / 410.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: 1 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.000127/0.5928, allocations: 124.9 kB / 486.1 MB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.5929, allocations: 23.72 kB / 486.1 MB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004955/0.5934, allocations: 175.2 kB / 486.2 MB, free: 5.195 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.5934, allocations: 15.92 kB / 486.3 MB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.5934, allocations: 0 / 486.3 MB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.5935, allocations: 0 / 486.3 MB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.5945, allocations: 0.5405 MB / 486.8 MB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5945, allocations: 0 / 486.8 MB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/0.5953, allocations: 67.91 kB / 486.9 MB, free: 4.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.5953, allocations: 3.984 kB / 486.9 MB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.5953, allocations: 12 kB / 486.9 MB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.5954, allocations: 0 / 486.9 MB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.5954, allocations: 0 / 486.9 MB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006564/0.596, allocations: 335.1 kB / 487.2 MB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.5962, allocations: 108.9 kB / 487.3 MB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.87e-05/0.5962, allocations: 4 kB / 487.3 MB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.5965, allocations: 11.98 kB / 487.3 MB, free: 4.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.086e-05/0.5966, allocations: 15.98 kB / 487.4 MB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.5966, allocations: 11.98 kB / 487.4 MB, free: 3.992 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002412/0.5969, allocations: 161.4 kB / 487.5 MB, free: 3.832 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.565e-06/0.5969, allocations: 0 / 487.5 MB, free: 3.832 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004408/0.5974, allocations: 63.88 kB / 487.6 MB, free: 3.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 1 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.001067/0.5984, allocations: 0.8826 MB / 488.5 MB, free: 2.859 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004123/0.5989, allocations: 120 kB / 488.6 MB, free: 2.742 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5989, allocations: 3.938 kB / 488.6 MB, free: 2.738 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001962/0.5991, allocations: 71.97 kB / 488.7 MB, free: 2.668 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000481/0.5996, allocations: 37.12 kB / 488.7 MB, free: 2.633 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.6014, allocations: 0.5792 MB / 489.3 MB, free: 2.023 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.6019, allocations: 0.7597 MB / 490 MB, free: 1.238 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001733/0.602, allocations: 22.06 kB / 490.1 MB, free: 1.211 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.6022, allocations: 75.41 kB / 490.1 MB, free: 1.137 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6023, allocations: 0 / 490.1 MB, free: 1.137 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.6299, allocations: 4.087 MB / 494.2 MB, free: 13.11 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003348/0.6303, allocations: 163.5 kB / 494.4 MB, free: 12.87 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.568/3.199, allocations: 0 / 494.4 MB, free: 12.87 MB / 426.7 MB