Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.135/2.135, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.641e-05/3.651e-05, allocations: 4 kB / 293.8 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.149, allocations: 50.41 MB / 344.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5388/0.6878, allocations: 153.2 MB / 497.4 MB, free: 5.754 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000371/0.6883, allocations: 103.1 kB / 497.5 MB, free: 5.699 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.511/3.199, allocations: 0.4891 GB / 0.975 GB, free: 42.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.034e-06/3.199, allocations: 0 / 0.975 GB, free: 42.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001381/3.2, allocations: 351.8 kB / 0.9753 GB, free: 42.74 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.07135/3.272, allocations: 14.8 MB / 0.9897 GB, free: 38.01 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/3.272, allocations: 8.25 kB / 0.9898 GB, free: 38.01 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01078/3.283, allocations: 2.159 MB / 0.9919 GB, free: 37.87 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06123/3.344, allocations: 7.374 MB / 0.9991 GB, free: 37 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04286/3.387, allocations: 12.52 MB / 1.011 GB, free: 29.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001562/3.388, allocations: 1.121 MB / 1.012 GB, free: 28.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007694/3.396, allocations: 1.469 MB / 1.014 GB, free: 26.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08507/3.481, allocations: 24.65 MB / 1.038 GB, free: 4.688 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009508/3.482, allocations: 31.36 kB / 1.038 GB, free: 4.66 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006913/3.489, allocations: 0.6244 MB / 1.039 GB, free: 4.039 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00201/3.491, allocations: 1.093 MB / 1.04 GB, free: 3.074 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4828/3.974, allocations: 22.19 MB / 1.061 GB, free: 45.35 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1988/4.173, allocations: 80.58 MB / 1.14 GB, free: 17.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05101/4.224, allocations: 38.78 MB / 1.178 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02378/4.248, allocations: 7.558 MB / 1.185 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05452/4.302, allocations: 17.35 MB / 1.202 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01552/4.318, allocations: 5.153 MB / 1.207 GB, free: 3.574 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=717): time 1.585e-05/4.318, allocations: 0 / 1.207 GB, free: 3.574 MB / 0.4948 GB Notification: Performance of matching and sorting (n=725): time 0.5256/4.844, allocations: 25.94 MB / 1.233 GB, free: 87.31 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003528/4.844, allocations: 473.8 kB / 1.233 GB, free: 86.84 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02479/4.869, allocations: 5.583 MB / 1.238 GB, free: 86.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002126/4.871, allocations: 150 kB / 1.239 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.01228/4.883, allocations: 6.498 MB / 1.245 GB, free: 84.99 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005375/4.889, allocations: 2.414 MB / 1.247 GB, free: 83.48 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002352/4.891, allocations: 179.9 kB / 1.247 GB, free: 83.48 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00128/4.893, allocations: 0.6691 MB / 1.248 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01833/4.911, allocations: 4.642 MB / 1.253 GB, free: 83.13 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0166/4.928, allocations: 7.448 MB / 1.26 GB, free: 79.87 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02197/4.95, allocations: 6.128 MB / 1.266 GB, free: 79.75 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001949/4.95, allocations: 26.91 kB / 1.266 GB, free: 79.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.04831/4.998, allocations: 14.95 MB / 1.281 GB, free: 78.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/4.998, allocations: 42.47 kB / 1.281 GB, free: 78.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001853/4.999, allocations: 87.34 kB / 1.281 GB, free: 78.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/5.011, allocations: 2.881 MB / 1.283 GB, free: 78.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01421/5.026, allocations: 1.807 MB / 1.285 GB, free: 78.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06017/5.086, allocations: 30.58 MB / 1.315 GB, free: 66.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01211/5.098, allocations: 0.5836 MB / 1.316 GB, free: 66.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002565/5.101, allocations: 409.8 kB / 1.316 GB, free: 66.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 959 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004482/5.105, allocations: 0.6691 MB / 1.317 GB, free: 65.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002926/5.108, allocations: 0.7032 MB / 1.317 GB, free: 65.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05457/5.163, allocations: 13.14 MB / 1.33 GB, free: 60.27 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001112/5.163, allocations: 77.25 kB / 1.33 GB, free: 60.26 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00014/5.163, allocations: 37.73 kB / 1.33 GB, free: 60.26 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002249/5.163, allocations: 36 kB / 1.33 GB, free: 60.26 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1363/5.299, allocations: 27.51 MB / 1.357 GB, free: 49.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.459e-05/5.3, allocations: 3.625 kB / 1.357 GB, free: 49.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009628/5.309, allocations: 1.072 MB / 1.358 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01305/5.322, allocations: 2.926 MB / 1.361 GB, free: 47.31 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001736/5.324, allocations: 166.2 kB / 1.361 GB, free: 47.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06065/5.385, allocations: 33.03 MB / 1.394 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/5.385, allocations: 11.94 kB / 1.394 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06154/5.446, allocations: 20.58 MB / 1.414 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007861/5.454, allocations: 1.8 MB / 1.415 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003672/5.458, allocations: 138.9 kB / 1.416 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009597/5.468, allocations: 447.4 kB / 1.416 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003253/5.471, allocations: 0.6462 MB / 1.417 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001887/5.473, allocations: 237.8 kB / 1.417 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.45/5.923, allocations: 4.21 MB / 1.421 GB, free: 95.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.012e-06/5.923, allocations: 4.688 kB / 1.421 GB, free: 95.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01832/5.941, allocations: 2.921 MB / 1.424 GB, free: 95.17 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.9%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05664/5.998, allocations: 22.45 MB / 1.446 GB, free: 91.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0338/6.032, allocations: 12.74 MB / 1.458 GB, free: 90.26 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/6.032, allocations: 2.094 kB / 1.458 GB, free: 90.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02202/6.054, allocations: 8 MB / 1.466 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01537/6.069, allocations: 1.755 MB / 1.468 GB, free: 89.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0961/6.165, allocations: 29.06 MB / 1.496 GB, free: 84.36 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02477/6.19, allocations: 10.14 MB / 1.506 GB, free: 82.49 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01793/6.208, allocations: 2.961 MB / 1.509 GB, free: 82.23 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01505/6.223, allocations: 5.692 MB / 1.514 GB, free: 77.38 MB / 0.5261 GB Notification: Performance of SimCode: time 1.793e-06/6.223, allocations: 0 / 1.514 GB, free: 77.38 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9428/7.166, allocations: 229.6 MB / 1.739 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/7.167, allocations: 222.2 kB / 1.739 GB, free: 43.39 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 12/19.16, allocations: 4 kB / 1.739 GB, free: 43.39 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat