Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.324/2.324, allocations: 233 MB / 245.6 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.027e-05/4.024e-05, allocations: 11.94 kB / 301.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 53.24 MB / 354.6 MB, free: 2.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4741/0.5876, allocations: 92.95 MB / 447.6 MB, free: 8.914 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.588, allocations: 87.95 kB / 447.6 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06886/0.6569, allocations: 16.1 MB / 463.7 MB, free: 8.562 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6569, allocations: 0 / 463.7 MB, free: 8.562 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.761e-05/0.657, allocations: 16 kB / 463.8 MB, free: 8.547 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.002515/0.6595, allocations: 0.8791 MB / 464.6 MB, free: 7.617 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.6596, allocations: 8.031 kB / 464.6 MB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002215/0.6598, allocations: 98.52 kB / 464.7 MB, free: 7.504 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.66, allocations: 75.16 kB / 464.8 MB, free: 7.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004604/0.6647, allocations: 1.161 MB / 466 MB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.6649, allocations: 116.7 kB / 466.1 MB, free: 6.102 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.6651, allocations: 59.98 kB / 466.1 MB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.667, allocations: 0.707 MB / 466.8 MB, free: 5.293 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.667, allocations: 4 kB / 466.9 MB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.6671, allocations: 24 kB / 466.9 MB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.46e-05/0.6672, allocations: 16 kB / 466.9 MB, free: 5.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.6687, allocations: 0.5173 MB / 467.4 MB, free: 4.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005623/0.6743, allocations: 2.496 MB / 469.9 MB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.6758, allocations: 405.2 kB / 470.3 MB, free: 1.711 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000535/0.6763, allocations: 189.3 kB / 470.5 MB, free: 1.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.6764, allocations: 4.281 kB / 470.5 MB, free: 1.516 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000532/0.6769, allocations: 227.5 kB / 470.7 MB, free: 1.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=36): time 3.116e-06/0.677, allocations: 0 / 470.7 MB, free: 1.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.001794/0.6788, allocations: 435.5 kB / 471.1 MB, free: 0.8359 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.6789, allocations: 140.6 kB / 471.3 MB, free: 0.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007039/0.6796, allocations: 347.1 kB / 471.6 MB, free: 332 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.929e-05/0.6797, allocations: 33.7 kB / 471.6 MB, free: 292 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.6801, allocations: 354.5 kB / 472 MB, free: 15.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.6803, allocations: 122.3 kB / 472.1 MB, free: 15.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.6803, allocations: 8 kB / 472.1 MB, free: 15.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.6805, allocations: 330.8 kB / 472.4 MB, free: 15.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003527/0.6808, allocations: 112.9 kB / 472.6 MB, free: 15.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.6813, allocations: 237.1 kB / 472.8 MB, free: 15.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.6817, allocations: 148.6 kB / 472.9 MB, free: 14.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.6818, allocations: 0 / 472.9 MB, free: 14.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001759/0.6835, allocations: 493 kB / 473.4 MB, free: 14.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.6836, allocations: 11.94 kB / 473.4 MB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.6836, allocations: 4 kB / 473.4 MB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000496/0.6841, allocations: 129.6 kB / 473.6 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006038/0.6847, allocations: 87.83 kB / 473.6 MB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.6883, allocations: 1.926 MB / 475.6 MB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006386/0.689, allocations: 59.55 kB / 475.6 MB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/0.6891, allocations: 16 kB / 475.6 MB, free: 12.09 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000208/0.6893, allocations: 134.8 kB / 475.8 MB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.6894, allocations: 47.47 kB / 475.8 MB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.6911, allocations: 458.7 kB / 476.3 MB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.6912, allocations: 4 kB / 476.3 MB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.6912, allocations: 7.984 kB / 476.3 MB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.6912, allocations: 0 / 476.3 MB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.6925, allocations: 0.6829 MB / 477 MB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.6925, allocations: 0 / 477 MB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/0.693, allocations: 51.91 kB / 477 MB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004217/0.6935, allocations: 120.8 kB / 477.1 MB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.6935, allocations: 8 kB / 477.1 MB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003419/0.697, allocations: 1.924 MB / 479.1 MB, free: 8.449 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.697, allocations: 8.062 kB / 479.1 MB, free: 8.441 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.6992, allocations: 0.6689 MB / 479.7 MB, free: 7.723 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.6995, allocations: 148.5 kB / 479.9 MB, free: 7.559 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.261e-05/0.6996, allocations: 7.984 kB / 479.9 MB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.7, allocations: 23.98 kB / 479.9 MB, free: 7.527 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.7002, allocations: 40.08 kB / 480 MB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.791e-05/0.7002, allocations: 12 kB / 480 MB, free: 7.477 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004922/0.7007, allocations: 269.2 kB / 480.2 MB, free: 7.219 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7008, allocations: 0 / 480.2 MB, free: 7.219 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008853/0.7017, allocations: 171.5 kB / 480.4 MB, free: 7.051 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002706/0.7044, allocations: 1.474 MB / 481.9 MB, free: 5.523 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.7057, allocations: 469.4 kB / 482.3 MB, free: 5.055 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.7057, allocations: 0 / 482.3 MB, free: 5.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007345/0.7064, allocations: 301.5 kB / 482.6 MB, free: 4.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.7076, allocations: 145.6 kB / 482.8 MB, free: 4.609 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.7106, allocations: 1.094 MB / 483.9 MB, free: 3.461 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007552/0.7114, allocations: 0.9483 MB / 484.8 MB, free: 2.484 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004074/0.7118, allocations: 191.4 kB / 485 MB, free: 2.297 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7118, allocations: 0 / 485 MB, free: 2.297 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.619, allocations: 12.97 MB / 498 MB, free: 5.348 MB / 426.7 MB