Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_PowerConverters_ThyristorBridge2mPulse_R",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.556/2.556, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.412e-05/2.442e-05, allocations: 0 / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3656, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.193/0.5586, allocations: 95.25 MB / 449.7 MB, free: 15.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004182/0.5591, allocations: 71.97 kB / 449.8 MB, free: 15.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4851/1.044, allocations: 38.2 MB / 488 MB, free: 88.81 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.044, allocations: 0 / 488 MB, free: 88.81 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000205/1.044, allocations: 55.94 kB / 488 MB, free: 88.76 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: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 0.007327/1.052, allocations: 2.134 MB / 490.1 MB, free: 86.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.881e-05/1.052, allocations: 8.031 kB / 490.2 MB, free: 86.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/1.053, allocations: 245.1 kB / 490.4 MB, free: 86.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008569/1.062, allocations: 2.186 MB / 492.6 MB, free: 84.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/1.062, allocations: 71.98 kB / 492.7 MB, free: 84.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004092/1.062, allocations: 111.9 kB / 492.8 MB, free: 83.97 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005508/1.068, allocations: 2.006 MB / 494.8 MB, free: 81.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005982/1.074, allocations: 2.31 MB / 497.1 MB, free: 79.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.727e-05/1.074, allocations: 7.875 kB / 497.1 MB, free: 79.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002727/1.074, allocations: 8 kB / 497.1 MB, free: 79.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/1.074, allocations: 79.7 kB / 497.2 MB, free: 79.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02203/1.096, allocations: 7.058 MB / 0.4924 GB, free: 72.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006905/1.103, allocations: 1.817 MB / 0.4942 GB, free: 70.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003885/1.107, allocations: 1.147 MB / 0.4953 GB, free: 69.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/1.107, allocations: 17.31 kB / 0.4953 GB, free: 69.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00273/1.11, allocations: 0.9084 MB / 0.4962 GB, free: 68.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 6.763e-06/1.11, allocations: 0 / 0.4962 GB, free: 68.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=132): time 0.006605/1.117, allocations: 1.764 MB / 0.4979 GB, free: 66.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/1.117, allocations: 238.7 kB / 0.4982 GB, free: 66.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00326/1.12, allocations: 1.024 MB / 0.4992 GB, free: 65.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003346/1.121, allocations: 57.67 kB / 0.4992 GB, free: 65.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/1.122, allocations: 0.8153 MB / 0.5 GB, free: 64.48 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006963/1.123, allocations: 382.5 kB / 0.5004 GB, free: 64.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/1.123, allocations: 4 kB / 0.5004 GB, free: 64.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/1.123, allocations: 365.9 kB / 0.5007 GB, free: 63.74 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/1.125, allocations: 0.6715 MB / 0.5014 GB, free: 63.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/1.128, allocations: 0.9677 MB / 0.5023 GB, free: 61.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/1.13, allocations: 0.7245 MB / 0.503 GB, free: 61.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/1.13, allocations: 4 kB / 0.503 GB, free: 61.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.006597/1.137, allocations: 1.984 MB / 0.505 GB, free: 59.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007176/1.138, allocations: 2.45 MB / 0.5074 GB, free: 56.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.014e-05/1.138, allocations: 8 kB / 0.5074 GB, free: 56.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003483/1.141, allocations: 0.5668 MB / 0.5079 GB, free: 56.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/1.144, allocations: 179.7 kB / 0.5081 GB, free: 55.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/1.159, allocations: 5.99 MB / 0.514 GB, free: 49.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002981/1.162, allocations: 178.9 kB / 0.5141 GB, free: 49.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002237/1.162, allocations: 52.06 kB / 0.5142 GB, free: 49.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/1.162, allocations: 8 kB / 0.5142 GB, free: 49.54 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006161/1.168, allocations: 1.812 MB / 0.5159 GB, free: 47.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/1.168, allocations: 4 kB / 0.516 GB, free: 47.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/1.171, allocations: 0.5594 MB / 0.5165 GB, free: 47.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/1.173, allocations: 179.6 kB / 0.5167 GB, free: 46.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/1.191, allocations: 6.004 MB / 0.5225 GB, free: 40.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/1.194, allocations: 151.2 kB / 0.5227 GB, free: 40.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/1.194, allocations: 52.06 kB / 0.5227 GB, free: 40.67 MB / 394.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.0006649/1.195, allocations: 201.3 kB / 0.5229 GB, free: 40.46 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006374/1.201, allocations: 1.749 MB / 0.5246 GB, free: 38.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004214/1.201, allocations: 138.3 kB / 0.5248 GB, free: 38.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007377/1.202, allocations: 165.6 kB / 0.5249 GB, free: 38.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/1.202, allocations: 15.95 kB / 0.5249 GB, free: 38.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.202, allocations: 0 / 0.5249 GB, free: 38.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/1.202, allocations: 15.91 kB / 0.5249 GB, free: 38.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/1.215, allocations: 3.668 MB / 0.5285 GB, free: 34.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.215, allocations: 0 / 0.5285 GB, free: 34.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/1.216, allocations: 99.81 kB / 0.5286 GB, free: 34.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002833/1.219, allocations: 0.5245 MB / 0.5291 GB, free: 34.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/1.219, allocations: 11.98 kB / 0.5291 GB, free: 34.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01709/1.237, allocations: 5.845 MB / 0.5349 GB, free: 28.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.237, allocations: 0 / 0.5349 GB, free: 28.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005981/1.243, allocations: 2.641 MB / 0.5374 GB, free: 25.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/1.244, allocations: 383.2 kB / 0.5378 GB, free: 25.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/1.244, allocations: 27.92 kB / 0.5378 GB, free: 25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/1.246, allocations: 115.8 kB / 0.5379 GB, free: 24.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008975/1.247, allocations: 236.9 kB / 0.5382 GB, free: 24.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/1.247, allocations: 35.98 kB / 0.5382 GB, free: 24.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001608/1.248, allocations: 0.7534 MB / 0.5389 GB, free: 23.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.02e-07/1.248, allocations: 0 / 0.5389 GB, free: 23.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003535/1.252, allocations: 0.8835 MB / 0.5398 GB, free: 22.97 MB / 394.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[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].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_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].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.006194/1.258, allocations: 3.273 MB / 0.543 GB, free: 19.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007837/1.266, allocations: 3.183 MB / 0.5461 GB, free: 16.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.266, allocations: 0 / 0.5461 GB, free: 16.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002742/1.269, allocations: 1.099 MB / 0.5472 GB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/1.272, allocations: 313.4 kB / 0.5475 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009801/1.281, allocations: 3.482 MB / 0.5509 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/1.283, allocations: 1.846 MB / 0.5527 GB, free: 9.637 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003187/1.287, allocations: 0.6158 MB / 0.5533 GB, free: 9.016 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/1.288, allocations: 0.6633 MB / 0.5539 GB, free: 8.352 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/1.288, allocations: 0 / 0.5539 GB, free: 8.352 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1968/1.485, allocations: 44.44 MB / 0.5973 GB, free: 11.94 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003307/1.485, allocations: 160 kB / 0.5975 GB, free: 11.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.365/5.85, allocations: 0 / 0.5975 GB, free: 11.75 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat