Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=160000,variableFilter="time|voltageSensor.v|multiSensor.i|multiSensor.v|multiSensor.power|meanPower.y|vRMS.y|vH01.y_rms|vH01.y_arg|iRMS.y|iH01.y_rms|iH01.y_arg",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.579e-05, allocations: 6.812 kB / 292.2 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09058/0.09062, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4176/0.5082, allocations: 91.12 MB / 433.7 MB, free: 3.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004018/0.5087, allocations: 81.52 kB / 433.8 MB, free: 3.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1019/0.6106, allocations: 22.23 MB / 456 MB, free: 52 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.118e-06/0.6106, allocations: 0 / 456 MB, free: 52 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.6108, allocations: 35.98 kB / 456 MB, free: 16 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.004481/0.6153, allocations: 1.82 MB / 457.8 MB, free: 14.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.6154, allocations: 11.97 kB / 457.9 MB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005152/0.6159, allocations: 217.4 kB / 458.1 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00259/0.6185, allocations: 1.084 MB / 459.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.624e-05/0.6186, allocations: 71 kB / 459.2 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/0.6188, allocations: 87.5 kB / 459.3 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.6209, allocations: 0.9271 MB / 460.2 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.621, allocations: 0 / 460.2 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.6211, allocations: 38.61 kB / 460.3 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/0.6212, allocations: 24 kB / 460.3 MB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.623, allocations: 0.7527 MB / 461.1 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008075/0.6311, allocations: 3.453 MB / 464.5 MB, free: 8.559 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.6335, allocations: 0.9441 MB / 465.4 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.6345, allocations: 423 kB / 465.9 MB, free: 7.191 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.321e-05/0.6346, allocations: 20.77 kB / 465.9 MB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001323/0.636, allocations: 0.6058 MB / 466.5 MB, free: 6.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.267e-06/0.636, allocations: 0 / 466.5 MB, free: 6.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002488/0.6385, allocations: 0.9955 MB / 467.5 MB, free: 5.539 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.6386, allocations: 204.7 kB / 467.7 MB, free: 5.297 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003944/0.6426, allocations: 1.906 MB / 469.6 MB, free: 3.344 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.6428, allocations: 57.69 kB / 469.6 MB, free: 3.281 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006689/0.6434, allocations: 0.5612 MB / 470.2 MB, free: 2.711 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.6438, allocations: 260.4 kB / 470.5 MB, free: 2.453 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.561e-05/0.6439, allocations: 16 kB / 470.5 MB, free: 2.438 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.6441, allocations: 341.9 kB / 470.8 MB, free: 2.098 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000828/0.6449, allocations: 349.9 kB / 471.2 MB, free: 1.758 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.6461, allocations: 0.6058 MB / 471.8 MB, free: 1.035 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009537/0.647, allocations: 439.5 kB / 472.2 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.6471, allocations: 4 kB / 472.2 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002647/0.6497, allocations: 1.146 MB / 473.3 MB, free: 15.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001597/0.6513, allocations: 2.928 MB / 476.3 MB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.6514, allocations: 12 kB / 476.3 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004439/0.6518, allocations: 96.75 kB / 476.4 MB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.6531, allocations: 247.6 kB / 476.6 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002758/0.6559, allocations: 1.87 MB / 478.5 MB, free: 9.941 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.6574, allocations: 219.1 kB / 478.7 MB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.6576, allocations: 40 kB / 478.7 MB, free: 9.688 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.6576, allocations: 4 kB / 478.7 MB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002376/0.66, allocations: 1.008 MB / 479.7 MB, free: 8.664 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.66, allocations: 8.875 kB / 479.8 MB, free: 8.656 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003614/0.6604, allocations: 97 kB / 479.9 MB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.6615, allocations: 227.6 kB / 480.1 MB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002674/0.6642, allocations: 1.874 MB / 481.9 MB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.6657, allocations: 199.4 kB / 482.1 MB, free: 6.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.6659, allocations: 43.98 kB / 482.2 MB, free: 6.09 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.meanPower.y_last,meanPower.y_last,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.iH01.mean1.y_last,iH01.mean1.y_last,$PRE.iH01.mean2.y_last,iH01.mean2.y_last,$PRE.iRMS.mean.y_last,iRMS.mean.y_last,$PRE.vH01.mean1.y_last,vH01.mean1.y_last,$PRE.vH01.mean2.y_last,vH01.mean2.y_last,$PRE.vRMS.mean.y_last,vRMS.mean.y_last,$whenCondition10,$whenCondition9,$whenCondition8,$PRE.triac.thyristor1.off,triac.thyristor1.off,$PRE.triac.thyristor2.off,triac.thyristor2.off,adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$PRE.adaptor.timerPositive[1].entryTime,adaptor.timerPositive[1].entryTime,$PRE.adaptor.timerNegative[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * 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 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003864/0.6663, allocations: 184.8 kB / 482.4 MB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003999/0.6667, allocations: 181.7 kB / 482.5 MB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002789/0.6695, allocations: 1.085 MB / 483.6 MB, free: 4.629 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.6695, allocations: 11.98 kB / 483.6 MB, free: 4.617 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.636e-06/0.6695, allocations: 0 / 483.6 MB, free: 4.617 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.6696, allocations: 11.94 kB / 483.7 MB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005899/0.6755, allocations: 2.659 MB / 486.3 MB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.283e-06/0.6755, allocations: 3.984 kB / 486.3 MB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.6766, allocations: 155.8 kB / 486.5 MB, free: 1.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003846/0.677, allocations: 88.7 kB / 486.6 MB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.6771, allocations: 31.91 kB / 486.6 MB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00264/0.6797, allocations: 1.766 MB / 488.4 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.139e-06/0.6798, allocations: 4.062 kB / 488.4 MB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003701/0.6835, allocations: 1.603 MB / 490 MB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001402/0.6849, allocations: 0.5336 MB / 490.5 MB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.6852, allocations: 27.98 kB / 490.5 MB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/0.6866, allocations: 167.8 kB / 490.7 MB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002868/0.6869, allocations: 92.64 kB / 490.8 MB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.536e-05/0.687, allocations: 28.45 kB / 490.8 MB, free: 13.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00302/0.69, allocations: 1.511 MB / 492.3 MB, free: 11.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.63e-07/0.69, allocations: 0 / 492.3 MB, free: 11.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002194/0.6922, allocations: 0.5455 MB / 492.9 MB, free: 11.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (adaptor.filter[1].firstOrder.y,adaptor.filter[1].transferFunction[1].x_scaled[1],adaptor.filter[1].transferFunction[2].x_scaled[1],meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x) * Number of discrete variables: 27 (adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,triac.thyristor1.off,triac.thyristor2.off,adaptor.timerPositive[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],trapezoid.T_start,trapezoid.count,meanPower.y_last,vRMS.mean.y_last,vH01.mean1.y_last,vH01.mean2.y_last,iRMS.mean.y_last,iH01.mean1.y_last,iH01.mean2.y_last) * Number of discrete states: 10 (trapezoid.count,meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,triac.thyristor1.off,triac.thyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001412/0.6937, allocations: 415.6 kB / 493.3 MB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003829/0.6975, allocations: 1.776 MB / 495 MB, free: 8.973 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.111e-06/0.6976, allocations: 5.188 kB / 495 MB, free: 8.969 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.6988, allocations: 0.5783 MB / 495.6 MB, free: 8.379 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.7001, allocations: 200.9 kB / 495.8 MB, free: 8.184 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006946/0.7071, allocations: 2.903 MB / 498.7 MB, free: 5.238 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/0.7088, allocations: 1.432 MB / 0.4884 GB, free: 3.773 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002653/0.7114, allocations: 0.6944 MB / 0.4891 GB, free: 3.074 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.7117, allocations: 63.42 kB / 0.4892 GB, free: 3.012 MB / 410.7 MB Notification: Performance of SimCode: time 1.821e-06/0.7117, allocations: 0 / 0.4892 GB, free: 3.012 MB / 410.7 MB Notification: Performance of Templates: time 0.04924/0.761, allocations: 18.28 MB / 0.507 GB, free: 0.8125 MB / 426.7 MB