Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",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.649/1.649, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2143/1.863, allocations: 46.84 MB / 249.4 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08969/1.953, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2883/2.241, allocations: 81.84 MB / 375.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003131/2.241, allocations: 81.73 kB / 375.9 MB, free: 7.012 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.05472/2.296, allocations: 14.26 MB / 390.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/2.296, allocations: 7.656 kB / 390.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/2.296, allocations: 92.44 kB / 390.2 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/2.297, allocations: 0.5056 MB / 390.7 MB, free: 1.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/2.297, allocations: 22.19 kB / 390.7 MB, free: 1.242 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/2.298, allocations: 46.2 kB / 390.8 MB, free: 1.238 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001388/2.299, allocations: 475 kB / 391.2 MB, free: 1.207 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/2.301, allocations: 0.6138 MB / 391.9 MB, free: 1.008 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.231e-05/2.301, allocations: 0 / 391.9 MB, free: 1.008 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.061e-05/2.301, allocations: 3.75 kB / 391.9 MB, free: 1.008 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/2.301, allocations: 15.09 kB / 391.9 MB, free: 1.008 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005754/2.306, allocations: 2.559 MB / 394.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/2.308, allocations: 455.1 kB / 394.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/2.309, allocations: 386.4 kB / 395.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.177e-05/2.309, allocations: 5.5 kB / 395.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007533/2.31, allocations: 310.6 kB / 395.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 3.166e-06/2.31, allocations: 3.938 kB / 395.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.001767/2.312, allocations: 0.5193 MB / 396.1 MB, free: 15.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/2.312, allocations: 118.4 kB / 396.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007448/2.312, allocations: 359.9 kB / 396.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.959e-05/2.312, allocations: 38.28 kB / 396.6 MB, free: 14.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/2.313, allocations: 269.4 kB / 396.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/2.313, allocations: 163.3 kB / 397 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/2.313, allocations: 0 / 397 MB, free: 14.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/2.313, allocations: 368 kB / 397.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005429/2.314, allocations: 180.1 kB / 397.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006992/2.315, allocations: 331.8 kB / 397.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005692/2.315, allocations: 206.6 kB / 398.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/2.315, allocations: 1.375 kB / 398.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00175/2.317, allocations: 0.6073 MB / 398.7 MB, free: 13.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006659/2.318, allocations: 1.575 MB / 400.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/2.318, allocations: 4.656 kB / 400.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008832/2.318, allocations: 156 kB / 400.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008331/2.319, allocations: 103.8 kB / 400.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/2.324, allocations: 3.297 MB / 403.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/2.325, allocations: 88.14 kB / 403.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.21e-05/2.326, allocations: 22.47 kB / 403.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/2.326, allocations: 3.719 kB / 403.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001608/2.327, allocations: 0.5231 MB / 404.5 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/2.327, allocations: 4.094 kB / 404.5 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008014/2.328, allocations: 163 kB / 404.6 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007339/2.329, allocations: 94.64 kB / 404.7 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004947/2.334, allocations: 3.295 MB / 408 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009047/2.335, allocations: 57.16 kB / 408.1 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/2.335, allocations: 22.25 kB / 408.1 MB, free: 6.582 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: 29 ($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,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_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 (66): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003005/2.335, allocations: 149.1 kB / 408.2 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/2.335, allocations: 53.31 kB / 408.3 MB, free: 6.418 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002308/2.335, allocations: 60.34 kB / 408.3 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/2.335, allocations: 5.188 kB / 408.3 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/2.336, allocations: 1 kB / 408.3 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/2.336, allocations: 3.984 kB / 408.3 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/2.339, allocations: 1.258 MB / 409.6 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/2.339, allocations: 3.906 kB / 409.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005792/2.339, allocations: 58.91 kB / 409.7 MB, free: 5.859 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007412/2.34, allocations: 141.4 kB / 409.8 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/2.34, allocations: 14.02 kB / 409.8 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/2.345, allocations: 3.271 MB / 413.1 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/2.345, allocations: 0 / 413.1 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002621/2.348, allocations: 0.8688 MB / 414 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003237/2.351, allocations: 1.504 MB / 415.5 MB, free: 2.277 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004493/2.352, allocations: 183.9 kB / 415.6 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/2.352, allocations: 3.375 kB / 415.6 MB, free: 2.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007176/2.353, allocations: 38.34 kB / 415.7 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/2.353, allocations: 49.48 kB / 415.7 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/2.353, allocations: 15.25 kB / 415.7 MB, free: 2.098 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005291/2.353, allocations: 273 kB / 416 MB, free: 1.996 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003702/2.357, allocations: 314.2 kB / 416.3 MB, free: 1.934 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * 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.thyristor_n1.off,rectifier.thyristor_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: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003017/2.357, allocations: 127.6 kB / 416.4 MB, free: 1.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003139/2.361, allocations: 1.237 MB / 417.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/2.361, allocations: 0 / 417.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/2.362, allocations: 471.2 kB / 418.1 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/2.363, allocations: 71.38 kB / 418.2 MB, free: 476 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/2.366, allocations: 0.9883 MB / 419.2 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009087/2.367, allocations: 0.9913 MB / 420.2 MB, free: 14.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/2.367, allocations: 0 / 420.2 MB, free: 14.56 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV_res.mat does not exist to compare? outputFormat=mat