Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",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.729/1.729, allocations: 194.9 MB / 202.5 MB, free: 6.84 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2505/1.979, allocations: 46.85 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/2.076, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2957/2.371, allocations: 78.74 MB / 372.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/2.372, allocations: 86.5 kB / 372.7 MB, free: 7.09 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: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.05489/2.427, allocations: 12.41 MB / 385.1 MB, free: 3.289 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/2.427, allocations: 7.75 kB / 385.1 MB, free: 3.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/2.427, allocations: 97.58 kB / 385.2 MB, free: 3.238 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/2.428, allocations: 0.504 MB / 385.7 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/2.429, allocations: 23.39 kB / 385.7 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/2.429, allocations: 46.41 kB / 385.8 MB, free: 2.895 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001581/2.43, allocations: 440.7 kB / 386.2 MB, free: 2.879 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/2.432, allocations: 0.5866 MB / 386.8 MB, free: 2.691 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/2.432, allocations: 7.75 kB / 386.8 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/2.432, allocations: 3.984 kB / 386.8 MB, free: 2.684 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/2.432, allocations: 15.28 kB / 386.8 MB, free: 2.684 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006605/2.439, allocations: 2.462 MB / 389.3 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/2.44, allocations: 453.7 kB / 389.7 MB, free: 1.234 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006637/2.441, allocations: 244.2 kB / 390 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.014e-05/2.441, allocations: 13.25 kB / 390 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000905/2.442, allocations: 349.4 kB / 390.3 MB, free: 1.086 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 3.857e-06/2.442, allocations: 0 / 390.3 MB, free: 1.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.001635/2.444, allocations: 0.5418 MB / 390.8 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/2.444, allocations: 119.2 kB / 391 MB, free: 16.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007482/2.444, allocations: 380.9 kB / 391.3 MB, free: 16.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/2.445, allocations: 33.02 kB / 391.4 MB, free: 16.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/2.445, allocations: 255.7 kB / 391.6 MB, free: 16.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/2.445, allocations: 193.5 kB / 391.8 MB, free: 16.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.466e-05/2.445, allocations: 0 / 391.8 MB, free: 16.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002064/2.446, allocations: 371.8 kB / 392.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005661/2.446, allocations: 177.5 kB / 392.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/2.447, allocations: 348.3 kB / 392.7 MB, free: 15.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005876/2.447, allocations: 207.9 kB / 392.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/2.447, allocations: 3.844 kB / 392.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001809/2.449, allocations: 0.6321 MB / 393.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007393/2.45, allocations: 1.828 MB / 395.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/2.45, allocations: 7.531 kB / 395.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008782/2.451, allocations: 148 kB / 395.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/2.452, allocations: 131.3 kB / 395.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004298/2.456, allocations: 2.053 MB / 397.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/2.458, allocations: 75 kB / 397.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/2.458, allocations: 28.14 kB / 397.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/2.458, allocations: 3.875 kB / 397.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001777/2.46, allocations: 0.5428 MB / 398.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/2.46, allocations: 4.031 kB / 398.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007487/2.46, allocations: 150.2 kB / 398.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/2.462, allocations: 123.4 kB / 398.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/2.466, allocations: 2.052 MB / 400.7 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/2.467, allocations: 65.59 kB / 400.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/2.467, allocations: 33.86 kB / 400.8 MB, free: 10.63 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003595/2.467, allocations: 141.5 kB / 400.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/2.468, allocations: 64.86 kB / 401 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/2.47, allocations: 0.5705 MB / 401.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/2.47, allocations: 7 kB / 401.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/2.47, allocations: 3.984 kB / 401.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/2.47, allocations: 0 / 401.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/2.473, allocations: 1.295 MB / 402.8 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/2.473, allocations: 1.188 kB / 402.8 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009522/2.474, allocations: 90.94 kB / 402.9 MB, free: 9.789 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007904/2.475, allocations: 142.2 kB / 403.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/2.475, allocations: 13.89 kB / 403.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/2.48, allocations: 2.053 MB / 405.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/2.48, allocations: 0 / 405.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002744/2.482, allocations: 0.9432 MB / 406.1 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00374/2.486, allocations: 1.609 MB / 407.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006033/2.487, allocations: 199.7 kB / 407.9 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/2.487, allocations: 6.188 kB / 407.9 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/2.488, allocations: 56.05 kB / 407.9 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/2.488, allocations: 59.31 kB / 408 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.621e-05/2.488, allocations: 22.27 kB / 408 MB, free: 7.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005892/2.489, allocations: 279.8 kB / 408.3 MB, free: 7.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003744/2.493, allocations: 316.9 kB / 408.6 MB, free: 7.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004694/2.493, allocations: 120.8 kB / 408.7 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00375/2.497, allocations: 1.158 MB / 409.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/2.497, allocations: 1.062 kB / 409.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001396/2.499, allocations: 419.2 kB / 410.3 MB, free: 6.535 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/2.5, allocations: 78.14 kB / 410.4 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005202/2.505, allocations: 0.9594 MB / 411.3 MB, free: 6.113 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/2.506, allocations: 1.004 MB / 412.3 MB, free: 5.281 MB / 314.7 MB Notification: Performance of SimCode: time 1.814e-06/2.506, allocations: 0 / 412.3 MB, free: 5.281 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat