Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 2.091/2.091, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.07e-05, allocations: 0 / 258.8 MB, free: 8.688 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 44.51 MB / 303.3 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.006596/0.3276, allocations: 3.872 MB / 307.2 MB, free: 9.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003435/0.3311, allocations: 1.217 MB / 308.4 MB, free: 8.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005431/0.3317, allocations: 27.94 kB / 308.4 MB, free: 8.551 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.332, allocations: 87.23 kB / 308.5 MB, free: 8.465 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007085/0.3327, allocations: 207.3 kB / 308.7 MB, free: 8.262 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008086/0.3336, allocations: 219.5 kB / 308.9 MB, free: 8.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.3347, allocations: 0.507 MB / 309.4 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.3353, allocations: 221.2 kB / 309.7 MB, free: 7.316 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005239/0.3358, allocations: 243.3 kB / 309.9 MB, free: 7.078 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005694/0.3364, allocations: 310.8 kB / 310.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.3366, allocations: 28 kB / 310.2 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.3367, allocations: 32 kB / 310.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.3369, allocations: 135.4 kB / 310.4 MB, free: 6.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001955/0.3371, allocations: 67.94 kB / 310.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.3383, allocations: 0.783 MB / 311.2 MB, free: 5.73 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3384, allocations: 3.938 kB / 311.2 MB, free: 5.727 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3384, allocations: 0 / 311.2 MB, free: 5.727 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.3384, allocations: 0 / 311.2 MB, free: 5.727 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002939/0.3413, allocations: 0.9685 MB / 312.2 MB, free: 4.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3414, allocations: 12.03 kB / 312.2 MB, free: 4.691 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002985/0.3417, allocations: 98.81 kB / 312.3 MB, free: 4.594 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.3433, allocations: 0.5513 MB / 312.9 MB, free: 4 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.3435, allocations: 61.98 kB / 312.9 MB, free: 3.938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000185/0.3437, allocations: 75.91 kB / 313 MB, free: 3.863 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002219/0.3459, allocations: 0.7498 MB / 313.8 MB, free: 3.086 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.346, allocations: 4 kB / 313.8 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.3461, allocations: 28 kB / 313.8 MB, free: 3.055 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.566e-05/0.3462, allocations: 16 kB / 313.8 MB, free: 3.039 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/0.3483, allocations: 0.5868 MB / 314.4 MB, free: 2.453 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006564/0.3549, allocations: 2.652 MB / 317 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/0.3569, allocations: 0.5757 MB / 317.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-05/0.3571, allocations: 16.48 kB / 317.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001427/0.3585, allocations: 453.8 kB / 318.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 4.118e-06/0.3585, allocations: 4 kB / 318.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=69): time 0.005736/0.3643, allocations: 1.238 MB / 319.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3644, allocations: 123.3 kB / 319.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009536/0.3654, allocations: 478.1 kB / 319.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001416/0.3656, allocations: 41.7 kB / 319.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/0.366, allocations: 359 kB / 320.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.3663, allocations: 213 kB / 320.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.3664, allocations: 16 kB / 320.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3665, allocations: 338.8 kB / 320.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009483/0.3675, allocations: 241.9 kB / 321.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.3687, allocations: 431 kB / 321.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.3697, allocations: 303.8 kB / 321.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.3698, allocations: 4 kB / 321.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002723/0.3725, allocations: 0.8215 MB / 322.6 MB, free: 9.898 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009889/0.3735, allocations: 1.952 MB / 324.6 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.3736, allocations: 7.938 kB / 324.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008324/0.3744, allocations: 148.7 kB / 324.7 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.3755, allocations: 131.8 kB / 324.9 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004612/0.3801, allocations: 2.327 MB / 327.2 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.3812, allocations: 103.4 kB / 327.3 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.3813, allocations: 24 kB / 327.3 MB, free: 4.918 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.3813, allocations: 4 kB / 327.3 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00255/0.3839, allocations: 0.7695 MB / 328.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.3839, allocations: 4 kB / 328.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006422/0.3846, allocations: 149.6 kB / 328.2 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009396/0.3855, allocations: 127.8 kB / 328.4 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004468/0.39, allocations: 2.298 MB / 330.7 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007875/0.3909, allocations: 79.55 kB / 330.7 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.391, allocations: 28 kB / 330.8 MB, free: 1.328 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.notFire,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0006087/0.3916, allocations: 241.8 kB / 331 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/0.3918, allocations: 71.14 kB / 331.1 MB, free: 1.012 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.3946, allocations: 0.7877 MB / 331.9 MB, free: 208 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.3947, allocations: 8 kB / 331.9 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3947, allocations: 0 / 331.9 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.3948, allocations: 3.984 kB / 331.9 MB, free: 196 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/0.3993, allocations: 1.565 MB / 333.4 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.3994, allocations: 0 / 333.4 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008569/0.4003, allocations: 91.88 kB / 333.5 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000654/0.4009, allocations: 136.8 kB / 333.7 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-05/0.401, allocations: 19.98 kB / 333.7 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004411/0.4055, allocations: 2.328 MB / 336 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4055, allocations: 0 / 336 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003711/0.4092, allocations: 1.163 MB / 337.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/0.4097, allocations: 204.1 kB / 337.4 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/0.41, allocations: 16 kB / 337.4 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007985/0.4108, allocations: 59.91 kB / 337.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.411, allocations: 60.47 kB / 337.5 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.4111, allocations: 23.98 kB / 337.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006848/0.4118, allocations: 362.8 kB / 337.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4118, allocations: 0 / 337.9 MB, free: 9.953 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001562/0.4134, allocations: 351 kB / 338.2 MB, free: 9.609 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.notFire,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 {4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002684/0.4137, allocations: 133.4 kB / 338.4 MB, free: 9.473 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004427/0.4181, allocations: 1.501 MB / 339.9 MB, free: 7.926 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.4182, allocations: 0 / 339.9 MB, free: 7.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/0.4197, allocations: 0.5255 MB / 340.4 MB, free: 7.387 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/0.4207, allocations: 106.5 kB / 340.5 MB, free: 7.281 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/0.4249, allocations: 1.68 MB / 342.2 MB, free: 5.574 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007927/0.4258, allocations: 0.9591 MB / 343.1 MB, free: 4.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003473/0.4262, allocations: 51.42 kB / 343.2 MB, free: 4.535 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4262, allocations: 4 kB / 343.2 MB, free: 4.531 MB / 282.7 MB Notification: Performance of Templates: time 0.02593/0.4521, allocations: 11.71 MB / 354.9 MB, free: 8.832 MB / 298.7 MB