Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.135/2.135, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.637e-05, allocations: 4 kB / 292.2 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 50.41 MB / 342.7 MB, free: 5.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6035/0.7146, allocations: 91.36 MB / 434 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.715, allocations: 82.27 kB / 434.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1143/0.8293, allocations: 22.55 MB / 456.6 MB, free: 15.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.8294, allocations: 4 kB / 456.6 MB, free: 15.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003384/0.8297, allocations: 36 kB / 456.7 MB, free: 15.45 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.009696/0.8394, allocations: 1.842 MB / 458.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.407e-05/0.8395, allocations: 8.031 kB / 458.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007618/0.8403, allocations: 129.9 kB / 458.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.8418, allocations: 213.4 kB / 458.9 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006185/0.848, allocations: 1.094 MB / 460 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.8483, allocations: 64.62 kB / 460 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006026/0.8489, allocations: 101.3 kB / 460.1 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004535/0.8535, allocations: 0.9475 MB / 461.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.026e-05/0.8536, allocations: 0 / 461.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/0.8539, allocations: 43.86 kB / 461.1 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.151e-05/0.854, allocations: 20 kB / 461.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004171/0.8582, allocations: 0.7624 MB / 461.9 MB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01559/0.8739, allocations: 3.529 MB / 465.4 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/0.8772, allocations: 0.9476 MB / 466.4 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.8788, allocations: 439 kB / 466.8 MB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.879, allocations: 12.78 kB / 466.8 MB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00184/0.8808, allocations: 0.6136 MB / 467.4 MB, free: 5.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 4.649e-06/0.8809, allocations: 0 / 467.4 MB, free: 5.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.003546/0.8845, allocations: 1.002 MB / 468.4 MB, free: 4.555 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.8847, allocations: 196.7 kB / 468.6 MB, free: 4.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005838/0.8905, allocations: 1.914 MB / 470.5 MB, free: 2.355 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000343/0.8909, allocations: 61.69 kB / 470.6 MB, free: 2.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008979/0.8918, allocations: 0.5574 MB / 471.2 MB, free: 1.723 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005588/0.8924, allocations: 276.2 kB / 471.4 MB, free: 1.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.873e-05/0.8925, allocations: 20 kB / 471.4 MB, free: 1.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.8927, allocations: 341.9 kB / 471.8 MB, free: 1.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.8938, allocations: 357.8 kB / 472.1 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.8952, allocations: 0.6097 MB / 472.7 MB, free: 16 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.8966, allocations: 439.5 kB / 473.2 MB, free: 15.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.64e-05/0.8966, allocations: 4 kB / 473.2 MB, free: 15.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003734/0.9004, allocations: 1.153 MB / 474.3 MB, free: 14.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001532/0.902, allocations: 2.938 MB / 477.3 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.308e-05/0.902, allocations: 4 kB / 477.3 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005684/0.9026, allocations: 88.81 kB / 477.4 MB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002039/0.9047, allocations: 251.6 kB / 477.6 MB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/0.9078, allocations: 1.819 MB / 479.4 MB, free: 8.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/0.9102, allocations: 227.1 kB / 479.6 MB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002682/0.9106, allocations: 44.17 kB / 479.7 MB, free: 8.703 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.9106, allocations: 4 kB / 479.7 MB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003073/0.9137, allocations: 1.024 MB / 480.7 MB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.643e-05/0.9138, allocations: 8 kB / 480.7 MB, free: 7.656 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000457/0.9142, allocations: 89.53 kB / 480.8 MB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001901/0.9162, allocations: 235.6 kB / 481 MB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002921/0.9191, allocations: 1.819 MB / 482.9 MB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/0.9214, allocations: 203.2 kB / 483.1 MB, free: 5.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/0.9217, allocations: 36 kB / 483.1 MB, free: 5.148 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.0005423/0.9222, allocations: 192.7 kB / 483.3 MB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008087/0.923, allocations: 185.7 kB / 483.5 MB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004743/0.9278, allocations: 1.086 MB / 484.5 MB, free: 3.676 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/0.9279, allocations: 12 kB / 484.6 MB, free: 3.664 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.9279, allocations: 3.953 kB / 484.6 MB, free: 3.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-05/0.928, allocations: 3.984 kB / 484.6 MB, free: 3.656 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.9385, allocations: 2.682 MB / 487.2 MB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.9386, allocations: 0 / 487.2 MB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/0.941, allocations: 171.8 kB / 487.4 MB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006046/0.9416, allocations: 80.81 kB / 487.5 MB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002798/0.9419, allocations: 31.97 kB / 487.5 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00409/0.946, allocations: 1.804 MB / 489.3 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.9461, allocations: 0 / 489.3 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00613/0.9522, allocations: 1.646 MB / 491 MB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002612/0.9549, allocations: 0.5296 MB / 491.5 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007036/0.9557, allocations: 31.98 kB / 491.5 MB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002985/0.9587, allocations: 167.8 kB / 491.7 MB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000609/0.9593, allocations: 100.6 kB / 491.8 MB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001791/0.9595, allocations: 35.97 kB / 491.8 MB, free: 12.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005748/0.9653, allocations: 1.507 MB / 493.3 MB, free: 10.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.9654, allocations: 0 / 493.3 MB, free: 10.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004517/0.9699, allocations: 0.5572 MB / 493.9 MB, free: 10.01 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.008731/0.9787, allocations: 2.62 MB / 496.5 MB, free: 7.441 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006693/0.9854, allocations: 1.783 MB / 498.3 MB, free: 5.613 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/0.9855, allocations: 0 / 498.3 MB, free: 5.613 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002379/0.9879, allocations: 0.5823 MB / 498.9 MB, free: 5.023 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.9906, allocations: 205.9 kB / 499.1 MB, free: 4.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/1.005, allocations: 3.323 MB / 0.4906 GB, free: 1.441 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002146/1.007, allocations: 1.452 MB / 0.492 GB, free: 15.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003866/1.011, allocations: 0.6784 MB / 0.4927 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/1.012, allocations: 459.3 kB / 0.4931 GB, free: 14.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/1.012, allocations: 0 / 0.4931 GB, free: 14.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1496/1.162, allocations: 29.17 MB / 0.5216 GB, free: 1.84 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003814/1.162, allocations: 244.9 kB / 0.5219 GB, free: 1.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.92/5.082, allocations: 0 / 0.5219 GB, free: 1.52 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_RL_res.mat does not exist to compare? outputFormat=mat