Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",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.746/1.746, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2291/1.976, allocations: 46.84 MB / 249.4 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/2.071, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/2.378, allocations: 79.03 MB / 373 MB, free: 7.098 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/2.379, allocations: 88.03 kB / 373 MB, free: 7.098 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.05714/2.436, allocations: 12.75 MB / 385.8 MB, free: 3.074 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/2.436, allocations: 11.56 kB / 385.8 MB, free: 3.074 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/2.436, allocations: 97.08 kB / 385.9 MB, free: 3.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/2.437, allocations: 0.5131 MB / 386.4 MB, free: 2.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/2.437, allocations: 26.94 kB / 386.4 MB, free: 2.676 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/2.438, allocations: 42.69 kB / 386.5 MB, free: 2.676 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001575/2.439, allocations: 459.2 kB / 386.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/2.441, allocations: 0.6078 MB / 387.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.711e-05/2.441, allocations: 7.781 kB / 387.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/2.441, allocations: 0 / 387.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/2.441, allocations: 19.36 kB / 387.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006273/2.447, allocations: 2.544 MB / 390.1 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007374/2.448, allocations: 265.3 kB / 390.4 MB, free: 16.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006829/2.449, allocations: 256.1 kB / 390.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-05/2.449, allocations: 7.906 kB / 390.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008981/2.45, allocations: 356.9 kB / 391 MB, free: 16.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.817e-06/2.45, allocations: 0 / 391 MB, free: 16.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.001801/2.452, allocations: 0.5423 MB / 391.5 MB, free: 16.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/2.452, allocations: 117.4 kB / 391.6 MB, free: 16.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007831/2.453, allocations: 393.7 kB / 392 MB, free: 16.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/2.453, allocations: 29.58 kB / 392.1 MB, free: 16.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/2.453, allocations: 257.1 kB / 392.3 MB, free: 16.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/2.453, allocations: 207.2 kB / 392.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-05/2.453, allocations: 0 / 392.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/2.454, allocations: 373.6 kB / 392.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006012/2.454, allocations: 184.1 kB / 393.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007257/2.455, allocations: 349 kB / 393.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006513/2.456, allocations: 207.2 kB / 393.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/2.456, allocations: 7.844 kB / 393.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002012/2.458, allocations: 0.644 MB / 394.2 MB, free: 15.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008075/2.458, allocations: 1.832 MB / 396.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/2.458, allocations: 5.062 kB / 396.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008641/2.459, allocations: 140 kB / 396.2 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/2.461, allocations: 133.9 kB / 396.4 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/2.465, allocations: 2.114 MB / 398.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/2.466, allocations: 81.47 kB / 398.5 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.352e-05/2.466, allocations: 37.2 kB / 398.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/2.466, allocations: 3.906 kB / 398.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001882/2.468, allocations: 0.5428 MB / 399.1 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/2.468, allocations: 12 kB / 399.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007159/2.469, allocations: 136.8 kB / 399.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/2.47, allocations: 133.8 kB / 399.4 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004273/2.474, allocations: 2.102 MB / 401.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/2.475, allocations: 69.47 kB / 401.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.156e-05/2.476, allocations: 31.58 kB / 401.6 MB, free: 10.2 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.000342/2.476, allocations: 135.6 kB / 401.7 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/2.476, allocations: 71.39 kB / 401.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/2.478, allocations: 0.5872 MB / 402.4 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/2.478, allocations: 6.875 kB / 402.4 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/2.478, allocations: 4 kB / 402.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/2.478, allocations: 5.359 kB / 402.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003394/2.482, allocations: 1.309 MB / 403.7 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/2.482, allocations: 7.984 kB / 403.7 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/2.483, allocations: 95 kB / 403.8 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007185/2.483, allocations: 136.9 kB / 404 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.043e-05/2.484, allocations: 11.11 kB / 404 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004176/2.488, allocations: 2.096 MB / 406.1 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/2.488, allocations: 0 / 406.1 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002836/2.491, allocations: 0.9588 MB / 407 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00375/2.494, allocations: 1.614 MB / 408.6 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005407/2.495, allocations: 205.9 kB / 408.8 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/2.495, allocations: 6.625 kB / 408.8 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/2.496, allocations: 47.7 kB / 408.9 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002488/2.496, allocations: 63.97 kB / 408.9 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.509e-05/2.497, allocations: 24.95 kB / 409 MB, free: 6.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0006031/2.497, allocations: 288.6 kB / 409.3 MB, free: 6.688 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003734/2.501, allocations: 321.8 kB / 409.6 MB, free: 6.629 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.000326/2.501, allocations: 139.6 kB / 409.7 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003751/2.505, allocations: 1.151 MB / 410.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/2.505, allocations: 0.5 kB / 410.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/2.507, allocations: 416 kB / 411.3 MB, free: 6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/2.508, allocations: 80.41 kB / 411.3 MB, free: 5.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/2.512, allocations: 1.011 MB / 412.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/2.513, allocations: 1.004 MB / 413.4 MB, free: 4.703 MB / 314.7 MB Notification: Performance of SimCode: time 1.203e-06/2.513, allocations: 0 / 413.4 MB, free: 4.703 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat