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_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadModel(Modelica): time 1.977/1.977, allocations: 194.9 MB / 210.6 MB, free: 9.316 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.827e-05, allocations: 0 / 258.8 MB, free: 9.012 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2979, allocations: 44.52 MB / 303.3 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.00646/0.3044, allocations: 3.795 MB / 307.1 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003403/0.3079, allocations: 1.182 MB / 308.3 MB, free: 8.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006337/0.3086, allocations: 31.94 kB / 308.3 MB, free: 8.711 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003009/0.3089, allocations: 87.28 kB / 308.4 MB, free: 8.625 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008468/0.3097, allocations: 203.3 kB / 308.6 MB, free: 8.426 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008694/0.3106, allocations: 219.5 kB / 308.8 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.3118, allocations: 499.3 kB / 309.3 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005092/0.3124, allocations: 212.8 kB / 309.5 MB, free: 7.508 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004853/0.3129, allocations: 243.3 kB / 309.8 MB, free: 7.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.3134, allocations: 290.9 kB / 310.1 MB, free: 6.984 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.3136, allocations: 28 kB / 310.1 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.3138, allocations: 36 kB / 310.1 MB, free: 6.922 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.314, allocations: 127.4 kB / 310.3 MB, free: 6.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.3142, allocations: 60 kB / 310.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.3153, allocations: 0.7675 MB / 311.1 MB, free: 5.969 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.3153, allocations: 4 kB / 311.1 MB, free: 5.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3153, allocations: 7.875 kB / 311.1 MB, free: 5.957 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.018e-05/0.3153, allocations: 0 / 311.1 MB, free: 5.957 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.002892/0.3182, allocations: 0.9502 MB / 312 MB, free: 4.949 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.3183, allocations: 8.031 kB / 312 MB, free: 4.941 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.3186, allocations: 90.97 kB / 312.1 MB, free: 4.852 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.3201, allocations: 0.5523 MB / 312.7 MB, free: 4.258 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.3203, allocations: 61.23 kB / 312.7 MB, free: 4.195 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.3205, allocations: 68 kB / 312.8 MB, free: 4.129 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.3227, allocations: 0.7294 MB / 313.5 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.738e-05/0.3227, allocations: 7.922 kB / 313.6 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.3229, allocations: 28 kB / 313.6 MB, free: 3.336 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.3229, allocations: 16 kB / 313.6 MB, free: 3.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002063/0.325, allocations: 0.5673 MB / 314.2 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006228/0.3312, allocations: 2.575 MB / 316.7 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.3334, allocations: 0.602 MB / 317.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.3335, allocations: 12.47 kB / 317.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001396/0.3349, allocations: 461.5 kB / 317.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 5.18e-06/0.335, allocations: 0 / 317.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=67): time 0.005905/0.3409, allocations: 1.242 MB / 319 MB, free: 13.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.3411, allocations: 119.4 kB / 319.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009218/0.342, allocations: 466.1 kB / 319.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.3421, allocations: 45.69 kB / 319.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003378/0.3425, allocations: 324.6 kB / 320 MB, free: 12.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/0.3427, allocations: 209.1 kB / 320.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.3428, allocations: 16 kB / 320.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.343, allocations: 370.8 kB / 320.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009003/0.3439, allocations: 245.9 kB / 320.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.345, allocations: 418.8 kB / 321.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.3461, allocations: 306.4 kB / 321.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.3461, allocations: 0 / 321.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002682/0.3488, allocations: 0.8454 MB / 322.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008614/0.3497, allocations: 1.947 MB / 324.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.3497, allocations: 4 kB / 324.3 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007927/0.3505, allocations: 154.5 kB / 324.5 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/0.3514, allocations: 123.8 kB / 324.6 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004476/0.3559, allocations: 2.365 MB / 326.9 MB, free: 5.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009539/0.3569, allocations: 99.25 kB / 327 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.648e-05/0.357, allocations: 24 kB / 327.1 MB, free: 5.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.357, allocations: 4 kB / 327.1 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002425/0.3595, allocations: 0.7545 MB / 327.8 MB, free: 4.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3595, allocations: 4 kB / 327.8 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006843/0.3602, allocations: 149 kB / 328 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008209/0.3611, allocations: 119.7 kB / 328.1 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/0.3654, allocations: 2.358 MB / 330.4 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009593/0.3664, allocations: 83.45 kB / 330.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.791e-05/0.3665, allocations: 35.98 kB / 330.6 MB, free: 1.605 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.0005506/0.3671, allocations: 233.8 kB / 330.8 MB, free: 1.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.3672, allocations: 71.14 kB / 330.9 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002729/0.37, allocations: 0.7797 MB / 331.6 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.37, allocations: 8.078 kB / 331.6 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.37, allocations: 4 kB / 331.6 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.37, allocations: 3.984 kB / 331.7 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.374, allocations: 1.541 MB / 333.2 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.374, allocations: 3.984 kB / 333.2 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007429/0.3748, allocations: 79.89 kB / 333.3 MB, free: 14.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000697/0.3755, allocations: 148.7 kB / 333.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.905e-05/0.3756, allocations: 15.98 kB / 333.4 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/0.38, allocations: 2.356 MB / 335.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.38, allocations: 0 / 335.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003622/0.3837, allocations: 1.156 MB / 336.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.3841, allocations: 204.2 kB / 337.1 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.3843, allocations: 19.98 kB / 337.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.385, allocations: 55.95 kB / 337.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.3853, allocations: 60.47 kB / 337.3 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.382e-05/0.3854, allocations: 23.98 kB / 337.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006932/0.3861, allocations: 362.8 kB / 337.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3861, allocations: 0 / 337.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001523/0.3876, allocations: 347.1 kB / 338 MB, free: 9.914 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.000261/0.3879, allocations: 136.5 kB / 338.1 MB, free: 9.773 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004312/0.3922, allocations: 1.51 MB / 339.6 MB, free: 8.215 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.3923, allocations: 0 / 339.6 MB, free: 8.215 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.3938, allocations: 0.5252 MB / 340.2 MB, free: 7.676 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008667/0.3947, allocations: 106.8 kB / 340.3 MB, free: 7.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.3986, allocations: 1.541 MB / 341.8 MB, free: 6.008 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006815/0.3993, allocations: 0.9523 MB / 342.8 MB, free: 5.023 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000922/0.4002, allocations: 129.1 kB / 342.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.4004, allocations: 43.44 kB / 342.9 MB, free: 4.855 MB / 282.7 MB Notification: Performance of SimCode: time 9.01e-07/0.4005, allocations: 0 / 342.9 MB, free: 4.855 MB / 282.7 MB Notification: Performance of Templates: time 0.03292/0.4334, allocations: 11.19 MB / 354.1 MB, free: 9.68 MB / 298.7 MB