Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 194.9 MB / 211.2 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.952e-05/3.952e-05, allocations: 4 kB / 258.8 MB, free: 8.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3294, allocations: 44.49 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.008372/0.3379, allocations: 3.795 MB / 307.1 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004173/0.3421, allocations: 1.185 MB / 308.3 MB, free: 8.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007882/0.3429, allocations: 27.94 kB / 308.3 MB, free: 8.633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003849/0.3434, allocations: 87.23 kB / 308.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00108/0.3445, allocations: 207.3 kB / 308.6 MB, free: 8.344 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.3457, allocations: 231.5 kB / 308.8 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001733/0.3475, allocations: 495.4 kB / 309.3 MB, free: 7.629 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007807/0.3483, allocations: 212.8 kB / 309.5 MB, free: 7.418 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007271/0.3491, allocations: 243.3 kB / 309.8 MB, free: 7.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008452/0.3499, allocations: 294.9 kB / 310 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002077/0.3502, allocations: 32 kB / 310.1 MB, free: 6.859 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000184/0.3504, allocations: 28 kB / 310.1 MB, free: 6.832 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002718/0.3506, allocations: 127.4 kB / 310.2 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002749/0.3509, allocations: 60 kB / 310.3 MB, free: 6.648 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001573/0.3525, allocations: 0.7713 MB / 311.1 MB, free: 5.875 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3526, allocations: 0 / 311.1 MB, free: 5.875 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.3526, allocations: 3.938 kB / 311.1 MB, free: 5.871 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.677e-05/0.3526, allocations: 4 kB / 311.1 MB, free: 5.867 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.003793/0.3564, allocations: 0.9502 MB / 312 MB, free: 4.859 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.3565, allocations: 8.031 kB / 312 MB, free: 4.852 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004139/0.3569, allocations: 90.97 kB / 312.1 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.3591, allocations: 0.5484 MB / 312.7 MB, free: 4.172 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.3593, allocations: 65.25 kB / 312.7 MB, free: 4.105 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.3596, allocations: 67.98 kB / 312.8 MB, free: 4.039 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003172/0.3628, allocations: 0.7255 MB / 313.5 MB, free: 3.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.671e-05/0.3629, allocations: 3.938 kB / 313.5 MB, free: 3.281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.363, allocations: 28 kB / 313.5 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/0.3631, allocations: 16 kB / 313.6 MB, free: 3.238 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003083/0.3662, allocations: 0.5712 MB / 314.1 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008458/0.3747, allocations: 2.563 MB / 316.7 MB, free: 0 / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002936/0.3777, allocations: 0.6126 MB / 317.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.3778, allocations: 12.53 kB / 317.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001938/0.3798, allocations: 462.3 kB / 317.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 5.09e-06/0.3798, allocations: 0 / 317.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=67): time 0.007948/0.3878, allocations: 1.238 MB / 319 MB, free: 13.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.388, allocations: 119.3 kB / 319.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/0.3893, allocations: 470.1 kB / 319.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001967/0.3895, allocations: 41.7 kB / 319.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004358/0.39, allocations: 355 kB / 320 MB, free: 12.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.3904, allocations: 205.1 kB / 320.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.705e-05/0.3905, allocations: 12 kB / 320.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.3907, allocations: 334.8 kB / 320.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.392, allocations: 245.9 kB / 320.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.3936, allocations: 418.9 kB / 321.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.395, allocations: 310.4 kB / 321.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.3951, allocations: 3.938 kB / 321.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003675/0.3988, allocations: 0.803 MB / 322.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00108/0.3999, allocations: 1.954 MB / 324.2 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.3999, allocations: 4 kB / 324.2 MB, free: 8.105 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.401, allocations: 154.1 kB / 324.4 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.4023, allocations: 123.8 kB / 324.5 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006282/0.4086, allocations: 2.36 MB / 326.9 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.41, allocations: 95.34 kB / 327 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.4102, allocations: 28 kB / 327 MB, free: 5.215 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.4102, allocations: 6.031 kB / 327 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002886/0.4131, allocations: 0.7547 MB / 327.7 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.4132, allocations: 4.25 kB / 327.7 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007084/0.4139, allocations: 144.8 kB / 327.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008878/0.4148, allocations: 123.8 kB / 328 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004545/0.4194, allocations: 2.337 MB / 330.3 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007572/0.4202, allocations: 83.45 kB / 330.4 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.4203, allocations: 24 kB / 330.4 MB, free: 1.602 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 (71): * Single equations (assignments): 69 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005871/0.4209, allocations: 241.9 kB / 330.7 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.4211, allocations: 63.25 kB / 330.7 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.4239, allocations: 0.7835 MB / 331.5 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/0.4239, allocations: 7.953 kB / 331.5 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4239, allocations: 0 / 331.5 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4239, allocations: 3.984 kB / 331.5 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004124/0.4281, allocations: 1.537 MB / 333.1 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.4281, allocations: 0 / 333.1 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007562/0.4289, allocations: 87.88 kB / 333.2 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007563/0.4297, allocations: 152.6 kB / 333.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.4298, allocations: 15.98 kB / 333.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004392/0.4342, allocations: 2.356 MB / 335.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4342, allocations: 0 / 335.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/0.4379, allocations: 1.148 MB / 336.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004625/0.4384, allocations: 212.1 kB / 337 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.4386, allocations: 12 kB / 337.1 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007744/0.4394, allocations: 51.95 kB / 337.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002371/0.4396, allocations: 60.47 kB / 337.2 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.067e-05/0.4397, allocations: 27.98 kB / 337.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006806/0.4404, allocations: 358.9 kB / 337.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4404, allocations: 0 / 337.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001594/0.4421, allocations: 347.1 kB / 337.9 MB, free: 9.918 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * 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 (50): * Single equations (assignments): 41 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002657/0.4423, allocations: 132.8 kB / 338 MB, free: 9.785 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00473/0.4471, allocations: 1.498 MB / 339.5 MB, free: 8.238 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.627e-06/0.4471, allocations: 0 / 339.5 MB, free: 8.238 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.4487, allocations: 0.5226 MB / 340 MB, free: 7.703 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009105/0.4496, allocations: 103.6 kB / 340.1 MB, free: 7.602 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004063/0.4537, allocations: 1.581 MB / 341.7 MB, free: 5.996 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007229/0.4545, allocations: 0.9552 MB / 342.7 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000342/0.4549, allocations: 51.41 kB / 342.7 MB, free: 4.961 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4549, allocations: 0 / 342.7 MB, free: 4.961 MB / 282.7 MB Notification: Performance of Templates: time 0.02588/0.4808, allocations: 11.5 MB / 354.2 MB, free: 9.469 MB / 298.7 MB