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"}) Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.387e-05, allocations: 2.281 kB / 249.8 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4665/0.5684, allocations: 84.36 MB / 378.7 MB, free: 6.535 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5688, allocations: 79.11 kB / 378.7 MB, free: 6.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8823/1.451, allocations: 155.5 MB / 0.5217 GB, free: 80.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.451, allocations: 0 / 0.5217 GB, free: 80.06 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002487/1.451, allocations: 98.45 kB / 0.5218 GB, free: 80.05 MB / 394.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.02165/1.473, allocations: 4.211 MB / 0.526 GB, free: 78.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.659e-05/1.473, allocations: 14.91 kB / 0.526 GB, free: 78.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01614/1.489, allocations: 1.688 MB / 0.5276 GB, free: 78.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008473/1.498, allocations: 2.68 MB / 0.5302 GB, free: 77.87 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005079/1.498, allocations: 156.2 kB / 0.5304 GB, free: 77.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00198/1.5, allocations: 262.8 kB / 0.5306 GB, free: 77.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0167/1.517, allocations: 5.565 MB / 0.5361 GB, free: 77.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/1.541, allocations: 6.764 MB / 0.5427 GB, free: 77.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002901/1.541, allocations: 3.891 kB / 0.5427 GB, free: 77.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00194/1.543, allocations: 3.875 kB / 0.5427 GB, free: 77.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004921/1.544, allocations: 303.6 kB / 0.543 GB, free: 77.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06913/1.613, allocations: 22.35 MB / 0.5648 GB, free: 66.46 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/1.633, allocations: 6.403 MB / 0.5711 GB, free: 62.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01347/1.646, allocations: 3.216 MB / 0.5742 GB, free: 59.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03037/1.677, allocations: 10.81 MB / 0.5847 GB, free: 50.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.836e-05/1.677, allocations: 60.56 kB / 0.5848 GB, free: 50.15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=319): time 7.975e-06/1.677, allocations: 0 / 0.5848 GB, free: 50.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=319): time 0.01501/1.692, allocations: 5.264 MB / 0.5899 GB, free: 45.57 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/1.692, allocations: 77.34 kB / 0.59 GB, free: 45.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/1.694, allocations: 1.014 MB / 0.591 GB, free: 44.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007048/1.695, allocations: 25.7 kB / 0.591 GB, free: 44.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/1.696, allocations: 1.675 MB / 0.5927 GB, free: 43.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001799/1.698, allocations: 1.024 MB / 0.5937 GB, free: 42.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004179/1.698, allocations: 0 / 0.5937 GB, free: 42.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000513/1.699, allocations: 0.5019 MB / 0.5942 GB, free: 41.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005139/1.704, allocations: 2.149 MB / 0.5963 GB, free: 39.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006036/1.71, allocations: 2.846 MB / 0.599 GB, free: 36.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008658/1.719, allocations: 3.006 MB / 0.602 GB, free: 34.47 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.39e-05/1.719, allocations: 4 kB / 0.602 GB, free: 34.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01825/1.737, allocations: 6.385 MB / 0.6082 GB, free: 28.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/1.737, allocations: 15.95 kB / 0.6082 GB, free: 28.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.515e-05/1.737, allocations: 20 kB / 0.6082 GB, free: 28.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003894/1.741, allocations: 1.4 MB / 0.6096 GB, free: 27.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004698/1.746, allocations: 0.5187 MB / 0.6101 GB, free: 26.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007876/1.754, allocations: 5.281 MB / 0.6153 GB, free: 21.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/1.758, allocations: 324.3 kB / 0.6156 GB, free: 20.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006473/1.758, allocations: 140 kB / 0.6157 GB, free: 20.72 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.001012/1.759, allocations: 257.8 kB / 0.616 GB, free: 20.49 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01349/1.773, allocations: 5.267 MB / 0.6211 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/1.774, allocations: 165.8 kB / 0.6213 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/1.788, allocations: 5.645 MB / 0.6268 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01286/1.801, allocations: 5.236 MB / 0.6319 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.372e-05/1.801, allocations: 3.953 kB / 0.6319 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.577e-05/1.801, allocations: 19.64 kB / 0.6319 GB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3271/2.128, allocations: 10.35 MB / 0.642 GB, free: 78.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.615e-05/2.129, allocations: 0.8438 kB / 0.642 GB, free: 78.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003918/2.132, allocations: 286.4 kB / 0.6423 GB, free: 78.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005675/2.138, allocations: 1.376 MB / 0.6436 GB, free: 78.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007832/2.139, allocations: 41.8 kB / 0.6437 GB, free: 78.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/2.15, allocations: 5.239 MB / 0.6488 GB, free: 76.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/2.15, allocations: 0 / 0.6488 GB, free: 76.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02878/2.179, allocations: 8.626 MB / 0.6572 GB, free: 75.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003408/2.183, allocations: 0.7323 MB / 0.6579 GB, free: 75.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009053/2.183, allocations: 5 kB / 0.6579 GB, free: 75.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/2.186, allocations: 58.22 kB / 0.658 GB, free: 75.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001221/2.187, allocations: 241.9 kB / 0.6582 GB, free: 75.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005202/2.188, allocations: 85.78 kB / 0.6583 GB, free: 75.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002116/2.19, allocations: 0.7256 MB / 0.659 GB, free: 75.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.72e-07/2.19, allocations: 0 / 0.659 GB, free: 75.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006032/2.196, allocations: 0.9926 MB / 0.66 GB, free: 75.43 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.02401/2.22, allocations: 9.249 MB / 0.669 GB, free: 74.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01354/2.234, allocations: 5.029 MB / 0.6739 GB, free: 73.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/2.234, allocations: 2.812 kB / 0.6739 GB, free: 73.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006845/2.241, allocations: 2.421 MB / 0.6763 GB, free: 72.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/2.244, allocations: 273.3 kB / 0.6766 GB, free: 72.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/2.272, allocations: 9.443 MB / 0.6858 GB, free: 69.17 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004944/2.277, allocations: 3.326 MB / 0.689 GB, free: 67.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003302/2.28, allocations: 0.5951 MB / 0.6896 GB, free: 67.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003096/2.283, allocations: 1.312 MB / 0.6909 GB, free: 66.64 MB / 394.7 MB Notification: Performance of SimCode: time 1.332e-06/2.283, allocations: 0 / 0.6909 GB, free: 66.64 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2116/2.495, allocations: 69.82 MB / 0.7591 GB, free: 15.82 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002445/2.495, allocations: 177.8 kB / 0.7592 GB, free: 15.62 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.441/6.936, allocations: 0 / 0.7592 GB, free: 15.62 MB / 394.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