Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.163/2.163, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.581e-05, allocations: 0 / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3418, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.4966, allocations: 81.92 MB / 376.1 MB, free: 15.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.497, allocations: 87.94 kB / 376.2 MB, free: 15.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06033/0.5573, allocations: 13.51 MB / 389.7 MB, free: 2.273 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5574, allocations: 0 / 389.7 MB, free: 2.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.234e-05/0.5575, allocations: 24 kB / 389.8 MB, free: 2.25 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.002993/0.5605, allocations: 0.8894 MB / 390.6 MB, free: 1.305 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.167e-05/0.5606, allocations: 8.031 kB / 390.7 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.561, allocations: 94.89 kB / 390.7 MB, free: 1.203 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.5626, allocations: 0.5046 MB / 391.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.965e-05/0.5627, allocations: 24 kB / 391.3 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.5628, allocations: 44 kB / 391.3 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001521/0.5644, allocations: 467.8 kB / 391.8 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.5662, allocations: 0.6134 MB / 392.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.146e-05/0.5663, allocations: 7.891 kB / 392.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.06e-05/0.5664, allocations: 4 kB / 392.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.5664, allocations: 16 kB / 392.4 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00687/0.5733, allocations: 2.552 MB / 395 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.5751, allocations: 0.563 MB / 395.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.5763, allocations: 366 kB / 395.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.226e-05/0.5764, allocations: 4.438 kB / 395.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008829/0.5773, allocations: 328.7 kB / 396.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=58): time 3.978e-06/0.5774, allocations: 0 / 396.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.001543/0.5789, allocations: 0.505 MB / 396.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.5791, allocations: 123.4 kB / 396.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007733/0.5799, allocations: 365 kB / 397.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.58, allocations: 37.69 kB / 397.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.5804, allocations: 366.5 kB / 397.6 MB, free: 10.1 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.5807, allocations: 165.6 kB / 397.8 MB, free: 9.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.968e-05/0.5808, allocations: 4 kB / 397.8 MB, free: 9.934 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.5809, allocations: 330.8 kB / 398.1 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.5815, allocations: 177.5 kB / 398.3 MB, free: 9.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006646/0.5821, allocations: 338.7 kB / 398.6 MB, free: 9.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005414/0.5827, allocations: 195.2 kB / 398.8 MB, free: 8.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.5827, allocations: 0 / 398.8 MB, free: 8.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001791/0.5845, allocations: 0.6057 MB / 399.4 MB, free: 8.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009149/0.5855, allocations: 1.574 MB / 401 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/0.5856, allocations: 4 kB / 401 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008933/0.5865, allocations: 153.6 kB / 401.1 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000788/0.5873, allocations: 91.83 kB / 401.2 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005873/0.5932, allocations: 3.512 MB / 404.7 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009469/0.5942, allocations: 79.55 kB / 404.8 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.049e-05/0.5943, allocations: 20 kB / 404.8 MB, free: 2.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.5944, allocations: 4 kB / 404.8 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00164/0.596, allocations: 0.542 MB / 405.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.5961, allocations: 4 kB / 405.4 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006792/0.5968, allocations: 153.6 kB / 405.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000708/0.5975, allocations: 95.89 kB / 405.6 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005375/0.6029, allocations: 3.484 MB / 409.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007/0.6037, allocations: 59.66 kB / 409.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.388e-05/0.6037, allocations: 24 kB / 409.2 MB, free: 13.84 MB / 362.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 (66): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003045/0.6041, allocations: 130.1 kB / 409.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001503/0.6056, allocations: 0.5001 MB / 409.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.6058, allocations: 55.34 kB / 409.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002367/0.6061, allocations: 65.53 kB / 409.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.6061, allocations: 8 kB / 409.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6061, allocations: 0 / 409.9 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.6061, allocations: 3.984 kB / 409.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/0.6096, allocations: 1.273 MB / 411.2 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.6096, allocations: 4 kB / 411.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/0.6102, allocations: 55.91 kB / 411.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007365/0.6109, allocations: 145.9 kB / 411.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.6111, allocations: 7.891 kB / 411.4 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/0.6165, allocations: 3.386 MB / 414.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.6166, allocations: 0 / 414.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.6191, allocations: 0.8906 MB / 415.7 MB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005023/0.6196, allocations: 176.4 kB / 415.9 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.6198, allocations: 16 kB / 415.9 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.6205, allocations: 27.97 kB / 415.9 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000339/0.6209, allocations: 80.39 kB / 416 MB, free: 6.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/0.621, allocations: 15.98 kB / 416 MB, free: 6.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005586/0.6215, allocations: 275 kB / 416.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6215, allocations: 4 kB / 416.3 MB, free: 6.387 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002104/0.6237, allocations: 318.9 kB / 416.6 MB, free: 6.074 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: 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_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00296/0.6267, allocations: 1.449 MB / 418 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003188/0.6299, allocations: 1.288 MB / 419.3 MB, free: 3.258 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.63, allocations: 4 kB / 419.3 MB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.6312, allocations: 0.4983 MB / 419.8 MB, free: 2.738 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.6322, allocations: 88.53 kB / 419.9 MB, free: 2.656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004318/0.6366, allocations: 1.078 MB / 421 MB, free: 1.531 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007626/0.6374, allocations: 0.9545 MB / 421.9 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005782/0.638, allocations: 231.3 kB / 422.2 MB, free: 332 kB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.638, allocations: 0 / 422.2 MB, free: 332 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.409/4.047, allocations: 16.18 MB / 438.3 MB, free: 101.4 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat