Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",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.849/1.849, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2272/2.076, allocations: 46.83 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/2.199, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/2.51, allocations: 81.5 MB / 375.4 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/2.51, allocations: 85.34 kB / 375.5 MB, free: 6.984 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.09719/2.607, allocations: 22.84 MB / 398.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/2.607, allocations: 13.56 kB / 398.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004475/2.612, allocations: 393.5 kB / 398.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/2.614, allocations: 0.5358 MB / 399.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.495e-05/2.614, allocations: 32.91 kB / 399.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002591/2.614, allocations: 59.34 kB / 399.4 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002938/2.617, allocations: 0.7803 MB / 400.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/2.62, allocations: 0.835 MB / 401 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.227e-05/2.62, allocations: 5.344 kB / 401 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/2.62, allocations: 5.516 kB / 401 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.72e-05/2.62, allocations: 24.66 kB / 401 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/2.631, allocations: 3.754 MB / 404.8 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/2.633, allocations: 0.6995 MB / 405.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/2.634, allocations: 374 kB / 405.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001841/2.635, allocations: 101.3 kB / 405.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/2.636, allocations: 424.5 kB / 406.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 4.358e-06/2.636, allocations: 3.938 kB / 406.3 MB, free: 10.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.003773/2.64, allocations: 0.8134 MB / 407.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/2.64, allocations: 195.2 kB / 407.3 MB, free: 10.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008001/2.641, allocations: 360.9 kB / 407.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/2.641, allocations: 26.83 kB / 407.7 MB, free: 10.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000407/2.641, allocations: 372.2 kB / 408.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003751/2.642, allocations: 273.4 kB / 408.4 MB, free: 9.809 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/2.642, allocations: 4.031 kB / 408.4 MB, free: 9.805 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002143/2.642, allocations: 370.6 kB / 408.7 MB, free: 9.473 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008225/2.643, allocations: 239.3 kB / 409 MB, free: 9.461 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/2.644, allocations: 471 kB / 409.4 MB, free: 9.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/2.645, allocations: 314.8 kB / 409.7 MB, free: 9.109 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/2.645, allocations: 1.625 kB / 409.7 MB, free: 9.109 MB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003815/2.649, allocations: 0.9652 MB / 410.7 MB, free: 8.578 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/2.649, allocations: 8 kB / 410.7 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/2.649, allocations: 4 kB / 410.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/2.651, allocations: 275.3 kB / 411 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/2.652, allocations: 167 kB / 411.1 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009057/2.661, allocations: 4.063 MB / 415.2 MB, free: 4.555 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/2.663, allocations: 95.78 kB / 415.3 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/2.663, allocations: 39.25 kB / 415.3 MB, free: 4.43 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.0003768/2.664, allocations: 139.8 kB / 415.5 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/2.664, allocations: 79.83 kB / 415.5 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/2.668, allocations: 0.8804 MB / 416.4 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/2.668, allocations: 12 kB / 416.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/2.668, allocations: 0 / 416.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/2.668, allocations: 3.984 kB / 416.4 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005741/2.674, allocations: 1.694 MB / 418.1 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/2.674, allocations: 0 / 418.1 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/2.675, allocations: 107.9 kB / 418.2 MB, free: 1.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/2.677, allocations: 265.5 kB / 418.5 MB, free: 1.645 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/2.677, allocations: 11.98 kB / 418.5 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00912/2.686, allocations: 4.055 MB / 422.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.686, allocations: 0 / 422.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004507/2.691, allocations: 1.274 MB / 423.8 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007931/2.698, allocations: 2.722 MB / 426.6 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005945/2.699, allocations: 220 kB / 426.8 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000211/2.699, allocations: 4 kB / 426.8 MB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/2.7, allocations: 39.97 kB / 426.8 MB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/2.701, allocations: 48.7 kB / 426.9 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/2.701, allocations: 27.98 kB / 426.9 MB, free: 8.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005771/2.701, allocations: 271.3 kB / 427.2 MB, free: 8.695 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002654/2.704, allocations: 291 kB / 427.4 MB, free: 8.41 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.0004138/2.705, allocations: 162 kB / 427.6 MB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003184/2.708, allocations: 0.9322 MB / 428.5 MB, free: 7.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/2.708, allocations: 0 / 428.5 MB, free: 7.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/2.71, allocations: 0.6149 MB / 429.2 MB, free: 6.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009203/2.711, allocations: 77.66 kB / 429.2 MB, free: 6.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008232/2.719, allocations: 1.689 MB / 430.9 MB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001398/2.72, allocations: 1.064 MB / 432 MB, free: 3.789 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/2.72, allocations: 0 / 432 MB, free: 3.789 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat