Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",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(Modelica): time 1.692/1.692, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2245/1.917, allocations: 46.85 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09014/2.007, allocations: 44.5 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2955/2.302, allocations: 78.53 MB / 372.5 MB, free: 6.961 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/2.303, allocations: 81.25 kB / 372.5 MB, free: 6.961 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.08565/2.388, allocations: 21.24 MB / 393.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/2.388, allocations: 9 kB / 393.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005311/2.389, allocations: 136.5 kB / 393.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007183/2.396, allocations: 1.672 MB / 395.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.065e-05/2.396, allocations: 34.33 kB / 395.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002565/2.397, allocations: 57.84 kB / 395.7 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003649/2.4, allocations: 1.147 MB / 396.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003508/2.404, allocations: 1.276 MB / 398.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.462e-05/2.404, allocations: 1.406 kB / 398.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/2.404, allocations: 9.625 kB / 398.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.663e-05/2.404, allocations: 38.81 kB / 398.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01121/2.415, allocations: 4.174 MB / 402.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/2.418, allocations: 0.892 MB / 403.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002222/2.42, allocations: 0.7987 MB / 404 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.669e-05/2.42, allocations: 11.19 kB / 404 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001386/2.421, allocations: 0.5412 MB / 404.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=75): time 3.567e-06/2.421, allocations: 4 kB / 404.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.004004/2.425, allocations: 1.201 MB / 405.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/2.426, allocations: 124.2 kB / 405.9 MB, free: 11.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/2.427, allocations: 0.6641 MB / 406.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/2.427, allocations: 30.97 kB / 406.6 MB, free: 11.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004777/2.428, allocations: 373.9 kB / 407 MB, free: 11.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/2.428, allocations: 236.6 kB / 407.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/2.428, allocations: 1.188 kB / 407.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002848/2.429, allocations: 392.9 kB / 407.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/2.43, allocations: 383.5 kB / 407.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/2.431, allocations: 0.5158 MB / 408.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/2.432, allocations: 431.2 kB / 408.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/2.432, allocations: 0 / 408.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003621/2.436, allocations: 1.228 MB / 410.1 MB, free: 9.301 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/2.436, allocations: 4.438 kB / 410.1 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/2.436, allocations: 8 kB / 410.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/2.438, allocations: 481.7 kB / 410.6 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009109/2.439, allocations: 95.25 kB / 410.7 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/2.452, allocations: 4.793 MB / 415.5 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/2.453, allocations: 59.5 kB / 415.5 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.442e-05/2.453, allocations: 28 kB / 415.6 MB, free: 4.18 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.0002943/2.454, allocations: 134.3 kB / 415.7 MB, free: 4.039 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/2.454, allocations: 86.91 kB / 415.8 MB, free: 3.953 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004552/2.454, allocations: 100.2 kB / 415.9 MB, free: 3.848 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/2.454, allocations: 8 kB / 415.9 MB, free: 3.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/2.454, allocations: 0 / 415.9 MB, free: 3.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/2.454, allocations: 3.984 kB / 415.9 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00773/2.462, allocations: 2.436 MB / 418.3 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/2.462, allocations: 3.938 kB / 418.3 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007449/2.463, allocations: 55.97 kB / 418.4 MB, free: 1.301 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/2.465, allocations: 476.6 kB / 418.8 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/2.465, allocations: 11.92 kB / 418.9 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/2.478, allocations: 4.758 MB / 423.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/2.478, allocations: 3.984 kB / 423.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004985/2.483, allocations: 1.868 MB / 425.5 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006495/2.489, allocations: 2.884 MB / 428.4 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007809/2.49, allocations: 267.9 kB / 428.6 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002225/2.49, allocations: 0 / 428.6 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009115/2.491, allocations: 39.86 kB / 428.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/2.491, allocations: 48.58 kB / 428.7 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.704e-05/2.491, allocations: 24 kB / 428.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0013/2.493, allocations: 0.5264 MB / 429.3 MB, free: 6.242 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002523/2.495, allocations: 299 kB / 429.6 MB, free: 5.949 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.0002894/2.496, allocations: 123.4 kB / 429.7 MB, free: 5.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003549/2.499, allocations: 1.133 MB / 430.8 MB, free: 4.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/2.499, allocations: 0 / 430.8 MB, free: 4.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002249/2.501, allocations: 0.7035 MB / 431.5 MB, free: 3.965 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/2.504, allocations: 207 kB / 431.7 MB, free: 3.766 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007095/2.511, allocations: 1.791 MB / 433.5 MB, free: 1.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/2.513, allocations: 1.373 MB / 434.9 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/2.513, allocations: 3.938 kB / 434.9 MB, free: 0.5273 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat