Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",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.798/1.798, allocations: 194.9 MB / 202.5 MB, free: 6.84 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2238/2.022, allocations: 46.84 MB / 249.4 MB, free: 5.359 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/2.116, allocations: 44.5 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3289/2.444, allocations: 78.8 MB / 372.7 MB, free: 7.102 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/2.445, allocations: 82.89 kB / 372.7 MB, free: 7.102 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.03988/2.485, allocations: 9.649 MB / 382.4 MB, free: 4.285 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/2.485, allocations: 11.69 kB / 382.4 MB, free: 4.285 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/2.485, allocations: 62.52 kB / 382.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/2.486, allocations: 363.3 kB / 382.8 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.683e-05/2.486, allocations: 15.62 kB / 382.8 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/2.487, allocations: 23.28 kB / 382.9 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001317/2.488, allocations: 288.6 kB / 383.1 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/2.49, allocations: 373.7 kB / 383.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.409e-05/2.49, allocations: 7.422 kB / 383.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/2.49, allocations: 3.938 kB / 383.5 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/2.49, allocations: 11.72 kB / 383.5 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005719/2.496, allocations: 1.483 MB / 385 MB, free: 2.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/2.497, allocations: 322.2 kB / 385.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003619/2.498, allocations: 107.8 kB / 385.4 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/2.498, allocations: 11.47 kB / 385.4 MB, free: 2.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000602/2.498, allocations: 206.2 kB / 385.6 MB, free: 2.742 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 3.677e-06/2.498, allocations: 0 / 385.6 MB, free: 2.742 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009081/2.499, allocations: 280.2 kB / 385.9 MB, free: 2.648 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/2.499, allocations: 114.6 kB / 386 MB, free: 2.523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/2.5, allocations: 253.3 kB / 386.3 MB, free: 2.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.465e-05/2.5, allocations: 37 kB / 386.3 MB, free: 2.363 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/2.5, allocations: 207 kB / 386.5 MB, free: 2.195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.703e-05/2.5, allocations: 91.75 kB / 386.6 MB, free: 2.137 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/2.5, allocations: 0 / 386.6 MB, free: 2.137 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/2.5, allocations: 340.6 kB / 386.9 MB, free: 17.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/2.501, allocations: 101.6 kB / 387 MB, free: 17.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003517/2.501, allocations: 247.6 kB / 387.3 MB, free: 17.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/2.501, allocations: 114.4 kB / 387.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/2.501, allocations: 0 / 387.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008961/2.502, allocations: 373 kB / 387.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006464/2.503, allocations: 1.658 MB / 389.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/2.503, allocations: 7.844 kB / 389.4 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003496/2.503, allocations: 45.95 kB / 389.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/2.504, allocations: 81.67 kB / 389.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/2.506, allocations: 1.345 MB / 390.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007139/2.506, allocations: 62.5 kB / 390.9 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/2.506, allocations: 19.28 kB / 391 MB, free: 14.42 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/2.506, allocations: 3.875 kB / 391 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000741/2.507, allocations: 299.7 kB / 391.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/2.507, allocations: 3.875 kB / 391.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/2.507, allocations: 46.31 kB / 391.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/2.508, allocations: 78.14 kB / 391.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/2.509, allocations: 1.351 MB / 392.7 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005897/2.51, allocations: 54.91 kB / 392.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/2.51, allocations: 14.41 kB / 392.8 MB, free: 13.04 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,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_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002329/2.51, allocations: 133.1 kB / 392.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.584e-05/2.51, allocations: 32.03 kB / 393 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/2.51, allocations: 35.27 kB / 393 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/2.51, allocations: 6.688 kB / 393 MB, free: 12.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/2.51, allocations: 5.5 kB / 393 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/2.51, allocations: 3.984 kB / 393 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/2.512, allocations: 0.7505 MB / 393.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/2.512, allocations: 0 / 393.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004046/2.513, allocations: 46.88 kB / 393.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002127/2.513, allocations: 35.73 kB / 393.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/2.513, allocations: 11.72 kB / 393.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/2.514, allocations: 1.336 MB / 395.2 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/2.514, allocations: 3.938 kB / 395.2 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001112/2.515, allocations: 0.5039 MB / 395.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001446/2.517, allocations: 1.005 MB / 396.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/2.517, allocations: 137.9 kB / 396.8 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.522e-05/2.517, allocations: 3.844 kB / 396.8 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/2.518, allocations: 47.23 kB / 396.9 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/2.518, allocations: 30.2 kB / 396.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/2.518, allocations: 11 kB / 396.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003011/2.518, allocations: 192.5 kB / 397.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00271/2.521, allocations: 184.1 kB / 397.3 MB, free: 10.11 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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 22 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002648/2.521, allocations: 114.1 kB / 397.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/2.523, allocations: 0.6488 MB / 398.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/2.523, allocations: 0 / 398.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004929/2.524, allocations: 235.6 kB / 398.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/2.524, allocations: 42.91 kB / 398.3 MB, free: 9.621 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/2.526, allocations: 0.5804 MB / 398.9 MB, free: 9.355 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/2.527, allocations: 0.8869 MB / 399.8 MB, free: 8.566 MB / 314.7 MB Notification: Performance of SimCode: time 2.154e-06/2.527, allocations: 0 / 399.8 MB, free: 8.566 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat does not exist to compare? outputFormat=mat