Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",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.817/1.817, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2763/2.093, allocations: 46.83 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/2.194, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3306/2.525, allocations: 84.3 MB / 378.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/2.525, allocations: 77.39 kB / 378.3 MB, free: 6.48 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: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.8464/3.371, allocations: 159.1 MB / 0.5248 GB, free: 50.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/3.371, allocations: 11 kB / 0.5248 GB, free: 50.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01815/3.39, allocations: 1.639 MB / 0.5264 GB, free: 50.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009447/3.399, allocations: 2.687 MB / 0.529 GB, free: 49.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005999/3.4, allocations: 160.9 kB / 0.5292 GB, free: 49.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002238/3.402, allocations: 263.9 kB / 0.5294 GB, free: 49.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01945/3.421, allocations: 5.682 MB / 0.535 GB, free: 49.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02595/3.447, allocations: 6.865 MB / 0.5417 GB, free: 49.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003125/3.448, allocations: 3.938 kB / 0.5417 GB, free: 49.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001857/3.45, allocations: 0 / 0.5417 GB, free: 49.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004386/3.45, allocations: 311 kB / 0.542 GB, free: 49.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06727/3.517, allocations: 23.18 MB / 0.5646 GB, free: 42.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009087/3.527, allocations: 3.725 MB / 0.5683 GB, free: 40.99 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008344/3.535, allocations: 3.269 MB / 0.5714 GB, free: 39.6 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03564/3.571, allocations: 11.88 MB / 0.583 GB, free: 33.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.557e-05/3.571, allocations: 57.28 kB / 0.5831 GB, free: 32.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=336): time 8.717e-06/3.571, allocations: 0 / 0.5831 GB, free: 32.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=336): time 0.01861/3.589, allocations: 5.492 MB / 0.5885 GB, free: 30.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/3.59, allocations: 80.31 kB / 0.5885 GB, free: 30.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003036/3.593, allocations: 1.021 MB / 0.5895 GB, free: 30.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007639/3.593, allocations: 26.86 kB / 0.5896 GB, free: 30.31 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/3.595, allocations: 1.568 MB / 0.5911 GB, free: 29.13 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002161/3.597, allocations: 1.071 MB / 0.5921 GB, free: 28.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006637/3.598, allocations: 0 / 0.5921 GB, free: 28.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0007228/3.598, allocations: 0.5049 MB / 0.5926 GB, free: 27.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007286/3.606, allocations: 2.295 MB / 0.5949 GB, free: 26.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007113/3.613, allocations: 3.002 MB / 0.5978 GB, free: 23.85 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008661/3.621, allocations: 2.892 MB / 0.6006 GB, free: 21.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.399e-05/3.622, allocations: 11.94 kB / 0.6006 GB, free: 21.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01882/3.64, allocations: 6.478 MB / 0.607 GB, free: 15.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/3.64, allocations: 8 kB / 0.607 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.415e-05/3.641, allocations: 23.56 kB / 0.607 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004195/3.645, allocations: 1.425 MB / 0.6084 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00582/3.651, allocations: 0.5518 MB / 0.6089 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009236/3.66, allocations: 5.44 MB / 0.6142 GB, free: 8.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/3.664, allocations: 292.8 kB / 0.6145 GB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009322/3.665, allocations: 144.7 kB / 0.6147 GB, free: 8.473 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: complexToPolar[2].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[1].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (318): * Single equations (assignments): 256 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.00129/3.666, allocations: 233.3 kB / 0.6149 GB, free: 8.262 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008419/3.667, allocations: 177.7 kB / 0.6151 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01791/3.685, allocations: 5.888 MB / 0.6208 GB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02338/3.709, allocations: 5.721 MB / 0.6264 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.623e-05/3.709, allocations: 0 / 0.6264 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.975e-05/3.709, allocations: 21.02 kB / 0.6264 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03746/3.746, allocations: 11.04 MB / 0.6372 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.02e-05/3.746, allocations: 3.984 kB / 0.6372 GB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0043/3.751, allocations: 323.5 kB / 0.6375 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004792/3.755, allocations: 1.399 MB / 0.6389 GB, free: 3.078 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000835/3.756, allocations: 39.97 kB / 0.6389 GB, free: 3.039 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1553/3.912, allocations: 5.393 MB / 0.6442 GB, free: 127.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/3.912, allocations: 3.656 kB / 0.6442 GB, free: 127.6 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02281/3.935, allocations: 9.051 MB / 0.653 GB, free: 127.4 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03071/3.965, allocations: 12.79 MB / 0.6655 GB, free: 126.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002718/3.968, allocations: 0.7557 MB / 0.6662 GB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008169/3.969, allocations: 0 / 0.6662 GB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002221/3.971, allocations: 42.14 kB / 0.6663 GB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009505/3.972, allocations: 241 kB / 0.6665 GB, free: 126.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004086/3.973, allocations: 89.38 kB / 0.6666 GB, free: 126.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001639/3.974, allocations: 0.741 MB / 0.6673 GB, free: 126.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00585/3.98, allocations: 1.001 MB / 0.6683 GB, free: 126.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001065/3.981, allocations: 173.2 kB / 0.6685 GB, free: 126.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01476/3.996, allocations: 5.352 MB / 0.6737 GB, free: 126.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/3.996, allocations: 3.531 kB / 0.6737 GB, free: 126.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007741/4.004, allocations: 2.583 MB / 0.6762 GB, free: 126 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003917/4.008, allocations: 264.4 kB / 0.6765 GB, free: 126 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02993/4.038, allocations: 8.456 MB / 0.6847 GB, free: 123.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008853/4.047, allocations: 3.48 MB / 0.6881 GB, free: 122.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/4.047, allocations: 0 / 0.6881 GB, free: 122.1 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat