Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",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.681/1.681, allocations: 194.9 MB / 202.6 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2318/1.913, allocations: 46.84 MB / 249.4 MB, free: 5.312 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/2.003, allocations: 44.5 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2939/2.297, allocations: 81.9 MB / 375.8 MB, free: 7.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/2.297, allocations: 86.05 kB / 375.9 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.04679/2.344, allocations: 11.13 MB / 387 MB, free: 2.855 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/2.344, allocations: 11.8 kB / 387.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/2.345, allocations: 81.81 kB / 387.1 MB, free: 2.812 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/2.346, allocations: 492.7 kB / 387.6 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/2.346, allocations: 18.59 kB / 387.6 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/2.346, allocations: 42.41 kB / 387.7 MB, free: 2.488 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001394/2.347, allocations: 455.2 kB / 388.1 MB, free: 2.453 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/2.349, allocations: 0.5712 MB / 388.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/2.349, allocations: 0 / 388.7 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.988e-05/2.349, allocations: 7.359 kB / 388.7 MB, free: 2.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/2.349, allocations: 19.5 kB / 388.7 MB, free: 2.262 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005498/2.354, allocations: 2.442 MB / 391.2 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/2.356, allocations: 439 kB / 391.6 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005781/2.356, allocations: 240.2 kB / 391.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.068e-05/2.356, allocations: 8.156 kB / 391.8 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006591/2.357, allocations: 295 kB / 392.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 3.887e-06/2.357, allocations: 0 / 392.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.001346/2.358, allocations: 466.7 kB / 392.6 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/2.358, allocations: 114.9 kB / 392.7 MB, free: 16.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007064/2.359, allocations: 355.2 kB / 393 MB, free: 16.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/2.359, allocations: 36.81 kB / 393.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/2.36, allocations: 262.2 kB / 393.3 MB, free: 16.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/2.36, allocations: 150.8 kB / 393.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/2.36, allocations: 0 / 393.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/2.36, allocations: 362.5 kB / 393.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005022/2.361, allocations: 164.8 kB / 394 MB, free: 15.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006184/2.361, allocations: 314 kB / 394.3 MB, free: 15.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/2.362, allocations: 186.8 kB / 394.5 MB, free: 15.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/2.362, allocations: 9.25 kB / 394.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001708/2.363, allocations: 0.5697 MB / 395.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007676/2.364, allocations: 1.566 MB / 396.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/2.364, allocations: 4.047 kB / 396.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008564/2.365, allocations: 146.2 kB / 396.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007435/2.366, allocations: 91.92 kB / 396.9 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/2.37, allocations: 2.063 MB / 398.9 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009715/2.371, allocations: 75.53 kB / 399 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/2.371, allocations: 24.52 kB / 399 MB, free: 12.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/2.371, allocations: 3.312 kB / 399 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001503/2.373, allocations: 490.9 kB / 399.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/2.373, allocations: 4.312 kB / 399.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007242/2.373, allocations: 157.3 kB / 399.7 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006085/2.374, allocations: 78.48 kB / 399.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004071/2.378, allocations: 2.065 MB / 401.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000824/2.379, allocations: 57.11 kB / 401.9 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.017e-05/2.379, allocations: 20.91 kB / 401.9 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.000294/2.379, allocations: 142.8 kB / 402 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/2.38, allocations: 53.09 kB / 402.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/2.38, allocations: 56.3 kB / 402.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/2.38, allocations: 9.359 kB / 402.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/2.38, allocations: 0 / 402.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/2.38, allocations: 3.906 kB / 402.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/2.383, allocations: 1.166 MB / 403.3 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/2.383, allocations: 5.016 kB / 403.3 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000468/2.383, allocations: 44.27 kB / 403.4 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007244/2.384, allocations: 135.8 kB / 403.5 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.985e-05/2.384, allocations: 6.562 kB / 403.5 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004006/2.388, allocations: 2.049 MB / 405.5 MB, free: 8.516 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/2.388, allocations: 4.062 kB / 405.5 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002175/2.39, allocations: 0.8011 MB / 406.3 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002867/2.393, allocations: 1.421 MB / 407.8 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/2.394, allocations: 180.6 kB / 407.9 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/2.394, allocations: 5.406 kB / 407.9 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/2.395, allocations: 35.06 kB / 408 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/2.395, allocations: 41.91 kB / 408 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/2.395, allocations: 19.23 kB / 408 MB, free: 7.496 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.000518/2.395, allocations: 264.6 kB / 408.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004111/2.399, allocations: 288.9 kB / 408.6 MB, free: 7.344 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.0003546/2.4, allocations: 126 kB / 408.7 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003784/2.404, allocations: 0.9985 MB / 409.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/2.404, allocations: 0 / 409.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/2.405, allocations: 370.4 kB / 410.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/2.406, allocations: 67.92 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.004838/2.411, allocations: 0.8724 MB / 411 MB, free: 6.418 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/2.412, allocations: 0.97 MB / 412 MB, free: 5.605 MB / 314.7 MB Notification: Performance of SimCode: time 1.213e-06/2.412, allocations: 0 / 412 MB, free: 5.605 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.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat