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 1.923/1.923, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.831e-05/2.844e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/0.5587, allocations: 85.03 MB / 385 MB, free: 20.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.5591, allocations: 86.58 kB / 385.1 MB, free: 20.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8334/1.392, allocations: 157.2 MB / 0.5296 GB, free: 87.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.393, allocations: 0 / 0.5296 GB, free: 87.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002902/1.393, allocations: 102.4 kB / 0.5297 GB, free: 87.29 MB / 410.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.0204/1.413, allocations: 4.214 MB / 0.5338 GB, free: 85.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/1.413, allocations: 11.5 kB / 0.5338 GB, free: 85.95 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003017/1.416, allocations: 0.6797 MB / 0.5344 GB, free: 85.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/1.431, allocations: 1.694 MB / 0.5361 GB, free: 85.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008321/1.439, allocations: 2.685 MB / 0.5387 GB, free: 85.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007193/1.44, allocations: 349.2 kB / 0.5391 GB, free: 85.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002334/1.442, allocations: 443.6 kB / 0.5395 GB, free: 85.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/1.47, allocations: 7.409 MB / 0.5467 GB, free: 84.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/1.47, allocations: 11.44 kB / 0.5467 GB, free: 84.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00162/1.472, allocations: 192 kB / 0.5469 GB, free: 84.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005308/1.473, allocations: 301.9 kB / 0.5472 GB, free: 84.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02414/1.497, allocations: 6.039 MB / 0.5531 GB, free: 84.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06497/1.562, allocations: 23.25 MB / 0.5758 GB, free: 74.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/1.575, allocations: 6.41 MB / 0.5821 GB, free: 70.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009843/1.585, allocations: 3.283 MB / 0.5853 GB, free: 68.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05109/1.636, allocations: 10.82 MB / 0.5958 GB, free: 61.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/1.636, allocations: 52.56 kB / 0.5959 GB, free: 61.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=319): time 9.217e-06/1.636, allocations: 0 / 0.5959 GB, free: 61.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=319): time 0.02892/1.665, allocations: 5.17 MB / 0.6009 GB, free: 57.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/1.665, allocations: 77.41 kB / 0.601 GB, free: 57.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/1.667, allocations: 1.057 MB / 0.602 GB, free: 56.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006979/1.668, allocations: 61.7 kB / 0.6021 GB, free: 56.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009564/1.669, allocations: 1.7 MB / 0.6038 GB, free: 54.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001767/1.671, allocations: 1.053 MB / 0.6048 GB, free: 53.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003887/1.671, allocations: 52 kB / 0.6048 GB, free: 53.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003607/1.672, allocations: 462.6 kB / 0.6053 GB, free: 53.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005299/1.677, allocations: 2.182 MB / 0.6074 GB, free: 51.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006369/1.683, allocations: 2.873 MB / 0.6102 GB, free: 48.44 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006704/1.69, allocations: 2.693 MB / 0.6128 GB, free: 46.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.028e-05/1.69, allocations: 4 kB / 0.6128 GB, free: 46.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01953/1.71, allocations: 6.154 MB / 0.6189 GB, free: 40.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/1.71, allocations: 12.97 kB / 0.6189 GB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.021e-05/1.71, allocations: 20 kB / 0.6189 GB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005278/1.715, allocations: 1.412 MB / 0.6203 GB, free: 39.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00411/1.719, allocations: 0.5107 MB / 0.6208 GB, free: 39.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006854/1.726, allocations: 5.162 MB / 0.6258 GB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003479/1.73, allocations: 372.6 kB / 0.6262 GB, free: 33.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005523/1.73, allocations: 143.2 kB / 0.6263 GB, free: 33.78 MB / 410.7 MB 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.0007322/1.731, allocations: 267.2 kB / 0.6265 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005887/1.732, allocations: 173.7 kB / 0.6267 GB, free: 33.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01259/1.744, allocations: 5.577 MB / 0.6322 GB, free: 28.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01116/1.756, allocations: 5.135 MB / 0.6372 GB, free: 24.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/1.756, allocations: 3.375 kB / 0.6372 GB, free: 24.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-05/1.756, allocations: 13.88 kB / 0.6372 GB, free: 24.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02576/1.781, allocations: 11.11 MB / 0.648 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.32e-05/1.782, allocations: 0 / 0.648 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002783/1.784, allocations: 280.9 kB / 0.6483 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00416/1.789, allocations: 1.384 MB / 0.6497 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007174/1.789, allocations: 67.95 kB / 0.6497 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008754/1.798, allocations: 5.125 MB / 0.6547 GB, free: 7.773 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.798, allocations: 0 / 0.6547 GB, free: 7.773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.34/2.138, allocations: 8.503 MB / 0.663 GB, free: 82.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002777/2.141, allocations: 0.7277 MB / 0.6637 GB, free: 82.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009309/2.142, allocations: 40.34 kB / 0.6638 GB, free: 82.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002352/2.144, allocations: 88.58 kB / 0.6639 GB, free: 82.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001112/2.145, allocations: 244.7 kB / 0.6641 GB, free: 82.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004005/2.146, allocations: 83.7 kB / 0.6642 GB, free: 82.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001807/2.148, allocations: 0.7733 MB / 0.6649 GB, free: 82.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.72e-07/2.148, allocations: 2.781 kB / 0.6649 GB, free: 82.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004801/2.153, allocations: 1.074 MB / 0.666 GB, free: 82.61 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 (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.02327/2.176, allocations: 9.169 MB / 0.6749 GB, free: 81.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01348/2.189, allocations: 5.067 MB / 0.6799 GB, free: 81.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/2.189, allocations: 2.438 kB / 0.6799 GB, free: 81.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006887/2.196, allocations: 2.443 MB / 0.6823 GB, free: 81.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003552/2.2, allocations: 317.1 kB / 0.6826 GB, free: 81.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02846/2.229, allocations: 9.384 MB / 0.6917 GB, free: 80.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005525/2.234, allocations: 3.246 MB / 0.6949 GB, free: 79.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003514/2.238, allocations: 1.337 MB / 0.6962 GB, free: 79.58 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/2.238, allocations: 0 / 0.6962 GB, free: 79.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.911/6.149, allocations: 167 MB / 0.8593 GB, free: 81.01 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