Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",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.814/1.814, allocations: 194.9 MB / 202.5 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2566/2.071, allocations: 46.84 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/2.164, allocations: 44.5 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2873/2.451, allocations: 79.03 MB / 372.9 MB, free: 7.074 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/2.451, allocations: 86.05 kB / 373 MB, free: 7.074 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.05776/2.509, allocations: 12.77 MB / 385.7 MB, free: 3.055 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/2.509, allocations: 7.719 kB / 385.8 MB, free: 3.055 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005351/2.51, allocations: 97 kB / 385.8 MB, free: 3.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/2.511, allocations: 0.5099 MB / 386.4 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.303e-05/2.511, allocations: 27.27 kB / 386.4 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/2.512, allocations: 42.81 kB / 386.4 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001817/2.514, allocations: 453.7 kB / 386.9 MB, free: 2.645 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/2.516, allocations: 0.6115 MB / 387.5 MB, free: 2.438 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.685e-05/2.516, allocations: 3.906 kB / 387.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/2.516, allocations: 7.594 kB / 387.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/2.516, allocations: 15.5 kB / 387.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007155/2.523, allocations: 2.55 MB / 390.1 MB, free: 16.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008551/2.524, allocations: 259.1 kB / 390.3 MB, free: 16.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007168/2.525, allocations: 260.5 kB / 390.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.333e-05/2.525, allocations: 15.5 kB / 390.6 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008979/2.526, allocations: 347.1 kB / 390.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 4.418e-06/2.526, allocations: 0 / 390.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001704/2.527, allocations: 0.5461 MB / 391.5 MB, free: 16.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/2.528, allocations: 113.4 kB / 391.6 MB, free: 16.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007529/2.528, allocations: 386 kB / 392 MB, free: 16.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001988/2.529, allocations: 40.78 kB / 392 MB, free: 16.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/2.529, allocations: 253.1 kB / 392.2 MB, free: 16.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/2.529, allocations: 207.8 kB / 392.4 MB, free: 16.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/2.529, allocations: 7.812 kB / 392.4 MB, free: 16.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/2.529, allocations: 366.8 kB / 392.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005542/2.53, allocations: 175.8 kB / 393 MB, free: 15.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006375/2.531, allocations: 353.9 kB / 393.3 MB, free: 15.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005956/2.531, allocations: 209.5 kB / 393.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/2.531, allocations: 3.781 kB / 393.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001817/2.533, allocations: 0.6505 MB / 394.2 MB, free: 15.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000783/2.534, allocations: 1.828 MB / 396 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/2.534, allocations: 3.781 kB / 396 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008582/2.535, allocations: 144.4 kB / 396.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/2.536, allocations: 132.9 kB / 396.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004292/2.54, allocations: 2.12 MB / 398.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/2.542, allocations: 76.91 kB / 398.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/2.542, allocations: 29.48 kB / 398.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/2.542, allocations: 3.844 kB / 398.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001897/2.544, allocations: 0.5554 MB / 399.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/2.544, allocations: 9.062 kB / 399.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007164/2.544, allocations: 138.6 kB / 399.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/2.546, allocations: 127.5 kB / 399.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/2.55, allocations: 2.11 MB / 401.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/2.551, allocations: 68.5 kB / 401.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/2.551, allocations: 29.05 kB / 401.5 MB, free: 10.17 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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0004146/2.552, allocations: 144.8 kB / 401.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/2.552, allocations: 66.16 kB / 401.7 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/2.554, allocations: 0.5827 MB / 402.3 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/2.554, allocations: 6.875 kB / 402.3 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/2.554, allocations: 3.984 kB / 402.3 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/2.554, allocations: 0 / 402.3 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/2.558, allocations: 1.306 MB / 403.6 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/2.558, allocations: 5.312 kB / 403.7 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/2.559, allocations: 97.12 kB / 403.7 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007538/2.56, allocations: 142.5 kB / 403.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001723/2.56, allocations: 11.33 kB / 403.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004369/2.565, allocations: 2.09 MB / 406 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/2.565, allocations: 0 / 406 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002984/2.568, allocations: 0.9606 MB / 406.9 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004193/2.572, allocations: 1.619 MB / 408.6 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007049/2.573, allocations: 205.4 kB / 408.8 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000259/2.573, allocations: 10.72 kB / 408.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/2.574, allocations: 51.14 kB / 408.8 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003348/2.575, allocations: 56.97 kB / 408.9 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.683e-05/2.575, allocations: 25.05 kB / 408.9 MB, free: 6.777 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0006469/2.575, allocations: 285.4 kB / 409.2 MB, free: 6.672 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004224/2.58, allocations: 314.8 kB / 409.5 MB, free: 6.621 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004884/2.58, allocations: 137.4 kB / 409.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004095/2.584, allocations: 1.157 MB / 410.8 MB, free: 6.129 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/2.584, allocations: 1.062 kB / 410.8 MB, free: 6.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/2.586, allocations: 414 kB / 411.2 MB, free: 5.984 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/2.587, allocations: 79.3 kB / 411.3 MB, free: 5.965 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005099/2.592, allocations: 1.016 MB / 412.3 MB, free: 5.508 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/2.594, allocations: 1.007 MB / 413.3 MB, free: 4.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.624e-06/2.594, allocations: 0 / 413.3 MB, free: 4.68 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_RL_res.mat does not exist to compare? outputFormat=mat