Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.127e-05, allocations: 0 / 255.5 MB, free: 2.586 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.09879, allocations: 44.51 MB / 300 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.568/0.6669, allocations: 156.9 MB / 456.9 MB, free: 3.371 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003875/0.6673, allocations: 103 kB / 457 MB, free: 3.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.839/4.506, allocations: 0.5736 GB / 1.02 GB, free: 15.8 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.795e-06/4.506, allocations: 2.406 kB / 1.02 GB, free: 15.8 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.002887/4.509, allocations: 418.3 kB / 1.02 GB, free: 15.8 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.09243/4.601, allocations: 17.01 MB / 1.037 GB, free: 10.79 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/4.601, allocations: 9.781 kB / 1.037 GB, free: 10.79 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0157/4.617, allocations: 2.952 MB / 1.04 GB, free: 10.59 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07133/4.689, allocations: 8.476 MB / 1.048 GB, free: 9.555 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05355/4.742, allocations: 14.56 MB / 1.062 GB, free: 7.812 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002509/4.745, allocations: 1.337 MB / 1.064 GB, free: 7.773 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009735/4.754, allocations: 1.741 MB / 1.065 GB, free: 7.762 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1046/4.859, allocations: 30.15 MB / 1.095 GB, free: 5.613 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001283/4.861, allocations: 20.72 kB / 1.095 GB, free: 5.602 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0088/4.869, allocations: 0.753 MB / 1.095 GB, free: 5.602 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002061/4.871, allocations: 1.192 MB / 1.097 GB, free: 5.559 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0828/4.954, allocations: 26.91 MB / 1.123 GB, free: 0.7969 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7315/5.686, allocations: 98.81 MB / 1.219 GB, free: 35.93 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05461/5.741, allocations: 35.2 MB / 1.254 GB, free: 19.14 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03257/5.773, allocations: 12.78 MB / 1.266 GB, free: 19 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1148/5.888, allocations: 39.31 MB / 1.305 GB, free: 17.56 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/5.888, allocations: 145.4 kB / 1.305 GB, free: 17.51 MB / 490.8 MB Notification: Performance of pre-optimization done (n=1269): time 1.847e-05/5.888, allocations: 0 / 1.305 GB, free: 17.51 MB / 490.8 MB Notification: Performance of matching and sorting (n=1277): time 0.1382/6.027, allocations: 45.77 MB / 1.35 GB, free: 14.36 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/6.027, allocations: 190.6 kB / 1.35 GB, free: 14.26 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01617/6.043, allocations: 4.971 MB / 1.355 GB, free: 9.883 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.003176/6.046, allocations: 197.7 kB / 1.355 GB, free: 9.684 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.007702/6.054, allocations: 6.677 MB / 1.361 GB, free: 3.781 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.008376/6.062, allocations: 4.184 MB / 1.365 GB, free: 0 / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00454/6.067, allocations: 276.5 kB / 1.366 GB, free: 0 / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001928/6.069, allocations: 0.8105 MB / 1.366 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02461/6.094, allocations: 8.143 MB / 1.374 GB, free: 8.062 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4752/6.569, allocations: 10.24 MB / 1.384 GB, free: 82.24 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02932/6.598, allocations: 9.783 MB / 1.394 GB, free: 82.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002123/6.598, allocations: 15.59 kB / 1.394 GB, free: 82.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.07579/6.674, allocations: 24.76 MB / 1.418 GB, free: 81.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.144e-05/6.674, allocations: 30.47 kB / 1.418 GB, free: 81.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001898/6.675, allocations: 51.75 kB / 1.418 GB, free: 81.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03037/6.705, allocations: 8.944 MB / 1.427 GB, free: 81.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01577/6.721, allocations: 1.864 MB / 1.429 GB, free: 81.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05305/6.774, allocations: 30.38 MB / 1.458 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01398/6.788, allocations: 0.555 MB / 1.459 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004073/6.792, allocations: 465.3 kB / 1.459 GB, free: 69.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 918 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.007496/6.8, allocations: 0.677 MB / 1.46 GB, free: 69.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005008/6.805, allocations: 0.8533 MB / 1.461 GB, free: 69.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07677/6.881, allocations: 25.37 MB / 1.486 GB, free: 62.74 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05742/6.939, allocations: 20.05 MB / 1.505 GB, free: 54.31 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.787e-05/6.939, allocations: 9.844 kB / 1.505 GB, free: 54.31 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003063/6.939, allocations: 58.09 kB / 1.505 GB, free: 54.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1382/7.078, allocations: 48.21 MB / 1.552 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001888/7.078, allocations: 4 kB / 1.552 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01263/7.09, allocations: 1.35 MB / 1.554 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03209/7.123, allocations: 9.059 MB / 1.563 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003512/7.126, allocations: 271.7 kB / 1.563 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5094/7.636, allocations: 37.28 MB / 1.599 GB, free: 66.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/7.636, allocations: 9.266 kB / 1.599 GB, free: 66.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09833/7.734, allocations: 37.71 MB / 1.636 GB, free: 64.93 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01075/7.745, allocations: 2.814 MB / 1.639 GB, free: 64.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004983/7.75, allocations: 194.3 kB / 1.639 GB, free: 64.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01233/7.762, allocations: 0.5037 MB / 1.639 GB, free: 64.83 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005154/7.767, allocations: 0.9745 MB / 1.64 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003352/7.771, allocations: 337.9 kB / 1.641 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01033/7.781, allocations: 3.78 MB / 1.644 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.172e-06/7.781, allocations: 0.8438 kB / 1.644 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02084/7.802, allocations: 3.246 MB / 1.648 GB, free: 64.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (716): * Single equations (assignments): 650 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.1043/7.906, allocations: 39.7 MB / 1.686 GB, free: 49.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05608/7.963, allocations: 20.86 MB / 1.707 GB, free: 41.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/7.963, allocations: 4 kB / 1.707 GB, free: 41.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03505/7.998, allocations: 12.05 MB / 1.719 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01855/8.016, allocations: 1.971 MB / 1.72 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5871/8.603, allocations: 39.92 MB / 1.759 GB, free: 79.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03122/8.635, allocations: 11.93 MB / 1.771 GB, free: 77.92 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01806/8.653, allocations: 2.635 MB / 1.774 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01824/8.671, allocations: 6.766 MB / 1.78 GB, free: 77.81 MB / 0.5105 GB Notification: Performance of SimCode: time 1.573e-06/8.671, allocations: 3.25 kB / 1.78 GB, free: 77.81 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.374/10.05, allocations: 332.4 MB / 2.105 GB, free: 0.6758 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002673/10.05, allocations: 242.7 kB / 2.105 GB, free: 364 kB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/24.11, allocations: 4 kB / 2.105 GB, free: 360 kB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat