Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 205.8 MB / 218.9 MB, free: 9.258 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.135e-05, allocations: 4 kB / 269.5 MB, free: 6.289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09718, allocations: 47.57 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.493/0.5903, allocations: 110.3 MB / 427.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000351/0.5907, allocations: 86.27 kB / 427.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3369/0.9276, allocations: 88.2 MB / 0.5036 GB, free: 8.051 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.9277, allocations: 0 / 0.5036 GB, free: 8.051 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00035/0.928, allocations: 91.88 kB / 0.5036 GB, free: 7.961 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01492/0.943, allocations: 3.69 MB / 0.5073 GB, free: 4.207 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.943, allocations: 12.03 kB / 0.5073 GB, free: 4.195 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001695/0.9448, allocations: 0.4982 MB / 0.5077 GB, free: 3.688 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005982/0.9508, allocations: 0.7875 MB / 0.5085 GB, free: 2.895 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2922/1.243, allocations: 3.659 MB / 0.5121 GB, free: 85.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004301/1.243, allocations: 273.3 kB / 0.5124 GB, free: 85.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001598/1.245, allocations: 365.9 kB / 0.5127 GB, free: 85.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01609/1.261, allocations: 4.811 MB / 0.5174 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001533/1.261, allocations: 2.906 kB / 0.5174 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006389/1.262, allocations: 149.1 kB / 0.5175 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002346/1.262, allocations: 162.8 kB / 0.5177 GB, free: 84.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01327/1.276, allocations: 3.961 MB / 0.5216 GB, free: 84.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03969/1.315, allocations: 15.96 MB / 0.5372 GB, free: 82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0103/1.326, allocations: 7.672 MB / 0.5447 GB, free: 76.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003894/1.33, allocations: 1.658 MB / 0.5463 GB, free: 76.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/1.341, allocations: 4.623 MB / 0.5508 GB, free: 75.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/1.341, allocations: 54.16 kB / 0.5508 GB, free: 75.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 4.268e-06/1.341, allocations: 3.25 kB / 0.5508 GB, free: 75.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=162): time 0.01355/1.355, allocations: 5.47 MB / 0.5562 GB, free: 72.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/1.355, allocations: 71.75 kB / 0.5563 GB, free: 72.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004191/1.359, allocations: 1.875 MB / 0.5581 GB, free: 72.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003786/1.36, allocations: 56.45 kB / 0.5581 GB, free: 71.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/1.361, allocations: 1.617 MB / 0.5597 GB, free: 70.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006851/1.362, allocations: 0.5365 MB / 0.5602 GB, free: 70.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/1.362, allocations: 39.09 kB / 0.5603 GB, free: 70.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/1.362, allocations: 380.1 kB / 0.5606 GB, free: 70.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/1.364, allocations: 0.8707 MB / 0.5615 GB, free: 69.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002155/1.366, allocations: 1.329 MB / 0.5628 GB, free: 68.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/1.368, allocations: 1.091 MB / 0.5639 GB, free: 68.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/1.368, allocations: 3.938 kB / 0.5639 GB, free: 68.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007096/1.376, allocations: 3.141 MB / 0.5669 GB, free: 67.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/1.376, allocations: 17.89 kB / 0.5669 GB, free: 67.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/1.376, allocations: 13.56 kB / 0.567 GB, free: 67.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002664/1.378, allocations: 0.7253 MB / 0.5677 GB, free: 66.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002541/1.381, allocations: 363.8 kB / 0.568 GB, free: 66.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/1.395, allocations: 10.38 MB / 0.5781 GB, free: 59.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/1.397, allocations: 90.14 kB / 0.5782 GB, free: 59.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001888/1.398, allocations: 74.44 kB / 0.5783 GB, free: 59.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004526/1.398, allocations: 220.2 kB / 0.5785 GB, free: 59.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/1.399, allocations: 234 kB / 0.5787 GB, free: 58.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007157/1.406, allocations: 3.029 MB / 0.5817 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/1.406, allocations: 14.12 kB / 0.5817 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/1.406, allocations: 11.47 kB / 0.5817 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-05/1.406, allocations: 10.22 kB / 0.5817 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/1.42, allocations: 6.41 MB / 0.588 GB, free: 54.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/1.421, allocations: 2.906 kB / 0.588 GB, free: 54.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/1.422, allocations: 175.7 kB / 0.5882 GB, free: 54.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003599/1.426, allocations: 0.909 MB / 0.589 GB, free: 54.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002637/1.426, allocations: 42.38 kB / 0.5891 GB, free: 54.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01991/1.446, allocations: 14.74 MB / 0.6035 GB, free: 43.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.446, allocations: 7.922 kB / 0.6035 GB, free: 43.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009771/1.456, allocations: 4.424 MB / 0.6078 GB, free: 41.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/1.457, allocations: 0.5203 MB / 0.6083 GB, free: 40.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005412/1.458, allocations: 34.86 kB / 0.6083 GB, free: 40.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00198/1.46, allocations: 94.12 kB / 0.6084 GB, free: 40.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005467/1.461, allocations: 154.9 kB / 0.6086 GB, free: 40.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/1.461, allocations: 41.84 kB / 0.6086 GB, free: 40.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00314/1.464, allocations: 1.441 MB / 0.61 GB, free: 40.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.464, allocations: 0 / 0.61 GB, free: 40.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004519/1.469, allocations: 0.7353 MB / 0.6108 GB, free: 40.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01028/1.479, allocations: 5.677 MB / 0.6163 GB, free: 36.67 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00592/1.485, allocations: 2.889 MB / 0.6191 GB, free: 34.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/1.485, allocations: 0 / 0.6191 GB, free: 34.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004352/1.489, allocations: 2.119 MB / 0.6212 GB, free: 32.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/1.493, allocations: 0.5947 MB / 0.6218 GB, free: 31.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/1.51, allocations: 6.537 MB / 0.6281 GB, free: 25.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002864/1.512, allocations: 2.743 MB / 0.6308 GB, free: 23.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002522/1.515, allocations: 464 kB / 0.6313 GB, free: 23.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002341/1.517, allocations: 1.316 MB / 0.6326 GB, free: 22.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.203e-06/1.517, allocations: 0 / 0.6326 GB, free: 22.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4397/1.957, allocations: 64.57 MB / 0.6956 GB, free: 91.12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/1.957, allocations: 185.6 kB / 0.6958 GB, free: 90.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.474/6.431, allocations: 0 / 0.6958 GB, free: 90.89 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat