Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.874e-05, allocations: 0 / 269.5 MB, free: 6.273 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 47.57 MB / 317.1 MB, free: 6.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4852/0.5867, allocations: 132 MB / 449 MB, free: 4.234 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003878/0.5871, allocations: 95.38 kB / 449.1 MB, free: 4.184 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.706/2.293, allocations: 351.9 MB / 0.7822 GB, free: 53.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.324e-06/2.293, allocations: 0 / 0.7822 GB, free: 53.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008758/2.294, allocations: 225.2 kB / 0.7825 GB, free: 53.64 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.0451/2.339, allocations: 9.54 MB / 0.7918 GB, free: 49.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/2.339, allocations: 10.78 kB / 0.7918 GB, free: 49.62 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007731/2.347, allocations: 1.638 MB / 0.7934 GB, free: 48.85 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04123/2.388, allocations: 4.925 MB / 0.7982 GB, free: 47.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0271/2.415, allocations: 8.168 MB / 0.8062 GB, free: 40.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001147/2.416, allocations: 0.7254 MB / 0.8069 GB, free: 39.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004629/2.421, allocations: 0.9303 MB / 0.8078 GB, free: 38.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05243/2.474, allocations: 16.83 MB / 0.8242 GB, free: 21.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005536/2.474, allocations: 19.8 kB / 0.8242 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004146/2.478, allocations: 407.6 kB / 0.8246 GB, free: 21.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00106/2.479, allocations: 0.7032 MB / 0.8253 GB, free: 20.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05111/2.531, allocations: 15.43 MB / 0.8404 GB, free: 4.984 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4876/3.018, allocations: 55.37 MB / 0.8945 GB, free: 44.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03153/3.05, allocations: 19.12 MB / 0.9131 GB, free: 33.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01812/3.068, allocations: 7.542 MB / 0.9205 GB, free: 30.45 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06824/3.136, allocations: 24.88 MB / 0.9448 GB, free: 17.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.83e-05/3.136, allocations: 99.47 kB / 0.9449 GB, free: 17.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=749): time 1.211e-05/3.136, allocations: 0 / 0.9449 GB, free: 17.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=754): time 0.07421/3.211, allocations: 25.12 MB / 0.9694 GB, free: 6.602 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/3.211, allocations: 116.4 kB / 0.9695 GB, free: 6.531 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00817/3.219, allocations: 3.18 MB / 0.9726 GB, free: 5.395 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001765/3.221, allocations: 123.8 kB / 0.9727 GB, free: 5.289 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002858/3.224, allocations: 3.612 MB / 0.9763 GB, free: 2.652 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004086/3.228, allocations: 2.48 MB / 0.9787 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/3.23, allocations: 126.4 kB / 0.9788 GB, free: 0.625 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008907/3.231, allocations: 0.6087 MB / 0.9794 GB, free: 196 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03575/3.266, allocations: 6.32 MB / 0.9856 GB, free: 0 / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01703/3.283, allocations: 6.229 MB / 0.9917 GB, free: 10 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01753/3.301, allocations: 6.051 MB / 0.9976 GB, free: 4.832 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.525e-05/3.301, allocations: 8 kB / 0.9976 GB, free: 4.824 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04799/3.349, allocations: 14.41 MB / 1.012 GB, free: 8.367 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.08e-05/3.349, allocations: 20 kB / 1.012 GB, free: 8.348 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/3.349, allocations: 36.09 kB / 1.012 GB, free: 8.312 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01514/3.364, allocations: 3.996 MB / 1.016 GB, free: 5.035 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01052/3.375, allocations: 1.189 MB / 1.017 GB, free: 4.129 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3702/3.745, allocations: 12.53 MB / 1.029 GB, free: 78.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00811/3.753, allocations: 367.6 kB / 1.029 GB, free: 78.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002299/3.756, allocations: 284 kB / 1.03 GB, free: 78.81 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (636): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * 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: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.003649/3.759, allocations: 451.4 kB / 1.03 GB, free: 78.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002717/3.762, allocations: 490.6 kB / 1.031 GB, free: 78.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04425/3.807, allocations: 14.17 MB / 1.044 GB, free: 78.36 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03349/3.84, allocations: 12.67 MB / 1.057 GB, free: 78.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-05/3.84, allocations: 2.938 kB / 1.057 GB, free: 78.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001583/3.84, allocations: 30.42 kB / 1.057 GB, free: 78.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07223/3.913, allocations: 28.05 MB / 1.084 GB, free: 74.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.899e-05/3.913, allocations: 0 / 1.084 GB, free: 74.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008249/3.921, allocations: 0.8885 MB / 1.085 GB, free: 74.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01278/3.934, allocations: 3.926 MB / 1.089 GB, free: 72.91 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001798/3.936, allocations: 166.1 kB / 1.089 GB, free: 72.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01895/3.955, allocations: 12.42 MB / 1.101 GB, free: 64.92 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/3.955, allocations: 2.969 kB / 1.101 GB, free: 64.92 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05346/4.008, allocations: 21.43 MB / 1.122 GB, free: 55.42 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006225/4.014, allocations: 1.732 MB / 1.124 GB, free: 54.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002923/4.017, allocations: 105.6 kB / 1.124 GB, free: 54.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00709/4.025, allocations: 302 kB / 1.124 GB, free: 54.31 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002968/4.028, allocations: 0.5502 MB / 1.125 GB, free: 54.19 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002166/4.03, allocations: 200.7 kB / 1.125 GB, free: 54.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005929/4.036, allocations: 2.417 MB / 1.127 GB, free: 53.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/4.036, allocations: 3.031 kB / 1.127 GB, free: 53.24 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01106/4.047, allocations: 1.826 MB / 1.129 GB, free: 52.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * 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: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.05576/4.103, allocations: 23.07 MB / 1.152 GB, free: 31.71 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03161/4.134, allocations: 12.17 MB / 1.163 GB, free: 20.82 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/4.134, allocations: 1.438 kB / 1.163 GB, free: 20.82 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.018/4.152, allocations: 6.363 MB / 1.17 GB, free: 15.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008582/4.161, allocations: 0.9006 MB / 1.171 GB, free: 14.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06785/4.229, allocations: 22.64 MB / 1.193 GB, free: 10.85 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01559/4.245, allocations: 6.845 MB / 1.199 GB, free: 5.598 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01154/4.256, allocations: 1.658 MB / 1.201 GB, free: 4.453 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3564/4.613, allocations: 3.597 MB / 1.204 GB, free: 90.54 MB / 490.7 MB Notification: Performance of SimCode: time 1.973e-06/4.613, allocations: 4.812 kB / 1.204 GB, free: 90.54 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8245/5.437, allocations: 183.7 MB / 1.384 GB, free: 67.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002715/5.438, allocations: 277.9 kB / 1.384 GB, free: 66.72 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/13.53, allocations: 3.906 kB / 1.384 GB, free: 66.72 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat does not exist to compare? outputFormat=mat