Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.443e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2689, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.3993, allocations: 73.84 MB / 332.2 MB, free: 3.98 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.3996, allocations: 79.95 kB / 332.2 MB, free: 3.902 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8064/1.206, allocations: 170.1 MB / 0.4906 GB, free: 3.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.206, allocations: 0 / 0.4906 GB, free: 3.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003046/1.206, allocations: 115.9 kB / 0.4907 GB, free: 3.207 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1355 * Number of variables: 1355 Notification: Performance of Generate backend data structure: time 0.3138/1.52, allocations: 4.489 MB / 0.495 GB, free: 52.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/1.52, allocations: 9.125 kB / 0.4951 GB, free: 52.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003041/1.523, allocations: 489.2 kB / 0.4955 GB, free: 51.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00907/1.532, allocations: 2.925 MB / 0.4984 GB, free: 51.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005922/1.533, allocations: 168 kB / 0.4985 GB, free: 51.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00198/1.535, allocations: 279.7 kB / 0.4988 GB, free: 51.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01434/1.549, allocations: 5.147 MB / 0.5038 GB, free: 51.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02106/1.571, allocations: 6.91 MB / 0.5106 GB, free: 50.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/1.571, allocations: 11.19 kB / 0.5106 GB, free: 50.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001118/1.572, allocations: 6.969 kB / 0.5106 GB, free: 50.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002384/1.572, allocations: 218.8 kB / 0.5108 GB, free: 50.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05726/1.63, allocations: 22.73 MB / 0.533 GB, free: 49.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008154/1.638, allocations: 2.682 MB / 0.5356 GB, free: 48.63 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009737/1.648, allocations: 3.114 MB / 0.5387 GB, free: 47.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005108/1.648, allocations: 73.55 kB / 0.5387 GB, free: 47.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.409e-05/1.648, allocations: 62.58 kB / 0.5388 GB, free: 47.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=324): time 1.084e-05/1.648, allocations: 0 / 0.5388 GB, free: 47.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=324): time 0.0187/1.667, allocations: 5.405 MB / 0.5441 GB, free: 44.83 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/1.667, allocations: 126.6 kB / 0.5442 GB, free: 44.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/1.669, allocations: 0.7216 MB / 0.5449 GB, free: 44.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008558/1.67, allocations: 25.7 kB / 0.5449 GB, free: 44.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001435/1.671, allocations: 1.636 MB / 0.5465 GB, free: 43.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002319/1.674, allocations: 1.027 MB / 0.5475 GB, free: 42.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005199/1.674, allocations: 0 / 0.5475 GB, free: 42.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005039/1.675, allocations: 437 kB / 0.5479 GB, free: 42.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006805/1.682, allocations: 2.053 MB / 0.5499 GB, free: 41.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00489/1.687, allocations: 2.493 MB / 0.5524 GB, free: 39.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004894/1.692, allocations: 2.507 MB / 0.5548 GB, free: 38.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.793e-05/1.692, allocations: 7.125 kB / 0.5548 GB, free: 38.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01255/1.704, allocations: 5.731 MB / 0.5604 GB, free: 36.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/1.704, allocations: 7.375 kB / 0.5604 GB, free: 36.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.808e-05/1.704, allocations: 11.47 kB / 0.5604 GB, free: 36.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004133/1.709, allocations: 1.73 MB / 0.5621 GB, free: 35.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002691/1.711, allocations: 324.8 kB / 0.5624 GB, free: 35.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/1.722, allocations: 6.573 MB / 0.5689 GB, free: 31.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003026/1.725, allocations: 191.9 kB / 0.569 GB, free: 31.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008699/1.726, allocations: 100.2 kB / 0.5691 GB, free: 31.41 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentSensor.y[2].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor.y[1].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor.y[3].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor.y[3].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor.y[1].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor.y[2].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[1].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[3].i.re:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: voltageSource.voltageSource[2].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[2].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[3].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[3].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[1].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[1].i.im:VARIABLE(unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 64 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001386/1.728, allocations: 218.8 kB / 0.5694 GB, free: 31.29 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01753/1.745, allocations: 5.407 MB / 0.5746 GB, free: 27.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001289/1.747, allocations: 153.9 kB / 0.5748 GB, free: 27.69 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01771/1.764, allocations: 5.667 MB / 0.5803 GB, free: 22.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01614/1.78, allocations: 5.366 MB / 0.5856 GB, free: 18.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.11e-05/1.781, allocations: 0 / 0.5856 GB, free: 18.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.062e-05/1.781, allocations: 15.16 kB / 0.5856 GB, free: 18.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03266/1.813, allocations: 11 MB / 0.5963 GB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001361/1.813, allocations: 7.391 kB / 0.5963 GB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/1.816, allocations: 222 kB / 0.5965 GB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004153/1.82, allocations: 1.718 MB / 0.5982 GB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006838/1.82, allocations: 55.42 kB / 0.5983 GB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008582/1.829, allocations: 6.551 MB / 0.6047 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/1.829, allocations: 4 kB / 0.6047 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02846/1.858, allocations: 9.607 MB / 0.614 GB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006583/1.858, allocations: 274.2 kB / 0.6143 GB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009177/1.859, allocations: 4 kB / 0.6143 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/1.861, allocations: 27.25 kB / 0.6143 GB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/1.862, allocations: 265.5 kB / 0.6146 GB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003794/1.862, allocations: 82.45 kB / 0.6147 GB, free: 9.441 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001129/1.863, allocations: 0.5584 MB / 0.6152 GB, free: 8.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.863, allocations: 0 / 0.6152 GB, free: 8.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00459/1.868, allocations: 0.9913 MB / 0.6162 GB, free: 7.961 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 3 (voltageSource.voltageSource[1].pin_p.reference.gamma,voltageSource.voltageSource[3].pin_p.reference.gamma,voltageSource.voltageSource[2].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 64 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.2752/2.143, allocations: 10.86 MB / 0.6268 GB, free: 66.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01252/2.156, allocations: 4.876 MB / 0.6315 GB, free: 66.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/2.156, allocations: 0 / 0.6315 GB, free: 66.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006093/2.162, allocations: 2.505 MB / 0.634 GB, free: 66.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/2.166, allocations: 309.2 kB / 0.6343 GB, free: 66.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02506/2.191, allocations: 9.366 MB / 0.6434 GB, free: 64.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00496/2.196, allocations: 3.506 MB / 0.6468 GB, free: 64.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003046/2.199, allocations: 1.365 MB / 0.6482 GB, free: 64.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.744e-06/2.199, allocations: 0 / 0.6482 GB, free: 64.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.048/6.247, allocations: 206.2 MB / 0.8495 GB, free: 44.9 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat