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.685/1.685, allocations: 171.3 MB / 178.4 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.308e-05/2.307e-05, allocations: 4 kB / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2538, allocations: 38.77 MB / 258.4 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.4259, allocations: 101 MB / 359.4 MB, free: 8.684 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.4262, allocations: 87.95 kB / 359.5 MB, free: 8.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.192/1.618, allocations: 207.8 MB / 0.554 GB, free: 37.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.973e-06/1.618, allocations: 0 / 0.554 GB, free: 37.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001031/1.619, allocations: 231.2 kB / 0.5542 GB, free: 37.6 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.03929/1.659, allocations: 9.218 MB / 0.5632 GB, free: 34.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/1.659, allocations: 10.25 kB / 0.5632 GB, free: 34.42 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/1.669, allocations: 1.543 MB / 0.5647 GB, free: 33.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02487/1.694, allocations: 7.536 MB / 0.5721 GB, free: 29.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006295/1.695, allocations: 308 kB / 0.5723 GB, free: 28.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003795/1.699, allocations: 0.5506 MB / 0.5729 GB, free: 28.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02882/1.727, allocations: 9.536 MB / 0.5822 GB, free: 19.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04242/1.77, allocations: 11.34 MB / 0.5933 GB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005236/1.77, allocations: 15.84 kB / 0.5933 GB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003175/1.774, allocations: 11.98 kB / 0.5933 GB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006143/1.774, allocations: 395 kB / 0.5937 GB, free: 8.094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4235/2.198, allocations: 38.7 MB / 0.6315 GB, free: 38.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0145/2.212, allocations: 8.366 MB / 0.6396 GB, free: 35.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009544/2.222, allocations: 4.079 MB / 0.6436 GB, free: 35.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005713/2.223, allocations: 53.94 kB / 0.6437 GB, free: 35.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.953e-05/2.223, allocations: 88.2 kB / 0.6438 GB, free: 35.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=431): time 7.775e-06/2.223, allocations: 0 / 0.6438 GB, free: 35.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=439): time 0.03602/2.259, allocations: 13.04 MB / 0.6565 GB, free: 33.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/2.259, allocations: 97.61 kB / 0.6566 GB, free: 33.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01105/2.27, allocations: 3.706 MB / 0.6602 GB, free: 32.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009877/2.271, allocations: 31.52 kB / 0.6602 GB, free: 32.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003849/2.275, allocations: 4.131 MB / 0.6643 GB, free: 31.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002042/2.277, allocations: 1.398 MB / 0.6656 GB, free: 30.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004897/2.277, allocations: 0 / 0.6656 GB, free: 30.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003428/2.278, allocations: 496.1 kB / 0.6661 GB, free: 29.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005269/2.283, allocations: 2.128 MB / 0.6682 GB, free: 29.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006369/2.29, allocations: 3.161 MB / 0.6713 GB, free: 28.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006624/2.296, allocations: 2.657 MB / 0.6739 GB, free: 27.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.125e-05/2.296, allocations: 11.64 kB / 0.6739 GB, free: 27.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02093/2.317, allocations: 7.125 MB / 0.6808 GB, free: 24.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.97e-05/2.317, allocations: 20.19 kB / 0.6809 GB, free: 24.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.906e-05/2.317, allocations: 34.44 kB / 0.6809 GB, free: 24.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005698/2.323, allocations: 1.451 MB / 0.6823 GB, free: 24.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00776/2.331, allocations: 0.9637 MB / 0.6832 GB, free: 24.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03067/2.362, allocations: 26.05 MB / 0.7087 GB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006092/2.368, allocations: 120.8 kB / 0.7088 GB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/2.369, allocations: 184.5 kB / 0.709 GB, free: 3.047 MB / 362.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.001946/2.371, allocations: 223.5 kB / 0.7092 GB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02004/2.391, allocations: 6.87 MB / 0.7159 GB, free: 28 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002317/2.394, allocations: 0.5118 MB / 0.7164 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02201/2.416, allocations: 7.169 MB / 0.7234 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.271e-05/2.416, allocations: 43.28 kB / 0.7234 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.033e-05/2.416, allocations: 33.5 kB / 0.7235 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001142/2.416, allocations: 19.5 kB / 0.7235 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04869/2.465, allocations: 15.95 MB / 0.7391 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.807e-05/2.465, allocations: 8 kB / 0.7391 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004169/2.469, allocations: 460.2 kB / 0.7395 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01007/2.479, allocations: 2.217 MB / 0.7417 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008826/2.48, allocations: 34.33 kB / 0.7417 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3554/2.835, allocations: 33.43 MB / 0.7744 GB, free: 60.35 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/2.835, allocations: 10.94 kB / 0.7744 GB, free: 60.35 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02564/2.861, allocations: 11.53 MB / 0.7856 GB, free: 58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004455/2.866, allocations: 1.113 MB / 0.7867 GB, free: 57.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002254/2.868, allocations: 21.94 kB / 0.7867 GB, free: 57.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005828/2.874, allocations: 189.6 kB / 0.7869 GB, free: 57.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002055/2.876, allocations: 435.5 kB / 0.7873 GB, free: 57.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00101/2.877, allocations: 118.4 kB / 0.7874 GB, free: 57.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007683/2.885, allocations: 2.789 MB / 0.7902 GB, free: 57.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.21e-07/2.885, allocations: 0 / 0.7902 GB, free: 57.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01094/2.896, allocations: 1.606 MB / 0.7917 GB, free: 57.71 MB / 394.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.02847/2.924, allocations: 14.08 MB / 0.8055 GB, free: 53.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01608/2.94, allocations: 7.215 MB / 0.8125 GB, free: 51.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/2.94, allocations: 0 / 0.8125 GB, free: 51.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01323/2.953, allocations: 5.636 MB / 0.818 GB, free: 50.08 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01042/2.964, allocations: 1.167 MB / 0.8192 GB, free: 50.06 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05508/3.019, allocations: 17.12 MB / 0.8359 GB, free: 43.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01344/3.033, allocations: 6.307 MB / 0.842 GB, free: 41.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.006898/3.04, allocations: 1.065 MB / 0.8431 GB, free: 41.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008685/3.048, allocations: 3.663 MB / 0.8467 GB, free: 38.45 MB / 394.7 MB Notification: Performance of SimCode: time 1.303e-06/3.048, allocations: 0 / 0.8467 GB, free: 38.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6346/3.683, allocations: 138.6 MB / 0.982 GB, free: 36.14 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/3.683, allocations: 167.6 kB / 0.9821 GB, free: 35.96 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/11.38, allocations: 7.969 kB / 0.9821 GB, free: 35.95 MB / 394.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