Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.848e-05/4.853e-05, allocations: 0 / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1232, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5574/0.6807, allocations: 79.34 MB / 379.3 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.6811, allocations: 82.97 kB / 379.4 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03772/0.7188, allocations: 9.107 MB / 388.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7188, allocations: 4 kB / 388.5 MB, free: 11.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.732e-05/0.7189, allocations: 16.5 kB / 388.5 MB, free: 11.97 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001571/0.7205, allocations: 0.6832 MB / 389.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.7205, allocations: 7.75 kB / 389.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.7207, allocations: 76.7 kB / 389.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.7208, allocations: 54.61 kB / 389.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007202/0.7216, allocations: 374.7 kB / 389.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/0.7216, allocations: 35.5 kB / 389.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.945e-05/0.7217, allocations: 45.14 kB / 389.8 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009454/0.7227, allocations: 410.5 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.7227, allocations: 3.906 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-05/0.7228, allocations: 19.67 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.7228, allocations: 11.69 kB / 390.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007008/0.7236, allocations: 285.9 kB / 390.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/0.7273, allocations: 1.543 MB / 392 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000613/0.7279, allocations: 224.5 kB / 392.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.7281, allocations: 97.19 kB / 392.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.7282, allocations: 7.859 kB / 392.4 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005002/0.7287, allocations: 213.9 kB / 392.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.136e-06/0.7287, allocations: 0 / 392.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008971/0.7296, allocations: 305.1 kB / 392.9 MB, free: 10.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.7297, allocations: 106.7 kB / 393 MB, free: 10.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.7302, allocations: 301.2 kB / 393.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.571e-05/0.7303, allocations: 35.36 kB / 393.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.7305, allocations: 288.8 kB / 393.6 MB, free: 9.801 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.692e-05/0.7306, allocations: 84.55 kB / 393.7 MB, free: 9.754 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.7306, allocations: 14 kB / 393.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.657e-05/0.7307, allocations: 329.6 kB / 394 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.731, allocations: 108.7 kB / 394.1 MB, free: 9.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.7313, allocations: 238.2 kB / 394.3 MB, free: 9.246 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.7316, allocations: 124.9 kB / 394.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.7316, allocations: 0 / 394.5 MB, free: 9.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008604/0.7325, allocations: 378 kB / 394.8 MB, free: 9.156 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003563/0.7329, allocations: 1.655 MB / 396.5 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.7329, allocations: 8.875 kB / 396.5 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003303/0.7333, allocations: 48.42 kB / 396.5 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004745/0.7338, allocations: 69.47 kB / 396.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.7353, allocations: 1.488 MB / 398.1 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006968/0.736, allocations: 75.12 kB / 398.2 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.065e-05/0.7361, allocations: 23.19 kB / 398.2 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.7361, allocations: 5.844 kB / 398.2 MB, free: 6.027 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000811/0.7369, allocations: 332 kB / 398.5 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.7369, allocations: 3.719 kB / 398.5 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.7372, allocations: 49.23 kB / 398.6 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.7375, allocations: 61.78 kB / 398.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.7394, allocations: 1.496 MB / 400.1 MB, free: 20.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.7399, allocations: 56.91 kB / 400.2 MB, free: 20.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.74, allocations: 15.19 kB / 400.2 MB, free: 20.6 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.7402, allocations: 147.9 kB / 400.3 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.7403, allocations: 31.25 kB / 400.4 MB, free: 20.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.7405, allocations: 37.11 kB / 400.4 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.7405, allocations: 3.719 kB / 400.4 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.7405, allocations: 0 / 400.4 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.7405, allocations: 7.422 kB / 400.4 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.7422, allocations: 0.8176 MB / 401.2 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.7423, allocations: 3.938 kB / 401.2 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.7425, allocations: 26.38 kB / 401.3 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.7427, allocations: 36.75 kB / 401.3 MB, free: 20.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.295e-05/0.7428, allocations: 7.219 kB / 401.3 MB, free: 20.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/0.7443, allocations: 1.42 MB / 402.7 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7443, allocations: 0 / 402.7 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.7455, allocations: 0.4924 MB / 403.2 MB, free: 18.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.7458, allocations: 144.5 kB / 403.4 MB, free: 18.54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/0.7459, allocations: 6.125 kB / 403.4 MB, free: 18.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004474/0.7463, allocations: 33.41 kB / 403.4 MB, free: 18.54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.7465, allocations: 32.8 kB / 403.4 MB, free: 18.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.7465, allocations: 14.92 kB / 403.5 MB, free: 18.53 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003691/0.7469, allocations: 226.2 kB / 403.7 MB, free: 18.45 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7469, allocations: 0 / 403.7 MB, free: 18.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001126/0.7481, allocations: 185.7 kB / 403.9 MB, free: 18.43 MB / 330.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001481/0.7496, allocations: 1.067 MB / 404.9 MB, free: 17.72 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.751, allocations: 0.6423 MB / 405.6 MB, free: 17.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.751, allocations: 4.062 kB / 405.6 MB, free: 17.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004592/0.7515, allocations: 234.4 kB / 405.8 MB, free: 17.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005401/0.7521, allocations: 50.41 kB / 405.8 MB, free: 17.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.7543, allocations: 0.6747 MB / 406.5 MB, free: 17.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.7549, allocations: 0.8373 MB / 407.4 MB, free: 16.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002758/0.7552, allocations: 137.1 kB / 407.5 MB, free: 16.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7552, allocations: 3.875 kB / 407.5 MB, free: 16.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.054/3.809, allocations: 8.235 MB / 415.7 MB, free: 13.13 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.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat