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_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.175e-05, allocations: 6.812 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09104, allocations: 50.41 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3813/0.4724, allocations: 91.13 MB / 434.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.4727, allocations: 77.39 kB / 434.3 MB, free: 3.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08907/0.5618, allocations: 22.22 MB / 456.5 MB, free: 4 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.343e-06/0.5618, allocations: 0 / 456.5 MB, free: 4 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000148/0.562, allocations: 36.05 kB / 456.6 MB, free: 15.96 MB / 378.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.004223/0.5662, allocations: 1.826 MB / 458.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.5663, allocations: 8.031 kB / 458.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004888/0.5668, allocations: 217.4 kB / 458.6 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002593/0.5694, allocations: 1.08 MB / 459.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.815e-05/0.5695, allocations: 67.06 kB / 459.8 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002027/0.5697, allocations: 93.98 kB / 459.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002102/0.5718, allocations: 0.9282 MB / 460.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.5719, allocations: 0 / 460.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.572, allocations: 32.25 kB / 460.8 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/0.5721, allocations: 20 kB / 460.8 MB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.5739, allocations: 0.7556 MB / 461.6 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007842/0.5817, allocations: 3.458 MB / 465 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.5841, allocations: 0.9363 MB / 466 MB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.5852, allocations: 442.9 kB / 466.4 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.572e-05/0.5853, allocations: 8.781 kB / 466.4 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/0.5866, allocations: 0.6136 MB / 467 MB, free: 6.574 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.911e-06/0.5866, allocations: 0 / 467 MB, free: 6.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002629/0.5893, allocations: 0.9994 MB / 468 MB, free: 5.566 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.5894, allocations: 200.7 kB / 468.2 MB, free: 5.328 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.5936, allocations: 1.91 MB / 470.1 MB, free: 3.371 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001648/0.5938, allocations: 49.7 kB / 470.2 MB, free: 3.316 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006942/0.5945, allocations: 0.5651 MB / 470.7 MB, free: 2.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000348/0.5949, allocations: 260.3 kB / 471 MB, free: 2.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.958e-05/0.595, allocations: 20 kB / 471 MB, free: 2.465 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.5952, allocations: 345.9 kB / 471.4 MB, free: 2.121 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008212/0.596, allocations: 341.9 kB / 471.7 MB, free: 1.789 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.5971, allocations: 0.6019 MB / 472.3 MB, free: 1.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009547/0.5981, allocations: 439.5 kB / 472.7 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.5981, allocations: 4 kB / 472.7 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002717/0.6008, allocations: 1.137 MB / 473.9 MB, free: 15.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001617/0.6025, allocations: 2.94 MB / 476.8 MB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.6025, allocations: 4 kB / 476.8 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000437/0.603, allocations: 96.81 kB / 476.9 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.6042, allocations: 247.6 kB / 477.1 MB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002713/0.607, allocations: 1.862 MB / 479 MB, free: 9.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.6085, allocations: 227.1 kB / 479.2 MB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.6087, allocations: 40 kB / 479.3 MB, free: 9.727 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.997e-06/0.6087, allocations: 0 / 479.3 MB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002334/0.611, allocations: 1.016 MB / 480.3 MB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.6111, allocations: 11.98 kB / 480.3 MB, free: 8.688 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/0.6114, allocations: 93.59 kB / 480.4 MB, free: 8.594 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.6126, allocations: 231.6 kB / 480.6 MB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/0.6152, allocations: 1.854 MB / 482.5 MB, free: 6.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.6166, allocations: 207.2 kB / 482.7 MB, free: 6.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.6167, allocations: 36.16 kB / 482.7 MB, free: 6.141 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.0003611/0.6171, allocations: 188.7 kB / 482.9 MB, free: 5.949 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004094/0.6175, allocations: 181.8 kB / 483.1 MB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/0.6203, allocations: 1.089 MB / 484.2 MB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.6203, allocations: 8 kB / 484.2 MB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.776e-06/0.6204, allocations: 3.953 kB / 484.2 MB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.6204, allocations: 3.984 kB / 484.2 MB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005568/0.626, allocations: 2.667 MB / 486.8 MB, free: 1.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.626, allocations: 8.125 kB / 486.8 MB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009648/0.627, allocations: 155.8 kB / 487 MB, free: 1.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003619/0.6274, allocations: 92.98 kB / 487.1 MB, free: 1.656 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.963e-05/0.6275, allocations: 31.86 kB / 487.1 MB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/0.63, allocations: 1.758 MB / 488.9 MB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/0.63, allocations: 8.016 kB / 488.9 MB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003478/0.6335, allocations: 1.607 MB / 490.5 MB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.6348, allocations: 0.5296 MB / 491 MB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.6351, allocations: 28 kB / 491 MB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/0.6364, allocations: 167.8 kB / 491.2 MB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002794/0.6367, allocations: 92.64 kB / 491.3 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.499e-05/0.6368, allocations: 27.98 kB / 491.3 MB, free: 13.22 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002906/0.6397, allocations: 1.511 MB / 492.8 MB, free: 11.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.023e-06/0.6397, allocations: 0 / 492.8 MB, free: 11.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002271/0.642, allocations: 0.5495 MB / 493.4 MB, free: 11.13 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.001387/0.6434, allocations: 416.6 kB / 493.8 MB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003734/0.6472, allocations: 1.775 MB / 495.6 MB, free: 8.996 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.097e-06/0.6472, allocations: 1.75 kB / 495.6 MB, free: 8.996 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.6484, allocations: 0.5784 MB / 496.2 MB, free: 8.406 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.6497, allocations: 198.7 kB / 496.3 MB, free: 8.207 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00696/0.6567, allocations: 2.891 MB / 499.2 MB, free: 5.273 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001621/0.6583, allocations: 1.444 MB / 0.4889 GB, free: 3.801 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002662/0.661, allocations: 0.6905 MB / 0.4896 GB, free: 3.105 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.6613, allocations: 59.42 kB / 0.4897 GB, free: 3.047 MB / 410.7 MB Notification: Performance of SimCode: time 1.979e-06/0.6614, allocations: 4 kB / 0.4897 GB, free: 3.043 MB / 410.7 MB Notification: Performance of Templates: time 0.07575/0.7371, allocations: 18.29 MB / 0.5075 GB, free: 0.8398 MB / 426.7 MB