Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.028/2.028, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.5e-05/3.522e-05, allocations: 0 / 292.3 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 50.41 MB / 342.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5435/0.6576, allocations: 147.6 MB / 490.3 MB, free: 11.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003636/0.658, allocations: 104.5 kB / 490.4 MB, free: 11.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.671/2.329, allocations: 349.3 MB / 0.82 GB, free: 45.35 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.385e-06/2.329, allocations: 0 / 0.82 GB, free: 45.35 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009158/2.33, allocations: 251.7 kB / 0.8202 GB, free: 45.1 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04847/2.378, allocations: 10.2 MB / 0.8302 GB, free: 34.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/2.378, allocations: 8.031 kB / 0.8302 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007409/2.386, allocations: 1.498 MB / 0.8316 GB, free: 33.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0403/2.426, allocations: 4.739 MB / 0.8363 GB, free: 28.54 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03177/2.458, allocations: 9.481 MB / 0.8455 GB, free: 18.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009747/2.459, allocations: 0.7707 MB / 0.8463 GB, free: 18.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00495/2.464, allocations: 1.027 MB / 0.8473 GB, free: 17.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0586/2.522, allocations: 16.66 MB / 0.8635 GB, free: 192 kB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005929/2.523, allocations: 19.89 kB / 0.8636 GB, free: 172 kB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.3653/2.888, allocations: 440.1 kB / 0.864 GB, free: 46.82 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001672/2.89, allocations: 0.7478 MB / 0.8647 GB, free: 46.79 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0497/2.94, allocations: 14.88 MB / 0.8792 GB, free: 46.74 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1341/3.074, allocations: 55.89 MB / 0.9338 GB, free: 33.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03889/3.113, allocations: 30.88 MB / 0.964 GB, free: 5.605 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01031/3.123, allocations: 4.23 MB / 0.9681 GB, free: 3.977 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03075/3.154, allocations: 10.51 MB / 0.9784 GB, free: 15.15 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.453e-05/3.154, allocations: 79.81 kB / 0.9784 GB, free: 15.08 MB / 474.7 MB Notification: Performance of pre-optimization done (n=396): time 6.993e-06/3.154, allocations: 2.062 kB / 0.9785 GB, free: 15.08 MB / 474.7 MB Notification: Performance of matching and sorting (n=421): time 0.05084/3.205, allocations: 15.98 MB / 0.9941 GB, free: 7.035 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.888e-05/3.205, allocations: 124.3 kB / 0.9942 GB, free: 6.934 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01184/3.217, allocations: 4.078 MB / 0.9982 GB, free: 5.344 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009766/3.218, allocations: 102.1 kB / 0.9983 GB, free: 5.258 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004919/3.223, allocations: 4.667 MB / 1.003 GB, free: 1.754 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002931/3.226, allocations: 1.433 MB / 1.004 GB, free: 0.6445 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00109/3.227, allocations: 120.7 kB / 1.004 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006146/3.228, allocations: 0.542 MB / 1.005 GB, free: 144 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0121/3.24, allocations: 3.052 MB / 1.008 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01046/3.25, allocations: 4.791 MB / 1.013 GB, free: 11.51 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/3.261, allocations: 3.873 MB / 1.016 GB, free: 8.238 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/3.261, allocations: 20 kB / 1.016 GB, free: 8.219 MB / 490.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.03086/3.292, allocations: 9.33 MB / 1.025 GB, free: 432 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/3.292, allocations: 36 kB / 1.025 GB, free: 396 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001497/3.292, allocations: 64.28 kB / 1.026 GB, free: 332 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01154/3.304, allocations: 1.853 MB / 1.027 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01067/3.315, allocations: 1.309 MB / 1.029 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4188/3.733, allocations: 16.38 MB / 1.045 GB, free: 84.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008306/3.742, allocations: 331.2 kB / 1.045 GB, free: 84.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001804/3.744, allocations: 286.3 kB / 1.045 GB, free: 84.66 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (669): * Single equations (assignments): 665 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,67.3%) 28,(1,100.0%) 1,(14,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002296/3.746, allocations: 474.4 kB / 1.046 GB, free: 84.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/3.748, allocations: 498.5 kB / 1.046 GB, free: 84.55 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02609/3.774, allocations: 7.626 MB / 1.054 GB, free: 84.09 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.656e-05/3.774, allocations: 47.67 kB / 1.054 GB, free: 84.09 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-05/3.774, allocations: 19.39 kB / 1.054 GB, free: 84.09 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001385/3.774, allocations: 20.91 kB / 1.054 GB, free: 84.09 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0543/3.829, allocations: 17.27 MB / 1.071 GB, free: 82.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-05/3.829, allocations: 6.281 kB / 1.071 GB, free: 82.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006497/3.835, allocations: 0.7195 MB / 1.071 GB, free: 82.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007598/3.843, allocations: 1.553 MB / 1.073 GB, free: 82.86 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001085/3.844, allocations: 102.1 kB / 1.073 GB, free: 82.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03309/3.877, allocations: 19.42 MB / 1.092 GB, free: 73.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/3.877, allocations: 13.86 kB / 1.092 GB, free: 73.71 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03056/3.908, allocations: 11.91 MB / 1.103 GB, free: 71.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00455/3.912, allocations: 1.159 MB / 1.105 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002162/3.915, allocations: 89.94 kB / 1.105 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007546/3.922, allocations: 249.2 kB / 1.105 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002488/3.925, allocations: 329.3 kB / 1.105 GB, free: 71.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001477/3.926, allocations: 127.5 kB / 1.105 GB, free: 71.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01249/3.939, allocations: 3.071 MB / 1.108 GB, free: 71.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.367e-06/3.939, allocations: 0 / 1.108 GB, free: 71.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01635/3.955, allocations: 1.904 MB / 1.11 GB, free: 71.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 355 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,39.8%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0476/4.003, allocations: 14.39 MB / 1.124 GB, free: 67.54 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02591/4.029, allocations: 7.692 MB / 1.132 GB, free: 64.52 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/4.029, allocations: 5.656 kB / 1.132 GB, free: 64.52 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0129/4.042, allocations: 4.445 MB / 1.136 GB, free: 62.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/4.052, allocations: 1.178 MB / 1.137 GB, free: 62.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06254/4.115, allocations: 19.46 MB / 1.156 GB, free: 54.32 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01447/4.129, allocations: 6.953 MB / 1.163 GB, free: 49.77 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01077/4.14, allocations: 1.85 MB / 1.165 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009489/4.15, allocations: 3.967 MB / 1.169 GB, free: 44.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.814e-06/4.15, allocations: 0.5469 kB / 1.169 GB, free: 44.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7318/4.882, allocations: 151.6 MB / 1.317 GB, free: 61.24 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/4.882, allocations: 239 kB / 1.317 GB, free: 60.97 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.7/13.58, allocations: 0 / 1.317 GB, free: 60.97 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat