Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.341/2.341, allocations: 233 MB / 246.1 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.636e-05/3.643e-05, allocations: 4 kB / 302.3 MB, free: 7.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 53.24 MB / 355.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.5451, allocations: 89.27 MB / 444.8 MB, free: 12.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.5455, allocations: 83.89 kB / 444.9 MB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04068/0.5862, allocations: 9.708 MB / 454.6 MB, free: 2.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5862, allocations: 0 / 454.6 MB, free: 2.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.5862, allocations: 4 kB / 454.6 MB, free: 2.566 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008044/0.5871, allocations: 470.9 kB / 455.1 MB, free: 2.059 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.5871, allocations: 12.03 kB / 455.1 MB, free: 2.047 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.898e-05/0.5872, allocations: 54.53 kB / 455.1 MB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.5883, allocations: 83.72 kB / 455.2 MB, free: 1.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.5888, allocations: 259 kB / 455.5 MB, free: 1.609 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.5888, allocations: 16.31 kB / 455.5 MB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.5889, allocations: 28.3 kB / 455.5 MB, free: 1.566 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.5895, allocations: 247.7 kB / 455.7 MB, free: 1.301 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.5895, allocations: 0 / 455.7 MB, free: 1.301 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.5896, allocations: 8 kB / 455.7 MB, free: 1.293 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.81e-05/0.5896, allocations: 24.25 kB / 455.8 MB, free: 1.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005308/0.5902, allocations: 200.5 kB / 456 MB, free: 1.074 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.5924, allocations: 1.22 MB / 457.2 MB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.5927, allocations: 117.3 kB / 457.3 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.5928, allocations: 45.72 kB / 457.3 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.5929, allocations: 0 / 457.3 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.5929, allocations: 34.56 kB / 457.4 MB, free: 15.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.425e-06/0.5929, allocations: 4 kB / 457.4 MB, free: 15.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003919/0.5933, allocations: 121.6 kB / 457.5 MB, free: 15.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.5934, allocations: 85.05 kB / 457.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.5937, allocations: 189.7 kB / 457.8 MB, free: 15.11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.5937, allocations: 25.7 kB / 457.8 MB, free: 15.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.5939, allocations: 159.8 kB / 458 MB, free: 14.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.803e-05/0.5939, allocations: 35.45 kB / 458 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.5939, allocations: 4 kB / 458 MB, free: 14.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5941, allocations: 334.8 kB / 458.3 MB, free: 14.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.5942, allocations: 39.98 kB / 458.4 MB, free: 14.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.5944, allocations: 110.3 kB / 458.5 MB, free: 14.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.5946, allocations: 60.56 kB / 458.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.5946, allocations: 4 kB / 458.5 MB, free: 14.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004605/0.5951, allocations: 190.8 kB / 458.7 MB, free: 14.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.5951, allocations: 8 kB / 458.7 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.5951, allocations: 4 kB / 458.7 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.5952, allocations: 4 kB / 458.7 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004067/0.5956, allocations: 44.27 kB / 458.8 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.5956, allocations: 11.98 kB / 458.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.5958, allocations: 23.78 kB / 458.8 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.5959, allocations: 12 kB / 458.8 MB, free: 14 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 23 * 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.0001043/0.596, allocations: 116.9 kB / 458.9 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.576e-05/0.596, allocations: 15.81 kB / 459 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.5964, allocations: 135 kB / 459.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5964, allocations: 0 / 459.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5964, allocations: 0 / 459.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5965, allocations: 8 kB / 459.1 MB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.5975, allocations: 0.5304 MB / 459.6 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.5975, allocations: 4 kB / 459.6 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.5978, allocations: 31.92 kB / 459.7 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.383e-06/0.5978, allocations: 4.188 kB / 459.7 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.5979, allocations: 4 kB / 459.7 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/0.5979, allocations: 7.938 kB / 459.7 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.5979, allocations: 7.938 kB / 459.7 MB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006163/0.5985, allocations: 397.3 kB / 460.1 MB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/0.5987, allocations: 96.91 kB / 460.2 MB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.5987, allocations: 4 kB / 460.2 MB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.5989, allocations: 11.95 kB / 460.2 MB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.5989, allocations: 7.984 kB / 460.2 MB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.599, allocations: 4 kB / 460.2 MB, free: 12.44 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001866/0.5992, allocations: 144.6 kB / 460.3 MB, free: 12.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5992, allocations: 4 kB / 460.3 MB, free: 12.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005256/0.5997, allocations: 55.91 kB / 460.4 MB, free: 12.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00111/0.6009, allocations: 1.426 MB / 461.8 MB, free: 10.74 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003451/0.6012, allocations: 111.8 kB / 461.9 MB, free: 10.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.6012, allocations: 4 kB / 461.9 MB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.6014, allocations: 43.92 kB / 462 MB, free: 10.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004508/0.6019, allocations: 29.11 kB / 462 MB, free: 10.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.6032, allocations: 472 kB / 462.5 MB, free: 10.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.6037, allocations: 0.7441 MB / 463.2 MB, free: 9.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001893/0.6039, allocations: 37.52 kB / 463.2 MB, free: 9.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.604, allocations: 55.42 kB / 463.3 MB, free: 9.176 MB / 394.7 MB Notification: Performance of SimCode: time 9.51e-07/0.604, allocations: 0 / 463.3 MB, free: 9.176 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.6264, allocations: 3.106 MB / 466.4 MB, free: 6.137 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002878/0.6268, allocations: 155.5 kB / 466.6 MB, free: 5.906 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.939, allocations: 0 / 466.6 MB, free: 5.906 MB / 394.7 MB