Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.141/2.141, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.307e-05, allocations: 8 kB / 292.8 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1245, allocations: 50.42 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.492/0.6165, allocations: 91.39 MB / 434.6 MB, free: 2.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.6169, allocations: 83.02 kB / 434.6 MB, free: 2.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1013/0.7182, allocations: 22.54 MB / 457.2 MB, free: 15.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7182, allocations: 0 / 457.2 MB, free: 15.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002111/0.7184, allocations: 36 kB / 457.2 MB, free: 15.11 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.006332/0.7248, allocations: 1.845 MB / 459.1 MB, free: 13.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.7249, allocations: 8.031 kB / 459.1 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004506/0.7253, allocations: 128.9 kB / 459.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006768/0.726, allocations: 216.4 kB / 459.4 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003394/0.7294, allocations: 1.086 MB / 460.5 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.529e-05/0.7295, allocations: 74.61 kB / 460.6 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/0.7298, allocations: 92.47 kB / 460.7 MB, free: 11.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002513/0.7323, allocations: 0.9457 MB / 461.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.786e-05/0.7324, allocations: 4 kB / 461.6 MB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.7326, allocations: 36.75 kB / 461.6 MB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.572e-05/0.7326, allocations: 16 kB / 461.7 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.7348, allocations: 0.7727 MB / 462.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0102/0.745, allocations: 3.525 MB / 466 MB, free: 7.562 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003107/0.7482, allocations: 0.9452 MB / 466.9 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.7496, allocations: 431 kB / 467.3 MB, free: 6.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.32e-05/0.7497, allocations: 20.77 kB / 467.3 MB, free: 6.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001541/0.7513, allocations: 0.6135 MB / 468 MB, free: 5.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 3.456e-06/0.7513, allocations: 0 / 468 MB, free: 5.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.003061/0.7544, allocations: 0.9986 MB / 469 MB, free: 4.516 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001684/0.7546, allocations: 208.6 kB / 469.2 MB, free: 4.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/0.7593, allocations: 1.91 MB / 471.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000274/0.7596, allocations: 57.69 kB / 471.1 MB, free: 2.246 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007444/0.7604, allocations: 0.5652 MB / 471.7 MB, free: 1.672 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/0.7608, allocations: 268.2 kB / 472 MB, free: 1.406 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.126e-05/0.7609, allocations: 20 kB / 472 MB, free: 1.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.7611, allocations: 350 kB / 472.3 MB, free: 1.039 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000974/0.7621, allocations: 357.8 kB / 472.7 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.7633, allocations: 0.6019 MB / 473.3 MB, free: 15.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.7645, allocations: 443.5 kB / 473.7 MB, free: 15.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.7645, allocations: 0 / 473.7 MB, free: 15.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003165/0.7677, allocations: 1.157 MB / 474.9 MB, free: 14.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001226/0.7689, allocations: 2.933 MB / 477.8 MB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.769, allocations: 8 kB / 477.8 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005096/0.7695, allocations: 100.7 kB / 477.9 MB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/0.7714, allocations: 243.6 kB / 478.1 MB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/0.7743, allocations: 1.811 MB / 479.9 MB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.7766, allocations: 227.2 kB / 480.2 MB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.7768, allocations: 44.19 kB / 480.2 MB, free: 8.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.7768, allocations: 4 kB / 480.2 MB, free: 8.656 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002866/0.7797, allocations: 1.02 MB / 481.2 MB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.7797, allocations: 12.12 kB / 481.2 MB, free: 7.613 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004515/0.7802, allocations: 92.75 kB / 481.3 MB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.782, allocations: 231.6 kB / 481.6 MB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002675/0.7847, allocations: 1.823 MB / 483.4 MB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002099/0.7868, allocations: 203.3 kB / 483.6 MB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.787, allocations: 35.98 kB / 483.6 MB, free: 5.102 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 (114): * Single equations (assignments): 112 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004275/0.7874, allocations: 188.7 kB / 483.8 MB, free: 4.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005059/0.788, allocations: 185.6 kB / 484 MB, free: 4.727 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.7913, allocations: 1.086 MB / 485.1 MB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.7913, allocations: 8 kB / 485.1 MB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.7914, allocations: 8.141 kB / 485.1 MB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.7914, allocations: 3.984 kB / 485.1 MB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006684/0.7981, allocations: 2.686 MB / 487.8 MB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.7981, allocations: 4 kB / 487.8 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.7996, allocations: 171.8 kB / 488 MB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003784/0.8, allocations: 84.75 kB / 488 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.8002, allocations: 23.98 kB / 488.1 MB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.8028, allocations: 1.808 MB / 489.9 MB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.8028, allocations: 8.094 kB / 489.9 MB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004069/0.8069, allocations: 1.635 MB / 491.5 MB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.8084, allocations: 0.5336 MB / 492 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.8087, allocations: 28 kB / 492.1 MB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001825/0.8106, allocations: 167.8 kB / 492.2 MB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/0.8109, allocations: 100.5 kB / 492.3 MB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.8111, allocations: 31.98 kB / 492.4 MB, free: 12.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00339/0.8145, allocations: 1.511 MB / 493.9 MB, free: 10.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.8145, allocations: 0 / 493.9 MB, free: 10.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002491/0.817, allocations: 0.5533 MB / 494.4 MB, free: 9.957 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (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,loadInductor.i) * 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.thyristor2.off,triac.thyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 66 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005387/0.8224, allocations: 2.626 MB / 497.1 MB, free: 7.383 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004273/0.8267, allocations: 1.776 MB / 498.8 MB, free: 5.562 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.8267, allocations: 4 kB / 498.8 MB, free: 5.559 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.8281, allocations: 0.579 MB / 499.4 MB, free: 4.973 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.8298, allocations: 209.6 kB / 499.6 MB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0096/0.8394, allocations: 3.339 MB / 0.4912 GB, free: 1.371 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.8411, allocations: 1.448 MB / 0.4926 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003257/0.8443, allocations: 0.6667 MB / 0.4932 GB, free: 15.22 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000938/0.8453, allocations: 455.3 kB / 0.4937 GB, free: 14.78 MB / 426.7 MB Notification: Performance of SimCode: time 1.343e-06/0.8453, allocations: 4 kB / 0.4937 GB, free: 14.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09915/0.9445, allocations: 29.17 MB / 0.5222 GB, free: 1.777 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003673/0.9449, allocations: 232.1 kB / 0.5224 GB, free: 1.473 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.208/5.153, allocations: 0 / 0.5224 GB, free: 1.473 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL_res.mat does not exist to compare? outputFormat=mat