Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.628/1.628, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.102e-05/2.092e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2516, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.4229, allocations: 101 MB / 359.4 MB, free: 8.727 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/0.4232, allocations: 83.95 kB / 359.5 MB, free: 8.645 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.123/1.546, allocations: 207.8 MB / 0.5539 GB, free: 37.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.546, allocations: 0 / 0.5539 GB, free: 37.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009885/1.547, allocations: 233.8 kB / 0.5542 GB, free: 37.61 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.03888/1.586, allocations: 9.218 MB / 0.5632 GB, free: 34.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.586, allocations: 10.81 kB / 0.5632 GB, free: 34.42 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/1.596, allocations: 1.542 MB / 0.5647 GB, free: 33.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02362/1.62, allocations: 7.529 MB / 0.572 GB, free: 29.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005872/1.62, allocations: 308 kB / 0.5723 GB, free: 28.92 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003574/1.624, allocations: 0.5505 MB / 0.5729 GB, free: 28.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02906/1.653, allocations: 9.537 MB / 0.5822 GB, free: 19.56 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04079/1.694, allocations: 11.35 MB / 0.5932 GB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004575/1.694, allocations: 7.906 kB / 0.5933 GB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002977/1.697, allocations: 8 kB / 0.5933 GB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005398/1.698, allocations: 399 kB / 0.5936 GB, free: 8.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3778/2.076, allocations: 38.7 MB / 0.6314 GB, free: 38.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01331/2.089, allocations: 8.369 MB / 0.6396 GB, free: 35.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009175/2.098, allocations: 4.082 MB / 0.6436 GB, free: 35.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005441/2.099, allocations: 54.7 kB / 0.6436 GB, free: 35.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.267e-05/2.099, allocations: 82.58 kB / 0.6437 GB, free: 35.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=431): time 7.294e-06/2.099, allocations: 3.281 kB / 0.6437 GB, free: 35.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=439): time 0.03347/2.132, allocations: 13.04 MB / 0.6565 GB, free: 33.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/2.133, allocations: 99.05 kB / 0.6566 GB, free: 33.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008277/2.141, allocations: 3.704 MB / 0.6602 GB, free: 32.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009587/2.142, allocations: 28.58 kB / 0.6602 GB, free: 32.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003103/2.145, allocations: 3.837 MB / 0.664 GB, free: 31.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002063/2.147, allocations: 1.396 MB / 0.6653 GB, free: 30.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004407/2.148, allocations: 2.625 kB / 0.6653 GB, free: 30.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003436/2.148, allocations: 0.4887 MB / 0.6658 GB, free: 29.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004759/2.153, allocations: 2.131 MB / 0.6679 GB, free: 29.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005905/2.159, allocations: 3.156 MB / 0.671 GB, free: 28.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006019/2.165, allocations: 2.655 MB / 0.6736 GB, free: 27.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.487e-05/2.165, allocations: 14.61 kB / 0.6736 GB, free: 27.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.0168/2.182, allocations: 6.819 MB / 0.6802 GB, free: 25.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.784e-05/2.182, allocations: 18.23 kB / 0.6802 GB, free: 25.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-05/2.182, allocations: 30.25 kB / 0.6803 GB, free: 25.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005428/2.187, allocations: 1.448 MB / 0.6817 GB, free: 24.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007461/2.195, allocations: 0.961 MB / 0.6826 GB, free: 24.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02906/2.224, allocations: 26.05 MB / 0.7081 GB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00594/2.23, allocations: 121.7 kB / 0.7082 GB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/2.231, allocations: 179.8 kB / 0.7084 GB, free: 3.277 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.001156/2.232, allocations: 225.2 kB / 0.7086 GB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01758/2.25, allocations: 6.87 MB / 0.7153 GB, free: 260 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002195/2.252, allocations: 0.5093 MB / 0.7158 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02043/2.272, allocations: 7.166 MB / 0.7228 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.618e-05/2.273, allocations: 42.94 kB / 0.7228 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.218e-05/2.273, allocations: 27.22 kB / 0.7228 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000105/2.273, allocations: 23.98 kB / 0.7229 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0469/2.32, allocations: 15.96 MB / 0.7384 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.976e-05/2.32, allocations: 8 kB / 0.7384 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004188/2.324, allocations: 462 kB / 0.7389 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0094/2.333, allocations: 2.177 MB / 0.741 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008586/2.334, allocations: 31.7 kB / 0.741 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.34/2.674, allocations: 33.34 MB / 0.7736 GB, free: 60.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.468e-05/2.674, allocations: 12.31 kB / 0.7736 GB, free: 60.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0236/2.698, allocations: 11.53 MB / 0.7849 GB, free: 58.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004394/2.702, allocations: 1.116 MB / 0.786 GB, free: 58.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002243/2.705, allocations: 22.19 kB / 0.786 GB, free: 58.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005823/2.711, allocations: 180.6 kB / 0.7862 GB, free: 58.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002081/2.713, allocations: 442.2 kB / 0.7866 GB, free: 58.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005509/2.713, allocations: 117.6 kB / 0.7867 GB, free: 58.51 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007099/2.72, allocations: 2.784 MB / 0.7894 GB, free: 58.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.91e-07/2.72, allocations: 0 / 0.7894 GB, free: 58.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01028/2.731, allocations: 1.61 MB / 0.791 GB, free: 58.33 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.02715/2.758, allocations: 14.09 MB / 0.8047 GB, free: 53.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01701/2.775, allocations: 7.205 MB / 0.8118 GB, free: 52.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/2.775, allocations: 3.562 kB / 0.8118 GB, free: 52.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01305/2.788, allocations: 5.624 MB / 0.8173 GB, free: 50.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01033/2.798, allocations: 1.168 MB / 0.8184 GB, free: 50.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05224/2.851, allocations: 16.88 MB / 0.8349 GB, free: 44.48 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01192/2.863, allocations: 6.144 MB / 0.8409 GB, free: 42.47 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008128/2.871, allocations: 3.688 MB / 0.8445 GB, free: 39.32 MB / 394.7 MB Notification: Performance of SimCode: time 2.084e-06/2.871, allocations: 0 / 0.8445 GB, free: 39.32 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.497/11.37, allocations: 0.8304 GB / 1.675 GB, free: 108.2 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat