Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.194/2.194, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.99e-05, allocations: 0 / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 50.42 MB / 342.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4824/0.5877, allocations: 107.4 MB / 450.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.5881, allocations: 89.56 kB / 450.2 MB, free: 2.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1658/0.7539, allocations: 37.12 MB / 487.3 MB, free: 2.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.7539, allocations: 4 kB / 487.3 MB, free: 2.086 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002156/0.7541, allocations: 44.38 kB / 487.3 MB, free: 2.043 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.006086/0.7602, allocations: 1.752 MB / 489.1 MB, free: 240 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.7603, allocations: 12.03 kB / 489.1 MB, free: 228 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008605/0.7612, allocations: 222.4 kB / 489.3 MB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.7625, allocations: 245.5 kB / 489.5 MB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004798/0.7673, allocations: 1.29 MB / 490.8 MB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.7675, allocations: 114.9 kB / 490.9 MB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005007/0.768, allocations: 155.9 kB / 491.1 MB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004737/0.7728, allocations: 1.526 MB / 492.6 MB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.097e-05/0.7729, allocations: 3.984 kB / 492.6 MB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.7732, allocations: 68 kB / 492.7 MB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.046e-05/0.7732, allocations: 36 kB / 492.7 MB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004043/0.7773, allocations: 1.157 MB / 493.9 MB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.7944, allocations: 6.482 MB / 0.4886 GB, free: 4.531 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/0.7972, allocations: 0.9488 MB / 0.4896 GB, free: 3.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001906/0.7992, allocations: 0.5901 MB / 0.4901 GB, free: 2.977 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.7993, allocations: 16.73 kB / 0.4902 GB, free: 2.961 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001515/0.8009, allocations: 0.5591 MB / 0.4907 GB, free: 2.379 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 7.394e-06/0.8009, allocations: 0 / 0.4907 GB, free: 2.379 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.007172/0.8081, allocations: 2.444 MB / 0.4931 GB, free: 15.85 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.8083, allocations: 200.7 kB / 0.4933 GB, free: 15.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002867/0.8112, allocations: 1.149 MB / 0.4944 GB, free: 14.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002743/0.8115, allocations: 49.7 kB / 0.4945 GB, free: 14.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009054/0.8124, allocations: 0.7623 MB / 0.4952 GB, free: 13.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00053/0.813, allocations: 319.5 kB / 0.4955 GB, free: 13.31 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.8131, allocations: 28 kB / 0.4955 GB, free: 13.28 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.8133, allocations: 358.8 kB / 0.4959 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.8145, allocations: 419.9 kB / 0.4963 GB, free: 12.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.8161, allocations: 0.8448 MB / 0.4971 GB, free: 11.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.8176, allocations: 0.5144 MB / 0.4976 GB, free: 10.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.8176, allocations: 4 kB / 0.4976 GB, free: 10.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004017/0.8217, allocations: 1.472 MB / 0.499 GB, free: 9.449 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002177/0.8239, allocations: 5.052 MB / 0.504 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.553e-05/0.824, allocations: 15.98 kB / 0.504 GB, free: 3.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.8252, allocations: 213.8 kB / 0.5042 GB, free: 3.773 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002295/0.8275, allocations: 311.5 kB / 0.5045 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008698/0.8362, allocations: 3.915 MB / 0.5083 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.8398, allocations: 187.9 kB / 0.5085 GB, free: 15.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003962/0.8403, allocations: 56 kB / 0.5085 GB, free: 15.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.8403, allocations: 4 kB / 0.5086 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00604/0.8464, allocations: 1.405 MB / 0.5099 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-05/0.8465, allocations: 12.5 kB / 0.5099 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.8479, allocations: 209.6 kB / 0.5101 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003217/0.8511, allocations: 307.5 kB / 0.5104 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008896/0.8601, allocations: 3.893 MB / 0.5142 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.8622, allocations: 116 kB / 0.5143 GB, free: 8.824 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002706/0.8625, allocations: 56 kB / 0.5144 GB, free: 8.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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 (146): * Single equations (assignments): 144 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006943/0.8633, allocations: 208.4 kB / 0.5146 GB, free: 8.559 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006568/0.8639, allocations: 142.3 kB / 0.5147 GB, free: 8.418 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005129/0.8691, allocations: 1.22 MB / 0.5159 GB, free: 7.164 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/0.8692, allocations: 8 kB / 0.5159 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.8692, allocations: 4 kB / 0.5159 GB, free: 7.152 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.953e-05/0.8692, allocations: 7.984 kB / 0.5159 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.8804, allocations: 2.781 MB / 0.5187 GB, free: 4.254 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/0.8805, allocations: 0 / 0.5187 GB, free: 4.254 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002148/0.8826, allocations: 168 kB / 0.5188 GB, free: 4.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.8841, allocations: 189.6 kB / 0.519 GB, free: 3.898 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000284/0.8844, allocations: 31.98 kB / 0.519 GB, free: 3.867 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3028/1.187, allocations: 3.814 MB / 0.5228 GB, free: 119.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/1.187, allocations: 2.719 kB / 0.5228 GB, free: 119.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004872/1.192, allocations: 1.874 MB / 0.5246 GB, free: 119.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/1.193, allocations: 332.7 kB / 0.5249 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005642/1.194, allocations: 33.05 kB / 0.5249 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002166/1.196, allocations: 136.2 kB / 0.5251 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005636/1.197, allocations: 111.2 kB / 0.5252 GB, free: 119 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.197, allocations: 29.5 kB / 0.5252 GB, free: 119 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002535/1.2, allocations: 0.8642 MB / 0.526 GB, free: 118.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.2, allocations: 0 / 0.526 GB, free: 118.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004186/1.204, allocations: 0.6404 MB / 0.5267 GB, free: 118.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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 (75): * Single equations (assignments): 68 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.005786/1.21, allocations: 3.143 MB / 0.5297 GB, free: 117.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005884/1.216, allocations: 2.277 MB / 0.532 GB, free: 117 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/1.216, allocations: 4.938 kB / 0.532 GB, free: 117 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002161/1.218, allocations: 0.8297 MB / 0.5328 GB, free: 116.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/1.221, allocations: 292.8 kB / 0.5331 GB, free: 116.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/1.231, allocations: 2.804 MB / 0.5358 GB, free: 116 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/1.232, allocations: 1.343 MB / 0.5371 GB, free: 115.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/1.234, allocations: 0.6134 MB / 0.5377 GB, free: 115.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.573e-06/1.234, allocations: 0 / 0.5377 GB, free: 115.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.482/4.716, allocations: 42.18 MB / 0.5789 GB, free: 104.8 MB / 442.7 MB