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.618/1.618, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.12e-05, allocations: 4 kB / 225.1 MB, free: 2.203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.247, allocations: 38.77 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.4194, allocations: 101.7 MB / 365.6 MB, free: 3.934 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.4197, allocations: 83.95 kB / 365.7 MB, free: 3.852 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.153/1.572, allocations: 210.4 MB / 0.5626 GB, free: 25.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.296e-06/1.573, allocations: 6.594 kB / 0.5626 GB, free: 25.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000997/1.574, allocations: 241.5 kB / 0.5628 GB, free: 25.69 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.03839/1.612, allocations: 9.214 MB / 0.5718 GB, free: 22.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.612, allocations: 10.94 kB / 0.5718 GB, free: 22.54 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004899/1.617, allocations: 1.288 MB / 0.5731 GB, free: 22.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/1.627, allocations: 1.542 MB / 0.5746 GB, free: 21.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02537/1.653, allocations: 7.537 MB / 0.5819 GB, free: 19.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009037/1.653, allocations: 0.6971 MB / 0.5826 GB, free: 19.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00387/1.657, allocations: 0.9232 MB / 0.5835 GB, free: 19.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03961/1.697, allocations: 12.75 MB / 0.596 GB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003535/1.697, allocations: 7.906 kB / 0.596 GB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002507/1.7, allocations: 411.2 kB / 0.5964 GB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003955/1.7, allocations: 392.5 kB / 0.5967 GB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03049/1.731, allocations: 10.12 MB / 0.6066 GB, free: 160 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.39/2.121, allocations: 40.6 MB / 0.6463 GB, free: 40.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01506/2.136, allocations: 8.558 MB / 0.6546 GB, free: 36.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01022/2.146, allocations: 4.228 MB / 0.6588 GB, free: 36.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005382/2.147, allocations: 50.83 kB / 0.6588 GB, free: 36.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.898e-05/2.147, allocations: 86.34 kB / 0.6589 GB, free: 36.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=431): time 6.973e-06/2.147, allocations: 0 / 0.6589 GB, free: 36.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=439): time 0.03723/2.184, allocations: 13.84 MB / 0.6724 GB, free: 34.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/2.184, allocations: 98.92 kB / 0.6725 GB, free: 34.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01174/2.196, allocations: 4.598 MB / 0.677 GB, free: 34.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009664/2.197, allocations: 100 kB / 0.6771 GB, free: 34.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003564/2.201, allocations: 4.112 MB / 0.6811 GB, free: 33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002046/2.203, allocations: 1.46 MB / 0.6825 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004809/2.203, allocations: 94.62 kB / 0.6826 GB, free: 32.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003155/2.204, allocations: 494.7 kB / 0.6831 GB, free: 31.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005871/2.21, allocations: 2.219 MB / 0.6852 GB, free: 31.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007255/2.217, allocations: 3.278 MB / 0.6884 GB, free: 30.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007149/2.224, allocations: 2.765 MB / 0.6911 GB, free: 30.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.848e-05/2.224, allocations: 6.719 kB / 0.6912 GB, free: 30.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02123/2.245, allocations: 7.662 MB / 0.6986 GB, free: 29.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/2.245, allocations: 20.88 kB / 0.6987 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.686e-05/2.246, allocations: 31.38 kB / 0.6987 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005734/2.251, allocations: 1.507 MB / 0.7002 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007651/2.259, allocations: 0.9616 MB / 0.7011 GB, free: 29.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03166/2.291, allocations: 27.08 MB / 0.7275 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006639/2.297, allocations: 219.2 kB / 0.7278 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/2.299, allocations: 183.2 kB / 0.7279 GB, free: 8.211 MB / 378.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.001201/2.3, allocations: 390.1 kB / 0.7283 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001707/2.301, allocations: 0.571 MB / 0.7289 GB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02918/2.331, allocations: 7.65 MB / 0.7363 GB, free: 20.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.48e-05/2.331, allocations: 42.69 kB / 0.7364 GB, free: 20.37 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001092/2.331, allocations: 29.53 kB / 0.7364 GB, free: 20.37 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001205/2.331, allocations: 19.45 kB / 0.7364 GB, free: 20.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07061/2.402, allocations: 17.65 MB / 0.7537 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.016e-05/2.402, allocations: 6.844 kB / 0.7537 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004484/2.406, allocations: 463.2 kB / 0.7541 GB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009448/2.416, allocations: 2.25 MB / 0.7563 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009471/2.417, allocations: 98.28 kB / 0.7564 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3893/2.806, allocations: 34.74 MB / 0.7903 GB, free: 70.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.698e-05/2.806, allocations: 11.38 kB / 0.7903 GB, free: 70.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04009/2.846, allocations: 12.07 MB / 0.8021 GB, free: 68.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006499/2.853, allocations: 1.195 MB / 0.8033 GB, free: 68.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002701/2.856, allocations: 100.2 kB / 0.8034 GB, free: 68.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008833/2.864, allocations: 250.2 kB / 0.8036 GB, free: 68.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00246/2.867, allocations: 437.9 kB / 0.804 GB, free: 68.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007965/2.868, allocations: 119 kB / 0.8042 GB, free: 68.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01191/2.88, allocations: 3.526 MB / 0.8076 GB, free: 67.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.052e-06/2.88, allocations: 0 / 0.8076 GB, free: 67.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009693/2.889, allocations: 1.841 MB / 0.8094 GB, free: 67.84 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.03261/2.922, allocations: 14.69 MB / 0.8237 GB, free: 63.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01923/2.941, allocations: 7.566 MB / 0.8311 GB, free: 61.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-05/2.941, allocations: 2.531 kB / 0.8311 GB, free: 61.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0134/2.955, allocations: 5.874 MB / 0.8369 GB, free: 59.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01173/2.967, allocations: 1.601 MB / 0.8384 GB, free: 59.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05024/3.017, allocations: 17.66 MB / 0.8557 GB, free: 55.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01201/3.029, allocations: 6.306 MB / 0.8618 GB, free: 53.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006939/3.036, allocations: 1.156 MB / 0.863 GB, free: 52.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008571/3.045, allocations: 3.658 MB / 0.8665 GB, free: 49.87 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/3.045, allocations: 0 / 0.8665 GB, free: 49.87 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7416/3.786, allocations: 163 MB / 1.026 GB, free: 30.08 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002774/3.787, allocations: 209 kB / 1.026 GB, free: 29.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.537/12.32, allocations: 3.938 kB / 1.026 GB, free: 29.85 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