Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.MultiPhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_MultiPhaseTwoLevel_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.796/1.796, allocations: 194.9 MB / 202.5 MB, free: 6.938 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2367/2.033, allocations: 46.84 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/2.129, allocations: 44.51 MB / 293.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3105/2.439, allocations: 84.15 MB / 378 MB, free: 6.918 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/2.44, allocations: 88.72 kB / 378.1 MB, free: 6.902 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: 587 * Number of variables: 587 Notification: Performance of Generate backend data structure: time 0.1923/2.632, allocations: 44.51 MB / 422.6 MB, free: 14.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/2.632, allocations: 8 kB / 422.6 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/2.634, allocations: 332.1 kB / 422.9 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006955/2.641, allocations: 1.918 MB / 424.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/2.641, allocations: 79.98 kB / 424.9 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001123/2.642, allocations: 142.4 kB / 425.1 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01049/2.652, allocations: 3.064 MB / 428.1 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/2.664, allocations: 3.311 MB / 431.4 MB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/2.664, allocations: 4 kB / 431.5 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004127/2.664, allocations: 11.98 kB / 431.5 MB, free: 6.496 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/2.665, allocations: 88.48 kB / 431.5 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03366/2.698, allocations: 10.09 MB / 441.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008094/2.706, allocations: 2.728 MB / 444.4 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004992/2.711, allocations: 1.718 MB / 446.1 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002407/2.712, allocations: 37.64 kB / 446.1 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005342/2.717, allocations: 1.737 MB / 447.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=220): time 7.304e-06/2.717, allocations: 4 kB / 447.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=220): time 0.009727/2.727, allocations: 3.125 MB / 451 MB, free: 2.879 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000197/2.727, allocations: 255.6 kB / 451.2 MB, free: 2.582 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003854/2.731, allocations: 1.523 MB / 452.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006769/2.732, allocations: 49.67 kB / 452.8 MB, free: 1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/2.733, allocations: 0.7253 MB / 453.5 MB, free: 276 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001283/2.734, allocations: 0.643 MB / 454.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/2.734, allocations: 4 kB / 454.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002612/2.735, allocations: 394.3 kB / 454.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003387/2.738, allocations: 1.246 MB / 455.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004048/2.742, allocations: 1.775 MB / 457.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003753/2.746, allocations: 1.38 MB / 459 MB, free: 10.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.019e-05/2.746, allocations: 4 kB / 459 MB, free: 10.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=280) (initialization): time 0.01061/2.757, allocations: 3.503 MB / 462.5 MB, free: 7.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002328/2.759, allocations: 5.382 MB / 467.9 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.078e-05/2.759, allocations: 12 kB / 467.9 MB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003798/2.763, allocations: 0.8515 MB / 468.7 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0038/2.767, allocations: 423.4 kB / 469.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01824/2.785, allocations: 7.107 MB / 476.2 MB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003913/2.789, allocations: 266.3 kB / 476.5 MB, free: 8.457 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/2.79, allocations: 87.98 kB / 476.6 MB, free: 8.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/2.79, allocations: 6.031 kB / 476.6 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009705/2.799, allocations: 3.227 MB / 479.8 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.602e-05/2.8, allocations: 19.98 kB / 479.8 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003405/2.803, allocations: 0.8399 MB / 480.7 MB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003579/2.807, allocations: 383.5 kB / 481.1 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01806/2.825, allocations: 7.112 MB / 488.2 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00349/2.828, allocations: 230.4 kB / 488.4 MB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003521/2.829, allocations: 83.98 kB / 488.5 MB, free: 12.36 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 90 ($PRE.signalPWM[1].zeroOrderHold.firstTrigger,signalPWM[1].zeroOrderHold.firstTrigger,$PRE.signalPWM[2].zeroOrderHold.firstTrigger,signalPWM[2].zeroOrderHold.firstTrigger,$PRE.signalPWM[3].zeroOrderHold.firstTrigger,signalPWM[3].zeroOrderHold.firstTrigger,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveVoltage[3].mean1.y,fundamentalWaveVoltage[3].mean1.y,$PRE.fundamentalWaveVoltage[3].mean2.y,fundamentalWaveVoltage[3].mean2.y,$PRE.fundamentalWaveVoltage[2].mean1.y,fundamentalWaveVoltage[2].mean1.y,$PRE.fundamentalWaveVoltage[2].mean2.y,fundamentalWaveVoltage[2].mean2.y,$PRE.fundamentalWaveVoltage[1].mean1.y,fundamentalWaveVoltage[1].mean1.y,$PRE.fundamentalWaveVoltage[1].mean2.y,fundamentalWaveVoltage[1].mean2.y,$PRE.fundamentalWaveCurrent[3].mean1.y,fundamentalWaveCurrent[3].mean1.y,$PRE.fundamentalWaveCurrent[3].mean2.y,fundamentalWaveCurrent[3].mean2.y,$PRE.fundamentalWaveCurrent[2].mean1.y,fundamentalWaveCurrent[2].mean1.y,$PRE.fundamentalWaveCurrent[2].mean2.y,fundamentalWaveCurrent[2].mean2.y,$PRE.fundamentalWaveCurrent[1].mean1.y,fundamentalWaveCurrent[1].mean1.y,$PRE.fundamentalWaveCurrent[1].mean2.y,fundamentalWaveCurrent[1].mean2.y,$whenCondition14,signalPWM[3].zeroOrderHold.sampleTrigger,signalPWM[3].zeroOrderHold.ySample,$whenCondition16,signalPWM[2].zeroOrderHold.sampleTrigger,signalPWM[2].zeroOrderHold.ySample,$whenCondition18,signalPWM[1].zeroOrderHold.sampleTrigger,signalPWM[1].zeroOrderHold.ySample,$whenCondition17,$whenCondition15,$whenCondition13,inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.fire_n[1],inverter.fire_n[2],inverter.fire_n[3],inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,$PRE.signalPWM[1].zeroOrderHold.ySample,$PRE.signalPWM[1].sawtooth.T_start,signalPWM[1].sawtooth.T_start,$PRE.signalPWM[1].sawtooth.count,signalPWM[1].sawtooth.count,$PRE.signalPWM[2].zeroOrderHold.ySample,$PRE.signalPWM[2].sawtooth.T_start,signalPWM[2].sawtooth.T_start,$PRE.signalPWM[2].sawtooth.count,signalPWM[2].sawtooth.count,$PRE.signalPWM[3].zeroOrderHold.ySample,$PRE.signalPWM[3].sawtooth.T_start,signalPWM[3].sawtooth.T_start,$PRE.signalPWM[3].sawtooth.count,signalPWM[3].sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 216 * Array equations: 0 * Algorithm blocks: 3 * 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 {12 46} Notification: Performance of prepare postOptimizeDAE: time 0.0008851/2.83, allocations: 231.5 kB / 488.7 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006805/2.83, allocations: 209.5 kB / 488.9 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009421/2.84, allocations: 3.328 MB / 492.2 MB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.433e-05/2.84, allocations: 20 kB / 492.3 MB, free: 8.547 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-06/2.84, allocations: 7.906 kB / 492.3 MB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.054e-05/2.84, allocations: 11.97 kB / 492.3 MB, free: 8.527 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/2.857, allocations: 6.084 MB / 498.4 MB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/2.857, allocations: 0 / 498.4 MB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003076/2.86, allocations: 303.6 kB / 498.7 MB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003376/2.864, allocations: 0.8318 MB / 499.5 MB, free: 1.289 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005689/2.864, allocations: 39.95 kB / 499.5 MB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1491/3.013, allocations: 7.066 MB / 0.4947 GB, free: 143.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/3.014, allocations: 6.953 kB / 0.4947 GB, free: 143.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01251/3.026, allocations: 5.371 MB / 0.5 GB, free: 143.1 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0184/3.044, allocations: 7.818 MB / 0.5076 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0024/3.047, allocations: 0.6207 MB / 0.5082 GB, free: 142.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009638/3.048, allocations: 54.03 kB / 0.5083 GB, free: 142.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00336/3.051, allocations: 179 kB / 0.5084 GB, free: 142.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001185/3.053, allocations: 271.9 kB / 0.5087 GB, free: 142.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000282/3.053, allocations: 67.34 kB / 0.5088 GB, free: 142.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002508/3.055, allocations: 1.151 MB / 0.5099 GB, free: 142.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007224/3.063, allocations: 1.166 MB / 0.511 GB, free: 142 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (fundamentalWaveCurrent[1].mean1.x,fundamentalWaveCurrent[1].mean2.x,fundamentalWaveCurrent[2].mean1.x,fundamentalWaveCurrent[2].mean2.x,fundamentalWaveCurrent[3].mean1.x,fundamentalWaveCurrent[3].mean2.x,fundamentalWaveVoltage[1].mean1.x,fundamentalWaveVoltage[1].mean2.x,fundamentalWaveVoltage[2].mean1.x,fundamentalWaveVoltage[2].mean2.x,fundamentalWaveVoltage[3].mean1.x,fundamentalWaveVoltage[3].mean2.x) * Number of discrete variables: 66 (signalPWM[1].zeroOrderHold.sampleTrigger,signalPWM[2].zeroOrderHold.sampleTrigger,signalPWM[3].zeroOrderHold.sampleTrigger,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.fire_n[1],inverter.fire_n[2],inverter.fire_n[3],inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,signalPWM[1].zeroOrderHold.firstTrigger,signalPWM[1].zeroOrderHold.ySample,signalPWM[1].sawtooth.T_start,signalPWM[1].sawtooth.count,signalPWM[2].zeroOrderHold.firstTrigger,signalPWM[2].zeroOrderHold.ySample,signalPWM[2].sawtooth.T_start,signalPWM[2].sawtooth.count,signalPWM[3].zeroOrderHold.firstTrigger,signalPWM[3].zeroOrderHold.ySample,signalPWM[3].sawtooth.T_start,signalPWM[3].sawtooth.count,fundamentalWaveCurrent[1].mean1.y,fundamentalWaveCurrent[1].mean2.y,fundamentalWaveCurrent[2].mean1.y,fundamentalWaveCurrent[2].mean2.y,fundamentalWaveCurrent[3].mean1.y,fundamentalWaveCurrent[3].mean2.y,fundamentalWaveVoltage[1].mean1.y,fundamentalWaveVoltage[1].mean2.y,fundamentalWaveVoltage[2].mean1.y,fundamentalWaveVoltage[2].mean2.y,fundamentalWaveVoltage[3].mean1.y,fundamentalWaveVoltage[3].mean2.y) * Number of discrete states: 18 (signalPWM[1].sawtooth.count,signalPWM[2].sawtooth.count,signalPWM[3].sawtooth.count,fundamentalWaveCurrent[1].mean1.x,fundamentalWaveCurrent[1].mean2.x,fundamentalWaveCurrent[2].mean1.x,fundamentalWaveCurrent[2].mean2.x,fundamentalWaveCurrent[3].mean1.x,fundamentalWaveCurrent[3].mean2.x,fundamentalWaveVoltage[1].mean1.x,fundamentalWaveVoltage[1].mean2.x,fundamentalWaveVoltage[2].mean1.x,fundamentalWaveVoltage[2].mean2.x,fundamentalWaveVoltage[3].mean1.x,fundamentalWaveVoltage[3].mean2.x,signalPWM[3].zeroOrderHold.ySample,signalPWM[2].zeroOrderHold.ySample,signalPWM[1].zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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 {12 46} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008967/3.064, allocations: 227.2 kB / 0.5112 GB, free: 141.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01381/3.077, allocations: 5.449 MB / 0.5166 GB, free: 140.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/3.077, allocations: 0 / 0.5166 GB, free: 140.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005159/3.083, allocations: 1.859 MB / 0.5184 GB, free: 139.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/3.087, allocations: 433.6 kB / 0.5188 GB, free: 139.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/3.104, allocations: 5.105 MB / 0.5238 GB, free: 138.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004374/3.109, allocations: 2.501 MB / 0.5262 GB, free: 137.1 MB / 394.7 MB Notification: Performance of SimCode: time 2.425e-06/3.109, allocations: 0 / 0.5262 GB, free: 137.1 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.MultiPhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat