Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",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.325/2.325, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2197/2.545, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/2.821, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3916/3.213, allocations: 95.6 MB / 449.7 MB, free: 32.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/3.213, allocations: 75.92 kB / 449.7 MB, free: 32.48 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: 454 * Number of variables: 454 Notification: Performance of Generate backend data structure: time 0.1417/3.355, allocations: 33.16 MB / 482.9 MB, free: 28.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/3.355, allocations: 11.78 kB / 482.9 MB, free: 28.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/3.356, allocations: 239.5 kB / 483.2 MB, free: 28.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/3.366, allocations: 2.155 MB / 485.3 MB, free: 28.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/3.367, allocations: 68.44 kB / 485.4 MB, free: 28.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008122/3.368, allocations: 105.2 kB / 485.5 MB, free: 28.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0072/3.375, allocations: 1.97 MB / 487.5 MB, free: 28.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008773/3.384, allocations: 2.236 MB / 489.7 MB, free: 27.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.01e-05/3.384, allocations: 0 / 489.7 MB, free: 27.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003049/3.384, allocations: 3.906 kB / 489.7 MB, free: 27.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.145e-05/3.384, allocations: 74.06 kB / 489.8 MB, free: 27.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02512/3.409, allocations: 6.888 MB / 496.7 MB, free: 24.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004916/3.414, allocations: 1.461 MB / 498.1 MB, free: 24.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004803/3.419, allocations: 1.154 MB / 499.3 MB, free: 24.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001888/3.419, allocations: 12.69 kB / 499.3 MB, free: 24.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003498/3.423, allocations: 0.8673 MB / 0.4884 GB, free: 23.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 7.284e-06/3.423, allocations: 0 / 0.4884 GB, free: 23.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=126): time 0.0061/3.429, allocations: 1.657 MB / 0.49 GB, free: 23.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/3.429, allocations: 233.8 kB / 0.4903 GB, free: 23.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/3.432, allocations: 1.022 MB / 0.4913 GB, free: 23.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003943/3.432, allocations: 52.39 kB / 0.4913 GB, free: 22.99 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007284/3.433, allocations: 0.6264 MB / 0.4919 GB, free: 22.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000564/3.434, allocations: 363.7 kB / 0.4923 GB, free: 22.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/3.434, allocations: 0 / 0.4923 GB, free: 22.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/3.434, allocations: 371.8 kB / 0.4926 GB, free: 21.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/3.436, allocations: 0.651 MB / 0.4933 GB, free: 21.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/3.438, allocations: 0.9464 MB / 0.4942 GB, free: 21.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002418/3.441, allocations: 0.7327 MB / 0.4949 GB, free: 21.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.241e-05/3.441, allocations: 7.875 kB / 0.4949 GB, free: 21.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005918/3.447, allocations: 1.935 MB / 0.4968 GB, free: 20.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005517/3.447, allocations: 2.443 MB / 0.4992 GB, free: 17.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.633e-05/3.447, allocations: 10.41 kB / 0.4992 GB, free: 17.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002784/3.45, allocations: 0.5572 MB / 0.4997 GB, free: 17.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/3.452, allocations: 176.3 kB / 0.4999 GB, free: 17.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01416/3.466, allocations: 5.482 MB / 0.5053 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0025/3.469, allocations: 181.3 kB / 0.5054 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003646/3.469, allocations: 55.08 kB / 0.5055 GB, free: 13.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/3.469, allocations: 3.625 kB / 0.5055 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005347/3.474, allocations: 1.772 MB / 0.5072 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.609e-05/3.475, allocations: 6.625 kB / 0.5072 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00246/3.477, allocations: 0.5501 MB / 0.5078 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/3.479, allocations: 178.1 kB / 0.5079 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01456/3.493, allocations: 5.485 MB / 0.5133 GB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/3.496, allocations: 155.1 kB / 0.5134 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/3.496, allocations: 44 kB / 0.5135 GB, free: 8.125 MB / 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: 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,$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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 (126): * Single equations (assignments): 125 * 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.0005225/3.496, allocations: 180.8 kB / 0.5137 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004285/3.497, allocations: 134.3 kB / 0.5138 GB, free: 7.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006657/3.497, allocations: 161.5 kB / 0.5139 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/3.498, allocations: 12 kB / 0.5139 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/3.498, allocations: 0 / 0.5139 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/3.498, allocations: 7.922 kB / 0.514 GB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/3.508, allocations: 3.6 MB / 0.5175 GB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/3.508, allocations: 0 / 0.5175 GB, free: 4.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009634/3.509, allocations: 103.8 kB / 0.5176 GB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002362/3.511, allocations: 0.5317 MB / 0.5181 GB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002775/3.512, allocations: 3.984 kB / 0.5181 GB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/3.525, allocations: 5.334 MB / 0.5233 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/3.525, allocations: 3.938 kB / 0.5233 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008611/3.534, allocations: 2.645 MB / 0.5259 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01361/3.548, allocations: 3.985 MB / 0.5298 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002206/3.55, allocations: 371.2 kB / 0.5301 GB, free: 6.863 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008055/3.551, allocations: 15.98 kB / 0.5301 GB, free: 6.848 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003027/3.554, allocations: 95.91 kB / 0.5302 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009455/3.555, allocations: 120.7 kB / 0.5304 GB, free: 6.637 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000243/3.555, allocations: 31.98 kB / 0.5304 GB, free: 6.605 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00344/3.559, allocations: 0.7686 MB / 0.5311 GB, free: 5.828 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01028/3.569, allocations: 0.825 MB / 0.5319 GB, free: 5 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: 42 (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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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.0008992/3.57, allocations: 180.5 kB / 0.5321 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01501/3.585, allocations: 2.936 MB / 0.535 GB, free: 1.855 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.695e-05/3.585, allocations: 0 / 0.535 GB, free: 1.855 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005158/3.59, allocations: 0.9915 MB / 0.5359 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004851/3.595, allocations: 284.2 kB / 0.5362 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/3.615, allocations: 3.042 MB / 0.5392 GB, free: 13.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005217/3.62, allocations: 1.861 MB / 0.541 GB, free: 11.59 MB / 410.7 MB Notification: Performance of SimCode: time 2.074e-06/3.62, allocations: 4 kB / 0.541 GB, free: 11.59 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat