Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_PowerConverters_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.491/2.491, allocations: 235 MB / 247.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.998e-05/4.018e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4049, allocations: 54.85 MB / 359.9 MB, free: 2.684 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.178/0.5829, allocations: 95.93 MB / 455.8 MB, free: 1.016 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.5833, allocations: 76.92 kB / 455.9 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1593/0.7426, allocations: 38.6 MB / 494.5 MB, free: 10.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.7426, allocations: 0 / 494.5 MB, free: 10.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002531/0.7429, allocations: 55.94 kB / 494.5 MB, free: 10.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 0.008693/0.7516, allocations: 2.115 MB / 496.6 MB, free: 7.879 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.7517, allocations: 8.031 kB / 496.6 MB, free: 7.871 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009329/0.7526, allocations: 278.2 kB / 496.9 MB, free: 7.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007692/0.7534, allocations: 245.1 kB / 497.1 MB, free: 7.348 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008808/0.7622, allocations: 2.199 MB / 499.3 MB, free: 5.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.7625, allocations: 155.6 kB / 499.5 MB, free: 4.938 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005718/0.7631, allocations: 199.8 kB / 499.7 MB, free: 4.742 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00733/0.7704, allocations: 2.55 MB / 0.4905 GB, free: 2.113 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.404e-05/0.7706, allocations: 8 kB / 0.4905 GB, free: 2.105 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003143/0.7709, allocations: 76 kB / 0.4906 GB, free: 2.031 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.771, allocations: 79.7 kB / 0.4906 GB, free: 1.953 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007138/0.7782, allocations: 2.077 MB / 0.4927 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02268/0.8009, allocations: 7.439 MB / 0.4999 GB, free: 8.316 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005546/0.8065, allocations: 1.855 MB / 0.5017 GB, free: 6.449 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003743/0.8103, allocations: 1.288 MB / 0.503 GB, free: 5.164 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.8105, allocations: 20.94 kB / 0.503 GB, free: 5.145 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002511/0.813, allocations: 0.9433 MB / 0.5039 GB, free: 4.172 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 5.3e-06/0.8131, allocations: 0 / 0.5039 GB, free: 4.172 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.005472/0.8186, allocations: 1.839 MB / 0.5057 GB, free: 2.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001876/0.8188, allocations: 234.9 kB / 0.506 GB, free: 2.039 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003019/0.8218, allocations: 1.189 MB / 0.5071 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004172/0.8223, allocations: 77.67 kB / 0.5072 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.8234, allocations: 0.7945 MB / 0.508 GB, free: 15.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007273/0.8241, allocations: 398.6 kB / 0.5083 GB, free: 15.55 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.8243, allocations: 28 kB / 0.5084 GB, free: 15.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002233/0.8245, allocations: 367 kB / 0.5087 GB, free: 15.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001918/0.8264, allocations: 0.6989 MB / 0.5094 GB, free: 14.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002346/0.8288, allocations: 1.003 MB / 0.5104 GB, free: 13.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.8309, allocations: 0.7699 MB / 0.5111 GB, free: 12.58 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.831, allocations: 0 / 0.5111 GB, free: 12.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.005327/0.8363, allocations: 2.02 MB / 0.5131 GB, free: 10.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001318/0.8377, allocations: 2.447 MB / 0.5155 GB, free: 7.914 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.964e-05/0.8377, allocations: 8 kB / 0.5155 GB, free: 7.906 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.8403, allocations: 0.5669 MB / 0.5161 GB, free: 7.336 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.8419, allocations: 179.7 kB / 0.5162 GB, free: 7.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/0.8562, allocations: 6.123 MB / 0.5222 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.8585, allocations: 214.9 kB / 0.5224 GB, free: 0.6875 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/0.8588, allocations: 48 kB / 0.5225 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.8588, allocations: 4 kB / 0.5225 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3438/1.203, allocations: 1.962 MB / 0.5244 GB, free: 123.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.841e-05/1.203, allocations: 14.11 kB / 0.5244 GB, free: 123.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/1.205, allocations: 0.5603 MB / 0.5249 GB, free: 123.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/1.206, allocations: 184.2 kB / 0.5251 GB, free: 123.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/1.22, allocations: 6.146 MB / 0.5311 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/1.222, allocations: 188.7 kB / 0.5313 GB, free: 122.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003337/1.223, allocations: 49.44 kB / 0.5313 GB, free: 122.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($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,$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,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,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 (138): * Single equations (assignments): 137 * 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 38} Notification: Performance of prepare postOptimizeDAE: time 0.0005635/1.223, allocations: 240.2 kB / 0.5316 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000531/1.224, allocations: 148 kB / 0.5317 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006229/1.224, allocations: 184.2 kB / 0.5319 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/1.224, allocations: 19.81 kB / 0.5319 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/1.224, allocations: 1.375 kB / 0.5319 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/1.224, allocations: 6.656 kB / 0.5319 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01176/1.236, allocations: 4.032 MB / 0.5359 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/1.236, allocations: 0 / 0.5359 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009171/1.237, allocations: 96.56 kB / 0.5359 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002163/1.239, allocations: 0.5363 MB / 0.5365 GB, free: 121.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/1.24, allocations: 28.2 kB / 0.5365 GB, free: 121.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0132/1.253, allocations: 6.025 MB / 0.5424 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.253, allocations: 1 kB / 0.5424 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006524/1.259, allocations: 2.763 MB / 0.5451 GB, free: 117.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/1.261, allocations: 395.8 kB / 0.5455 GB, free: 117.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004587/1.261, allocations: 43.33 kB / 0.5455 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/1.263, allocations: 125.8 kB / 0.5456 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008375/1.264, allocations: 238 kB / 0.5458 GB, free: 117.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/1.264, allocations: 34.67 kB / 0.5459 GB, free: 117.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002245/1.266, allocations: 0.8974 MB / 0.5468 GB, free: 116.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.382e-06/1.266, allocations: 0 / 0.5468 GB, free: 116.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004652/1.271, allocations: 0.9564 MB / 0.5477 GB, free: 116.7 MB / 458.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: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,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,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,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: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.006664/1.278, allocations: 3.422 MB / 0.551 GB, free: 115 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007703/1.285, allocations: 3.219 MB / 0.5542 GB, free: 113.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.285, allocations: 0.5625 kB / 0.5542 GB, free: 113.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002755/1.288, allocations: 1.11 MB / 0.5553 GB, free: 113.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/1.291, allocations: 353.9 kB / 0.5556 GB, free: 113.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/1.301, allocations: 3.54 MB / 0.5591 GB, free: 111.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001825/1.303, allocations: 1.806 MB / 0.5608 GB, free: 110.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/1.305, allocations: 0.679 MB / 0.5615 GB, free: 110.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.392e-06/1.305, allocations: 0 / 0.5615 GB, free: 110.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.585/4.89, allocations: 44.18 MB / 0.6046 GB, free: 82.83 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat