Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.061e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.08925, allocations: 44.51 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3954/0.4847, allocations: 80.35 MB / 380.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.4851, allocations: 78.58 kB / 380.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1168/0.6019, allocations: 30.68 MB / 411.1 MB, free: 5.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.602, allocations: 3.938 kB / 411.1 MB, free: 5.371 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001249/0.6021, allocations: 35.09 kB / 411.1 MB, free: 5.367 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.006147/0.6083, allocations: 1.686 MB / 412.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.6083, allocations: 11.62 kB / 412.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007056/0.609, allocations: 206 kB / 413 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002413/0.6115, allocations: 332.3 kB / 413.3 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/0.6147, allocations: 1.072 MB / 414.4 MB, free: 3.621 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.997e-05/0.6149, allocations: 96.11 kB / 414.5 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004624/0.6153, allocations: 132.8 kB / 414.6 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004627/0.62, allocations: 1.771 MB / 416.4 MB, free: 3.176 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.621e-05/0.6201, allocations: 3.984 kB / 416.4 MB, free: 3.172 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002219/0.6203, allocations: 58.98 kB / 416.5 MB, free: 3.172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.304e-05/0.6204, allocations: 56.55 kB / 416.5 MB, free: 3.164 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00398/0.6244, allocations: 1.491 MB / 418 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01425/0.6387, allocations: 5.577 MB / 423.6 MB, free: 352 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00464/0.6434, allocations: 2.855 MB / 426.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.6445, allocations: 462.2 kB / 426.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003854/0.6484, allocations: 1.537 MB / 428.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.6485, allocations: 41.88 kB / 428.5 MB, free: 12.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.446e-06/0.6485, allocations: 0 / 428.5 MB, free: 12.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.002233/0.6507, allocations: 0.7999 MB / 429.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.6508, allocations: 80.3 kB / 429.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.6528, allocations: 0.9149 MB / 430.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.653, allocations: 37.58 kB / 430.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005796/0.6536, allocations: 0.6756 MB / 431 MB, free: 11.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/0.6539, allocations: 184.1 kB / 431.2 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.468e-05/0.654, allocations: 15.78 kB / 431.2 MB, free: 11.42 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.6541, allocations: 342.5 kB / 431.5 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007559/0.6549, allocations: 320.4 kB / 431.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008626/0.6558, allocations: 493.3 kB / 432.3 MB, free: 10.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008959/0.6567, allocations: 401.4 kB / 432.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.6567, allocations: 0 / 432.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.00204/0.6588, allocations: 0.8573 MB / 433.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.6589, allocations: 7.938 kB / 433.6 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.6589, allocations: 11.8 kB / 433.6 MB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.6589, allocations: 11.69 kB / 433.6 MB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.6604, allocations: 182.8 kB / 433.8 MB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.416e-05/0.6604, allocations: 11.69 kB / 433.8 MB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.6616, allocations: 89.86 kB / 433.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.6617, allocations: 30.97 kB / 433.9 MB, free: 9.805 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.662, allocations: 136.5 kB / 434 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002796/0.6623, allocations: 85 kB / 434.1 MB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001854/0.6641, allocations: 0.656 MB / 434.8 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.6642, allocations: 7.5 kB / 434.8 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.6642, allocations: 0 / 434.8 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.6642, allocations: 11.86 kB / 434.8 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00409/0.6683, allocations: 1.612 MB / 436.4 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.6684, allocations: 0 / 436.4 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009547/0.6693, allocations: 102.6 kB / 436.5 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007027/0.6701, allocations: 151.3 kB / 436.6 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.921e-05/0.6702, allocations: 19.73 kB / 436.7 MB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00451/0.6747, allocations: 2.6 MB / 439.3 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.6748, allocations: 3.953 kB / 439.3 MB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003094/0.6779, allocations: 1.42 MB / 440.7 MB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004883/0.6784, allocations: 186.3 kB / 440.9 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.6786, allocations: 18.45 kB / 440.9 MB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.6797, allocations: 69.5 kB / 441 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/0.6799, allocations: 54.17 kB / 441 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.754e-05/0.68, allocations: 24.7 kB / 441 MB, free: 4.742 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001708/0.6817, allocations: 0.7104 MB / 441.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6818, allocations: 0 / 441.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001773/0.6836, allocations: 362.5 kB / 442.1 MB, free: 3.844 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003955/0.6876, allocations: 2.295 MB / 444.4 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.6894, allocations: 0.6866 MB / 445.1 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/0.6895, allocations: 1.125 kB / 445.1 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.691, allocations: 0.5384 MB / 445.6 MB, free: 268 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.6926, allocations: 167.1 kB / 445.8 MB, free: 104 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008176/0.7008, allocations: 2.658 MB / 448.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/0.7026, allocations: 1.488 MB / 449.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/0.7038, allocations: 487.3 kB / 450.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.903e-06/0.7038, allocations: 0 / 450.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.626, allocations: 26.6 MB / 477 MB, free: 0.7969 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.mat does not exist to compare? outputFormat=mat