Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.MultiPhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_MultiPhaseTwoLevel_R",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.813/1.813, allocations: 194.9 MB / 202.6 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2155/2.028, allocations: 46.84 MB / 249.4 MB, free: 5.297 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/2.122, allocations: 44.51 MB / 293.9 MB, free: 10.85 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3327/2.455, allocations: 84.14 MB / 378.1 MB, free: 6.773 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003304/2.455, allocations: 93.89 kB / 378.2 MB, free: 6.754 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.2224/2.678, allocations: 44.49 MB / 422.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/2.678, allocations: 12 kB / 422.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001887/2.68, allocations: 328.2 kB / 423 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00787/2.687, allocations: 1.914 MB / 424.9 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/2.688, allocations: 75.94 kB / 425 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/2.689, allocations: 155.3 kB / 425.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01204/2.701, allocations: 3.062 MB / 428.2 MB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01387/2.715, allocations: 3.311 MB / 431.5 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001665/2.715, allocations: 4 kB / 431.5 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009295/2.716, allocations: 15.98 kB / 431.5 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001467/2.716, allocations: 84.5 kB / 431.6 MB, free: 6.281 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03878/2.755, allocations: 10.09 MB / 441.7 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008537/2.764, allocations: 2.73 MB / 444.4 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005634/2.769, allocations: 1.722 MB / 446.1 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002915/2.77, allocations: 33.34 kB / 446.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006123/2.776, allocations: 1.74 MB / 447.9 MB, free: 5.895 MB / 346.7 MB Notification: Performance of pre-optimization done (n=220): time 8.205e-06/2.776, allocations: 0 / 447.9 MB, free: 5.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=220): time 0.0114/2.787, allocations: 3.121 MB / 451 MB, free: 2.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002281/2.788, allocations: 259.6 kB / 451.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00485/2.792, allocations: 1.519 MB / 452.8 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007365/2.793, allocations: 53.67 kB / 452.9 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/2.795, allocations: 0.7282 MB / 453.6 MB, free: 152 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001519/2.796, allocations: 0.6462 MB / 454.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/2.796, allocations: 0 / 454.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003656/2.797, allocations: 394.3 kB / 454.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004265/2.801, allocations: 1.246 MB / 455.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005175/2.806, allocations: 1.783 MB / 457.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004612/2.811, allocations: 1.372 MB / 459 MB, free: 10.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.776e-05/2.811, allocations: 4 kB / 459 MB, free: 10.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=280) (initialization): time 0.01252/2.824, allocations: 3.508 MB / 462.5 MB, free: 6.965 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002389/2.826, allocations: 5.378 MB / 467.9 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.686e-05/2.826, allocations: 12 kB / 467.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004361/2.831, allocations: 0.8515 MB / 468.8 MB, free: 240 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/2.835, allocations: 419.3 kB / 469.2 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02142/2.856, allocations: 7.107 MB / 476.3 MB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004332/2.861, allocations: 270.3 kB / 476.6 MB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007471/2.862, allocations: 83.98 kB / 476.6 MB, free: 8.254 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/2.862, allocations: 4 kB / 476.6 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0114/2.873, allocations: 3.223 MB / 479.9 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-05/2.873, allocations: 12.16 kB / 479.9 MB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004011/2.877, allocations: 0.8557 MB / 480.7 MB, free: 4.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003965/2.881, allocations: 379.3 kB / 481.1 MB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02101/2.902, allocations: 7.115 MB / 488.2 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003936/2.906, allocations: 226.4 kB / 488.4 MB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006085/2.907, allocations: 83.98 kB / 488.5 MB, free: 12.25 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.001064/2.908, allocations: 231.5 kB / 488.7 MB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009004/2.909, allocations: 217.4 kB / 489 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01196/2.921, allocations: 3.321 MB / 492.3 MB, free: 8.449 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.096e-05/2.921, allocations: 20 kB / 492.3 MB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/2.921, allocations: 7.906 kB / 492.3 MB, free: 8.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.113e-05/2.921, allocations: 11.95 kB / 492.3 MB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02158/2.943, allocations: 6.087 MB / 498.4 MB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.272e-05/2.943, allocations: 0 / 498.4 MB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003691/2.946, allocations: 303.6 kB / 498.7 MB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004088/2.951, allocations: 0.8318 MB / 499.5 MB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006371/2.951, allocations: 31.95 kB / 499.6 MB, free: 1.145 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1541/3.105, allocations: 7.077 MB / 0.4948 GB, free: 143 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/3.105, allocations: 3.375 kB / 0.4948 GB, free: 143 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01479/3.12, allocations: 5.363 MB / 0.5 GB, free: 142.8 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02036/3.141, allocations: 7.826 MB / 0.5077 GB, free: 142.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/3.143, allocations: 0.6154 MB / 0.5083 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/3.145, allocations: 54.7 kB / 0.5083 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003934/3.149, allocations: 184.2 kB / 0.5085 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001422/3.15, allocations: 268.1 kB / 0.5087 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005061/3.151, allocations: 70.84 kB / 0.5088 GB, free: 142 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003157/3.154, allocations: 1.148 MB / 0.5099 GB, free: 141.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008913/3.163, allocations: 1.162 MB / 0.5111 GB, free: 141.8 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.001021/3.164, allocations: 233 kB / 0.5113 GB, free: 141.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01627/3.18, allocations: 5.452 MB / 0.5166 GB, free: 140.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/3.18, allocations: 0 / 0.5166 GB, free: 140.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006156/3.186, allocations: 1.861 MB / 0.5184 GB, free: 139.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004585/3.191, allocations: 428.7 kB / 0.5188 GB, free: 139.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02166/3.213, allocations: 5.103 MB / 0.5238 GB, free: 137.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005615/3.218, allocations: 2.498 MB / 0.5263 GB, free: 136.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.703e-06/3.218, allocations: 0 / 0.5263 GB, free: 136.7 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.MultiPhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat