Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.976e-05/2.986e-05, allocations: 3.984 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3066, allocations: 44.5 MB / 294.2 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.4722, allocations: 86.68 MB / 380.9 MB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005432/0.4728, allocations: 87.94 kB / 381 MB, free: 11.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1751/0.6479, allocations: 35.72 MB / 416.7 MB, free: 7.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.6479, allocations: 0 / 416.7 MB, free: 7.164 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002482/0.6482, allocations: 51.94 kB / 416.8 MB, free: 7.113 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.007648/0.6559, allocations: 1.969 MB / 418.7 MB, free: 5.082 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.656, allocations: 12.03 kB / 418.8 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.6571, allocations: 229.3 kB / 419 MB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008324/0.6654, allocations: 2.057 MB / 421 MB, free: 2.746 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.6656, allocations: 63.92 kB / 421.1 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004718/0.6661, allocations: 111.9 kB / 421.2 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005444/0.6716, allocations: 1.811 MB / 423 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2785/0.9501, allocations: 2.109 MB / 425.1 MB, free: 93.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-05/0.9503, allocations: 6.453 kB / 425.1 MB, free: 93.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.9505, allocations: 3.062 kB / 425.1 MB, free: 93.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/0.9506, allocations: 74.06 kB / 425.2 MB, free: 93.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01642/0.967, allocations: 6.492 MB / 431.7 MB, free: 92.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004269/0.9714, allocations: 1.633 MB / 433.3 MB, free: 92.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002107/0.9735, allocations: 0.9056 MB / 434.2 MB, free: 92.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.9737, allocations: 18.28 kB / 434.3 MB, free: 92.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001829/0.9756, allocations: 0.839 MB / 435.1 MB, free: 92.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=123): time 4.819e-06/0.9756, allocations: 3.656 kB / 435.1 MB, free: 92.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=123): time 0.003882/0.9795, allocations: 1.562 MB / 436.7 MB, free: 92.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.9796, allocations: 157.1 kB / 436.8 MB, free: 91.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.9815, allocations: 0.9065 MB / 437.7 MB, free: 91.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002867/0.9818, allocations: 55.44 kB / 437.8 MB, free: 91.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007971/0.9826, allocations: 0.754 MB / 438.5 MB, free: 91.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004489/0.9831, allocations: 356.1 kB / 438.9 MB, free: 90.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.549e-05/0.9832, allocations: 0 / 438.9 MB, free: 90.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.9833, allocations: 360.3 kB / 439.2 MB, free: 90.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.9846, allocations: 0.6207 MB / 439.9 MB, free: 90.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.986, allocations: 0.8795 MB / 440.7 MB, free: 89.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.9873, allocations: 0.6581 MB / 441.4 MB, free: 89.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.9873, allocations: 3.656 kB / 441.4 MB, free: 89.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.0038/0.9911, allocations: 1.803 MB / 443.2 MB, free: 88.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005305/0.9917, allocations: 2.443 MB / 445.6 MB, free: 86.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.9918, allocations: 10.98 kB / 445.7 MB, free: 86.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.9935, allocations: 488.8 kB / 446.1 MB, free: 86.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.9948, allocations: 174.8 kB / 446.3 MB, free: 86.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009157/1.004, allocations: 5.111 MB / 451.4 MB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/1.006, allocations: 151.5 kB / 451.6 MB, free: 83.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/1.006, allocations: 50.23 kB / 451.6 MB, free: 83.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.006, allocations: 3.969 kB / 451.6 MB, free: 83.11 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003411/1.009, allocations: 1.648 MB / 453.3 MB, free: 82.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/1.01, allocations: 7.266 kB / 453.3 MB, free: 82.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/1.011, allocations: 490.5 kB / 453.7 MB, free: 82.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/1.012, allocations: 168 kB / 453.9 MB, free: 82.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008771/1.021, allocations: 5.104 MB / 459 MB, free: 79.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/1.023, allocations: 146.9 kB / 459.2 MB, free: 79.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/1.023, allocations: 41.91 kB / 459.2 MB, free: 79.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * 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 {6 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004614/1.023, allocations: 197.4 kB / 459.4 MB, free: 79.22 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003461/1.027, allocations: 1.578 MB / 461 MB, free: 78.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002402/1.027, allocations: 122 kB / 461.1 MB, free: 78.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000471/1.027, allocations: 148.8 kB / 461.2 MB, free: 78.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/1.027, allocations: 15.03 kB / 461.3 MB, free: 78.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.028, allocations: 0 / 461.3 MB, free: 78.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/1.028, allocations: 7.938 kB / 461.3 MB, free: 78.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006679/1.034, allocations: 3.228 MB / 464.5 MB, free: 77.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/1.034, allocations: 0 / 464.5 MB, free: 77.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008693/1.035, allocations: 102.9 kB / 464.6 MB, free: 77.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/1.037, allocations: 461.9 kB / 465 MB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001899/1.037, allocations: 7.656 kB / 465 MB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009144/1.046, allocations: 5.008 MB / 470.1 MB, free: 73.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.046, allocations: 0 / 470.1 MB, free: 73.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004779/1.051, allocations: 2.473 MB / 472.5 MB, free: 71.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.052, allocations: 358 kB / 472.9 MB, free: 71.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004601/1.053, allocations: 23.94 kB / 472.9 MB, free: 71.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/1.054, allocations: 94.89 kB / 473 MB, free: 71.19 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007799/1.055, allocations: 228.2 kB / 473.2 MB, free: 71.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/1.055, allocations: 39.98 kB / 473.3 MB, free: 71.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00125/1.056, allocations: 0.6591 MB / 473.9 MB, free: 70.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.42e-07/1.056, allocations: 0 / 473.9 MB, free: 70.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003198/1.059, allocations: 0.788 MB / 474.7 MB, free: 69.64 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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 {6 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.005363/1.065, allocations: 3.106 MB / 477.8 MB, free: 66.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006327/1.071, allocations: 2.899 MB / 480.7 MB, free: 64.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.071, allocations: 0 / 480.7 MB, free: 64.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00234/1.074, allocations: 1.019 MB / 481.7 MB, free: 63.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003616/1.077, allocations: 272.6 kB / 482 MB, free: 63.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/1.092, allocations: 3.215 MB / 485.2 MB, free: 60.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/1.095, allocations: 1.74 MB / 486.9 MB, free: 58.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004503/1.1, allocations: 0.5644 MB / 487.5 MB, free: 58.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002028/1.102, allocations: 0.6008 MB / 488.1 MB, free: 57.9 MB / 362.7 MB Notification: Performance of SimCode: time 2.334e-06/1.102, allocations: 0 / 488.1 MB, free: 57.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.226, allocations: 38.63 MB / 0.5144 GB, free: 19.5 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000286/1.227, allocations: 205.6 kB / 0.5146 GB, free: 19.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.178/5.405, allocations: 0 / 0.5146 GB, free: 19.23 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV_res.mat does not exist to compare? outputFormat=mat