Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.871/1.871, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.787e-05/3.805e-05, allocations: 8 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09503, allocations: 44.52 MB / 300 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.528/0.6231, allocations: 156.9 MB / 456.9 MB, free: 3.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003571/0.6235, allocations: 95 kB / 457 MB, free: 3.418 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.624/4.247, allocations: 0.5736 GB / 1.02 GB, free: 15.82 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.284e-06/4.247, allocations: 0 / 1.02 GB, free: 15.82 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.002031/4.249, allocations: 424.2 kB / 1.02 GB, free: 15.82 MB / 442.8 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.08749/4.337, allocations: 17 MB / 1.037 GB, free: 10.8 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/4.337, allocations: 10.44 kB / 1.037 GB, free: 10.8 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01513/4.352, allocations: 2.954 MB / 1.04 GB, free: 10.6 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08019/4.432, allocations: 8.467 MB / 1.048 GB, free: 9.57 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05382/4.486, allocations: 14.55 MB / 1.062 GB, free: 7.828 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002463/4.489, allocations: 1.34 MB / 1.064 GB, free: 7.789 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00968/4.498, allocations: 1.748 MB / 1.065 GB, free: 7.777 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1024/4.601, allocations: 30.36 MB / 1.095 GB, free: 5.547 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00144/4.602, allocations: 23.66 kB / 1.095 GB, free: 5.539 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008772/4.611, allocations: 0.7533 MB / 1.096 GB, free: 5.539 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001973/4.613, allocations: 1.194 MB / 1.097 GB, free: 5.496 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08447/4.698, allocations: 27.14 MB / 1.123 GB, free: 0.6133 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7465/5.444, allocations: 98.98 MB / 1.22 GB, free: 35.88 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05506/5.499, allocations: 35.31 MB / 1.254 GB, free: 19.05 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03319/5.533, allocations: 12.77 MB / 1.267 GB, free: 18.91 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1373/5.67, allocations: 39.31 MB / 1.305 GB, free: 17.47 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001416/5.67, allocations: 149.5 kB / 1.305 GB, free: 17.43 MB / 490.8 MB Notification: Performance of pre-optimization done (n=1269): time 1.922e-05/5.67, allocations: 0 / 1.305 GB, free: 17.43 MB / 490.8 MB Notification: Performance of matching and sorting (n=1277): time 0.1764/5.847, allocations: 45.85 MB / 1.35 GB, free: 14.49 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002554/5.847, allocations: 187.7 kB / 1.35 GB, free: 14.29 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02377/5.871, allocations: 4.969 MB / 1.355 GB, free: 9.859 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.004138/5.875, allocations: 205.7 kB / 1.355 GB, free: 9.656 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.01116/5.886, allocations: 6.676 MB / 1.362 GB, free: 3.754 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.01171/5.898, allocations: 4.184 MB / 1.366 GB, free: 0 / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00616/5.904, allocations: 278.4 kB / 1.366 GB, free: 0 / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.002634/5.907, allocations: 0.8141 MB / 1.367 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03717/5.944, allocations: 8.149 MB / 1.375 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4777/6.422, allocations: 10.29 MB / 1.385 GB, free: 82.52 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0305/6.453, allocations: 9.783 MB / 1.395 GB, free: 82.35 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002181/6.453, allocations: 15.22 kB / 1.395 GB, free: 82.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.07826/6.531, allocations: 24.92 MB / 1.419 GB, free: 81.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.906e-05/6.531, allocations: 28.62 kB / 1.419 GB, free: 81.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001904/6.532, allocations: 54.19 kB / 1.419 GB, free: 81.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03085/6.562, allocations: 8.953 MB / 1.428 GB, free: 81.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01569/6.578, allocations: 1.862 MB / 1.43 GB, free: 81.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05391/6.632, allocations: 30.39 MB / 1.459 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01421/6.646, allocations: 0.5505 MB / 1.46 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003988/6.651, allocations: 468.7 kB / 1.46 GB, free: 69.91 MB / 0.5105 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.007505/6.658, allocations: 0.6797 MB / 1.461 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005219/6.663, allocations: 0.852 MB / 1.462 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.078/6.741, allocations: 25.36 MB / 1.487 GB, free: 62.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05824/6.8, allocations: 20.05 MB / 1.506 GB, free: 54.46 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-05/6.8, allocations: 7.875 kB / 1.506 GB, free: 54.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003119/6.8, allocations: 62.34 kB / 1.506 GB, free: 54.46 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.138/6.938, allocations: 48.21 MB / 1.553 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002067/6.938, allocations: 4 kB / 1.553 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01266/6.951, allocations: 1.354 MB / 1.555 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03175/6.983, allocations: 9.06 MB / 1.564 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003734/6.987, allocations: 276.3 kB / 1.564 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5407/7.527, allocations: 36.61 MB / 1.6 GB, free: 67.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/7.527, allocations: 7 kB / 1.6 GB, free: 67.35 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1055/7.633, allocations: 37.71 MB / 1.636 GB, free: 65.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01188/7.645, allocations: 2.813 MB / 1.639 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005636/7.651, allocations: 190.9 kB / 1.639 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01275/7.663, allocations: 0.5048 MB / 1.64 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0053/7.669, allocations: 0.9737 MB / 1.641 GB, free: 65.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003424/7.672, allocations: 337 kB / 1.641 GB, free: 65.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01108/7.683, allocations: 3.785 MB / 1.645 GB, free: 64.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.41e-07/7.683, allocations: 0.5312 kB / 1.645 GB, free: 64.94 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02146/7.705, allocations: 3.245 MB / 1.648 GB, free: 64.94 MB / 0.5105 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.1124/7.817, allocations: 39.69 MB / 1.687 GB, free: 49.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05965/7.877, allocations: 21.09 MB / 1.707 GB, free: 38.61 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/7.877, allocations: 0 / 1.707 GB, free: 38.61 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03609/7.913, allocations: 12.17 MB / 1.719 GB, free: 27.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01895/7.932, allocations: 1.961 MB / 1.721 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5526/8.485, allocations: 39.58 MB / 1.76 GB, free: 76.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03244/8.517, allocations: 11.93 MB / 1.771 GB, free: 74.97 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01883/8.536, allocations: 2.634 MB / 1.774 GB, free: 74.86 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01838/8.555, allocations: 6.764 MB / 1.781 GB, free: 74.86 MB / 0.5105 GB Notification: Performance of SimCode: time 1.833e-06/8.555, allocations: 0 / 1.781 GB, free: 74.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.209/9.764, allocations: 333.7 MB / 2.106 GB, free: 0.6523 MB / 0.5262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003909/9.764, allocations: 238.5 kB / 2.107 GB, free: 352 kB / 0.5262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/24.68, allocations: 3.953 kB / 2.107 GB, free: 348 kB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat