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.695/1.695, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.566e-05/3.599e-05, allocations: 7.984 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2641, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1789/0.4431, allocations: 101.7 MB / 365.6 MB, free: 3.875 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.4435, allocations: 79.95 kB / 365.7 MB, free: 3.797 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.264/1.707, allocations: 210.4 MB / 0.5626 GB, free: 41.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.646e-06/1.707, allocations: 3.438 kB / 0.5626 GB, free: 41.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.001415/1.709, allocations: 235.3 kB / 0.5628 GB, free: 41.73 MB / 362.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.05411/1.763, allocations: 9.22 MB / 0.5718 GB, free: 38.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/1.763, allocations: 13.98 kB / 0.5718 GB, free: 38.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007367/1.77, allocations: 1.284 MB / 0.5731 GB, free: 38.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01554/1.786, allocations: 1.536 MB / 0.5746 GB, free: 37.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03547/1.822, allocations: 7.541 MB / 0.5819 GB, free: 35.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/1.823, allocations: 0.7013 MB / 0.5826 GB, free: 35.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004267/1.827, allocations: 0.9265 MB / 0.5835 GB, free: 35.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04294/1.87, allocations: 12.62 MB / 0.5959 GB, free: 26.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005406/1.871, allocations: 15 kB / 0.5959 GB, free: 26.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003682/1.874, allocations: 407.1 kB / 0.5963 GB, free: 25.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004169/1.875, allocations: 405.7 kB / 0.5966 GB, free: 25.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03224/1.907, allocations: 9.983 MB / 0.6064 GB, free: 16.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4243/2.331, allocations: 40.57 MB / 0.646 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01544/2.347, allocations: 8.515 MB / 0.6543 GB, free: 37.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01062/2.357, allocations: 4.233 MB / 0.6585 GB, free: 37.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00052/2.358, allocations: 49.53 kB / 0.6585 GB, free: 37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.411e-05/2.358, allocations: 83.17 kB / 0.6586 GB, free: 36.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=431): time 8.045e-06/2.358, allocations: 0 / 0.6586 GB, free: 36.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=439): time 0.04053/2.399, allocations: 13.83 MB / 0.6721 GB, free: 34.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/2.399, allocations: 95.48 kB / 0.6722 GB, free: 34.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01193/2.411, allocations: 4.604 MB / 0.6767 GB, free: 34.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001051/2.412, allocations: 96.48 kB / 0.6768 GB, free: 34.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003521/2.415, allocations: 3.764 MB / 0.6805 GB, free: 33.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002277/2.418, allocations: 1.455 MB / 0.6819 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004993/2.418, allocations: 93.69 kB / 0.682 GB, free: 32.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003329/2.419, allocations: 500 kB / 0.6824 GB, free: 31.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005662/2.424, allocations: 2.223 MB / 0.6846 GB, free: 31.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006899/2.431, allocations: 3.251 MB / 0.6878 GB, free: 30.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007267/2.439, allocations: 2.76 MB / 0.6905 GB, free: 30.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.221e-05/2.439, allocations: 7.562 kB / 0.6905 GB, free: 30.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02017/2.459, allocations: 7.21 MB / 0.6975 GB, free: 29.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/2.459, allocations: 19.94 kB / 0.6975 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.278e-05/2.459, allocations: 28.22 kB / 0.6976 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006007/2.465, allocations: 1.507 MB / 0.699 GB, free: 29.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007942/2.473, allocations: 0.9654 MB / 0.7 GB, free: 29.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03272/2.506, allocations: 27.06 MB / 0.7264 GB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006921/2.513, allocations: 216.5 kB / 0.7266 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001508/2.514, allocations: 172.9 kB / 0.7268 GB, free: 8.535 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.001939/2.516, allocations: 393.2 kB / 0.7272 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00183/2.518, allocations: 0.5737 MB / 0.7277 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02227/2.54, allocations: 7.656 MB / 0.7352 GB, free: 20.69 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.74e-05/2.541, allocations: 42.78 kB / 0.7352 GB, free: 20.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-05/2.541, allocations: 32.41 kB / 0.7353 GB, free: 20.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001136/2.541, allocations: 18.05 kB / 0.7353 GB, free: 20.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0516/2.592, allocations: 17.62 MB / 0.7525 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.001e-05/2.593, allocations: 13.91 kB / 0.7525 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004247/2.597, allocations: 459.3 kB / 0.7529 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009723/2.607, allocations: 2.252 MB / 0.7551 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001006/2.608, allocations: 92.83 kB / 0.7552 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3819/2.99, allocations: 34.76 MB / 0.7892 GB, free: 69.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/2.99, allocations: 11.25 kB / 0.7892 GB, free: 69.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02865/3.018, allocations: 12.08 MB / 0.801 GB, free: 67.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004869/3.023, allocations: 1.191 MB / 0.8022 GB, free: 67.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002408/3.026, allocations: 94.59 kB / 0.8022 GB, free: 67.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006521/3.032, allocations: 254.2 kB / 0.8025 GB, free: 67.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002194/3.034, allocations: 439.1 kB / 0.8029 GB, free: 67.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009442/3.035, allocations: 117.6 kB / 0.803 GB, free: 67.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009221/3.045, allocations: 3.531 MB / 0.8065 GB, free: 66.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.162e-06/3.045, allocations: 0 / 0.8065 GB, free: 66.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0106/3.055, allocations: 1.838 MB / 0.8083 GB, free: 66.91 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.02985/3.085, allocations: 14.7 MB / 0.8226 GB, free: 62.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01708/3.102, allocations: 7.38 MB / 0.8298 GB, free: 60.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/3.102, allocations: 4.141 kB / 0.8298 GB, free: 60.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0136/3.116, allocations: 5.723 MB / 0.8354 GB, free: 59.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01242/3.129, allocations: 1.6 MB / 0.837 GB, free: 59.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05749/3.186, allocations: 17.4 MB / 0.854 GB, free: 55.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/3.199, allocations: 6.157 MB / 0.86 GB, free: 53.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008869/3.208, allocations: 3.676 MB / 0.8636 GB, free: 50.2 MB / 410.7 MB Notification: Performance of SimCode: time 2.084e-06/3.208, allocations: 0 / 0.8636 GB, free: 50.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.462/12.67, allocations: 0.8374 GB / 1.701 GB, free: 86.48 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