Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.86/1.86, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.933e-05/1.931e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2935, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.189/0.4826, allocations: 109.4 MB / 403.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/0.4829, allocations: 87.95 kB / 403.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267/1.75, allocations: 218.2 MB / 0.6073 GB, free: 42.19 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.75, allocations: 0 / 0.6073 GB, free: 42.19 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009829/1.751, allocations: 245.1 kB / 0.6075 GB, free: 42.17 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.03918/1.791, allocations: 9.58 MB / 0.6169 GB, free: 38.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.791, allocations: 10 kB / 0.6169 GB, free: 38.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01622/1.807, allocations: 2.116 MB / 0.619 GB, free: 38.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03553/1.842, allocations: 8.906 MB / 0.6277 GB, free: 37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000667/1.843, allocations: 328.8 kB / 0.628 GB, free: 37 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003891/1.847, allocations: 0.5896 MB / 0.6286 GB, free: 36.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03088/1.878, allocations: 10.8 MB / 0.6391 GB, free: 36.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03916/1.917, allocations: 12.32 MB / 0.6511 GB, free: 31.06 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003752/1.918, allocations: 5.781 kB / 0.6511 GB, free: 31.05 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002506/1.92, allocations: 8 kB / 0.6511 GB, free: 31.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004598/1.921, allocations: 456.4 kB / 0.6516 GB, free: 30.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/2.027, allocations: 42.17 MB / 0.6928 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3383/2.366, allocations: 24.28 MB / 0.7165 GB, free: 33.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01214/2.378, allocations: 4.71 MB / 0.7211 GB, free: 33.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03111/2.409, allocations: 11.73 MB / 0.7325 GB, free: 32.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.238e-05/2.409, allocations: 83.05 kB / 0.7326 GB, free: 32.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=419): time 7.494e-06/2.409, allocations: 1.406 kB / 0.7326 GB, free: 32.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=425): time 0.03719/2.446, allocations: 13.99 MB / 0.7463 GB, free: 30.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/2.447, allocations: 94.53 kB / 0.7464 GB, free: 30.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007905/2.454, allocations: 3.778 MB / 0.75 GB, free: 30.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009106/2.455, allocations: 30.92 kB / 0.7501 GB, free: 30.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003015/2.458, allocations: 4.142 MB / 0.7541 GB, free: 28.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001898/2.46, allocations: 1.356 MB / 0.7554 GB, free: 27.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004415/2.461, allocations: 0 / 0.7554 GB, free: 27.53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002992/2.461, allocations: 0.4942 MB / 0.7559 GB, free: 27.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004501/2.466, allocations: 2.165 MB / 0.758 GB, free: 27.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005269/2.471, allocations: 3.284 MB / 0.7612 GB, free: 25.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007393/2.478, allocations: 3.004 MB / 0.7642 GB, free: 25.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.435e-05/2.478, allocations: 16.86 kB / 0.7642 GB, free: 25.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.01758/2.496, allocations: 7.237 MB / 0.7713 GB, free: 24.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/2.496, allocations: 23.41 kB / 0.7713 GB, free: 24.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.076e-05/2.496, allocations: 32.59 kB / 0.7713 GB, free: 24.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005131/2.501, allocations: 1.429 MB / 0.7727 GB, free: 24.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007497/2.509, allocations: 0.9783 MB / 0.7737 GB, free: 24.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0277/2.537, allocations: 25.66 MB / 0.7987 GB, free: 19.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006116/2.543, allocations: 132.6 kB / 0.7989 GB, free: 19.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006853/2.543, allocations: 191.7 kB / 0.799 GB, free: 19.37 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.00113/2.545, allocations: 242 kB / 0.7993 GB, free: 19.22 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01784/2.562, allocations: 7.111 MB / 0.8062 GB, free: 16.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00186/2.564, allocations: 0.5184 MB / 0.8067 GB, free: 16.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0199/2.584, allocations: 7.525 MB / 0.8141 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.189e-05/2.584, allocations: 39.03 kB / 0.8141 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.032e-05/2.584, allocations: 29.81 kB / 0.8141 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.991e-05/2.585, allocations: 23.02 kB / 0.8142 GB, free: 12.92 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03949/2.624, allocations: 14.9 MB / 0.8287 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/2.624, allocations: 4.312 kB / 0.8287 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003995/2.628, allocations: 452.4 kB / 0.8291 GB, free: 6.727 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008439/2.637, allocations: 2.176 MB / 0.8313 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005706/2.637, allocations: 36.09 kB / 0.8313 GB, free: 6.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05378/2.691, allocations: 33.28 MB / 0.8638 GB, free: 8.023 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/2.691, allocations: 13 kB / 0.8638 GB, free: 8.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3526/3.044, allocations: 12.02 MB / 0.8755 GB, free: 88.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004814/3.049, allocations: 1.12 MB / 0.8766 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/3.05, allocations: 23.77 kB / 0.8767 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004817/3.055, allocations: 191 kB / 0.8768 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001632/3.057, allocations: 429.2 kB / 0.8773 GB, free: 88.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000483/3.057, allocations: 118.5 kB / 0.8774 GB, free: 88.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007216/3.065, allocations: 2.821 MB / 0.8801 GB, free: 88.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.22e-07/3.065, allocations: 1.219 kB / 0.8801 GB, free: 88.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01039/3.075, allocations: 1.678 MB / 0.8818 GB, free: 88.38 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.02661/3.102, allocations: 12.92 MB / 0.8944 GB, free: 85.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01448/3.116, allocations: 7.282 MB / 0.9015 GB, free: 84.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/3.116, allocations: 0 / 0.9015 GB, free: 84.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0119/3.128, allocations: 5.335 MB / 0.9067 GB, free: 82.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009574/3.138, allocations: 1.168 MB / 0.9078 GB, free: 82.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04887/3.187, allocations: 17.34 MB / 0.9248 GB, free: 79.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0115/3.198, allocations: 6.384 MB / 0.931 GB, free: 78.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008462/3.207, allocations: 3.909 MB / 0.9348 GB, free: 78.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.713e-06/3.207, allocations: 0 / 0.9348 GB, free: 78.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.216/11.42, allocations: 0.871 GB / 1.806 GB, free: 57.5 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat