Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.459/2.459, allocations: 233 MB / 246.1 MB, free: 14.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.09e-05/5.096e-05, allocations: 7.938 kB / 302.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1252, allocations: 53.24 MB / 355.5 MB, free: 2.027 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4837/0.6089, allocations: 92.8 MB / 448.3 MB, free: 8.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/0.6094, allocations: 83.94 kB / 448.4 MB, free: 8.688 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09985/0.7092, allocations: 23.85 MB / 472.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7093, allocations: 0 / 472.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.673e-05/0.7093, allocations: 16 kB / 472.3 MB, free: 0.5898 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001532/0.7109, allocations: 0.6669 MB / 473 MB, free: 15.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.711, allocations: 12.03 kB / 473 MB, free: 15.87 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.7111, allocations: 82.52 kB / 473 MB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002698/0.7138, allocations: 215.1 kB / 473.3 MB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009382/0.7148, allocations: 370.7 kB / 473.6 MB, free: 15.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/0.7149, allocations: 32.95 kB / 473.6 MB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.715, allocations: 40 kB / 473.7 MB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.7165, allocations: 0.6011 MB / 474.3 MB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.7166, allocations: 11.89 kB / 474.3 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.493e-05/0.7167, allocations: 16 kB / 474.3 MB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002333/0.7169, allocations: 44.97 kB / 474.4 MB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.7185, allocations: 0.5641 MB / 474.9 MB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005593/0.7241, allocations: 2.274 MB / 477.2 MB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.7254, allocations: 474.8 kB / 477.7 MB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005873/0.726, allocations: 221.7 kB / 477.9 MB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.775e-05/0.7261, allocations: 8 kB / 477.9 MB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.7261, allocations: 34.56 kB / 477.9 MB, free: 10.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 4.268e-06/0.7261, allocations: 0 / 477.9 MB, free: 10.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.003632/0.7298, allocations: 1.231 MB / 479.1 MB, free: 9.375 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.7299, allocations: 85.11 kB / 479.2 MB, free: 9.273 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.7304, allocations: 247.3 kB / 479.5 MB, free: 9.023 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/0.7304, allocations: 29.7 kB / 479.5 MB, free: 8.988 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.7306, allocations: 236.1 kB / 479.7 MB, free: 8.754 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.7308, allocations: 149.8 kB / 479.9 MB, free: 8.605 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.7309, allocations: 12 kB / 479.9 MB, free: 8.594 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.7311, allocations: 346.8 kB / 480.2 MB, free: 8.246 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/0.7315, allocations: 169 kB / 480.4 MB, free: 8.082 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005583/0.7321, allocations: 277.2 kB / 480.7 MB, free: 7.766 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005722/0.7327, allocations: 211.8 kB / 480.9 MB, free: 7.559 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.7327, allocations: 0 / 480.9 MB, free: 7.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002033/0.7348, allocations: 0.638 MB / 481.5 MB, free: 6.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.7348, allocations: 8 kB / 481.5 MB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.7348, allocations: 4 kB / 481.5 MB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009645/0.7358, allocations: 161.2 kB / 481.7 MB, free: 6.738 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007535/0.7366, allocations: 99.81 kB / 481.8 MB, free: 6.641 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005493/0.7421, allocations: 2.509 MB / 484.3 MB, free: 4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.7427, allocations: 23.98 kB / 484.3 MB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.19e-05/0.7428, allocations: 23.98 kB / 484.3 MB, free: 3.953 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001858/0.743, allocations: 128.8 kB / 484.5 MB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.7431, allocations: 39.62 kB / 484.5 MB, free: 3.781 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001983/0.7451, allocations: 0.6097 MB / 485.1 MB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.7452, allocations: 4 kB / 485.1 MB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.7452, allocations: 0 / 485.1 MB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.7452, allocations: 3.984 kB / 485.1 MB, free: 3.152 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004576/0.7498, allocations: 1.332 MB / 486.4 MB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.7499, allocations: 0 / 486.4 MB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.751, allocations: 79.89 kB / 486.5 MB, free: 1.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00133/0.7524, allocations: 128.7 kB / 486.7 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/0.7526, allocations: 23.95 kB / 486.7 MB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006853/0.7594, allocations: 2.3 MB / 489 MB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.7595, allocations: 4 kB / 489 MB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003744/0.7633, allocations: 0.9536 MB / 489.9 MB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.7636, allocations: 112.6 kB / 490 MB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.7638, allocations: 20.09 kB / 490.1 MB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005936/0.7644, allocations: 15.92 kB / 490.1 MB, free: 13.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.7646, allocations: 27.97 kB / 490.1 MB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.95e-05/0.7647, allocations: 23.98 kB / 490.1 MB, free: 13.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004867/0.7652, allocations: 191.1 kB / 490.3 MB, free: 13.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.202e-06/0.7652, allocations: 0 / 490.3 MB, free: 13.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001521/0.7667, allocations: 151.9 kB / 490.5 MB, free: 13.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004396/0.7712, allocations: 1.717 MB / 492.2 MB, free: 11.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003243/0.7745, allocations: 0.6293 MB / 492.8 MB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/0.7745, allocations: 4.875 kB / 492.8 MB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.7764, allocations: 402.6 kB / 493.2 MB, free: 10.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009161/0.7773, allocations: 51.5 kB / 493.3 MB, free: 10.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004896/0.7823, allocations: 1.025 MB / 494.3 MB, free: 9.586 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009152/0.7833, allocations: 0.8793 MB / 495.2 MB, free: 8.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006258/0.7839, allocations: 75.22 kB / 495.2 MB, free: 8.605 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004712/0.7844, allocations: 143.6 kB / 495.4 MB, free: 8.465 MB / 426.7 MB Notification: Performance of SimCode: time 1.803e-06/0.7844, allocations: 0 / 495.4 MB, free: 8.465 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05557/0.84, allocations: 8.837 MB / 0.4924 GB, free: 15.71 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000314/0.8404, allocations: 186.9 kB / 0.4926 GB, free: 15.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.768/3.609, allocations: 0 / 0.4926 GB, free: 15.48 MB / 442.7 MB