Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.612/1.612, allocations: 171.2 MB / 183.4 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.724e-05/3.73e-05, allocations: 8 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2518, allocations: 38.77 MB / 263.9 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.4238, allocations: 101.7 MB / 365.6 MB, free: 3.953 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/0.4242, allocations: 83.95 kB / 365.7 MB, free: 3.871 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197/1.622, allocations: 210.4 MB / 0.5626 GB, free: 25.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.622, allocations: 0 / 0.5626 GB, free: 25.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009678/1.623, allocations: 244.2 kB / 0.5628 GB, free: 25.86 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.03916/1.662, allocations: 9.217 MB / 0.5718 GB, free: 22.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.662, allocations: 10.64 kB / 0.5718 GB, free: 22.72 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005211/1.667, allocations: 1.284 MB / 0.5731 GB, free: 22.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/1.678, allocations: 1.544 MB / 0.5746 GB, free: 22.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02524/1.703, allocations: 7.53 MB / 0.582 GB, free: 19.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009738/1.704, allocations: 0.7037 MB / 0.5826 GB, free: 19.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004036/1.708, allocations: 0.9259 MB / 0.5836 GB, free: 19.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0408/1.749, allocations: 12.62 MB / 0.5959 GB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004754/1.75, allocations: 19.55 kB / 0.5959 GB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003643/1.753, allocations: 407 kB / 0.5963 GB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000431/1.754, allocations: 398.1 kB / 0.5967 GB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03062/1.785, allocations: 9.985 MB / 0.6064 GB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3991/2.184, allocations: 40.58 MB / 0.646 GB, free: 39.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01519/2.199, allocations: 8.511 MB / 0.6544 GB, free: 36.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01042/2.209, allocations: 4.227 MB / 0.6585 GB, free: 36.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005078/2.21, allocations: 53.72 kB / 0.6585 GB, free: 36.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.236e-05/2.21, allocations: 83.17 kB / 0.6586 GB, free: 36.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=431): time 7.484e-06/2.21, allocations: 1.125 kB / 0.6586 GB, free: 36.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=439): time 0.03877/2.249, allocations: 13.84 MB / 0.6721 GB, free: 34.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/2.249, allocations: 100.7 kB / 0.6722 GB, free: 34.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/2.261, allocations: 4.598 MB / 0.6767 GB, free: 34.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001116/2.262, allocations: 99.8 kB / 0.6768 GB, free: 34.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004244/2.266, allocations: 4.115 MB / 0.6808 GB, free: 32.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002187/2.269, allocations: 1.454 MB / 0.6822 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004791/2.269, allocations: 94.06 kB / 0.6823 GB, free: 31.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004222/2.27, allocations: 496 kB / 0.6828 GB, free: 31.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008328/2.278, allocations: 2.222 MB / 0.685 GB, free: 31.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009911/2.288, allocations: 3.252 MB / 0.6882 GB, free: 30.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009927/2.298, allocations: 2.755 MB / 0.6908 GB, free: 30.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.944e-05/2.298, allocations: 13.25 kB / 0.6909 GB, free: 30.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02936/2.327, allocations: 7.58 MB / 0.6983 GB, free: 29.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.174e-05/2.328, allocations: 21.38 kB / 0.6983 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-05/2.328, allocations: 29.66 kB / 0.6983 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00596/2.334, allocations: 1.505 MB / 0.6998 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008026/2.342, allocations: 0.9622 MB / 0.7007 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03105/2.373, allocations: 27.06 MB / 0.7271 GB, free: 24.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006521/2.379, allocations: 218.7 kB / 0.7274 GB, free: 24.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007494/2.38, allocations: 175.9 kB / 0.7275 GB, free: 24.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 493 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 25,(2,100.0%) 6,(2,100.0%) 6,(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.001207/2.381, allocations: 399.6 kB / 0.7279 GB, free: 24 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/2.383, allocations: 0.5672 MB / 0.7285 GB, free: 23.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01892/2.402, allocations: 7.648 MB / 0.7359 GB, free: 20.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.156e-05/2.402, allocations: 40.78 kB / 0.736 GB, free: 20.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.594e-05/2.402, allocations: 29.31 kB / 0.736 GB, free: 20.42 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.332e-05/2.402, allocations: 26.25 kB / 0.736 GB, free: 20.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04517/2.447, allocations: 17.63 MB / 0.7532 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.018e-05/2.447, allocations: 10.03 kB / 0.7532 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003944/2.451, allocations: 463.5 kB / 0.7537 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009255/2.461, allocations: 2.25 MB / 0.7559 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006703/2.461, allocations: 98.05 kB / 0.756 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3565/2.818, allocations: 34.69 MB / 0.7898 GB, free: 70.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/2.818, allocations: 11.44 kB / 0.7899 GB, free: 70.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02508/2.843, allocations: 12.07 MB / 0.8016 GB, free: 67.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004313/2.847, allocations: 1.195 MB / 0.8028 GB, free: 67.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001722/2.849, allocations: 95.3 kB / 0.8029 GB, free: 67.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005122/2.854, allocations: 250.2 kB / 0.8031 GB, free: 67.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001383/2.856, allocations: 437.4 kB / 0.8036 GB, free: 67.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004016/2.856, allocations: 123.8 kB / 0.8037 GB, free: 67.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007661/2.864, allocations: 3.528 MB / 0.8071 GB, free: 67.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.272e-06/2.864, allocations: 0 / 0.8071 GB, free: 67.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009371/2.873, allocations: 1.835 MB / 0.8089 GB, free: 67.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 242 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02769/2.901, allocations: 14.72 MB / 0.8233 GB, free: 63.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01608/2.917, allocations: 7.374 MB / 0.8305 GB, free: 61.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/2.917, allocations: 5.625 kB / 0.8305 GB, free: 61.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01286/2.93, allocations: 5.723 MB / 0.8361 GB, free: 59.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01234/2.942, allocations: 1.598 MB / 0.8376 GB, free: 59.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05224/2.995, allocations: 17.63 MB / 0.8549 GB, free: 55.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01203/3.007, allocations: 6.316 MB / 0.861 GB, free: 53.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.007012/3.014, allocations: 1.153 MB / 0.8622 GB, free: 53.13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007449/3.021, allocations: 3.652 MB / 0.8657 GB, free: 50.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.984e-06/3.021, allocations: 0 / 0.8657 GB, free: 50.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7045/3.726, allocations: 162 MB / 1.024 GB, free: 28.77 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002537/3.726, allocations: 203.8 kB / 1.024 GB, free: 28.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.417/12.14, allocations: 4.062 kB / 1.024 GB, free: 28.55 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat