Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.971/1.971, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.165e-05, allocations: 0 / 292.3 MB, free: 8.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1069, allocations: 50.4 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5655/0.6725, allocations: 162.9 MB / 0.4937 GB, free: 12.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003888/0.6729, allocations: 102.3 kB / 0.4938 GB, free: 12.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.221/3.894, allocations: 0.5723 GB / 1.066 GB, free: 24.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.584e-06/3.894, allocations: 0 / 1.066 GB, free: 24.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.002208/3.896, allocations: 425.6 kB / 1.066 GB, free: 24.14 MB / 490.7 MB 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.08999/3.986, allocations: 16.92 MB / 1.083 GB, free: 19.12 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/3.986, allocations: 10.41 kB / 1.083 GB, free: 19.12 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01526/4.001, allocations: 2.923 MB / 1.086 GB, free: 18.92 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06558/4.067, allocations: 7.83 MB / 1.093 GB, free: 17.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05438/4.121, allocations: 14.82 MB / 1.108 GB, free: 16.17 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001989/4.123, allocations: 1.315 MB / 1.109 GB, free: 16.13 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008878/4.132, allocations: 1.724 MB / 1.111 GB, free: 16.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1151/4.247, allocations: 28.63 MB / 1.139 GB, free: 13.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001109/4.248, allocations: 19.56 kB / 1.139 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007642/4.256, allocations: 0.747 MB / 1.14 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002091/4.258, allocations: 1.27 MB / 1.141 GB, free: 13.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07676/4.335, allocations: 24.67 MB / 1.165 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7555/5.091, allocations: 94.21 MB / 1.257 GB, free: 51.83 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0604/5.151, allocations: 51.49 MB / 1.307 GB, free: 27.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01699/5.168, allocations: 7.02 MB / 1.314 GB, free: 27.45 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05136/5.22, allocations: 16.4 MB / 1.33 GB, free: 26.65 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/5.22, allocations: 107.4 kB / 1.33 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=687): time 1.142e-05/5.22, allocations: 0 / 1.33 GB, free: 26.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=695): time 0.08541/5.305, allocations: 25.74 MB / 1.355 GB, free: 21.22 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/5.305, allocations: 154.5 kB / 1.356 GB, free: 21.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01741/5.323, allocations: 6.112 MB / 1.361 GB, free: 20.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001681/5.325, allocations: 138 kB / 1.362 GB, free: 20.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007035/5.332, allocations: 7.741 MB / 1.369 GB, free: 16.56 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003699/5.335, allocations: 2.345 MB / 1.371 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002132/5.338, allocations: 190.1 kB / 1.372 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00116/5.339, allocations: 0.6878 MB / 1.372 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01242/5.351, allocations: 4.706 MB / 1.377 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01565/5.367, allocations: 7.904 MB / 1.385 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01539/5.382, allocations: 6.416 MB / 1.391 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/5.383, allocations: 35.34 kB / 1.391 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.0447/5.427, allocations: 15.29 MB / 1.406 GB, free: 9.734 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/5.427, allocations: 52.25 kB / 1.406 GB, free: 9.734 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002068/5.428, allocations: 106.7 kB / 1.406 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01095/5.439, allocations: 2.439 MB / 1.408 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01547/5.454, allocations: 2.038 MB / 1.41 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05417/5.508, allocations: 28.12 MB / 1.438 GB, free: 10.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01274/5.521, allocations: 0.5386 MB / 1.438 GB, free: 10.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002696/5.524, allocations: 441.8 kB / 1.439 GB, free: 9.996 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.004443/5.528, allocations: 0.694 MB / 1.439 GB, free: 9.445 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003383/5.532, allocations: 0.7639 MB / 1.44 GB, free: 8.676 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5226/6.054, allocations: 12.97 MB / 1.453 GB, free: 86.89 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0271/6.082, allocations: 8.128 MB / 1.461 GB, free: 86.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001171/6.082, allocations: 31.33 kB / 1.461 GB, free: 86.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001923/6.082, allocations: 36.62 kB / 1.461 GB, free: 86.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08693/6.169, allocations: 27.96 MB / 1.488 GB, free: 84.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.035e-05/6.169, allocations: 3.781 kB / 1.488 GB, free: 84.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01005/6.179, allocations: 1.106 MB / 1.489 GB, free: 84.93 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0113/6.19, allocations: 2.526 MB / 1.492 GB, free: 84.84 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001677/6.192, allocations: 158.7 kB / 1.492 GB, free: 84.84 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05307/6.245, allocations: 32.55 MB / 1.524 GB, free: 70.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/6.245, allocations: 6.781 kB / 1.524 GB, free: 70.59 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0525/6.298, allocations: 19.1 MB / 1.542 GB, free: 68.65 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007178/6.305, allocations: 1.775 MB / 1.544 GB, free: 68.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003775/6.309, allocations: 127.2 kB / 1.544 GB, free: 68.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009738/6.319, allocations: 417.9 kB / 1.545 GB, free: 68.55 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002797/6.322, allocations: 0.5416 MB / 1.545 GB, free: 68.54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001614/6.323, allocations: 201.8 kB / 1.545 GB, free: 68.54 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01252/6.336, allocations: 4.603 MB / 1.55 GB, free: 68.29 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.002e-06/6.336, allocations: 0 / 1.55 GB, free: 68.29 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01855/6.354, allocations: 3.093 MB / 1.553 GB, free: 68.29 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.04993/6.404, allocations: 21.02 MB / 1.573 GB, free: 59.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03118/6.436, allocations: 12.76 MB / 1.586 GB, free: 54.35 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/6.436, allocations: 3.938 kB / 1.586 GB, free: 54.34 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01852/6.454, allocations: 7.313 MB / 1.593 GB, free: 50.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02277/6.477, allocations: 1.974 MB / 1.595 GB, free: 50.29 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1164/6.593, allocations: 32.58 MB / 1.627 GB, free: 25.12 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02645/6.62, allocations: 11.66 MB / 1.638 GB, free: 16.45 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01944/6.639, allocations: 3.267 MB / 1.641 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4739/7.113, allocations: 7.222 MB / 1.648 GB, free: 77.2 MB / 0.5573 GB Notification: Performance of SimCode: time 2.124e-06/7.113, allocations: 1.125 kB / 1.648 GB, free: 77.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.072/8.185, allocations: 244.3 MB / 1.887 GB, free: 51.64 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002685/8.186, allocations: 226.7 kB / 1.887 GB, free: 51.43 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/20.71, allocations: 0 / 1.887 GB, free: 51.43 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat