Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.151/2.151, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.003e-05/4.017e-05, allocations: 5.562 kB / 293.2 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.41 MB / 343.7 MB, free: 4.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5379/0.6434, allocations: 153.2 MB / 496.8 MB, free: 6.145 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003753/0.6438, allocations: 98.94 kB / 496.9 MB, free: 6.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.461/3.104, allocations: 0.4891 GB / 0.9744 GB, free: 42.86 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.124e-06/3.105, allocations: 0 / 0.9744 GB, free: 42.86 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001263/3.106, allocations: 350.5 kB / 0.9747 GB, free: 42.81 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.07053/3.176, allocations: 14.81 MB / 0.9892 GB, free: 38.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/3.176, allocations: 11.91 kB / 0.9892 GB, free: 38.07 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01065/3.187, allocations: 2.156 MB / 0.9913 GB, free: 37.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06139/3.249, allocations: 7.368 MB / 0.9985 GB, free: 37.06 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04267/3.291, allocations: 12.51 MB / 1.011 GB, free: 29.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001551/3.293, allocations: 1.12 MB / 1.012 GB, free: 28.27 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007553/3.3, allocations: 1.471 MB / 1.013 GB, free: 26.82 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08249/3.383, allocations: 24.66 MB / 1.037 GB, free: 4.836 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009094/3.384, allocations: 30.92 kB / 1.037 GB, free: 4.812 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006882/3.391, allocations: 0.6249 MB / 1.038 GB, free: 4.188 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002057/3.393, allocations: 1.098 MB / 1.039 GB, free: 3.223 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4762/3.869, allocations: 22.19 MB / 1.061 GB, free: 45.34 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2019/4.071, allocations: 80.58 MB / 1.139 GB, free: 17.4 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05095/4.122, allocations: 38.78 MB / 1.177 GB, free: 1.043 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02342/4.146, allocations: 7.538 MB / 1.185 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05505/4.201, allocations: 17.35 MB / 1.202 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01474/4.215, allocations: 5.155 MB / 1.207 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=717): time 3.257e-05/4.216, allocations: 0 / 1.207 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of matching and sorting (n=725): time 0.5081/4.724, allocations: 25.9 MB / 1.232 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002758/4.724, allocations: 471.5 kB / 1.232 GB, free: 86.81 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01663/4.741, allocations: 5.585 MB / 1.238 GB, free: 86.45 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001609/4.742, allocations: 147.1 kB / 1.238 GB, free: 86.42 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008566/4.751, allocations: 6.497 MB / 1.244 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004036/4.755, allocations: 2.412 MB / 1.247 GB, free: 83.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001817/4.757, allocations: 182.7 kB / 1.247 GB, free: 83.45 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000976/4.758, allocations: 0.6715 MB / 1.247 GB, free: 83.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01315/4.771, allocations: 4.643 MB / 1.252 GB, free: 83.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01531/4.786, allocations: 7.447 MB / 1.259 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01481/4.801, allocations: 6.127 MB / 1.265 GB, free: 79.72 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001503/4.801, allocations: 23.5 kB / 1.265 GB, free: 79.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.04427/4.846, allocations: 14.96 MB / 1.28 GB, free: 78.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.937e-05/4.846, allocations: 42.47 kB / 1.28 GB, free: 78.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001838/4.846, allocations: 86.69 kB / 1.28 GB, free: 78.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01275/4.859, allocations: 2.881 MB / 1.283 GB, free: 78.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01398/4.873, allocations: 1.8 MB / 1.285 GB, free: 78.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05951/4.932, allocations: 30.59 MB / 1.314 GB, free: 66.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01245/4.945, allocations: 0.5798 MB / 1.315 GB, free: 66.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002578/4.947, allocations: 407.8 kB / 1.315 GB, free: 66.29 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.004408/4.952, allocations: 0.6759 MB / 1.316 GB, free: 65.86 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002941/4.955, allocations: 0.6983 MB / 1.317 GB, free: 65.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04114/4.996, allocations: 13.16 MB / 1.33 GB, free: 60.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-05/4.996, allocations: 76.03 kB / 1.33 GB, free: 60.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.86e-05/4.996, allocations: 36.7 kB / 1.33 GB, free: 60.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001831/4.996, allocations: 33.42 kB / 1.33 GB, free: 60.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08188/5.078, allocations: 27.5 MB / 1.357 GB, free: 49.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001064/5.079, allocations: 7.344 kB / 1.357 GB, free: 49.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009744/5.088, allocations: 1.063 MB / 1.358 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01322/5.102, allocations: 2.928 MB / 1.361 GB, free: 47.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001741/5.103, allocations: 167.5 kB / 1.361 GB, free: 47.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05903/5.162, allocations: 33.04 MB / 1.393 GB, free: 16.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/5.162, allocations: 11.94 kB / 1.393 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05901/5.221, allocations: 20.56 MB / 1.413 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007546/5.229, allocations: 1.807 MB / 1.415 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003587/5.233, allocations: 143.1 kB / 1.415 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009512/5.242, allocations: 445.1 kB / 1.415 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003206/5.245, allocations: 0.645 MB / 1.416 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002268/5.248, allocations: 274 kB / 1.416 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.4437/5.692, allocations: 4.208 MB / 1.42 GB, free: 95.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.42e-07/5.692, allocations: 1.375 kB / 1.42 GB, free: 95.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01837/5.71, allocations: 2.916 MB / 1.423 GB, free: 95.46 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.05645/5.767, allocations: 22.45 MB / 1.445 GB, free: 91.62 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03319/5.8, allocations: 12.73 MB / 1.458 GB, free: 90.56 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/5.8, allocations: 0 / 1.458 GB, free: 90.56 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02148/5.821, allocations: 8.01 MB / 1.465 GB, free: 89.51 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01528/5.837, allocations: 1.756 MB / 1.467 GB, free: 89.47 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0974/5.934, allocations: 29.06 MB / 1.495 GB, free: 84.65 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02462/5.959, allocations: 10.14 MB / 1.505 GB, free: 82.79 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01786/5.977, allocations: 2.96 MB / 1.508 GB, free: 82.52 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01533/5.992, allocations: 5.687 MB / 1.514 GB, free: 77.68 MB / 0.5261 GB Notification: Performance of SimCode: time 1.824e-06/5.992, allocations: 0 / 1.514 GB, free: 77.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9297/6.922, allocations: 229.6 MB / 1.738 GB, free: 43.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/6.922, allocations: 223.1 kB / 1.738 GB, free: 43.29 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/18.74, allocations: 0 / 1.738 GB, free: 43.29 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat