Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.09/2.09, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.387e-05/4.403e-05, allocations: 5.406 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1516, allocations: 50.4 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4892/0.6409, allocations: 91.15 MB / 433.8 MB, free: 2.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.6413, allocations: 85.73 kB / 433.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1048/0.7461, allocations: 22.23 MB / 456.1 MB, free: 15.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7461, allocations: 0 / 456.1 MB, free: 15.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002072/0.7464, allocations: 36 kB / 456.1 MB, free: 15.6 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.006372/0.7527, allocations: 1.824 MB / 458 MB, free: 13.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.7528, allocations: 12.03 kB / 458 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004714/0.7533, allocations: 120.8 kB / 458.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006887/0.754, allocations: 224.7 kB / 458.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.7576, allocations: 1.081 MB / 459.4 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.7578, allocations: 69.5 kB / 459.5 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002734/0.7581, allocations: 87.06 kB / 459.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.7607, allocations: 0.9346 MB / 460.5 MB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/0.7608, allocations: 3.906 kB / 460.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.7609, allocations: 36.55 kB / 460.5 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.953e-05/0.761, allocations: 20 kB / 460.5 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002198/0.7632, allocations: 0.7588 MB / 461.3 MB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.7734, allocations: 3.446 MB / 464.8 MB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00296/0.7764, allocations: 0.948 MB / 465.7 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.7777, allocations: 423 kB / 466.1 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.79e-05/0.7778, allocations: 12.78 kB / 466.1 MB, free: 6.844 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001779/0.7796, allocations: 0.6174 MB / 466.7 MB, free: 6.203 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.869e-06/0.7797, allocations: 3.938 kB / 466.7 MB, free: 6.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.005037/0.7848, allocations: 0.9917 MB / 467.7 MB, free: 5.199 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/0.785, allocations: 200.7 kB / 467.9 MB, free: 4.961 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008189/0.7932, allocations: 1.902 MB / 469.8 MB, free: 3.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004013/0.7937, allocations: 61.69 kB / 469.9 MB, free: 2.945 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.7948, allocations: 0.5612 MB / 470.5 MB, free: 2.375 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000674/0.7955, allocations: 260.4 kB / 470.7 MB, free: 2.117 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.7957, allocations: 20.03 kB / 470.7 MB, free: 2.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.796, allocations: 341.9 kB / 471.1 MB, free: 1.758 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.7975, allocations: 357.8 kB / 471.4 MB, free: 1.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001902/0.7994, allocations: 0.6019 MB / 472 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.8013, allocations: 427.5 kB / 472.4 MB, free: 276 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-05/0.8014, allocations: 4 kB / 472.4 MB, free: 272 kB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.005023/0.8064, allocations: 1.15 MB / 473.6 MB, free: 15.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001621/0.8081, allocations: 2.924 MB / 476.5 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/0.8082, allocations: 12 kB / 476.5 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008124/0.809, allocations: 96.8 kB / 476.6 MB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/0.8118, allocations: 251.7 kB / 476.9 MB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004412/0.8162, allocations: 1.866 MB / 478.7 MB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003089/0.8194, allocations: 215.1 kB / 478.9 MB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.8196, allocations: 40 kB / 479 MB, free: 9.359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.8197, allocations: 4 kB / 479 MB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003872/0.8235, allocations: 1.013 MB / 480 MB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.8236, allocations: 8.078 kB / 480 MB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005903/0.8242, allocations: 92.81 kB / 480.1 MB, free: 8.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/0.8265, allocations: 239.8 kB / 480.3 MB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003952/0.8304, allocations: 1.854 MB / 482.2 MB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003024/0.8335, allocations: 203.2 kB / 482.4 MB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002562/0.8338, allocations: 43.98 kB / 482.4 MB, free: 5.766 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.0006515/0.8345, allocations: 196.9 kB / 482.6 MB, free: 5.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000834/0.8353, allocations: 173.8 kB / 482.8 MB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00508/0.8404, allocations: 1.082 MB / 483.9 MB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-05/0.8405, allocations: 8 kB / 483.9 MB, free: 4.297 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.8405, allocations: 7.953 kB / 483.9 MB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.742e-05/0.8406, allocations: 7.984 kB / 483.9 MB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009084/0.8497, allocations: 2.67 MB / 486.6 MB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.8497, allocations: 3.938 kB / 486.6 MB, free: 1.531 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/0.8516, allocations: 151.8 kB / 486.7 MB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00058/0.8522, allocations: 96.7 kB / 486.8 MB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001482/0.8524, allocations: 27.97 kB / 486.8 MB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003693/0.8561, allocations: 1.762 MB / 488.6 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.8562, allocations: 0 / 488.6 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006079/0.8623, allocations: 1.611 MB / 490.2 MB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002938/0.8653, allocations: 0.5298 MB / 490.7 MB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006495/0.866, allocations: 23.98 kB / 490.8 MB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003275/0.8693, allocations: 171.8 kB / 490.9 MB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006426/0.87, allocations: 88.64 kB / 491 MB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/0.8702, allocations: 31.98 kB / 491 MB, free: 12.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00591/0.8761, allocations: 1.507 MB / 492.6 MB, free: 11.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.813e-06/0.8762, allocations: 4 kB / 492.6 MB, free: 11.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004586/0.8808, allocations: 0.5495 MB / 493.1 MB, free: 10.77 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.008167/0.8891, allocations: 2.517 MB / 495.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00491/0.894, allocations: 1.78 MB / 497.4 MB, free: 6.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.8941, allocations: 1 kB / 497.4 MB, free: 6.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.8958, allocations: 0.5745 MB / 498 MB, free: 5.898 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.8977, allocations: 200.2 kB / 498.2 MB, free: 5.707 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.9089, allocations: 3.266 MB / 0.4897 GB, free: 2.383 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/0.911, allocations: 1.44 MB / 0.4911 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003809/0.9148, allocations: 0.6944 MB / 0.4918 GB, free: 216 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/0.9161, allocations: 451.4 kB / 0.4922 GB, free: 15.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/0.9161, allocations: 0 / 0.4922 GB, free: 15.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1323/1.048, allocations: 29.23 MB / 0.5207 GB, free: 2.715 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003183/1.049, allocations: 239.8 kB / 0.521 GB, free: 2.398 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.977/5.026, allocations: 0 / 0.521 GB, free: 2.398 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R_res.mat does not exist to compare? outputFormat=mat