Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.127/2.127, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.125e-05/3.132e-05, allocations: 4 kB / 292.3 MB, free: 8.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 50.41 MB / 342.7 MB, free: 5.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5208/0.6268, allocations: 133.6 MB / 476.3 MB, free: 9.234 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003721/0.6272, allocations: 101.2 kB / 476.4 MB, free: 9.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.7/2.328, allocations: 351.8 MB / 0.8087 GB, free: 37.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.118e-06/2.328, allocations: 0 / 0.8087 GB, free: 37.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007487/2.328, allocations: 221.6 kB / 0.809 GB, free: 37.61 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04571/2.374, allocations: 9.455 MB / 0.8182 GB, free: 31.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/2.374, allocations: 12.03 kB / 0.8182 GB, free: 31.11 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007683/2.382, allocations: 1.608 MB / 0.8198 GB, free: 29.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03589/2.418, allocations: 4.282 MB / 0.824 GB, free: 25.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02836/2.446, allocations: 8.396 MB / 0.8322 GB, free: 16.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008474/2.447, allocations: 0.6943 MB / 0.8328 GB, free: 16.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004282/2.451, allocations: 0.9094 MB / 0.8337 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04741/2.499, allocations: 15.68 MB / 0.849 GB, free: 15.33 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005/2.5, allocations: 19.8 kB / 0.849 GB, free: 15.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003932/2.503, allocations: 407.2 kB / 0.8494 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001411/2.505, allocations: 0.7466 MB / 0.8502 GB, free: 14.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04641/2.551, allocations: 13.68 MB / 0.8635 GB, free: 496 kB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4993/3.051, allocations: 52.57 MB / 0.9149 GB, free: 40.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02793/3.079, allocations: 19.95 MB / 0.9344 GB, free: 26.47 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008809/3.088, allocations: 3.573 MB / 0.9378 GB, free: 25.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008071/3.088, allocations: 178 kB / 0.938 GB, free: 24.96 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.625e-05/3.089, allocations: 80.88 kB / 0.9381 GB, free: 24.89 MB / 458.7 MB Notification: Performance of pre-optimization done (n=453): time 1.893e-05/3.089, allocations: 1.781 kB / 0.9381 GB, free: 24.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=458): time 0.03963/3.128, allocations: 13.78 MB / 0.9515 GB, free: 18.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/3.128, allocations: 96.03 kB / 0.9516 GB, free: 18.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009859/3.138, allocations: 3.928 MB / 0.9555 GB, free: 17.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009297/3.139, allocations: 100.9 kB / 0.9556 GB, free: 17.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003405/3.143, allocations: 4.196 MB / 0.9597 GB, free: 14.19 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002247/3.145, allocations: 1.556 MB / 0.9612 GB, free: 12.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008029/3.146, allocations: 126.9 kB / 0.9613 GB, free: 12.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000525/3.146, allocations: 0.5503 MB / 0.9618 GB, free: 12.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007738/3.154, allocations: 2.983 MB / 0.9648 GB, free: 11.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0094/3.163, allocations: 5.071 MB / 0.9697 GB, free: 7.449 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/3.174, allocations: 4.202 MB / 0.9738 GB, free: 5.777 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-05/3.174, allocations: 24.89 kB / 0.9738 GB, free: 5.777 MB / 458.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02845/3.202, allocations: 9.487 MB / 0.9831 GB, free: 2.516 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.685e-05/3.202, allocations: 34.78 kB / 0.9831 GB, free: 2.516 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001439/3.202, allocations: 74.69 kB / 0.9832 GB, free: 2.516 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006308/3.209, allocations: 1.378 MB / 0.9846 GB, free: 2.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01043/3.219, allocations: 1.372 MB / 0.9859 GB, free: 2.207 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02752/3.247, allocations: 11.64 MB / 0.9973 GB, free: 11.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008545/3.255, allocations: 358 kB / 0.9976 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001835/3.257, allocations: 292.4 kB / 0.9979 GB, free: 11.42 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002924/3.26, allocations: 492 kB / 0.9983 GB, free: 11.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001993/3.262, allocations: 458.7 kB / 0.9988 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02641/3.289, allocations: 8.438 MB / 1.007 GB, free: 7.527 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0204/3.309, allocations: 6.132 MB / 1.013 GB, free: 3.109 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-05/3.309, allocations: 12 kB / 1.013 GB, free: 3.098 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001246/3.309, allocations: 24.81 kB / 1.013 GB, free: 3.094 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05454/3.364, allocations: 17.84 MB / 1.03 GB, free: 4.492 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.073e-05/3.364, allocations: 8 kB / 1.03 GB, free: 4.484 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007362/3.371, allocations: 0.8009 MB / 1.031 GB, free: 3.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006253/3.378, allocations: 1.248 MB / 1.032 GB, free: 2.844 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001052/3.379, allocations: 106.1 kB / 1.033 GB, free: 2.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02832/3.407, allocations: 10.67 MB / 1.043 GB, free: 9.516 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.438e-05/3.407, allocations: 11.94 kB / 1.043 GB, free: 9.504 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4205/3.828, allocations: 12.45 MB / 1.055 GB, free: 90.74 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004763/3.833, allocations: 1.13 MB / 1.056 GB, free: 90.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002062/3.835, allocations: 91.33 kB / 1.056 GB, free: 90.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005837/3.841, allocations: 246.5 kB / 1.057 GB, free: 90.65 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001768/3.842, allocations: 325.4 kB / 1.057 GB, free: 90.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001079/3.843, allocations: 142.2 kB / 1.057 GB, free: 90.64 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009479/3.853, allocations: 2.993 MB / 1.06 GB, free: 90.44 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.52e-07/3.853, allocations: 0 / 1.06 GB, free: 90.44 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01137/3.864, allocations: 1.792 MB / 1.062 GB, free: 90.44 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03668/3.901, allocations: 15.11 MB / 1.076 GB, free: 86.46 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02134/3.923, allocations: 7.631 MB / 1.084 GB, free: 86.09 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/3.923, allocations: 1.312 kB / 1.084 GB, free: 86.09 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01178/3.934, allocations: 3.816 MB / 1.088 GB, free: 85.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008727/3.943, allocations: 0.9392 MB / 1.089 GB, free: 85.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06306/4.006, allocations: 18.72 MB / 1.107 GB, free: 82.69 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01451/4.021, allocations: 6.676 MB / 1.113 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01138/4.032, allocations: 2.141 MB / 1.115 GB, free: 81.58 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009188/4.041, allocations: 3.568 MB / 1.119 GB, free: 81.57 MB / 0.4948 GB Notification: Performance of SimCode: time 1.453e-06/4.042, allocations: 0 / 1.119 GB, free: 81.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6808/4.722, allocations: 140.6 MB / 1.256 GB, free: 74.91 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002863/4.723, allocations: 283.1 kB / 1.257 GB, free: 74.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.732/12.45, allocations: 2.812 kB / 1.257 GB, free: 74.58 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_withLosses_res.mat does not exist to compare? outputFormat=mat