Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTapmPulse_DiodeCenterTapmPulse",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.668/1.668, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2405/1.909, allocations: 46.84 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08845/1.997, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.282/2.279, allocations: 77.25 MB / 371.2 MB, free: 7.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/2.28, allocations: 81.52 kB / 371.3 MB, free: 7.062 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.06034/2.34, allocations: 13.95 MB / 385.2 MB, free: 3.004 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/2.34, allocations: 15.73 kB / 385.2 MB, free: 2.996 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004413/2.34, allocations: 89.38 kB / 385.3 MB, free: 2.953 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001849/2.342, allocations: 0.6161 MB / 385.9 MB, free: 2.602 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.62e-05/2.342, allocations: 23.47 kB / 385.9 MB, free: 2.598 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/2.343, allocations: 38.62 kB / 386 MB, free: 2.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002139/2.345, allocations: 0.6969 MB / 386.7 MB, free: 2.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/2.347, allocations: 0.806 MB / 387.5 MB, free: 2.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/2.347, allocations: 0 / 387.5 MB, free: 2.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/2.347, allocations: 0 / 387.5 MB, free: 2.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.417e-05/2.347, allocations: 36.58 kB / 387.5 MB, free: 2.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006909/2.354, allocations: 2.695 MB / 390.2 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/2.355, allocations: 455.2 kB / 390.7 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/2.356, allocations: 361.3 kB / 391 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-05/2.356, allocations: 8.141 kB / 391 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007678/2.357, allocations: 329 kB / 391.3 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.438e-06/2.357, allocations: 3.938 kB / 391.3 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.001814/2.359, allocations: 0.622 MB / 392 MB, free: 416 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.066e-05/2.359, allocations: 114.4 kB / 392.1 MB, free: 16.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/2.36, allocations: 482 kB / 392.6 MB, free: 16.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/2.36, allocations: 25.7 kB / 392.6 MB, free: 16.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/2.361, allocations: 289 kB / 392.9 MB, free: 15.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/2.361, allocations: 126.4 kB / 393 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/2.361, allocations: 3.812 kB / 393 MB, free: 15.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/2.361, allocations: 363.3 kB / 393.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005186/2.362, allocations: 202.9 kB / 393.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006872/2.362, allocations: 323.7 kB / 393.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006152/2.363, allocations: 222.3 kB / 394.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/2.363, allocations: 1.281 kB / 394.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002027/2.365, allocations: 0.6807 MB / 394.8 MB, free: 15 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/2.365, allocations: 5.031 kB / 394.8 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/2.365, allocations: 3.875 kB / 394.8 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009387/2.366, allocations: 207.7 kB / 395 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007192/2.367, allocations: 84.48 kB / 395 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005224/2.372, allocations: 2.566 MB / 397.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008086/2.373, allocations: 47.47 kB / 397.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.301e-05/2.373, allocations: 17.03 kB / 397.7 MB, free: 13.34 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode.idealDiode[1].off,rectifier.diode.idealDiode[2].off,rectifier.diode.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002398/2.373, allocations: 124.4 kB / 397.8 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/2.374, allocations: 57.31 kB / 397.9 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002703/2.374, allocations: 62.56 kB / 397.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/2.374, allocations: 3.906 kB / 397.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/2.374, allocations: 1.25 kB / 397.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/2.374, allocations: 5.312 kB / 397.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004678/2.379, allocations: 1.61 MB / 399.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/2.379, allocations: 1.469 kB / 399.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005799/2.379, allocations: 48.84 kB / 399.6 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000855/2.38, allocations: 200.8 kB / 399.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.71e-05/2.38, allocations: 10.69 kB / 399.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004535/2.385, allocations: 2.352 MB / 402.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.028e-05/2.385, allocations: 1.25 kB / 402.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0029/2.388, allocations: 1.079 MB / 403.2 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003793/2.392, allocations: 1.771 MB / 405 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005838/2.392, allocations: 192.5 kB / 405.2 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/2.392, allocations: 5 kB / 405.2 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006295/2.393, allocations: 17.95 kB / 405.2 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/2.393, allocations: 36.62 kB / 405.2 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-05/2.393, allocations: 16 kB / 405.3 MB, free: 9.707 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.000827/2.394, allocations: 371.1 kB / 405.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002244/2.396, allocations: 189.6 kB / 405.8 MB, free: 9.547 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode.idealDiode[1].off,rectifier.diode.idealDiode[2].off,rectifier.diode.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003863/2.397, allocations: 118.7 kB / 405.9 MB, free: 9.449 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001934/2.399, allocations: 0.6251 MB / 406.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/2.399, allocations: 1.328 kB / 406.5 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/2.4, allocations: 415.9 kB / 407 MB, free: 9.102 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/2.401, allocations: 112.9 kB / 407.1 MB, free: 9.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/2.406, allocations: 1.078 MB / 408.1 MB, free: 8.637 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001464/2.407, allocations: 1.123 MB / 409.3 MB, free: 7.777 MB / 314.7 MB Notification: Performance of SimCode: time 1.714e-06/2.407, allocations: 0 / 409.3 MB, free: 7.777 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.DiodeCenterTapmPulse_res.mat does not exist to compare? outputFormat=mat