Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.81/1.81, allocations: 194.9 MB / 208 MB, free: 3.27 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.408e-05/3.422e-05, allocations: 0 / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.09152, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4399/0.5315, allocations: 110.1 MB / 410.1 MB, free: 9.316 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.5319, allocations: 85.48 kB / 410.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.089/1.621, allocations: 221 MB / 0.6164 GB, free: 52.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.621, allocations: 0 / 0.6164 GB, free: 52.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001098/1.622, allocations: 253.8 kB / 0.6166 GB, free: 52.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04205/1.664, allocations: 9.572 MB / 0.626 GB, free: 47.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.664, allocations: 14.31 kB / 0.626 GB, free: 47.96 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006164/1.67, allocations: 1.38 MB / 0.6273 GB, free: 46.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01695/1.687, allocations: 2.125 MB / 0.6294 GB, free: 44.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03272/1.72, allocations: 8.909 MB / 0.6381 GB, free: 36.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001092/1.721, allocations: 0.7521 MB / 0.6389 GB, free: 35.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004579/1.726, allocations: 0.979 MB / 0.6398 GB, free: 34.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04536/1.771, allocations: 13.67 MB / 0.6532 GB, free: 20.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005552/1.772, allocations: 23.84 kB / 0.6532 GB, free: 20.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003744/1.776, allocations: 422.3 kB / 0.6536 GB, free: 19.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005209/1.776, allocations: 456.4 kB / 0.654 GB, free: 19.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03573/1.812, allocations: 11.3 MB / 0.665 GB, free: 8.188 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4592/2.271, allocations: 44.16 MB / 0.7082 GB, free: 35.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0362/2.308, allocations: 24.46 MB / 0.7321 GB, free: 33.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01255/2.32, allocations: 4.909 MB / 0.7368 GB, free: 33.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03762/2.358, allocations: 12.09 MB / 0.7487 GB, free: 31.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.266e-05/2.358, allocations: 85.84 kB / 0.7487 GB, free: 31.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=419): time 7.835e-06/2.358, allocations: 3 kB / 0.7487 GB, free: 31.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=425): time 0.03949/2.397, allocations: 13.84 MB / 0.7623 GB, free: 25.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.654e-05/2.398, allocations: 101.3 kB / 0.7624 GB, free: 24.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/2.409, allocations: 4.668 MB / 0.7669 GB, free: 23.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009749/2.41, allocations: 98.95 kB / 0.767 GB, free: 23.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003759/2.413, allocations: 4.438 MB / 0.7713 GB, free: 19.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001944/2.415, allocations: 1.42 MB / 0.7727 GB, free: 18.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004828/2.416, allocations: 97.47 kB / 0.7728 GB, free: 18.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003498/2.416, allocations: 0.489 MB / 0.7733 GB, free: 18.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005417/2.422, allocations: 2.261 MB / 0.7755 GB, free: 17.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006484/2.428, allocations: 3.382 MB / 0.7788 GB, free: 15.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00708/2.435, allocations: 2.807 MB / 0.7816 GB, free: 14.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-05/2.436, allocations: 12.47 kB / 0.7816 GB, free: 14.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02124/2.457, allocations: 7.711 MB / 0.7891 GB, free: 11.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.036e-05/2.457, allocations: 19.91 kB / 0.7891 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-05/2.457, allocations: 33.91 kB / 0.7891 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005843/2.463, allocations: 1.471 MB / 0.7906 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007997/2.471, allocations: 0.9833 MB / 0.7915 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03413/2.505, allocations: 26.65 MB / 0.8176 GB, free: 4.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006868/2.512, allocations: 236.2 kB / 0.8178 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000884/2.513, allocations: 187.4 kB / 0.818 GB, free: 3.781 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (526): * Single equations (assignments): 510 * 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%) 22,(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.001328/2.514, allocations: 402 kB / 0.8184 GB, free: 3.387 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001924/2.516, allocations: 0.5712 MB / 0.8189 GB, free: 2.809 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03428/2.55, allocations: 8.344 MB / 0.8271 GB, free: 13.85 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.434e-05/2.551, allocations: 40 kB / 0.8271 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.638e-05/2.551, allocations: 28 kB / 0.8271 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001075/2.551, allocations: 19.64 kB / 0.8271 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05048/2.601, allocations: 16.36 MB / 0.8431 GB, free: 312 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.293e-05/2.601, allocations: 4 kB / 0.8431 GB, free: 308 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005012/2.606, allocations: 480.2 kB / 0.8436 GB, free: 0 / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.348/2.954, allocations: 2.248 MB / 0.8458 GB, free: 89.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000824/2.955, allocations: 96.66 kB / 0.8459 GB, free: 89.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05249/3.008, allocations: 34.48 MB / 0.8795 GB, free: 72.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/3.008, allocations: 6.469 kB / 0.8796 GB, free: 72.93 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02696/3.035, allocations: 11.44 MB / 0.8907 GB, free: 71.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00482/3.04, allocations: 1.211 MB / 0.8919 GB, free: 71.26 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002462/3.042, allocations: 83.78 kB / 0.892 GB, free: 71.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006674/3.049, allocations: 258.4 kB / 0.8922 GB, free: 71.26 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002047/3.051, allocations: 440.9 kB / 0.8927 GB, free: 71.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000763/3.052, allocations: 113.7 kB / 0.8928 GB, free: 71.25 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009412/3.061, allocations: 3.571 MB / 0.8963 GB, free: 71.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.92e-07/3.061, allocations: 4.562 kB / 0.8963 GB, free: 71.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01217/3.074, allocations: 1.904 MB / 0.8981 GB, free: 71.05 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,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 (241): * Single equations (assignments): 228 * 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.03149/3.105, allocations: 13.21 MB / 0.911 GB, free: 68.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01736/3.122, allocations: 7.457 MB / 0.9183 GB, free: 64.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/3.123, allocations: 3.938 kB / 0.9183 GB, free: 64.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01358/3.136, allocations: 5.437 MB / 0.9236 GB, free: 61.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01253/3.149, allocations: 1.603 MB / 0.9252 GB, free: 60.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05492/3.204, allocations: 18.08 MB / 0.9428 GB, free: 53.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01259/3.216, allocations: 6.548 MB / 0.9492 GB, free: 51.84 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007772/3.224, allocations: 1.271 MB / 0.9505 GB, free: 51.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008509/3.233, allocations: 3.897 MB / 0.9543 GB, free: 47.98 MB / 458.7 MB Notification: Performance of SimCode: time 1.232e-06/3.233, allocations: 0 / 0.9543 GB, free: 47.98 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7683/4.001, allocations: 164.8 MB / 1.115 GB, free: 35.62 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/4.001, allocations: 196.5 kB / 1.115 GB, free: 35.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.12/13.12, allocations: 0 / 1.115 GB, free: 35.4 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat