Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.839e-05/4.867e-05, allocations: 5.406 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1298, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.5821, allocations: 82.03 MB / 382 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.5825, allocations: 87 kB / 382.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05064/0.6331, allocations: 13.05 MB / 395.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6332, allocations: 3.938 kB / 395.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.379e-05/0.6332, allocations: 23.69 kB / 395.2 MB, free: 11.02 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.002207/0.6355, allocations: 0.8561 MB / 396 MB, free: 10.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.6355, allocations: 7.875 kB / 396 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002155/0.6358, allocations: 105.6 kB / 396.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.636, allocations: 86.05 kB / 396.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.6371, allocations: 497.8 kB / 396.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.876e-05/0.6371, allocations: 51.81 kB / 396.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.6373, allocations: 62.72 kB / 396.8 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.6388, allocations: 0.6559 MB / 397.5 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.156e-05/0.6389, allocations: 7.938 kB / 397.5 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/0.639, allocations: 27.06 kB / 397.5 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.639, allocations: 15.19 kB / 397.5 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.6402, allocations: 475.2 kB / 398 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005334/0.6456, allocations: 2.599 MB / 400.6 MB, free: 8.703 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.6472, allocations: 0.5583 MB / 401.1 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008068/0.6481, allocations: 306 kB / 401.4 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.358e-05/0.6481, allocations: 4.312 kB / 401.4 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007209/0.6489, allocations: 334.5 kB / 401.8 MB, free: 8.457 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.386e-06/0.6489, allocations: 3.938 kB / 401.8 MB, free: 8.453 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.001348/0.6502, allocations: 0.506 MB / 402.3 MB, free: 8.336 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.6503, allocations: 121.5 kB / 402.4 MB, free: 8.207 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000721/0.6511, allocations: 425 kB / 402.8 MB, free: 8.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.945e-05/0.6512, allocations: 44.08 kB / 402.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.6514, allocations: 337.2 kB / 403.2 MB, free: 7.789 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.6516, allocations: 168.7 kB / 403.3 MB, free: 7.676 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.771e-05/0.6516, allocations: 14.06 kB / 403.4 MB, free: 7.676 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.6517, allocations: 337.1 kB / 403.7 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004425/0.6522, allocations: 175 kB / 403.9 MB, free: 7.348 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/0.6527, allocations: 330.5 kB / 404.2 MB, free: 7.164 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.6532, allocations: 204.5 kB / 404.4 MB, free: 7.121 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.6532, allocations: 0 / 404.4 MB, free: 7.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001428/0.6547, allocations: 0.6027 MB / 405 MB, free: 6.992 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003473/0.655, allocations: 1.573 MB / 406.6 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.6551, allocations: 7.75 kB / 406.6 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007665/0.6558, allocations: 151.4 kB / 406.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006234/0.6565, allocations: 85.14 kB / 406.8 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004002/0.6605, allocations: 2.349 MB / 409.1 MB, free: 19.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008931/0.6614, allocations: 88.66 kB / 409.2 MB, free: 19.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.593e-05/0.6615, allocations: 22.69 kB / 409.3 MB, free: 19.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.6615, allocations: 7.812 kB / 409.3 MB, free: 19.72 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001349/0.6629, allocations: 0.5601 MB / 409.8 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.6629, allocations: 3.906 kB / 409.8 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/0.6635, allocations: 149.7 kB / 410 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/0.6641, allocations: 77.25 kB / 410 MB, free: 19.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.6678, allocations: 2.32 MB / 412.4 MB, free: 18.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006297/0.6685, allocations: 69.25 kB / 412.4 MB, free: 18.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.126e-05/0.6686, allocations: 22.72 kB / 412.5 MB, free: 18.05 MB / 330.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.0002742/0.6689, allocations: 161.8 kB / 412.6 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.6691, allocations: 58.42 kB / 412.7 MB, free: 17.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.6693, allocations: 67.38 kB / 412.7 MB, free: 17.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.6693, allocations: 3.906 kB / 412.7 MB, free: 17.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6693, allocations: 7.812 kB / 412.8 MB, free: 17.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.6693, allocations: 7.922 kB / 412.8 MB, free: 17.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002863/0.6722, allocations: 1.332 MB / 414.1 MB, free: 17.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.6723, allocations: 0 / 414.1 MB, free: 17.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/0.6726, allocations: 50.61 kB / 414.1 MB, free: 17.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006119/0.6733, allocations: 145.2 kB / 414.3 MB, free: 17.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.306e-05/0.6733, allocations: 18.97 kB / 414.3 MB, free: 17.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/0.677, allocations: 2.24 MB / 416.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.6771, allocations: 7.969 kB / 416.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.6791, allocations: 0.8901 MB / 417.4 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/0.6795, allocations: 178 kB / 417.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.6797, allocations: 17.89 kB / 417.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.6803, allocations: 45.98 kB / 417.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.6806, allocations: 73.3 kB / 417.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.745e-05/0.6806, allocations: 19.27 kB / 417.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005549/0.6812, allocations: 313.5 kB / 418.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6812, allocations: 0 / 418.1 MB, free: 15.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001427/0.6826, allocations: 336.3 kB / 418.4 MB, free: 15.18 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.002457/0.6851, allocations: 1.531 MB / 419.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00255/0.6877, allocations: 1.108 MB / 421 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/0.6878, allocations: 3.969 kB / 421 MB, free: 13.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000921/0.6887, allocations: 420.7 kB / 421.5 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008659/0.6896, allocations: 96.81 kB / 421.5 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.6928, allocations: 1.036 MB / 422.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006156/0.6935, allocations: 0.9415 MB / 423.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004292/0.6939, allocations: 218.5 kB / 423.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.994e-06/0.6939, allocations: 0 / 423.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.255/3.949, allocations: 13.17 MB / 436.9 MB, free: 5.883 MB / 330.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_R_res.mat does not exist to compare? outputFormat=mat