Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.475/2.475, allocations: 233 MB / 245.6 MB, free: 14.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.724e-05/3.727e-05, allocations: 4 kB / 301.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1383, allocations: 53.23 MB / 354.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4527/0.5911, allocations: 97.06 MB / 451.6 MB, free: 4.832 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/0.5915, allocations: 87.94 kB / 451.7 MB, free: 4.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06477/0.6562, allocations: 14.27 MB / 466 MB, free: 6.344 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6563, allocations: 0 / 466 MB, free: 6.344 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.928e-05/0.6564, allocations: 28.16 kB / 466 MB, free: 6.316 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00268/0.6591, allocations: 0.9559 MB / 467 MB, free: 5.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.6591, allocations: 8.031 kB / 467 MB, free: 5.293 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002849/0.6594, allocations: 110.5 kB / 467.1 MB, free: 5.176 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.6597, allocations: 86.97 kB / 467.2 MB, free: 5.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005233/0.665, allocations: 1.182 MB / 468.4 MB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.6652, allocations: 108.7 kB / 468.5 MB, free: 3.746 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.6654, allocations: 71.95 kB / 468.5 MB, free: 3.676 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.6675, allocations: 0.8099 MB / 469.4 MB, free: 2.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.6676, allocations: 0 / 469.4 MB, free: 2.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.6677, allocations: 33.22 kB / 469.4 MB, free: 2.789 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.6677, allocations: 16 kB / 469.4 MB, free: 2.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.6693, allocations: 0.5413 MB / 469.9 MB, free: 2.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006354/0.6757, allocations: 2.752 MB / 472.7 MB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.6777, allocations: 0.803 MB / 473.5 MB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006022/0.6783, allocations: 245.1 kB / 473.7 MB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.6784, allocations: 8.312 kB / 473.7 MB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007134/0.6791, allocations: 294.6 kB / 474 MB, free: 13.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 2.806e-06/0.6791, allocations: 0 / 474 MB, free: 13.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.003541/0.6827, allocations: 1.376 MB / 475.4 MB, free: 12.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.6828, allocations: 118.9 kB / 475.5 MB, free: 12.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008187/0.6836, allocations: 452.6 kB / 476 MB, free: 11.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.394e-05/0.6837, allocations: 41.7 kB / 476 MB, free: 11.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.6841, allocations: 388.8 kB / 476.4 MB, free: 11.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.6843, allocations: 138.1 kB / 476.5 MB, free: 11.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.6843, allocations: 15.94 kB / 476.5 MB, free: 11.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.6845, allocations: 334.8 kB / 476.9 MB, free: 10.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005152/0.685, allocations: 201.3 kB / 477.1 MB, free: 10.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000635/0.6857, allocations: 357.9 kB / 477.4 MB, free: 10.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000681/0.6864, allocations: 287.2 kB / 477.7 MB, free: 10.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.6864, allocations: 4 kB / 477.7 MB, free: 10.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001797/0.6882, allocations: 0.7734 MB / 478.5 MB, free: 9.242 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.574e-05/0.6883, allocations: 53.69 kB / 478.5 MB, free: 9.184 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.6883, allocations: 4 kB / 478.5 MB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003599/0.6887, allocations: 70.05 kB / 478.6 MB, free: 9.105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007745/0.6895, allocations: 111.8 kB / 478.7 MB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002978/0.6925, allocations: 2.841 MB / 481.5 MB, free: 5.887 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000734/0.6933, allocations: 36.19 kB / 481.6 MB, free: 5.852 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.6934, allocations: 43.97 kB / 481.6 MB, free: 5.809 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002417/0.6937, allocations: 144.8 kB / 481.8 MB, free: 5.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.6938, allocations: 63.23 kB / 481.8 MB, free: 5.598 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.6953, allocations: 0.5913 MB / 482.4 MB, free: 4.969 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.6954, allocations: 11.94 kB / 482.4 MB, free: 4.957 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.6954, allocations: 4 kB / 482.4 MB, free: 4.953 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.6954, allocations: 0 / 482.4 MB, free: 4.953 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.6985, allocations: 1.433 MB / 483.9 MB, free: 3.422 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.6985, allocations: 4 kB / 483.9 MB, free: 3.418 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005917/0.6991, allocations: 67.89 kB / 483.9 MB, free: 3.352 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000321/0.6994, allocations: 73.61 kB / 484 MB, free: 3.273 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.4e-05/0.6995, allocations: 19.98 kB / 484 MB, free: 3.254 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.7024, allocations: 2.826 MB / 486.9 MB, free: 172 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.7024, allocations: 4.062 kB / 486.9 MB, free: 168 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.7045, allocations: 0.9391 MB / 487.8 MB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003739/0.7049, allocations: 176.3 kB / 488 MB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001611/0.7051, allocations: 27.98 kB / 488 MB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007246/0.7058, allocations: 43.91 kB / 488 MB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.706, allocations: 36.52 kB / 488.1 MB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.055e-05/0.706, allocations: 15.98 kB / 488.1 MB, free: 14.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006565/0.7067, allocations: 345.5 kB / 488.4 MB, free: 14.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7067, allocations: 0 / 488.4 MB, free: 14.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001056/0.7078, allocations: 156 kB / 488.6 MB, free: 14.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002548/0.7103, allocations: 1.718 MB / 490.3 MB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.7122, allocations: 0.8074 MB / 491.1 MB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.7123, allocations: 0 / 491.1 MB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.7133, allocations: 447.6 kB / 491.5 MB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.7145, allocations: 134 kB / 491.7 MB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/0.7183, allocations: 1.345 MB / 493 MB, free: 9.742 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007727/0.7192, allocations: 0.9913 MB / 494 MB, free: 8.723 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005059/0.7197, allocations: 227.4 kB / 494.2 MB, free: 8.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/0.7197, allocations: 0 / 494.2 MB, free: 8.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.242/3.962, allocations: 16.19 MB / 0.4985 GB, free: 8.312 MB / 442.7 MB