Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.416e-05/3.417e-05, allocations: 0 / 292.8 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 50.41 MB / 343.2 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5661/0.6737, allocations: 162.9 MB / 0.4942 GB, free: 12.41 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.6741, allocations: 105.7 kB / 0.4943 GB, free: 12.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.283/3.957, allocations: 0.5723 GB / 1.067 GB, free: 39.84 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.287e-06/3.957, allocations: 0 / 1.067 GB, free: 39.84 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002461/3.959, allocations: 421.9 kB / 1.067 GB, free: 39.8 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.0908/4.05, allocations: 16.92 MB / 1.084 GB, free: 34.79 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/4.05, allocations: 12.03 kB / 1.084 GB, free: 34.79 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01525/4.066, allocations: 2.923 MB / 1.086 GB, free: 34.58 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08815/4.154, allocations: 7.831 MB / 1.094 GB, free: 33.56 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05408/4.208, allocations: 14.82 MB / 1.108 GB, free: 31.83 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001894/4.21, allocations: 1.313 MB / 1.11 GB, free: 31.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008713/4.219, allocations: 1.725 MB / 1.111 GB, free: 31.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09559/4.314, allocations: 28.63 MB / 1.139 GB, free: 29.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001113/4.315, allocations: 27.84 kB / 1.139 GB, free: 29.63 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007819/4.323, allocations: 0.7446 MB / 1.14 GB, free: 29.63 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002043/4.325, allocations: 1.266 MB / 1.141 GB, free: 29.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07726/4.403, allocations: 24.67 MB / 1.165 GB, free: 28.26 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8485/5.251, allocations: 94.26 MB / 1.258 GB, free: 51.74 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0645/5.316, allocations: 51.49 MB / 1.308 GB, free: 27.45 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01824/5.334, allocations: 7.023 MB / 1.315 GB, free: 27.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05302/5.387, allocations: 16.4 MB / 1.331 GB, free: 26.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/5.387, allocations: 112.9 kB / 1.331 GB, free: 26.51 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=687): time 1.065e-05/5.387, allocations: 3 kB / 1.331 GB, free: 26.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=695): time 0.08135/5.469, allocations: 25.72 MB / 1.356 GB, free: 21.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/5.469, allocations: 154.6 kB / 1.356 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.019/5.488, allocations: 6.119 MB / 1.362 GB, free: 20.48 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001798/5.49, allocations: 138.1 kB / 1.362 GB, free: 20.45 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007592/5.497, allocations: 7.731 MB / 1.37 GB, free: 16.46 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003924/5.501, allocations: 2.354 MB / 1.372 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002373/5.504, allocations: 190.9 kB / 1.372 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001353/5.505, allocations: 0.6822 MB / 1.373 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01332/5.519, allocations: 4.705 MB / 1.377 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01629/5.535, allocations: 7.904 MB / 1.385 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01604/5.551, allocations: 6.418 MB / 1.391 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001625/5.551, allocations: 32.61 kB / 1.391 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04792/5.599, allocations: 15.3 MB / 1.406 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/5.599, allocations: 51.72 kB / 1.406 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/5.6, allocations: 106.2 kB / 1.407 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/5.611, allocations: 2.442 MB / 1.409 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0163/5.628, allocations: 2.039 MB / 1.411 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05997/5.688, allocations: 28.11 MB / 1.438 GB, free: 10.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01362/5.701, allocations: 0.5352 MB / 1.439 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002972/5.704, allocations: 442.4 kB / 1.439 GB, free: 9.801 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * 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 (1064): * Single equations (assignments): 1051 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 8 {(1,100.0%) 1,(18,41.0%) 100,(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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005278/5.71, allocations: 0.6875 MB / 1.44 GB, free: 9.246 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00384/5.714, allocations: 0.7556 MB / 1.441 GB, free: 8.484 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5585/6.272, allocations: 13.05 MB / 1.454 GB, free: 86.67 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02814/6.3, allocations: 8.138 MB / 1.461 GB, free: 86.38 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001255/6.301, allocations: 27.34 kB / 1.461 GB, free: 86.38 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000197/6.301, allocations: 35.95 kB / 1.462 GB, free: 86.38 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08787/6.389, allocations: 27.95 MB / 1.489 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.8e-05/6.389, allocations: 10.91 kB / 1.489 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01049/6.399, allocations: 1.1 MB / 1.49 GB, free: 84.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01167/6.411, allocations: 2.528 MB / 1.492 GB, free: 84.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001803/6.413, allocations: 150.9 kB / 1.493 GB, free: 84.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05771/6.471, allocations: 32.57 MB / 1.524 GB, free: 70.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/6.471, allocations: 6.781 kB / 1.524 GB, free: 70.37 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05002/6.521, allocations: 19.1 MB / 1.543 GB, free: 68.42 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007371/6.528, allocations: 1.771 MB / 1.545 GB, free: 68.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003827/6.532, allocations: 131.3 kB / 1.545 GB, free: 68.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009962/6.542, allocations: 418.8 kB / 1.545 GB, free: 68.33 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003078/6.545, allocations: 0.5341 MB / 1.546 GB, free: 68.32 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001809/6.547, allocations: 193.2 kB / 1.546 GB, free: 68.32 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01289/6.56, allocations: 4.61 MB / 1.55 GB, free: 68.07 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.504e-06/6.56, allocations: 0 / 1.55 GB, free: 68.07 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01909/6.579, allocations: 3.1 MB / 1.553 GB, free: 68.07 MB / 0.5573 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 (567): * Single equations (assignments): 552 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,38.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0536/6.633, allocations: 21.01 MB / 1.574 GB, free: 59.51 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03176/6.665, allocations: 12.76 MB / 1.586 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/6.665, allocations: 0 / 1.586 GB, free: 54.26 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01906/6.684, allocations: 7.327 MB / 1.594 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01722/6.701, allocations: 1.959 MB / 1.596 GB, free: 50.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1134/6.814, allocations: 32.59 MB / 1.627 GB, free: 24.98 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02871/6.843, allocations: 11.66 MB / 1.639 GB, free: 16.3 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01955/6.863, allocations: 3.265 MB / 1.642 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4717/7.334, allocations: 7.204 MB / 1.649 GB, free: 76.87 MB / 0.5573 GB Notification: Performance of SimCode: time 2.024e-06/7.335, allocations: 0 / 1.649 GB, free: 76.87 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.051/8.386, allocations: 244.3 MB / 1.888 GB, free: 51.3 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/8.386, allocations: 226.5 kB / 1.888 GB, free: 51.08 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/21, allocations: 3.172 kB / 1.888 GB, free: 51.08 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat