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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.319/2.319, allocations: 235 MB / 242 MB, free: 9.66 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1972/2.516, allocations: 57.2 MB / 299.2 MB, free: 344 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/2.79, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4086/3.198, allocations: 95.19 MB / 449.3 MB, free: 32.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/3.199, allocations: 72.2 kB / 449.3 MB, free: 32.07 MB / 378.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.1835/3.382, allocations: 40.15 MB / 489.5 MB, free: 26.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/3.382, allocations: 11.88 kB / 489.5 MB, free: 26.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001898/3.384, allocations: 246.3 kB / 489.7 MB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/3.394, allocations: 2.2 MB / 491.9 MB, free: 25.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/3.395, allocations: 62.22 kB / 492 MB, free: 25.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007507/3.395, allocations: 117 kB / 492.1 MB, free: 25.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006993/3.402, allocations: 2.064 MB / 494.2 MB, free: 25.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007848/3.41, allocations: 2.36 MB / 496.5 MB, free: 24.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.786e-05/3.41, allocations: 0 / 496.5 MB, free: 24.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003244/3.411, allocations: 3.844 kB / 496.5 MB, free: 24.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/3.411, allocations: 85.42 kB / 496.6 MB, free: 24.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02239/3.433, allocations: 7.112 MB / 0.4919 GB, free: 21.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004406/3.438, allocations: 1.494 MB / 0.4934 GB, free: 21.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003522/3.441, allocations: 1.175 MB / 0.4945 GB, free: 21.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001359/3.441, allocations: 12.72 kB / 0.4946 GB, free: 21.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002903/3.444, allocations: 0.9109 MB / 0.4954 GB, free: 20.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 6.753e-06/3.444, allocations: 4 kB / 0.4954 GB, free: 20.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.006129/3.45, allocations: 1.768 MB / 0.4972 GB, free: 20.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/3.451, allocations: 232 kB / 0.4974 GB, free: 19.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003093/3.454, allocations: 1.045 MB / 0.4984 GB, free: 19.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004333/3.454, allocations: 62.52 kB / 0.4985 GB, free: 19.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009233/3.455, allocations: 0.6513 MB / 0.4991 GB, free: 18.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007003/3.456, allocations: 373.9 kB / 0.4995 GB, free: 18.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/3.456, allocations: 1.812 kB / 0.4995 GB, free: 18.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/3.456, allocations: 370 kB / 0.4998 GB, free: 18.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/3.458, allocations: 0.7026 MB / 0.5005 GB, free: 17.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002716/3.461, allocations: 0.9985 MB / 0.5015 GB, free: 17.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003558/3.465, allocations: 0.7717 MB / 0.5022 GB, free: 16.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.096e-05/3.465, allocations: 2.906 kB / 0.5022 GB, free: 16.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.008878/3.474, allocations: 2.048 MB / 0.5042 GB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005793/3.474, allocations: 2.445 MB / 0.5066 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/3.474, allocations: 6.875 kB / 0.5066 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002829/3.477, allocations: 0.5699 MB / 0.5072 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/3.479, allocations: 181.9 kB / 0.5074 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01478/3.494, allocations: 5.562 MB / 0.5128 GB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/3.497, allocations: 187 kB / 0.513 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002475/3.497, allocations: 51.92 kB / 0.513 GB, free: 8.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/3.497, allocations: 4 kB / 0.513 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005004/3.502, allocations: 1.876 MB / 0.5149 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/3.502, allocations: 12.12 kB / 0.5149 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/3.504, allocations: 0.5748 MB / 0.5154 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/3.506, allocations: 183.7 kB / 0.5156 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01324/3.519, allocations: 5.562 MB / 0.521 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/3.521, allocations: 151.2 kB / 0.5212 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/3.522, allocations: 55.94 kB / 0.5212 GB, free: 232 kB / 378.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.0005427/3.522, allocations: 181.4 kB / 0.5214 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004719/3.523, allocations: 142.3 kB / 0.5215 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007503/3.523, allocations: 161.5 kB / 0.5217 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/3.524, allocations: 16 kB / 0.5217 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/3.524, allocations: 0 / 0.5217 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.957e-05/3.524, allocations: 3.984 kB / 0.5217 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/3.537, allocations: 3.727 MB / 0.5254 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/3.537, allocations: 3.906 kB / 0.5254 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/3.538, allocations: 95.83 kB / 0.5255 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004255/3.543, allocations: 0.5398 MB / 0.526 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004179/3.543, allocations: 11.98 kB / 0.526 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02329/3.566, allocations: 5.389 MB / 0.5313 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/3.567, allocations: 3.938 kB / 0.5313 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01256/3.579, allocations: 2.732 MB / 0.5339 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01706/3.596, allocations: 4.112 MB / 0.5379 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/3.599, allocations: 375.2 kB / 0.5383 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008206/3.599, allocations: 31.98 kB / 0.5383 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002979/3.602, allocations: 107.7 kB / 0.5384 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009904/3.603, allocations: 129.1 kB / 0.5386 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002523/3.604, allocations: 35.98 kB / 0.5386 GB, free: 14.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003305/3.607, allocations: 0.7768 MB / 0.5393 GB, free: 13.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01017/3.617, allocations: 0.8523 MB / 0.5402 GB, free: 12.6 MB / 410.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.000936/3.618, allocations: 189.3 kB / 0.5404 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01552/3.634, allocations: 3.076 MB / 0.5434 GB, free: 9.312 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/3.634, allocations: 4 kB / 0.5434 GB, free: 9.309 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005069/3.639, allocations: 1.028 MB / 0.5444 GB, free: 8.273 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004691/3.644, allocations: 286.4 kB / 0.5446 GB, free: 7.992 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0176/3.661, allocations: 3.097 MB / 0.5477 GB, free: 4.844 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003802/3.665, allocations: 1.892 MB / 0.5495 GB, free: 2.918 MB / 410.7 MB Notification: Performance of SimCode: time 1.723e-06/3.665, allocations: 4 kB / 0.5495 GB, free: 2.914 MB / 410.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