Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.131/2.131, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.546e-05/3.556e-05, allocations: 0 / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 50.41 MB / 343.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4642/0.5769, allocations: 91.14 MB / 434.3 MB, free: 2.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.5772, allocations: 84.69 kB / 434.4 MB, free: 2.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1129/0.6902, allocations: 22.23 MB / 456.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.6903, allocations: 0 / 456.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002443/0.6905, allocations: 36 kB / 456.7 MB, free: 15.62 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.006683/0.6972, allocations: 1.825 MB / 458.5 MB, free: 13.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.983e-05/0.6973, allocations: 12.03 kB / 458.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005558/0.6979, allocations: 122.4 kB / 458.6 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008175/0.6987, allocations: 217.4 kB / 458.8 MB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004098/0.7028, allocations: 1.086 MB / 459.9 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.703, allocations: 64.75 kB / 460 MB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004156/0.7035, allocations: 92.8 kB / 460.1 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003004/0.7065, allocations: 0.9276 MB / 461 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.344e-05/0.7066, allocations: 3.906 kB / 461 MB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.7068, allocations: 37.75 kB / 461 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.56e-05/0.7068, allocations: 20 kB / 461.1 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/0.7095, allocations: 0.7562 MB / 461.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/0.721, allocations: 3.458 MB / 465.3 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003193/0.7243, allocations: 0.9363 MB / 466.2 MB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.7257, allocations: 439 kB / 466.6 MB, free: 6.863 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.7258, allocations: 12.77 kB / 466.6 MB, free: 6.852 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001805/0.7277, allocations: 0.6135 MB / 467.3 MB, free: 6.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 6.473e-06/0.7277, allocations: 0 / 467.3 MB, free: 6.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.004462/0.7322, allocations: 0.9956 MB / 468.3 MB, free: 5.211 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.7324, allocations: 200.7 kB / 468.4 MB, free: 4.973 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008242/0.7407, allocations: 1.906 MB / 470.4 MB, free: 3.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000392/0.7411, allocations: 53.7 kB / 470.4 MB, free: 2.961 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.7424, allocations: 0.5612 MB / 471 MB, free: 2.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000688/0.7432, allocations: 268.3 kB / 471.2 MB, free: 2.125 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.7434, allocations: 20 kB / 471.3 MB, free: 2.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.7436, allocations: 341.9 kB / 471.6 MB, free: 1.766 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.7452, allocations: 349.9 kB / 471.9 MB, free: 1.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.7471, allocations: 0.598 MB / 472.5 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.7488, allocations: 431.5 kB / 472.9 MB, free: 288 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.138e-05/0.7489, allocations: 4 kB / 473 MB, free: 284 kB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.005165/0.7541, allocations: 1.15 MB / 474.1 MB, free: 15.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001728/0.7559, allocations: 2.932 MB / 477 MB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.134e-05/0.756, allocations: 8 kB / 477 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008276/0.7568, allocations: 96.81 kB / 477.1 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/0.7596, allocations: 239.6 kB / 477.4 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004207/0.7638, allocations: 1.87 MB / 479.2 MB, free: 9.629 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/0.7671, allocations: 219.1 kB / 479.5 MB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003063/0.7675, allocations: 40 kB / 479.5 MB, free: 9.375 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.7675, allocations: 4 kB / 479.5 MB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004386/0.7719, allocations: 1.013 MB / 480.5 MB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.269e-05/0.772, allocations: 12.12 kB / 480.5 MB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006326/0.7727, allocations: 92.81 kB / 480.6 MB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/0.7752, allocations: 235.6 kB / 480.8 MB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004536/0.7798, allocations: 1.858 MB / 482.7 MB, free: 6.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/0.7828, allocations: 211.1 kB / 482.9 MB, free: 5.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003089/0.7832, allocations: 40 kB / 482.9 MB, free: 5.773 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.0006224/0.7838, allocations: 180.8 kB / 483.1 MB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008269/0.7847, allocations: 173.8 kB / 483.3 MB, free: 5.418 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005167/0.7899, allocations: 1.089 MB / 484.4 MB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.79, allocations: 11.94 kB / 484.4 MB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.79, allocations: 8.078 kB / 484.4 MB, free: 4.297 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-05/0.79, allocations: 7.984 kB / 484.4 MB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.8011, allocations: 2.667 MB / 487.1 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.8012, allocations: 0 / 487.1 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/0.8034, allocations: 155.8 kB / 487.2 MB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006767/0.8041, allocations: 96.86 kB / 487.3 MB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/0.8044, allocations: 23.98 kB / 487.3 MB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003734/0.8082, allocations: 1.77 MB / 489.1 MB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.8082, allocations: 0 / 489.1 MB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004844/0.8131, allocations: 1.611 MB / 490.7 MB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/0.8152, allocations: 0.5297 MB / 491.3 MB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000569/0.8158, allocations: 24 kB / 491.3 MB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/0.8181, allocations: 167.8 kB / 491.4 MB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006438/0.8188, allocations: 96.64 kB / 491.5 MB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001909/0.819, allocations: 23.98 kB / 491.6 MB, free: 12.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004487/0.8235, allocations: 1.511 MB / 493.1 MB, free: 11.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.8236, allocations: 0 / 493.1 MB, free: 11.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00348/0.8271, allocations: 0.5455 MB / 493.6 MB, free: 10.78 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.006543/0.8337, allocations: 2.529 MB / 496.1 MB, free: 8.309 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005394/0.8391, allocations: 1.775 MB / 497.9 MB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/0.8392, allocations: 0 / 497.9 MB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001798/0.841, allocations: 0.5723 MB / 498.5 MB, free: 5.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.8431, allocations: 210 kB / 498.7 MB, free: 5.703 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.8551, allocations: 3.255 MB / 0.4902 GB, free: 2.391 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002264/0.8574, allocations: 1.444 MB / 0.4916 GB, free: 0.918 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004076/0.8615, allocations: 0.6982 MB / 0.4923 GB, free: 220 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001284/0.8629, allocations: 447.4 kB / 0.4927 GB, free: 15.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.974e-06/0.8629, allocations: 4 kB / 0.4927 GB, free: 15.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09603/0.9589, allocations: 29.22 MB / 0.5212 GB, free: 2.723 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002897/0.9593, allocations: 234.8 kB / 0.5215 GB, free: 2.414 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.994/4.954, allocations: 0 / 0.5215 GB, free: 2.414 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat does not exist to compare? outputFormat=mat