Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.611e-05, allocations: 8 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3131, allocations: 38.76 MB / 263.9 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2113/0.5245, allocations: 99.35 MB / 363.2 MB, free: 6.254 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003212/0.5249, allocations: 83.95 kB / 363.3 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.152/1.677, allocations: 175.5 MB / 0.5262 GB, free: 45.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.677, allocations: 0 / 0.5262 GB, free: 45.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0009392/1.678, allocations: 188.7 kB / 0.5264 GB, free: 45.14 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: 2059 * Number of variables: 2059 Notification: Performance of Generate backend data structure: time 0.03433/1.713, allocations: 7.519 MB / 0.5337 GB, free: 42.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/1.713, allocations: 11.22 kB / 0.5337 GB, free: 42.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004843/1.718, allocations: 1.06 MB / 0.5348 GB, free: 42.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009694/1.727, allocations: 1.303 MB / 0.536 GB, free: 42.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02049/1.748, allocations: 5.803 MB / 0.5417 GB, free: 41.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00085/1.749, allocations: 0.5744 MB / 0.5423 GB, free: 41.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003543/1.752, allocations: 0.7689 MB / 0.543 GB, free: 41.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0356/1.788, allocations: 10.22 MB / 0.553 GB, free: 40.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005148/1.789, allocations: 7.406 kB / 0.553 GB, free: 40.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002999/1.792, allocations: 325 kB / 0.5533 GB, free: 40.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000425/1.792, allocations: 341.7 kB / 0.5536 GB, free: 40.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/1.82, allocations: 8.102 MB / 0.5615 GB, free: 38.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08729/1.907, allocations: 32.72 MB / 0.5935 GB, free: 21.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01364/1.921, allocations: 8.033 MB / 0.6013 GB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0102/1.931, allocations: 3.51 MB / 0.6048 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004889/1.931, allocations: 45.61 kB / 0.6048 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.176e-05/1.932, allocations: 80.98 kB / 0.6049 GB, free: 10.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=351): time 7.144e-06/1.932, allocations: 0 / 0.6049 GB, free: 10.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=415): time 0.05349/1.985, allocations: 14.21 MB / 0.6188 GB, free: 14.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.877e-05/1.985, allocations: 98.67 kB / 0.6189 GB, free: 13.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.012/1.997, allocations: 3.755 MB / 0.6225 GB, free: 10.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009324/1.998, allocations: 97.7 kB / 0.6226 GB, free: 10.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003826/2.002, allocations: 3.085 MB / 0.6256 GB, free: 7.617 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002489/2.005, allocations: 1.385 MB / 0.627 GB, free: 6.367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005306/2.005, allocations: 88 kB / 0.6271 GB, free: 6.281 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004539/2.006, allocations: 489 kB / 0.6275 GB, free: 5.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00631/2.012, allocations: 2.051 MB / 0.6295 GB, free: 3.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007754/2.02, allocations: 2.973 MB / 0.6324 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3033/2.323, allocations: 3.013 MB / 0.6354 GB, free: 56.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-05/2.323, allocations: 8 kB / 0.6354 GB, free: 56.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=554) (initialization): time 0.01993/2.343, allocations: 6.708 MB / 0.6419 GB, free: 55.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.05e-05/2.343, allocations: 19.22 kB / 0.642 GB, free: 55.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.697e-05/2.343, allocations: 25.84 kB / 0.642 GB, free: 55.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005817/2.349, allocations: 1.468 MB / 0.6434 GB, free: 55.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00667/2.356, allocations: 0.83 MB / 0.6442 GB, free: 55.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03385/2.39, allocations: 20.17 MB / 0.6639 GB, free: 47.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006035/2.396, allocations: 177.4 kB / 0.6641 GB, free: 47.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001046/2.397, allocations: 163.6 kB / 0.6642 GB, free: 47.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 120 * Number of states: 0 () * Number of discrete variables: 8 (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 (437): * Single equations (assignments): 429 * 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: 6 * 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: 6 {(4,100.0%) 29,(1,100.0%) 5,(1,100.0%) 1,(6,77.8%) 43,(1,100.0%) 1,(4,56.2%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001403/2.398, allocations: 359.2 kB / 0.6646 GB, free: 47.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/2.4, allocations: 483.5 kB / 0.6651 GB, free: 47.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02022/2.42, allocations: 7.014 MB / 0.6719 GB, free: 46.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.535e-05/2.42, allocations: 41.28 kB / 0.6719 GB, free: 46.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.554e-05/2.42, allocations: 25.88 kB / 0.672 GB, free: 46.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001081/2.421, allocations: 19.45 kB / 0.672 GB, free: 46.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04861/2.469, allocations: 17.4 MB / 0.689 GB, free: 42.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.431e-05/2.469, allocations: 10.44 kB / 0.689 GB, free: 42.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004165/2.473, allocations: 487.3 kB / 0.6895 GB, free: 42.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007247/2.481, allocations: 1.799 MB / 0.6912 GB, free: 42.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008899/2.482, allocations: 103.2 kB / 0.6913 GB, free: 42.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04487/2.527, allocations: 28.04 MB / 0.7187 GB, free: 22.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/2.527, allocations: 15.84 kB / 0.7187 GB, free: 22.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02521/2.552, allocations: 11.11 MB / 0.7295 GB, free: 16.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004121/2.556, allocations: 1.084 MB / 0.7306 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002026/2.558, allocations: 99.83 kB / 0.7307 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005453/2.564, allocations: 190 kB / 0.7309 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001606/2.565, allocations: 375.8 kB / 0.7312 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007064/2.566, allocations: 114.2 kB / 0.7314 GB, free: 15.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007812/2.574, allocations: 2.887 MB / 0.7342 GB, free: 14.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.884e-06/2.574, allocations: 0 / 0.7342 GB, free: 14.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009296/2.583, allocations: 1.562 MB / 0.7357 GB, free: 13.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcM.rotorCage.strayInductor.inductor[4].i,aimcM.rotorCage.strayInductor.inductor[5].i,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.port_n.Phi.re,aimc3.stator.port_n.Phi.im,aimc3.stator.strayReluctance.Phi.re,aimc3.stator.strayReluctance.Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (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 (261): * Single equations (assignments): 252 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,77.8%) 42,(6,72.2%) 45,(1,100.0%) 1,(1,100.0%) 8,(4,100.0%) 28,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0272/2.61, allocations: 14.12 MB / 0.7495 GB, free: 1.523 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01858/2.629, allocations: 6.523 MB / 0.7559 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.446e-05/2.629, allocations: 6.391 kB / 0.7559 GB, free: 11.53 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01456/2.644, allocations: 4.949 MB / 0.7607 GB, free: 7.035 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01013/2.654, allocations: 1.201 MB / 0.7619 GB, free: 6.137 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05562/2.71, allocations: 15.22 MB / 0.7767 GB, free: 8.797 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01258/2.722, allocations: 5.26 MB / 0.7819 GB, free: 4.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008662/2.731, allocations: 3.015 MB / 0.7848 GB, free: 2.059 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/2.731, allocations: 0 / 0.7848 GB, free: 2.059 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.084/9.815, allocations: 474.7 MB / 1.248 GB, free: 79.58 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat