Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.688/1.688, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.32e-05/2.321e-05, allocations: 0 / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.265, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1785/0.4435, allocations: 74.09 MB / 332.4 MB, free: 3.723 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003634/0.444, allocations: 75.95 kB / 332.5 MB, free: 3.648 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7059/1.15, allocations: 154.6 MB / 487.1 MB, free: 2.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.899e-06/1.15, allocations: 0 / 487.1 MB, free: 2.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002848/1.15, allocations: 107.9 kB / 487.2 MB, free: 2.484 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.0209/1.171, allocations: 4.152 MB / 491.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/1.171, allocations: 8.031 kB / 491.3 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/1.174, allocations: 450.7 kB / 491.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008338/1.182, allocations: 2.645 MB / 494.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004965/1.183, allocations: 156 kB / 494.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001948/1.185, allocations: 263.9 kB / 494.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02043/1.205, allocations: 4.724 MB / 499.5 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.268/1.473, allocations: 6.268 MB / 0.4939 GB, free: 56.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002713/1.474, allocations: 3.312 kB / 0.494 GB, free: 56.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001615/1.475, allocations: 6.328 kB / 0.494 GB, free: 56.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005082/1.476, allocations: 197.2 kB / 0.4941 GB, free: 56.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06784/1.544, allocations: 20.69 MB / 0.5144 GB, free: 54.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006892/1.551, allocations: 2.488 MB / 0.5168 GB, free: 54.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007586/1.558, allocations: 2.773 MB / 0.5195 GB, free: 54.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003576/1.559, allocations: 63.89 kB / 0.5196 GB, free: 54.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/1.559, allocations: 56.62 kB / 0.5196 GB, free: 54.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=284): time 6.823e-06/1.559, allocations: 3.781 kB / 0.5196 GB, free: 54.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=284): time 0.01074/1.569, allocations: 4.61 MB / 0.5241 GB, free: 54.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/1.57, allocations: 124.9 kB / 0.5242 GB, free: 53.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/1.571, allocations: 0.721 MB / 0.5249 GB, free: 53.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005512/1.572, allocations: 25.7 kB / 0.525 GB, free: 53.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008864/1.572, allocations: 1.546 MB / 0.5265 GB, free: 53.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/1.574, allocations: 0.905 MB / 0.5274 GB, free: 52.53 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/1.574, allocations: 0 / 0.5274 GB, free: 52.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002603/1.574, allocations: 423.4 kB / 0.5278 GB, free: 52.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/1.578, allocations: 1.84 MB / 0.5296 GB, free: 52.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/1.583, allocations: 2.261 MB / 0.5318 GB, free: 51.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004725/1.588, allocations: 2.224 MB / 0.5339 GB, free: 51.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-05/1.588, allocations: 2.844 kB / 0.5339 GB, free: 51.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.01095/1.599, allocations: 5.048 MB / 0.5389 GB, free: 48.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/1.599, allocations: 14.72 kB / 0.5389 GB, free: 48.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/1.599, allocations: 11.16 kB / 0.5389 GB, free: 48.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00326/1.602, allocations: 1.385 MB / 0.5402 GB, free: 48.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/1.605, allocations: 335.2 kB / 0.5406 GB, free: 48.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006994/1.612, allocations: 5.242 MB / 0.5457 GB, free: 45.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002105/1.614, allocations: 189.5 kB / 0.5459 GB, free: 45.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003756/1.614, allocations: 99.86 kB / 0.546 GB, free: 44.99 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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] 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.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].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" ) type: Real [3] powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[1].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: voltageSource.voltageSource[3].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[2].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[3].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[2].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[1].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[1].i.re:VARIABLE(unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] 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.re:VARIABLE(flow=true unit = "A" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * 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.000803/1.615, allocations: 196 kB / 0.5461 GB, free: 44.87 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01025/1.625, allocations: 4.625 MB / 0.5507 GB, free: 42.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008812/1.626, allocations: 143.2 kB / 0.5508 GB, free: 42.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.637, allocations: 4.876 MB / 0.5556 GB, free: 40.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009535/1.647, allocations: 4.589 MB / 0.56 GB, free: 38.81 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/1.647, allocations: 0 / 0.56 GB, free: 38.81 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/1.647, allocations: 16.09 kB / 0.5601 GB, free: 38.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02277/1.67, allocations: 9.751 MB / 0.5696 GB, free: 34.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.984e-05/1.67, allocations: 3.656 kB / 0.5696 GB, free: 34.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/1.672, allocations: 228 kB / 0.5698 GB, free: 34.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00324/1.675, allocations: 1.363 MB / 0.5711 GB, free: 33.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005238/1.676, allocations: 49.69 kB / 0.5712 GB, free: 33.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006702/1.682, allocations: 5.217 MB / 0.5763 GB, free: 30.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.331e-05/1.682, allocations: 11.52 kB / 0.5763 GB, free: 30.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01491/1.697, allocations: 8.056 MB / 0.5842 GB, free: 22.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005314/1.698, allocations: 266.1 kB / 0.5844 GB, free: 22.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007495/1.699, allocations: 11.95 kB / 0.5844 GB, free: 22.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/1.7, allocations: 27.3 kB / 0.5844 GB, free: 22.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006828/1.701, allocations: 244.5 kB / 0.5847 GB, free: 22.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002599/1.701, allocations: 70.8 kB / 0.5847 GB, free: 22.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009149/1.702, allocations: 0.5559 MB / 0.5853 GB, free: 21.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.702, allocations: 0 / 0.5853 GB, free: 21.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003214/1.705, allocations: 0.9138 MB / 0.5862 GB, free: 20.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (139): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * 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.01532/1.721, allocations: 9.7 MB / 0.5957 GB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009427/1.73, allocations: 4.305 MB / 0.5999 GB, free: 8.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/1.73, allocations: 0 / 0.5999 GB, free: 8.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005023/1.735, allocations: 2.179 MB / 0.602 GB, free: 6.238 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/1.738, allocations: 276.3 kB / 0.6022 GB, free: 6.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/1.759, allocations: 8.461 MB / 0.6105 GB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005142/1.764, allocations: 3.233 MB / 0.6137 GB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002939/1.767, allocations: 1.257 MB / 0.6149 GB, free: 10.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.633e-06/1.767, allocations: 0 / 0.6149 GB, free: 10.88 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.018/5.785, allocations: 162.7 MB / 0.7738 GB, free: 84.32 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.BalancingDelta_res.mat does not exist to compare? outputFormat=mat