Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.356/2.356, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.078e-05/4.084e-05, allocations: 7.984 kB / 301.4 MB, free: 7.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 53.22 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.5747, allocations: 89.28 MB / 443.9 MB, free: 12.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/0.5751, allocations: 81.92 kB / 443.9 MB, free: 12.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04207/0.6172, allocations: 9.713 MB / 453.7 MB, free: 2.848 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6172, allocations: 0 / 453.7 MB, free: 2.848 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.6173, allocations: 4 kB / 453.7 MB, free: 2.844 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.0009688/0.6183, allocations: 470.5 kB / 454.1 MB, free: 2.336 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.6183, allocations: 12.03 kB / 454.1 MB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.942e-05/0.6184, allocations: 54.53 kB / 454.2 MB, free: 2.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.6195, allocations: 83.72 kB / 454.3 MB, free: 2.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000545/0.6201, allocations: 266.9 kB / 454.5 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.6201, allocations: 8.328 kB / 454.5 MB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-05/0.6202, allocations: 24.41 kB / 454.6 MB, free: 1.848 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.6208, allocations: 255.5 kB / 454.8 MB, free: 1.574 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.6209, allocations: 4 kB / 454.8 MB, free: 1.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.554e-05/0.6209, allocations: 8 kB / 454.8 MB, free: 1.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.315e-05/0.621, allocations: 16.31 kB / 454.8 MB, free: 1.547 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005443/0.6215, allocations: 200.5 kB / 455 MB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.6239, allocations: 1.216 MB / 456.3 MB, free: 36 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.6243, allocations: 117.3 kB / 456.4 MB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.6244, allocations: 37.78 kB / 456.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.6244, allocations: 4 kB / 456.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.6245, allocations: 38.48 kB / 456.4 MB, free: 15.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 3.216e-06/0.6245, allocations: 4 kB / 456.4 MB, free: 15.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.000401/0.6249, allocations: 117.6 kB / 456.6 MB, free: 15.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.625, allocations: 81.11 kB / 456.6 MB, free: 15.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.6253, allocations: 189.7 kB / 456.8 MB, free: 15.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.6253, allocations: 25.7 kB / 456.9 MB, free: 15.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.6254, allocations: 210.3 kB / 457.1 MB, free: 15.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.929e-05/0.6255, allocations: 43.44 kB / 457.1 MB, free: 15.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.286e-05/0.6255, allocations: 8 kB / 457.1 MB, free: 15.11 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.6257, allocations: 326.8 kB / 457.4 MB, free: 14.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.6258, allocations: 39.94 kB / 457.5 MB, free: 14.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.626, allocations: 106.3 kB / 457.6 MB, free: 14.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.6262, allocations: 59.97 kB / 457.6 MB, free: 14.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.902e-06/0.6262, allocations: 4 kB / 457.6 MB, free: 14.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004395/0.6266, allocations: 183.1 kB / 457.8 MB, free: 14.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.6267, allocations: 8 kB / 457.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.6267, allocations: 3.984 kB / 457.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.6267, allocations: 4 kB / 457.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.6271, allocations: 56.23 kB / 457.9 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.6272, allocations: 8 kB / 457.9 MB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.6274, allocations: 27.69 kB / 457.9 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.6274, allocations: 12 kB / 457.9 MB, free: 14.23 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.0001103/0.6276, allocations: 120.9 kB / 458 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.6276, allocations: 15.81 kB / 458.1 MB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003687/0.628, allocations: 127.1 kB / 458.2 MB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.628, allocations: 3.984 kB / 458.2 MB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.6281, allocations: 0 / 458.2 MB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.6281, allocations: 4 kB / 458.2 MB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.6291, allocations: 0.5188 MB / 458.7 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.6292, allocations: 11.92 kB / 458.7 MB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.6295, allocations: 32.23 kB / 458.8 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.6295, allocations: 11.94 kB / 458.8 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.6295, allocations: 4 kB / 458.8 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.6295, allocations: 4 kB / 458.8 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.6296, allocations: 3.953 kB / 458.8 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.6302, allocations: 401.2 kB / 459.2 MB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.661e-05/0.6303, allocations: 92.92 kB / 459.3 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.6303, allocations: 7.984 kB / 459.3 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.6305, allocations: 11.95 kB / 459.3 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.6306, allocations: 7.938 kB / 459.3 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.6306, allocations: 7.984 kB / 459.3 MB, free: 12.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001885/0.6308, allocations: 140.6 kB / 459.4 MB, free: 12.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6308, allocations: 4.062 kB / 459.4 MB, free: 12.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000493/0.6313, allocations: 51.94 kB / 459.5 MB, free: 12.49 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.001099/0.6324, allocations: 1.422 MB / 460.9 MB, free: 10.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003499/0.6328, allocations: 107.8 kB / 461 MB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.6328, allocations: 4 kB / 461 MB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.633, allocations: 51.86 kB / 461.1 MB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.6335, allocations: 31.86 kB / 461.1 MB, free: 10.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.6349, allocations: 0.492 MB / 461.6 MB, free: 10.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.6353, allocations: 0.7441 MB / 462.3 MB, free: 9.477 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.6355, allocations: 63.41 kB / 462.4 MB, free: 9.414 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6355, allocations: 0 / 462.4 MB, free: 9.414 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.629/3.264, allocations: 3.09 MB / 465.5 MB, free: 6.32 MB / 394.7 MB