Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.169/2.169, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.81e-05/3.808e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3135, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.488, allocations: 84.37 MB / 378.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/0.4883, allocations: 79.95 kB / 378.6 MB, free: 13.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8405/1.329, allocations: 155.5 MB / 0.5217 GB, free: 14.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.329, allocations: 4 kB / 0.5217 GB, free: 14.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003339/1.329, allocations: 99.88 kB / 0.5218 GB, free: 14.71 MB / 362.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.02828/1.358, allocations: 4.215 MB / 0.5259 GB, free: 10.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/1.358, allocations: 12.03 kB / 0.5259 GB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01541/1.373, allocations: 1.688 MB / 0.5275 GB, free: 8.723 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007571/1.381, allocations: 2.68 MB / 0.5301 GB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004793/1.381, allocations: 152 kB / 0.5303 GB, free: 5.848 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001833/1.383, allocations: 263.9 kB / 0.5305 GB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01531/1.398, allocations: 5.564 MB / 0.536 GB, free: 20 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02398/1.422, allocations: 6.763 MB / 0.5426 GB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001914/1.423, allocations: 3.984 kB / 0.5426 GB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001532/1.424, allocations: 4 kB / 0.5426 GB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000528/1.425, allocations: 301.3 kB / 0.5429 GB, free: 8.777 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06511/1.49, allocations: 22.36 MB / 0.5647 GB, free: 2.121 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2875/1.778, allocations: 6.388 MB / 0.5709 GB, free: 71.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007523/1.785, allocations: 3.222 MB / 0.5741 GB, free: 71.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02782/1.813, allocations: 10.8 MB / 0.5846 GB, free: 69.94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/1.813, allocations: 57.75 kB / 0.5847 GB, free: 69.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=319): time 6.872e-06/1.813, allocations: 0 / 0.5847 GB, free: 69.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=319): time 0.01288/1.826, allocations: 5.27 MB / 0.5898 GB, free: 69.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/1.826, allocations: 75.47 kB / 0.5899 GB, free: 69.63 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/1.828, allocations: 1.01 MB / 0.5909 GB, free: 69.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006715/1.829, allocations: 25.7 kB / 0.5909 GB, free: 69.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/1.83, allocations: 1.697 MB / 0.5926 GB, free: 68.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.831, allocations: 1.023 MB / 0.5936 GB, free: 68.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003613/1.832, allocations: 3.375 kB / 0.5936 GB, free: 68.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003648/1.832, allocations: 466.6 kB / 0.594 GB, free: 67.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004788/1.837, allocations: 2.153 MB / 0.5961 GB, free: 67.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005558/1.843, allocations: 2.847 MB / 0.5989 GB, free: 67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/1.85, allocations: 3.006 MB / 0.6019 GB, free: 66.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.031e-05/1.851, allocations: 7.156 kB / 0.6019 GB, free: 66.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01638/1.867, allocations: 6.339 MB / 0.608 GB, free: 66.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/1.867, allocations: 14 kB / 0.6081 GB, free: 66.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.874e-05/1.867, allocations: 23.81 kB / 0.6081 GB, free: 66.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003383/1.87, allocations: 1.41 MB / 0.6095 GB, free: 66.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004153/1.875, allocations: 0.5181 MB / 0.61 GB, free: 66.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007197/1.882, allocations: 5.281 MB / 0.6151 GB, free: 63.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/1.885, allocations: 322.1 kB / 0.6154 GB, free: 63.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009139/1.886, allocations: 142.3 kB / 0.6156 GB, free: 63.46 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[1].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[3].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[2].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[3].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[1].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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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.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] 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[2].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[3].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] 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[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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[2].i.re:VARIABLE(flow=true unit = "A" ) "Real 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 (301): * Single equations (assignments): 239 * 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.001004/1.887, allocations: 247.1 kB / 0.6158 GB, free: 63.32 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01278/1.9, allocations: 5.274 MB / 0.621 GB, free: 61.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.901, allocations: 169.7 kB / 0.6211 GB, free: 61.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.915, allocations: 5.638 MB / 0.6266 GB, free: 58.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01238/1.928, allocations: 5.238 MB / 0.6317 GB, free: 56.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/1.928, allocations: 0 / 0.6317 GB, free: 56.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.275e-05/1.928, allocations: 14.97 kB / 0.6318 GB, free: 56.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/1.953, allocations: 10.36 MB / 0.6419 GB, free: 52.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-05/1.953, allocations: 2.719 kB / 0.6419 GB, free: 52.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00266/1.956, allocations: 283.2 kB / 0.6421 GB, free: 52.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003385/1.959, allocations: 1.376 MB / 0.6435 GB, free: 51.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006532/1.96, allocations: 39.05 kB / 0.6435 GB, free: 51.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006771/1.967, allocations: 5.242 MB / 0.6486 GB, free: 47.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/1.967, allocations: 10.97 kB / 0.6486 GB, free: 47.05 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01786/1.984, allocations: 8.62 MB / 0.6571 GB, free: 39.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/1.987, allocations: 0.7353 MB / 0.6578 GB, free: 38.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006339/1.987, allocations: 1.75 kB / 0.6578 GB, free: 38.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/1.989, allocations: 61.34 kB / 0.6578 GB, free: 38.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009571/1.99, allocations: 241.7 kB / 0.6581 GB, free: 38.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003083/1.991, allocations: 82.08 kB / 0.6582 GB, free: 38.58 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001319/1.992, allocations: 0.7263 MB / 0.6589 GB, free: 37.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.992, allocations: 0 / 0.6589 GB, free: 37.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003952/1.996, allocations: 0.9928 MB / 0.6598 GB, free: 36.95 MB / 394.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 (174): * Single equations (assignments): 112 * 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.01814/2.014, allocations: 9.238 MB / 0.6689 GB, free: 28.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01149/2.026, allocations: 5.031 MB / 0.6738 GB, free: 24.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/2.026, allocations: 0 / 0.6738 GB, free: 24.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005887/2.032, allocations: 2.426 MB / 0.6761 GB, free: 22.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003243/2.035, allocations: 268.2 kB / 0.6764 GB, free: 22.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02371/2.059, allocations: 9.246 MB / 0.6854 GB, free: 14.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003605/2.062, allocations: 3.235 MB / 0.6886 GB, free: 11.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002822/2.065, allocations: 1.336 MB / 0.6899 GB, free: 10.33 MB / 394.7 MB Notification: Performance of SimCode: time 2.044e-06/2.065, allocations: 4 kB / 0.6899 GB, free: 10.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.97/6.035, allocations: 167.2 MB / 0.8532 GB, free: 4.961 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat