Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadModel(PowerSystems): time 2.177/2.177, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.193e-05/3.173e-05, allocations: 4 kB / 301.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08928, allocations: 53.24 MB / 354.5 MB, free: 2.625 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.4592, allocations: 97.05 MB / 451.5 MB, free: 4.996 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.4595, allocations: 87.95 kB / 451.6 MB, free: 4.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05745/0.517, allocations: 14.28 MB / 465.9 MB, free: 6.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.921e-06/0.517, allocations: 0 / 465.9 MB, free: 6.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.177e-05/0.5171, allocations: 20.16 kB / 465.9 MB, free: 6.48 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.001972/0.5191, allocations: 0.9521 MB / 466.9 MB, free: 5.469 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.5191, allocations: 11.97 kB / 466.9 MB, free: 5.457 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002293/0.5194, allocations: 90.95 kB / 467 MB, free: 5.367 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004012/0.5234, allocations: 1.171 MB / 468.2 MB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.5236, allocations: 117.4 kB / 468.3 MB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.5238, allocations: 67.95 kB / 468.3 MB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.5255, allocations: 0.8099 MB / 469.1 MB, free: 3.105 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.5255, allocations: 0 / 469.1 MB, free: 3.105 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.704e-05/0.5256, allocations: 28 kB / 469.2 MB, free: 3.078 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.5257, allocations: 16 kB / 469.2 MB, free: 3.062 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.527, allocations: 0.5452 MB / 469.7 MB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.5321, allocations: 2.748 MB / 472.5 MB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.5336, allocations: 0.7992 MB / 473.3 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.5342, allocations: 245.1 kB / 473.5 MB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.5342, allocations: 12.2 kB / 473.5 MB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005954/0.5348, allocations: 302.5 kB / 473.8 MB, free: 14.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 4.089e-06/0.5348, allocations: 2.531 kB / 473.8 MB, free: 14.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.00302/0.5379, allocations: 1.376 MB / 475.2 MB, free: 12.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.005e-05/0.538, allocations: 106.8 kB / 475.3 MB, free: 12.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007576/0.5387, allocations: 452.6 kB / 475.8 MB, free: 12.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.193e-05/0.5388, allocations: 41.7 kB / 475.8 MB, free: 12.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003562/0.5392, allocations: 390.2 kB / 476.2 MB, free: 11.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.5394, allocations: 142.1 kB / 476.3 MB, free: 11.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.5394, allocations: 12 kB / 476.3 MB, free: 11.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.5396, allocations: 334.8 kB / 476.7 MB, free: 11.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004447/0.5401, allocations: 201.3 kB / 476.8 MB, free: 11.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/0.5407, allocations: 357.9 kB / 477.2 MB, free: 10.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005818/0.5413, allocations: 287.2 kB / 477.5 MB, free: 10.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.5413, allocations: 4 kB / 477.5 MB, free: 10.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00166/0.543, allocations: 0.7772 MB / 478.3 MB, free: 9.527 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.009e-05/0.5431, allocations: 49.69 kB / 478.3 MB, free: 9.473 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.5431, allocations: 4 kB / 478.3 MB, free: 9.469 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.5434, allocations: 74.19 kB / 478.4 MB, free: 9.391 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.544, allocations: 107.8 kB / 478.5 MB, free: 9.285 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002972/0.547, allocations: 2.841 MB / 481.3 MB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005525/0.5475, allocations: 31.89 kB / 481.4 MB, free: 6.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.5477, allocations: 43.97 kB / 481.4 MB, free: 6.102 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.000222/0.5479, allocations: 152.7 kB / 481.6 MB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.548, allocations: 63.39 kB / 481.6 MB, free: 5.883 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.5493, allocations: 0.5912 MB / 482.2 MB, free: 5.254 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.5494, allocations: 7.953 kB / 482.2 MB, free: 5.246 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.475e-06/0.5494, allocations: 4 kB / 482.2 MB, free: 5.242 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.5494, allocations: 3.984 kB / 482.2 MB, free: 5.238 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.5522, allocations: 1.434 MB / 483.7 MB, free: 3.707 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.347e-06/0.5522, allocations: 0 / 483.7 MB, free: 3.707 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004119/0.5526, allocations: 63.91 kB / 483.7 MB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/0.5529, allocations: 69.72 kB / 483.8 MB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.495e-05/0.553, allocations: 19.92 kB / 483.8 MB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/0.5559, allocations: 2.829 MB / 486.6 MB, free: 472 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.5559, allocations: 8.531 kB / 486.6 MB, free: 464 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.5577, allocations: 0.9394 MB / 487.6 MB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003327/0.5581, allocations: 172.3 kB / 487.8 MB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.5582, allocations: 27.98 kB / 487.8 MB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00052/0.5588, allocations: 55.72 kB / 487.8 MB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.612e-05/0.5589, allocations: 27.97 kB / 487.9 MB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.559, allocations: 13.58 kB / 487.9 MB, free: 15.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005848/0.5596, allocations: 353.5 kB / 488.2 MB, free: 14.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.93e-07/0.5596, allocations: 0 / 488.2 MB, free: 14.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009196/0.5605, allocations: 152 kB / 488.4 MB, free: 14.65 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.0002474/0.5608, allocations: 139.1 kB / 488.5 MB, free: 14.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.5623, allocations: 0.8019 MB / 489.3 MB, free: 13.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.368e-06/0.5624, allocations: 0 / 489.3 MB, free: 13.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008236/0.5632, allocations: 447.7 kB / 489.7 MB, free: 13.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008557/0.5641, allocations: 133.9 kB / 489.9 MB, free: 13.08 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.5668, allocations: 1.17 MB / 491 MB, free: 11.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008464/0.5677, allocations: 0.9991 MB / 492 MB, free: 10.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.5679, allocations: 43.44 kB / 492.1 MB, free: 10.8 MB / 426.7 MB Notification: Performance of SimCode: time 2.168e-06/0.568, allocations: 0 / 492.1 MB, free: 10.8 MB / 426.7 MB Notification: Performance of Templates: time 0.02126/0.5892, allocations: 12.87 MB / 0.4931 GB, free: 13.93 MB / 442.7 MB