Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.102/2.102, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.673e-05, allocations: 2.656 kB / 249.8 MB, free: 5.262 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09528/0.09534, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4424/0.5377, allocations: 81.36 MB / 375.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.5381, allocations: 84.88 kB / 375.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.055/0.5931, allocations: 12.91 MB / 388.7 MB, free: 18.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5932, allocations: 0 / 388.7 MB, free: 18.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.316e-05/0.5933, allocations: 19.38 kB / 388.7 MB, free: 18.16 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 155 * Number of variables: 155 Notification: Performance of Generate backend data structure: time 0.002448/0.5957, allocations: 0.8676 MB / 389.6 MB, free: 17.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.5958, allocations: 7.594 kB / 389.6 MB, free: 17.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.5961, allocations: 85.7 kB / 389.6 MB, free: 17.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.5973, allocations: 495.6 kB / 390.1 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/0.5974, allocations: 27.09 kB / 390.2 MB, free: 17.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.5976, allocations: 34.97 kB / 390.2 MB, free: 17.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001365/0.599, allocations: 459.5 kB / 390.6 MB, free: 17.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.6005, allocations: 0.5673 MB / 391.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.6006, allocations: 7.688 kB / 391.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.355e-05/0.6007, allocations: 7.188 kB / 391.2 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.6007, allocations: 16 kB / 391.2 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006214/0.6069, allocations: 2.463 MB / 393.7 MB, free: 15.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/0.6087, allocations: 0.5423 MB / 394.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005559/0.6093, allocations: 247.2 kB / 394.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.817e-05/0.6094, allocations: 4.312 kB / 394.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008255/0.6102, allocations: 316.6 kB / 394.8 MB, free: 15.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.536e-06/0.6102, allocations: 3.875 kB / 394.8 MB, free: 15.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.001451/0.6117, allocations: 476.8 kB / 395.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.472e-05/0.6118, allocations: 118.8 kB / 395.4 MB, free: 15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007077/0.6125, allocations: 363.8 kB / 395.7 MB, free: 14.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.95e-05/0.6126, allocations: 36.88 kB / 395.8 MB, free: 14.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.613, allocations: 308.8 kB / 396.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.6132, allocations: 157 kB / 396.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.6133, allocations: 3.062 kB / 396.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.6135, allocations: 358.3 kB / 396.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.614, allocations: 173 kB / 396.7 MB, free: 14.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006028/0.6146, allocations: 318 kB / 397.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.6151, allocations: 193.4 kB / 397.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.6152, allocations: 0 / 397.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001585/0.6167, allocations: 0.5809 MB / 397.8 MB, free: 13.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008485/0.6176, allocations: 1.565 MB / 399.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/0.6177, allocations: 3.875 kB / 399.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.6187, allocations: 153.2 kB / 399.5 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009207/0.6197, allocations: 88.11 kB / 399.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005888/0.6256, allocations: 2.282 MB / 401.9 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.6269, allocations: 74.12 kB / 402 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.14e-05/0.627, allocations: 27.19 kB / 402 MB, free: 10.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.6271, allocations: 7.531 kB / 402 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00195/0.629, allocations: 499.4 kB / 402.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.6291, allocations: 8.281 kB / 402.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009665/0.6301, allocations: 156.2 kB / 402.7 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008208/0.6309, allocations: 80.42 kB / 402.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006862/0.6378, allocations: 2.283 MB / 405 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.639, allocations: 55.05 kB / 405.1 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.759e-05/0.6391, allocations: 26.19 kB / 405.1 MB, free: 8.949 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003836/0.6395, allocations: 140.9 kB / 405.2 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001852/0.6413, allocations: 480.9 kB / 405.7 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.6415, allocations: 49.81 kB / 405.8 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002946/0.6419, allocations: 66.67 kB / 405.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.6419, allocations: 3.938 kB / 405.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.6419, allocations: 3.906 kB / 405.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.6419, allocations: 0 / 405.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01639/0.6583, allocations: 1.199 MB / 407 MB, free: 8.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.6584, allocations: 0 / 407 MB, free: 8.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006798/0.6591, allocations: 46 kB / 407.1 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.6602, allocations: 143 kB / 407.2 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-05/0.6603, allocations: 7.938 kB / 407.2 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/0.6737, allocations: 2.149 MB / 409.4 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.6738, allocations: 3.938 kB / 409.4 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003368/0.6772, allocations: 0.8298 MB / 410.2 MB, free: 6.477 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005537/0.6828, allocations: 180.3 kB / 410.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002419/0.683, allocations: 11.36 kB / 410.4 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.6841, allocations: 35.22 kB / 410.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004413/0.6846, allocations: 68.45 kB / 410.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-05/0.6847, allocations: 19.02 kB / 410.5 MB, free: 6.285 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007379/0.6854, allocations: 267.7 kB / 410.8 MB, free: 6.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.6854, allocations: 0 / 410.8 MB, free: 6.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002707/0.6882, allocations: 299.8 kB / 411.1 MB, free: 6.133 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0107/0.6989, allocations: 1.397 MB / 412.5 MB, free: 5.348 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005036/0.704, allocations: 1.093 MB / 413.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/0.7041, allocations: 0 / 413.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/0.706, allocations: 408.8 kB / 414 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.7075, allocations: 87.42 kB / 414 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005863/0.7134, allocations: 0.9444 MB / 415 MB, free: 4.066 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008932/0.7144, allocations: 0.9412 MB / 415.9 MB, free: 3.105 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009048/0.7153, allocations: 100.5 kB / 416 MB, free: 3.008 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.7158, allocations: 208.5 kB / 416.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7158, allocations: 0 / 416.2 MB, free: 2.957 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08642/0.8023, allocations: 14.02 MB / 430.3 MB, free: 5.008 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004086/0.8027, allocations: 197.2 kB / 430.4 MB, free: 4.746 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.392/4.194, allocations: 0 / 430.4 MB, free: 4.746 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat