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 2.143/2.143, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.999e-05, allocations: 0 / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2949, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.4865, allocations: 109.4 MB / 403.7 MB, free: 4.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/0.4869, allocations: 83.95 kB / 403.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.3/1.787, allocations: 218.2 MB / 0.6073 GB, free: 42.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.504e-06/1.787, allocations: 0 / 0.6073 GB, free: 42.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00101/1.788, allocations: 246.3 kB / 0.6076 GB, free: 42.21 MB / 394.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.03976/1.827, allocations: 9.584 MB / 0.6169 GB, free: 38.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/1.828, allocations: 7 kB / 0.6169 GB, free: 38.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01632/1.844, allocations: 2.124 MB / 0.619 GB, free: 38.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03054/1.874, allocations: 8.894 MB / 0.6277 GB, free: 37.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006877/1.875, allocations: 331 kB / 0.628 GB, free: 37.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004021/1.879, allocations: 0.5934 MB / 0.6286 GB, free: 37.03 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03179/1.911, allocations: 10.79 MB / 0.6391 GB, free: 36.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04241/1.953, allocations: 12.31 MB / 0.6512 GB, free: 30.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005544/1.954, allocations: 5.219 kB / 0.6512 GB, free: 30.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003561/1.958, allocations: 8 kB / 0.6512 GB, free: 30.9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005383/1.958, allocations: 457.5 kB / 0.6516 GB, free: 30.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.113/2.071, allocations: 42.17 MB / 0.6928 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3588/2.43, allocations: 24.28 MB / 0.7165 GB, free: 33.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01266/2.443, allocations: 4.711 MB / 0.7211 GB, free: 33.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03455/2.477, allocations: 11.74 MB / 0.7326 GB, free: 32.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.001e-05/2.478, allocations: 82.64 kB / 0.7326 GB, free: 32.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=419): time 7.324e-06/2.478, allocations: 0 / 0.7326 GB, free: 32.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=425): time 0.03871/2.516, allocations: 13.99 MB / 0.7463 GB, free: 30.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/2.516, allocations: 95.25 kB / 0.7464 GB, free: 30.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009192/2.526, allocations: 3.779 MB / 0.7501 GB, free: 30.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009784/2.527, allocations: 34.94 kB / 0.7501 GB, free: 30.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003789/2.53, allocations: 4.429 MB / 0.7544 GB, free: 28.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002257/2.533, allocations: 1.361 MB / 0.7558 GB, free: 27.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00051/2.533, allocations: 0 / 0.7558 GB, free: 27.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003304/2.534, allocations: 499.5 kB / 0.7562 GB, free: 27.28 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004926/2.539, allocations: 2.164 MB / 0.7584 GB, free: 27.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006134/2.545, allocations: 3.29 MB / 0.7616 GB, free: 26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008009/2.553, allocations: 3.002 MB / 0.7645 GB, free: 25.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.24e-05/2.553, allocations: 12.98 kB / 0.7645 GB, free: 25.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02043/2.573, allocations: 7.556 MB / 0.7719 GB, free: 24.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.36e-05/2.573, allocations: 18.88 kB / 0.7719 GB, free: 24.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.388e-05/2.573, allocations: 35.56 kB / 0.7719 GB, free: 24.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005378/2.579, allocations: 1.422 MB / 0.7733 GB, free: 24.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007759/2.587, allocations: 0.9776 MB / 0.7743 GB, free: 24.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0282/2.615, allocations: 25.66 MB / 0.7993 GB, free: 19.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006272/2.621, allocations: 143.6 kB / 0.7995 GB, free: 19.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/2.622, allocations: 184.1 kB / 0.7997 GB, free: 19.06 MB / 426.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.001314/2.624, allocations: 241.2 kB / 0.7999 GB, free: 18.92 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01924/2.643, allocations: 7.117 MB / 0.8068 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002095/2.645, allocations: 0.5168 MB / 0.8073 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02145/2.667, allocations: 7.518 MB / 0.8147 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.293e-05/2.667, allocations: 41.34 kB / 0.8147 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.964e-05/2.667, allocations: 29.28 kB / 0.8148 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.59e-05/2.667, allocations: 25.8 kB / 0.8148 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04238/2.709, allocations: 14.89 MB / 0.8293 GB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.831e-05/2.709, allocations: 10.44 kB / 0.8293 GB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004187/2.714, allocations: 451.3 kB / 0.8298 GB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008726/2.722, allocations: 2.171 MB / 0.8319 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000843/2.723, allocations: 35.92 kB / 0.8319 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05577/2.779, allocations: 33.29 MB / 0.8644 GB, free: 7.359 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.61e-05/2.779, allocations: 4 kB / 0.8644 GB, free: 7.355 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3739/3.153, allocations: 12.26 MB / 0.8764 GB, free: 88.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005006/3.158, allocations: 1.122 MB / 0.8775 GB, free: 87.92 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002181/3.16, allocations: 21.86 kB / 0.8775 GB, free: 87.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005453/3.166, allocations: 191.8 kB / 0.8777 GB, free: 87.92 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001829/3.168, allocations: 433.1 kB / 0.8781 GB, free: 87.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005058/3.168, allocations: 117.7 kB / 0.8782 GB, free: 87.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007893/3.176, allocations: 2.822 MB / 0.881 GB, free: 87.74 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.152e-06/3.176, allocations: 0 / 0.881 GB, free: 87.74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01106/3.187, allocations: 1.682 MB / 0.8826 GB, free: 87.74 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.0284/3.216, allocations: 12.91 MB / 0.8952 GB, free: 85.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01541/3.231, allocations: 7.292 MB / 0.9024 GB, free: 83.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/3.231, allocations: 2.562 kB / 0.9024 GB, free: 83.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0129/3.244, allocations: 5.34 MB / 0.9076 GB, free: 81.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01017/3.254, allocations: 1.171 MB / 0.9087 GB, free: 81.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05438/3.309, allocations: 17.58 MB / 0.9259 GB, free: 78.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0133/3.322, allocations: 6.55 MB / 0.9323 GB, free: 77.36 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007707/3.33, allocations: 1.181 MB / 0.9334 GB, free: 77.22 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009192/3.339, allocations: 3.872 MB / 0.9372 GB, free: 77.21 MB / 458.7 MB Notification: Performance of SimCode: time 3.045e-06/3.339, allocations: 0 / 0.9372 GB, free: 77.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6573/3.996, allocations: 141.3 MB / 1.075 GB, free: 80.76 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002611/3.997, allocations: 168.6 kB / 1.075 GB, free: 80.57 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/12.05, allocations: 0.9844 kB / 1.075 GB, free: 80.57 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