Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.556/2.556, allocations: 254.6 MB / 267.7 MB, free: 12.45 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.255e-05/4.27e-05, allocations: 4 kB / 330.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4971/0.4972, allocations: 60.23 MB / 391.1 MB, free: 4.77 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2184/0.7157, allocations: 86.47 MB / 477.6 MB, free: 14.18 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/0.7161, allocations: 75.95 kB / 477.7 MB, free: 14.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02436/0.7405, allocations: 3.649 MB / 481.3 MB, free: 10.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.614e-06/0.7405, allocations: 0 / 481.3 MB, free: 10.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.884e-05/0.7406, allocations: 4 kB / 481.3 MB, free: 10.44 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001187/0.7418, allocations: 473.8 kB / 481.8 MB, free: 9.934 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.184e-05/0.7419, allocations: 8.031 kB / 481.8 MB, free: 9.926 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.624e-05/0.742, allocations: 46.55 kB / 481.8 MB, free: 9.871 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.7421, allocations: 27.67 kB / 481.9 MB, free: 9.844 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006796/0.7428, allocations: 265.6 kB / 482.1 MB, free: 9.547 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.7428, allocations: 12 kB / 482.1 MB, free: 9.535 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.235e-05/0.7429, allocations: 16 kB / 482.2 MB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.7434, allocations: 139.5 kB / 482.3 MB, free: 9.371 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.7435, allocations: 3.906 kB / 482.3 MB, free: 9.367 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.7435, allocations: 4 kB / 482.3 MB, free: 9.363 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.7436, allocations: 7.984 kB / 482.3 MB, free: 9.355 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000381/0.744, allocations: 91.86 kB / 482.4 MB, free: 9.266 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.7457, allocations: 0.5925 MB / 483 MB, free: 8.613 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.7462, allocations: 126.6 kB / 483.1 MB, free: 8.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.7465, allocations: 60.86 kB / 483.2 MB, free: 8.418 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.7465, allocations: 7.984 kB / 483.2 MB, free: 8.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.7466, allocations: 38.78 kB / 483.2 MB, free: 8.363 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 6.613e-06/0.7466, allocations: 0 / 483.2 MB, free: 8.363 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.00173/0.7484, allocations: 498.5 kB / 483.7 MB, free: 7.824 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/0.7485, allocations: 55.41 kB / 483.8 MB, free: 7.758 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004674/0.749, allocations: 197.1 kB / 484 MB, free: 7.559 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.749, allocations: 33.7 kB / 484 MB, free: 7.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.7492, allocations: 144.4 kB / 484.1 MB, free: 7.375 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.7493, allocations: 66.95 kB / 484.2 MB, free: 7.309 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.7494, allocations: 4 kB / 484.2 MB, free: 7.305 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.7496, allocations: 334.8 kB / 484.5 MB, free: 6.969 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.7498, allocations: 40 kB / 484.6 MB, free: 6.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.7501, allocations: 70.75 kB / 484.6 MB, free: 6.852 MB / 410.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.generator.theta = generator.omega_e_nom (6.283185307179586 * grid.fnom = generator.omega_e_nom) Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.7521, allocations: 289.7 kB / 484.9 MB, free: 6.555 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.7522, allocations: 7.938 kB / 484.9 MB, free: 6.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007071/0.7529, allocations: 169.3 kB / 485.1 MB, free: 6.375 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.7529, allocations: 4 kB / 485.1 MB, free: 6.371 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.753, allocations: 0 / 485.1 MB, free: 6.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.753, allocations: 4 kB / 485.1 MB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007225/0.7537, allocations: 63.89 kB / 485.2 MB, free: 6.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.7538, allocations: 4 kB / 485.2 MB, free: 6.301 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.7542, allocations: 12.03 kB / 485.2 MB, free: 6.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.7542, allocations: 8 kB / 485.2 MB, free: 6.281 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.generator.theta = generator.omega_e_nom. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001964/0.7544, allocations: 123.7 kB / 485.3 MB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.7545, allocations: 23.67 kB / 485.3 MB, free: 6.133 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006957/0.7553, allocations: 163.7 kB / 485.5 MB, free: 5.965 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.7553, allocations: 11.94 kB / 485.5 MB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.7553, allocations: 0 / 485.5 MB, free: 5.953 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.7553, allocations: 3.984 kB / 485.5 MB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.7569, allocations: 0.5217 MB / 486 MB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.7569, allocations: 0 / 486 MB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007913/0.7577, allocations: 55.91 kB / 486.1 MB, free: 5.316 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/0.7578, allocations: 3.953 kB / 486.1 MB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.7578, allocations: 4 kB / 486.1 MB, free: 5.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.7578, allocations: 4 kB / 486.1 MB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7579, allocations: 0 / 486.1 MB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009471/0.7588, allocations: 320.9 kB / 486.4 MB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.7591, allocations: 104.9 kB / 486.5 MB, free: 4.855 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.969e-05/0.7591, allocations: 11.89 kB / 486.5 MB, free: 4.844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.7595, allocations: 12 kB / 486.5 MB, free: 4.832 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.701e-05/0.7597, allocations: 7.984 kB / 486.5 MB, free: 4.824 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.7597, allocations: 7.984 kB / 486.5 MB, free: 4.816 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003486/0.7601, allocations: 161.4 kB / 486.7 MB, free: 4.656 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7601, allocations: 4 kB / 486.7 MB, free: 4.652 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007409/0.7608, allocations: 44 kB / 486.7 MB, free: 4.609 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.00155/0.7624, allocations: 0.8629 MB / 487.6 MB, free: 3.719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006333/0.7631, allocations: 123.9 kB / 487.7 MB, free: 3.598 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.7632, allocations: 4.062 kB / 487.7 MB, free: 3.594 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.7634, allocations: 71.86 kB / 487.8 MB, free: 3.523 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006474/0.7641, allocations: 28.36 kB / 487.8 MB, free: 3.496 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.7666, allocations: 0.502 MB / 488.3 MB, free: 2.961 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.7672, allocations: 0.7519 MB / 489.1 MB, free: 2.184 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.7675, allocations: 26.05 kB / 489.1 MB, free: 2.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.7678, allocations: 63.42 kB / 489.2 MB, free: 2.098 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/0.7678, allocations: 4 kB / 489.2 MB, free: 2.094 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03287/0.8007, allocations: 3.91 MB / 493.1 MB, free: 14.24 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003413/0.8011, allocations: 158.8 kB / 493.2 MB, free: 14.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.537/3.338, allocations: 4 kB / 493.2 MB, free: 14.01 MB / 426.7 MB