Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.402/2.402, allocations: 254.6 MB / 267.7 MB, free: 12.45 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.568e-05, allocations: 4 kB / 330.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4493/0.4494, allocations: 60.23 MB / 391.1 MB, free: 4.781 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.657, allocations: 86.62 MB / 477.7 MB, free: 14.04 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/0.6574, allocations: 75.95 kB / 477.8 MB, free: 13.97 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02536/0.6828, allocations: 3.969 MB / 481.8 MB, free: 9.984 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6828, allocations: 0 / 481.8 MB, free: 9.984 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.999e-05/0.6829, allocations: 8 kB / 481.8 MB, free: 9.977 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001253/0.6842, allocations: 493.6 kB / 482.3 MB, free: 9.449 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.6842, allocations: 12.03 kB / 482.3 MB, free: 9.438 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.6844, allocations: 50.55 kB / 482.3 MB, free: 9.379 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.6845, allocations: 31.58 kB / 482.4 MB, free: 9.348 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006803/0.6852, allocations: 257.7 kB / 482.6 MB, free: 9.059 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.6852, allocations: 8 kB / 482.6 MB, free: 9.051 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.998e-05/0.6853, allocations: 20 kB / 482.6 MB, free: 9.031 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005585/0.6859, allocations: 167 kB / 482.8 MB, free: 8.855 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.686, allocations: 0 / 482.8 MB, free: 8.855 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/0.686, allocations: 8 kB / 482.8 MB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.6861, allocations: 7.953 kB / 482.8 MB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004449/0.6865, allocations: 95.84 kB / 482.9 MB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.6885, allocations: 0.658 MB / 483.6 MB, free: 8.027 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005607/0.6891, allocations: 126.6 kB / 483.7 MB, free: 7.895 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.6894, allocations: 68.89 kB / 483.8 MB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.6894, allocations: 8 kB / 483.8 MB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.6895, allocations: 30.56 kB / 483.8 MB, free: 7.777 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 7.394e-06/0.6895, allocations: 0 / 483.8 MB, free: 7.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.00175/0.6913, allocations: 498.9 kB / 484.3 MB, free: 7.238 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.6914, allocations: 51.41 kB / 484.3 MB, free: 7.176 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004773/0.6919, allocations: 205 kB / 484.5 MB, free: 6.969 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.6919, allocations: 33.69 kB / 484.6 MB, free: 6.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.6921, allocations: 148.4 kB / 484.7 MB, free: 6.781 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.6922, allocations: 67.02 kB / 484.8 MB, free: 6.715 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-05/0.6923, allocations: 0 / 484.8 MB, free: 6.715 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.6925, allocations: 346.7 kB / 485.1 MB, free: 6.367 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.6928, allocations: 40 kB / 485.2 MB, free: 6.328 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002481/0.693, allocations: 69.64 kB / 485.2 MB, free: 6.254 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.6933, allocations: 47.98 kB / 485.3 MB, free: 6.207 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6933, allocations: 4 kB / 485.3 MB, free: 6.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006916/0.694, allocations: 182.6 kB / 485.5 MB, free: 6.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.6941, allocations: 4 kB / 485.5 MB, free: 6.016 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.6941, allocations: 7.984 kB / 485.5 MB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.6942, allocations: 0 / 485.5 MB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.6952, allocations: 71.89 kB / 485.5 MB, free: 5.938 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.697, allocations: 1.331 MB / 486.9 MB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.6973, allocations: 8.219 kB / 486.9 MB, free: 4.461 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.6974, allocations: 12 kB / 486.9 MB, free: 4.449 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.6975, allocations: 120.9 kB / 487 MB, free: 4.324 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.378e-05/0.6976, allocations: 19.72 kB / 487 MB, free: 4.305 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004907/0.6981, allocations: 185.8 kB / 487.2 MB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.6981, allocations: 0 / 487.2 MB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.6981, allocations: 0 / 487.2 MB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.6981, allocations: 7.984 kB / 487.2 MB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.6992, allocations: 0.5333 MB / 487.8 MB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.6992, allocations: 4 kB / 487.8 MB, free: 3.523 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.6997, allocations: 43.98 kB / 487.8 MB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.6997, allocations: 0 / 487.8 MB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.6997, allocations: 4 kB / 487.8 MB, free: 3.477 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.6997, allocations: 3.938 kB / 487.8 MB, free: 3.473 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6997, allocations: 0 / 487.8 MB, free: 3.473 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.7004, allocations: 338.2 kB / 488.1 MB, free: 3.129 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.7006, allocations: 112.8 kB / 488.2 MB, free: 3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.7006, allocations: 7.938 kB / 488.3 MB, free: 2.992 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.7009, allocations: 11.98 kB / 488.3 MB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.701, allocations: 11.98 kB / 488.3 MB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.701, allocations: 4 kB / 488.3 MB, free: 2.965 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002419/0.7013, allocations: 165.4 kB / 488.4 MB, free: 2.801 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.7013, allocations: 0 / 488.4 MB, free: 2.801 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004444/0.7017, allocations: 63.89 kB / 488.5 MB, free: 2.738 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: 0 () * 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.001045/0.7028, allocations: 0.8645 MB / 489.4 MB, free: 1.844 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006043/0.7034, allocations: 136 kB / 489.5 MB, free: 1.711 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7034, allocations: 4 kB / 489.5 MB, free: 1.707 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.7036, allocations: 63.94 kB / 489.6 MB, free: 1.645 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.7041, allocations: 43.53 kB / 489.6 MB, free: 1.605 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.706, allocations: 0.5976 MB / 490.2 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.7064, allocations: 0.7635 MB / 491 MB, free: 184 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001795/0.7066, allocations: 30.05 kB / 491 MB, free: 156 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.7068, allocations: 83.41 kB / 491.1 MB, free: 72 kB / 410.7 MB Notification: Performance of SimCode: time 9.41e-07/0.7068, allocations: 0 / 491.1 MB, free: 72 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02731/0.7341, allocations: 4.413 MB / 495.5 MB, free: 11.71 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002794/0.7345, allocations: 155.4 kB / 495.7 MB, free: 11.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.387, allocations: 0 / 495.7 MB, free: 11.48 MB / 426.7 MB