Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",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.894/1.894, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2416/2.136, allocations: 46.86 MB / 249.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/2.243, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3499/2.593, allocations: 81.9 MB / 375.8 MB, free: 7.051 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/2.593, allocations: 82.14 kB / 375.9 MB, free: 7.051 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.05618/2.649, allocations: 11.13 MB / 387 MB, free: 2.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/2.649, allocations: 11.78 kB / 387 MB, free: 2.863 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003855/2.65, allocations: 77.97 kB / 387.1 MB, free: 2.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001521/2.651, allocations: 496.5 kB / 387.6 MB, free: 2.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.504e-05/2.651, allocations: 22.5 kB / 387.6 MB, free: 2.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/2.652, allocations: 42.52 kB / 387.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001471/2.653, allocations: 452.6 kB / 388.1 MB, free: 2.461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/2.655, allocations: 0.5718 MB / 388.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.924e-05/2.655, allocations: 7.938 kB / 388.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.13e-05/2.655, allocations: 0 / 388.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/2.655, allocations: 19.47 kB / 388.7 MB, free: 2.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006252/2.661, allocations: 2.438 MB / 391.1 MB, free: 16.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/2.662, allocations: 443.6 kB / 391.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005371/2.663, allocations: 239.1 kB / 391.8 MB, free: 16.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.22e-05/2.663, allocations: 8.297 kB / 391.8 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006489/2.664, allocations: 290.8 kB / 392.1 MB, free: 16.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.587e-06/2.664, allocations: 3.844 kB / 392.1 MB, free: 16.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.001395/2.665, allocations: 468.1 kB / 392.5 MB, free: 16.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/2.665, allocations: 111 kB / 392.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000714/2.666, allocations: 364.8 kB / 393 MB, free: 16.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/2.666, allocations: 33.02 kB / 393 MB, free: 16.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/2.666, allocations: 257.5 kB / 393.3 MB, free: 16.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/2.667, allocations: 151.3 kB / 393.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.269e-05/2.667, allocations: 1.25 kB / 393.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002023/2.667, allocations: 358.2 kB / 393.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005065/2.667, allocations: 163.7 kB / 393.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005922/2.668, allocations: 317.2 kB / 394.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005372/2.669, allocations: 186.3 kB / 394.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/2.669, allocations: 5.188 kB / 394.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001746/2.67, allocations: 0.5711 MB / 395 MB, free: 15.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007835/2.671, allocations: 1.571 MB / 396.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/2.671, allocations: 5.031 kB / 396.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008743/2.672, allocations: 142.1 kB / 396.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007813/2.673, allocations: 87.7 kB / 396.8 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/2.677, allocations: 2.064 MB / 398.9 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/2.678, allocations: 84.3 kB / 398.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.94e-05/2.678, allocations: 25.28 kB / 399 MB, free: 12.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/2.678, allocations: 3.594 kB / 399 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001514/2.68, allocations: 487.9 kB / 399.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/2.68, allocations: 8.219 kB / 399.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007787/2.681, allocations: 147 kB / 399.6 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/2.682, allocations: 79.16 kB / 399.7 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004253/2.686, allocations: 2.057 MB / 401.7 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008559/2.687, allocations: 60.44 kB / 401.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.591e-05/2.687, allocations: 24.94 kB / 401.8 MB, free: 10.6 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003157/2.687, allocations: 135.5 kB / 401.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/2.687, allocations: 56.92 kB / 402 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000228/2.688, allocations: 52.14 kB / 402 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/2.688, allocations: 6.156 kB / 402.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/2.688, allocations: 3.938 kB / 402.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/2.688, allocations: 7.891 kB / 402.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/2.691, allocations: 1.167 MB / 403.2 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/2.691, allocations: 0 / 403.2 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/2.691, allocations: 48.34 kB / 403.3 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007388/2.692, allocations: 149.5 kB / 403.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/2.692, allocations: 1.656 kB / 403.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004081/2.696, allocations: 2.037 MB / 405.5 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/2.696, allocations: 8 kB / 405.5 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002288/2.699, allocations: 0.7976 MB / 406.3 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003377/2.702, allocations: 1.423 MB / 407.7 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006556/2.703, allocations: 174.5 kB / 407.9 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/2.703, allocations: 6.344 kB / 407.9 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000997/2.704, allocations: 33.88 kB / 407.9 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/2.704, allocations: 43.02 kB / 407.9 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.295e-05/2.705, allocations: 23.03 kB / 408 MB, free: 7.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005863/2.705, allocations: 265.3 kB / 408.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003653/2.709, allocations: 290.3 kB / 408.5 MB, free: 7.352 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004131/2.709, allocations: 132.5 kB / 408.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003637/2.713, allocations: 0.9874 MB / 409.6 MB, free: 6.945 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/2.713, allocations: 1.312 kB / 409.6 MB, free: 6.945 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/2.715, allocations: 372.4 kB / 410 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/2.716, allocations: 78.02 kB / 410.1 MB, free: 6.781 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/2.722, allocations: 0.8722 MB / 410.9 MB, free: 6.414 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/2.724, allocations: 0.9679 MB / 411.9 MB, free: 5.602 MB / 314.7 MB Notification: Performance of SimCode: time 3.156e-06/2.724, allocations: 0 / 411.9 MB, free: 5.602 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat