Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) [: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(Modelica): time 1.711/1.711, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.204/1.915, allocations: 46.84 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/2.016, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3151/2.331, allocations: 78.52 MB / 372.4 MB, free: 7.078 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003958/2.332, allocations: 82.05 kB / 372.5 MB, free: 7.078 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.1265/2.458, allocations: 21.24 MB / 393.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/2.458, allocations: 9.031 kB / 393.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008162/2.459, allocations: 139.5 kB / 393.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007104/2.466, allocations: 1.666 MB / 395.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.965e-05/2.466, allocations: 30.06 kB / 395.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003464/2.467, allocations: 61.25 kB / 395.6 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003993/2.471, allocations: 1.15 MB / 396.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004931/2.476, allocations: 1.27 MB / 398 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.457e-05/2.476, allocations: 3.938 kB / 398 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001625/2.476, allocations: 2.75 kB / 398 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.457e-05/2.476, allocations: 47.02 kB / 398.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01167/2.488, allocations: 4.179 MB / 402.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/2.49, allocations: 0.8936 MB / 403.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002313/2.492, allocations: 0.7965 MB / 404 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.248e-05/2.493, allocations: 11.48 kB / 404 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001417/2.494, allocations: 0.5491 MB / 404.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=75): time 3.967e-06/2.494, allocations: 1.531 kB / 404.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.003791/2.498, allocations: 1.198 MB / 405.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/2.498, allocations: 119.7 kB / 405.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/2.5, allocations: 0.6705 MB / 406.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002311/2.5, allocations: 27.14 kB / 406.5 MB, free: 11.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000507/2.501, allocations: 370.4 kB / 406.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004282/2.501, allocations: 241.9 kB / 407.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.09e-05/2.501, allocations: 1.031 kB / 407.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003087/2.501, allocations: 399.2 kB / 407.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/2.503, allocations: 373.6 kB / 407.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/2.504, allocations: 0.5201 MB / 408.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/2.505, allocations: 425.8 kB / 408.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/2.505, allocations: 1.094 kB / 408.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003689/2.509, allocations: 1.228 MB / 410 MB, free: 9.574 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/2.509, allocations: 8 kB / 410.1 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/2.509, allocations: 0 / 410.1 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002056/2.511, allocations: 489 kB / 410.5 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008825/2.512, allocations: 95.83 kB / 410.6 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01184/2.524, allocations: 4.789 MB / 415.4 MB, free: 4.523 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/2.525, allocations: 63.5 kB / 415.5 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/2.525, allocations: 31.98 kB / 415.5 MB, free: 4.43 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 51 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002947/2.525, allocations: 126.3 kB / 415.6 MB, free: 4.297 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/2.525, allocations: 83.06 kB / 415.7 MB, free: 4.215 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004372/2.526, allocations: 108.1 kB / 415.8 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/2.526, allocations: 8 kB / 415.8 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/2.526, allocations: 3.984 kB / 415.8 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/2.526, allocations: 0 / 415.8 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007052/2.533, allocations: 2.429 MB / 418.3 MB, free: 1.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/2.533, allocations: 4 kB / 418.3 MB, free: 1.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006239/2.534, allocations: 63.91 kB / 418.3 MB, free: 1.551 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/2.536, allocations: 480.6 kB / 418.8 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/2.536, allocations: 4 kB / 418.8 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/2.547, allocations: 4.749 MB / 423.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/2.547, allocations: 0 / 423.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004692/2.552, allocations: 1.871 MB / 425.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006844/2.559, allocations: 2.883 MB / 428.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009461/2.56, allocations: 279.9 kB / 428.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/2.56, allocations: 0 / 428.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008519/2.561, allocations: 31.88 kB / 428.6 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/2.561, allocations: 48.58 kB / 428.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.94e-05/2.561, allocations: 23.98 kB / 428.7 MB, free: 7.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001224/2.563, allocations: 0.5303 MB / 429.2 MB, free: 6.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002476/2.565, allocations: 299 kB / 429.5 MB, free: 6.207 MB / 330.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: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003308/2.566, allocations: 115.3 kB / 429.6 MB, free: 6.086 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003387/2.569, allocations: 1.136 MB / 430.7 MB, free: 4.938 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/2.569, allocations: 0 / 430.7 MB, free: 4.938 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002064/2.571, allocations: 0.7035 MB / 431.4 MB, free: 4.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/2.573, allocations: 203 kB / 431.6 MB, free: 4.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006808/2.58, allocations: 1.798 MB / 433.4 MB, free: 2.195 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/2.582, allocations: 1.373 MB / 434.8 MB, free: 0.793 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/2.582, allocations: 0 / 434.8 MB, free: 0.793 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat