Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RLV_Characteristic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RLV_Characteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.197/2.197, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.292e-05, allocations: 4 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4699/0.5735, allocations: 86.79 MB / 386.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.5739, allocations: 88.89 kB / 386.8 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1333/0.7073, allocations: 36.17 MB / 423 MB, free: 1.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7073, allocations: 0 / 423 MB, free: 1.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001842/0.7075, allocations: 49.91 kB / 423 MB, free: 1.723 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.007028/0.7146, allocations: 2.026 MB / 425.1 MB, free: 496 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.7147, allocations: 19.42 kB / 425.1 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008377/0.7155, allocations: 258.6 kB / 425.3 MB, free: 396 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006614/0.7162, allocations: 233 kB / 425.6 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007373/0.7236, allocations: 1.97 MB / 427.5 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.7238, allocations: 130 kB / 427.7 MB, free: 15.49 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006428/0.7244, allocations: 178.9 kB / 427.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006366/0.7308, allocations: 2.363 MB / 430.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.559e-05/0.731, allocations: 11.77 kB / 430.2 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.7312, allocations: 69.88 kB / 430.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.7314, allocations: 75.67 kB / 430.4 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005684/0.737, allocations: 1.979 MB / 432.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02009/0.7572, allocations: 7.203 MB / 439.5 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004372/0.7616, allocations: 1.555 MB / 441.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002473/0.7641, allocations: 0.9172 MB / 442 MB, free: 6.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.7643, allocations: 20.53 kB / 442 MB, free: 6.504 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002274/0.7666, allocations: 0.848 MB / 442.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of pre-optimization done (n=117): time 5.11e-06/0.7667, allocations: 4 kB / 442.9 MB, free: 5.633 MB / 330.7 MB Notification: Performance of matching and sorting (n=117): time 0.004325/0.771, allocations: 1.513 MB / 444.4 MB, free: 4.109 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.7712, allocations: 135.7 kB / 444.5 MB, free: 3.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002742/0.7739, allocations: 1.085 MB / 445.6 MB, free: 2.852 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004018/0.7744, allocations: 69.69 kB / 445.7 MB, free: 2.777 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.7754, allocations: 0.7509 MB / 446.4 MB, free: 2.027 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006488/0.7761, allocations: 345.3 kB / 446.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.7762, allocations: 28 kB / 446.8 MB, free: 1.672 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.7764, allocations: 362.8 kB / 447.2 MB, free: 1.309 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.778, allocations: 0.5921 MB / 447.7 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/0.7798, allocations: 0.7953 MB / 448.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.7814, allocations: 0.6138 MB / 449.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.7815, allocations: 4 kB / 449.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004375/0.7858, allocations: 1.654 MB / 450.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008671/0.7868, allocations: 1.922 MB / 452.7 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.7868, allocations: 4 kB / 452.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/0.7885, allocations: 430 kB / 453.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.7902, allocations: 191.7 kB / 453.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009549/0.7998, allocations: 4.399 MB / 457.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/0.8017, allocations: 171.2 kB / 457.9 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.8019, allocations: 36 kB / 458 MB, free: 6.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.8019, allocations: 7.953 kB / 458 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004144/0.8061, allocations: 1.593 MB / 459.6 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.8062, allocations: 4 kB / 459.6 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.8076, allocations: 429.9 kB / 460 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.8093, allocations: 183.6 kB / 460.2 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009449/0.8187, allocations: 4.455 MB / 464.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.8202, allocations: 163.2 kB / 464.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.8203, allocations: 40 kB / 464.8 MB, free: 15.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.0005196/0.8208, allocations: 224.8 kB / 465 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005176/0.8214, allocations: 130.4 kB / 465.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005957/0.822, allocations: 165 kB / 465.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.822, allocations: 16 kB / 465.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.822, allocations: 0 / 465.3 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.8221, allocations: 7.984 kB / 465.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.8322, allocations: 3.609 MB / 468.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.8323, allocations: 3.953 kB / 469 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.8335, allocations: 143.7 kB / 469.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001486/0.835, allocations: 397 kB / 469.5 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/0.8353, allocations: 23.98 kB / 469.5 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009507/0.8448, allocations: 4.319 MB / 473.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.8449, allocations: 0 / 473.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006613/0.8515, allocations: 2.517 MB / 476.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.8529, allocations: 367.2 kB / 476.7 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003405/0.8532, allocations: 35.98 kB / 476.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.8546, allocations: 127.8 kB / 476.9 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008376/0.8555, allocations: 224.7 kB / 477.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.8556, allocations: 36.09 kB / 477.1 MB, free: 2.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002085/0.8577, allocations: 0.8331 MB / 477.9 MB, free: 1.785 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.8578, allocations: 0 / 477.9 MB, free: 1.785 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003674/0.8614, allocations: 0.8446 MB / 478.8 MB, free: 0.9375 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: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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 {6 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.008458/0.87, allocations: 3.144 MB / 481.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008548/0.8786, allocations: 2.763 MB / 484.7 MB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.351e-05/0.8786, allocations: 1.094 kB / 484.7 MB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003056/0.8817, allocations: 1.003 MB / 485.7 MB, free: 9.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.8844, allocations: 288.9 kB / 486 MB, free: 9.672 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.897, allocations: 3.37 MB / 489.4 MB, free: 6.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002825/0.8999, allocations: 1.732 MB / 491.1 MB, free: 4.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002043/0.902, allocations: 0.6555 MB / 491.7 MB, free: 3.824 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.902, allocations: 0 / 491.7 MB, free: 3.824 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.588/4.49, allocations: 40.69 MB / 0.52 GB, free: 122.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RLV_Characteristic_res.mat does not exist to compare? outputFormat=mat