Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",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 2.105/2.105, allocations: 194.9 MB / 202.5 MB, free: 6.945 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2269/2.332, allocations: 46.83 MB / 249.3 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/2.438, allocations: 44.51 MB / 293.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/2.841, allocations: 81.5 MB / 375.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000612/2.841, allocations: 80.44 kB / 375.4 MB, free: 7.105 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.172/3.014, allocations: 22.84 MB / 398.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/3.014, allocations: 13.66 kB / 398.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004195/3.018, allocations: 394.1 kB / 398.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/3.02, allocations: 0.5296 MB / 399.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/3.02, allocations: 32.25 kB / 399.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004388/3.021, allocations: 63.45 kB / 399.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00319/3.024, allocations: 0.7797 MB / 400.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/3.027, allocations: 0.8364 MB / 400.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-05/3.027, allocations: 5.219 kB / 400.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000145/3.028, allocations: 5.078 kB / 400.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.836e-05/3.028, allocations: 24.06 kB / 400.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01501/3.043, allocations: 3.756 MB / 404.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005428/3.048, allocations: 0.6952 MB / 405.4 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002973/3.051, allocations: 377.7 kB / 405.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004466/3.052, allocations: 96.53 kB / 405.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003213/3.055, allocations: 436.3 kB / 406.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 1.506e-05/3.055, allocations: 0 / 406.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.008811/3.064, allocations: 0.8141 MB / 407.1 MB, free: 10.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002747/3.064, allocations: 195.2 kB / 407.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/3.066, allocations: 359.4 kB / 407.6 MB, free: 10.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003601/3.067, allocations: 30.73 kB / 407.7 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009135/3.068, allocations: 371.7 kB / 408 MB, free: 10.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009367/3.069, allocations: 275.1 kB / 408.3 MB, free: 9.941 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002334/3.069, allocations: 0 / 408.3 MB, free: 9.941 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0005233/3.07, allocations: 375.8 kB / 408.7 MB, free: 9.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/3.072, allocations: 232.1 kB / 408.9 MB, free: 9.602 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002865/3.075, allocations: 476.6 kB / 409.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003266/3.078, allocations: 312.7 kB / 409.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.29e-05/3.078, allocations: 2.844 kB / 409.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.009567/3.088, allocations: 0.9607 MB / 410.6 MB, free: 8.602 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.46e-05/3.088, allocations: 6.188 kB / 410.6 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.696e-05/3.088, allocations: 8 kB / 410.6 MB, free: 8.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003952/3.092, allocations: 271.8 kB / 410.9 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003143/3.095, allocations: 170.7 kB / 411.1 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02077/3.116, allocations: 4.065 MB / 415.1 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003384/3.119, allocations: 99.09 kB / 415.2 MB, free: 4.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004625/3.12, allocations: 43.11 kB / 415.3 MB, free: 4.445 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {4 18,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0009442/3.121, allocations: 136.4 kB / 415.4 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006227/3.122, allocations: 67.16 kB / 415.5 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009284/3.131, allocations: 0.8814 MB / 416.4 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-05/3.131, allocations: 12 kB / 416.4 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/3.131, allocations: 0 / 416.4 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.156e-05/3.131, allocations: 7.969 kB / 416.4 MB, free: 3.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/3.145, allocations: 1.693 MB / 418.1 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.209e-05/3.145, allocations: 3.984 kB / 418.1 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002588/3.148, allocations: 103.9 kB / 418.2 MB, free: 1.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00404/3.152, allocations: 269.5 kB / 418.4 MB, free: 1.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003726/3.152, allocations: 12 kB / 418.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/3.174, allocations: 4.049 MB / 422.5 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.397e-06/3.174, allocations: 0 / 422.5 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01047/3.185, allocations: 1.27 MB / 423.8 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01919/3.204, allocations: 2.73 MB / 426.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001535/3.206, allocations: 216 kB / 426.7 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006211/3.206, allocations: 3.984 kB / 426.7 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/3.209, allocations: 39.97 kB / 426.8 MB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006415/3.21, allocations: 52.7 kB / 426.8 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000281/3.21, allocations: 27.98 kB / 426.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001383/3.211, allocations: 267.1 kB / 427.1 MB, free: 8.766 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.008849/3.22, allocations: 291 kB / 427.4 MB, free: 8.48 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,4 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.001105/3.222, allocations: 158.2 kB / 427.5 MB, free: 8.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007545/3.229, allocations: 0.9332 MB / 428.5 MB, free: 7.363 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.681e-05/3.229, allocations: 0 / 428.5 MB, free: 7.363 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004778/3.234, allocations: 0.61 MB / 429.1 MB, free: 6.734 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/3.237, allocations: 74.34 kB / 429.1 MB, free: 6.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/3.259, allocations: 1.69 MB / 430.8 MB, free: 4.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003683/3.262, allocations: 1.06 MB / 431.9 MB, free: 3.867 MB / 330.7 MB Notification: Performance of SimCode: time 3.968e-06/3.262, allocations: 0 / 431.9 MB, free: 3.867 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat