Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.083e-05, allocations: 4 kB / 269.5 MB, free: 6.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09804, allocations: 47.57 MB / 317 MB, free: 6.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5433/0.6414, allocations: 162 MB / 479.1 MB, free: 6.945 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/0.6418, allocations: 106.6 kB / 479.2 MB, free: 6.887 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.198/3.84, allocations: 0.5707 GB / 1.039 GB, free: 32.54 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.104e-06/3.84, allocations: 0 / 1.039 GB, free: 32.54 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.002604/3.842, allocations: 429 kB / 1.039 GB, free: 32.5 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: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.08906/3.932, allocations: 16.99 MB / 1.056 GB, free: 27.45 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/3.932, allocations: 11.47 kB / 1.056 GB, free: 27.45 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01716/3.949, allocations: 2.958 MB / 1.059 GB, free: 27.23 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07442/4.023, allocations: 8.471 MB / 1.067 GB, free: 26.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04975/4.073, allocations: 14.54 MB / 1.081 GB, free: 24.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002227/4.075, allocations: 1.343 MB / 1.082 GB, free: 24.42 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009299/4.085, allocations: 1.743 MB / 1.084 GB, free: 24.41 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1/4.185, allocations: 30.14 MB / 1.113 GB, free: 22.26 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001063/4.186, allocations: 23 kB / 1.113 GB, free: 22.25 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008063/4.194, allocations: 0.7484 MB / 1.114 GB, free: 22.25 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001816/4.196, allocations: 1.201 MB / 1.115 GB, free: 22.21 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08102/4.277, allocations: 26.91 MB / 1.142 GB, free: 14.13 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7877/5.065, allocations: 97.99 MB / 1.237 GB, free: 34.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05743/5.122, allocations: 35.21 MB / 1.272 GB, free: 33.86 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03278/5.155, allocations: 12.77 MB / 1.284 GB, free: 33.72 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1146/5.27, allocations: 39.29 MB / 1.323 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/5.27, allocations: 149.6 kB / 1.323 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1269): time 1.867e-05/5.27, allocations: 3.969 kB / 1.323 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1277): time 0.1389/5.409, allocations: 45.76 MB / 1.367 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/5.409, allocations: 190.5 kB / 1.368 GB, free: 7.496 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01537/5.424, allocations: 4.969 MB / 1.372 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00296/5.427, allocations: 205.7 kB / 1.373 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007566/5.435, allocations: 6.654 MB / 1.379 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.008252/5.443, allocations: 4.189 MB / 1.383 GB, free: 9.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003333/5.447, allocations: 212 kB / 1.383 GB, free: 9.633 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001783/5.448, allocations: 0.8069 MB / 1.384 GB, free: 8.961 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02435/5.473, allocations: 8.145 MB / 1.392 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5073/5.98, allocations: 12.38 MB / 1.404 GB, free: 85.76 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02813/6.008, allocations: 9.781 MB / 1.414 GB, free: 85.59 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/6.009, allocations: 15.7 kB / 1.414 GB, free: 85.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.07187/6.08, allocations: 24.77 MB / 1.438 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000157/6.081, allocations: 29.31 kB / 1.438 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002241/6.081, allocations: 54.19 kB / 1.438 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02954/6.111, allocations: 8.942 MB / 1.447 GB, free: 84.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01534/6.126, allocations: 1.867 MB / 1.449 GB, free: 84.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05319/6.179, allocations: 30.38 MB / 1.478 GB, free: 73.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01806/6.197, allocations: 0.5533 MB / 1.479 GB, free: 73.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004484/6.202, allocations: 465.8 kB / 1.479 GB, free: 73.14 MB / 0.5261 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.008173/6.21, allocations: 0.6767 MB / 1.48 GB, free: 73.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005848/6.216, allocations: 0.852 MB / 1.481 GB, free: 73.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07917/6.295, allocations: 25.35 MB / 1.506 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05198/6.347, allocations: 20.05 MB / 1.525 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.911e-05/6.347, allocations: 10.47 kB / 1.525 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002581/6.348, allocations: 52.59 kB / 1.525 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1351/6.483, allocations: 48.21 MB / 1.572 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001459/6.483, allocations: 4 kB / 1.572 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01254/6.495, allocations: 1.353 MB / 1.574 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02996/6.525, allocations: 9.059 MB / 1.582 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00331/6.529, allocations: 270.8 kB / 1.583 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5044/7.033, allocations: 36.5 MB / 1.618 GB, free: 67.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/7.033, allocations: 8.781 kB / 1.618 GB, free: 67.21 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09838/7.132, allocations: 37.71 MB / 1.655 GB, free: 65.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0114/7.143, allocations: 2.81 MB / 1.658 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005492/7.149, allocations: 187 kB / 1.658 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01275/7.162, allocations: 0.5152 MB / 1.659 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005361/7.167, allocations: 0.9693 MB / 1.66 GB, free: 65.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003729/7.171, allocations: 341.9 kB / 1.66 GB, free: 65.04 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01103/7.182, allocations: 3.787 MB / 1.664 GB, free: 64.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.223e-06/7.182, allocations: 3 kB / 1.664 GB, free: 64.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02135/7.203, allocations: 3.243 MB / 1.667 GB, free: 64.8 MB / 0.5261 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.1122/7.316, allocations: 39.71 MB / 1.706 GB, free: 48.25 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0771/7.393, allocations: 20.86 MB / 1.726 GB, free: 39.69 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/7.393, allocations: 4.984 kB / 1.726 GB, free: 39.69 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03839/7.431, allocations: 12.06 MB / 1.738 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0191/7.45, allocations: 1.966 MB / 1.74 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1376/7.588, allocations: 39.63 MB / 1.778 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03468/7.623, allocations: 11.92 MB / 1.79 GB, free: 2.957 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01967/7.643, allocations: 2.63 MB / 1.792 GB, free: 1.156 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4757/8.118, allocations: 7.66 MB / 1.8 GB, free: 86.47 MB / 0.5417 GB Notification: Performance of SimCode: time 2.755e-06/8.118, allocations: 1.344 kB / 1.8 GB, free: 86.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.525/9.643, allocations: 332.6 MB / 2.125 GB, free: 51.6 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/9.644, allocations: 244.1 kB / 2.125 GB, free: 51.28 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/23.27, allocations: 7.906 kB / 2.125 GB, free: 51.27 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat