Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_Characteristic",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.689/1.689, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2237/1.913, allocations: 46.84 MB / 249.4 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/2.001, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2855/2.286, allocations: 78.79 MB / 372.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/2.287, allocations: 81.97 kB / 372.8 MB, free: 6.914 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.03994/2.327, allocations: 9.653 MB / 382.5 MB, free: 4.074 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/2.327, allocations: 15.55 kB / 382.5 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/2.327, allocations: 54.66 kB / 382.5 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007084/2.328, allocations: 367.5 kB / 382.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/2.328, allocations: 15.5 kB / 382.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/2.328, allocations: 27.36 kB / 382.9 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008232/2.329, allocations: 281 kB / 383.2 MB, free: 3.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009237/2.329, allocations: 392.3 kB / 383.6 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/2.33, allocations: 0 / 383.6 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.232e-05/2.33, allocations: 3.969 kB / 383.6 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/2.33, allocations: 11.72 kB / 383.6 MB, free: 3.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003458/2.333, allocations: 1.479 MB / 385.1 MB, free: 2.723 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/2.334, allocations: 336.7 kB / 385.4 MB, free: 2.648 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/2.335, allocations: 101.2 kB / 385.5 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/2.335, allocations: 4.078 kB / 385.5 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004389/2.335, allocations: 209 kB / 385.7 MB, free: 2.527 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 3.146e-06/2.335, allocations: 0 / 385.7 MB, free: 2.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.000883/2.336, allocations: 281.5 kB / 386 MB, free: 2.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/2.336, allocations: 110.6 kB / 386.1 MB, free: 2.309 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/2.336, allocations: 258.7 kB / 386.3 MB, free: 2.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/2.336, allocations: 33.31 kB / 386.4 MB, free: 2.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/2.337, allocations: 214.2 kB / 386.6 MB, free: 1.977 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.677e-05/2.337, allocations: 85.94 kB / 386.7 MB, free: 1.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/2.337, allocations: 0 / 386.7 MB, free: 1.918 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/2.337, allocations: 345.5 kB / 387 MB, free: 17.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/2.337, allocations: 97.55 kB / 387.1 MB, free: 17.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/2.338, allocations: 245.9 kB / 387.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/2.338, allocations: 113.8 kB / 387.5 MB, free: 17.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/2.338, allocations: 0 / 387.5 MB, free: 17.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008669/2.339, allocations: 376.9 kB / 387.8 MB, free: 17.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006125/2.339, allocations: 1.65 MB / 389.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/2.339, allocations: 7.922 kB / 389.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/2.34, allocations: 42.91 kB / 389.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/2.34, allocations: 81.67 kB / 389.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/2.342, allocations: 1.348 MB / 391 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000668/2.343, allocations: 63 kB / 391 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.935e-05/2.343, allocations: 23.41 kB / 391 MB, free: 14.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/2.343, allocations: 3.875 kB / 391 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007521/2.344, allocations: 292.6 kB / 391.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/2.344, allocations: 3.719 kB / 391.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002135/2.344, allocations: 45.97 kB / 391.4 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/2.344, allocations: 77.08 kB / 391.5 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/2.346, allocations: 1.352 MB / 392.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005766/2.346, allocations: 50.5 kB / 392.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/2.346, allocations: 18.66 kB / 392.9 MB, free: 12.81 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.0002025/2.347, allocations: 138 kB / 393 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.869e-05/2.347, allocations: 31.12 kB / 393 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/2.347, allocations: 39.95 kB / 393.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/2.347, allocations: 0 / 393.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/2.347, allocations: 11.64 kB / 393.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/2.347, allocations: 0 / 393.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/2.349, allocations: 0.7575 MB / 393.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/2.349, allocations: 3.906 kB / 393.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/2.349, allocations: 42.47 kB / 393.9 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002016/2.349, allocations: 42.5 kB / 393.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/2.349, allocations: 7.922 kB / 393.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/2.351, allocations: 1.334 MB / 395.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/2.351, allocations: 0 / 395.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001052/2.352, allocations: 0.5037 MB / 395.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001507/2.353, allocations: 1.01 MB / 396.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/2.354, allocations: 129.5 kB / 396.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.641e-05/2.354, allocations: 3.906 kB / 396.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/2.354, allocations: 46.98 kB / 397 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/2.354, allocations: 26.64 kB / 397 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/2.354, allocations: 7.75 kB / 397 MB, free: 10.03 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003007/2.355, allocations: 198.1 kB / 397.2 MB, free: 9.938 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0029/2.358, allocations: 178.6 kB / 397.4 MB, free: 9.895 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.0002274/2.358, allocations: 125.8 kB / 397.5 MB, free: 9.793 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001417/2.359, allocations: 0.6487 MB / 398.1 MB, free: 9.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/2.359, allocations: 3.875 kB / 398.1 MB, free: 9.527 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004593/2.36, allocations: 231.1 kB / 398.4 MB, free: 9.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/2.36, allocations: 31.08 kB / 398.4 MB, free: 9.402 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/2.362, allocations: 0.5879 MB / 399 MB, free: 9.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000747/2.363, allocations: 0.884 MB / 399.9 MB, free: 8.352 MB / 314.7 MB Notification: Performance of SimCode: time 3.387e-06/2.363, allocations: 0 / 399.9 MB, free: 8.352 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.Rectifier1Pulse.Thyristor1Pulse_R_Characteristic_res.mat does not exist to compare? outputFormat=mat