Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.287/2.287, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.696e-05/4.702e-05, allocations: 4.125 kB / 249.8 MB, free: 5.215 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.09881, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.5896, allocations: 109.4 MB / 403.7 MB, free: 12.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003394/0.59, allocations: 83.27 kB / 403.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.364/1.954, allocations: 218.2 MB / 0.6074 GB, free: 30.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.037e-06/1.954, allocations: 0 / 0.6074 GB, free: 30.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001939/1.956, allocations: 249.4 kB / 0.6076 GB, free: 29.98 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.05455/2.011, allocations: 9.578 MB / 0.617 GB, free: 20.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.121e-05/2.011, allocations: 12.03 kB / 0.617 GB, free: 20.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01953/2.031, allocations: 2.118 MB / 0.6191 GB, free: 18.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03679/2.067, allocations: 8.911 MB / 0.6278 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008451/2.068, allocations: 328 kB / 0.6281 GB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004979/2.073, allocations: 0.5857 MB / 0.6287 GB, free: 8.398 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.8116/2.885, allocations: 10.8 MB / 0.6392 GB, free: 28.43 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06514/2.95, allocations: 12.31 MB / 0.6512 GB, free: 27.35 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007286/2.951, allocations: 3.688 kB / 0.6512 GB, free: 27.35 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004653/2.956, allocations: 10.75 kB / 0.6512 GB, free: 27.35 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009128/2.957, allocations: 456 kB / 0.6517 GB, free: 27.32 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1346/3.091, allocations: 42.17 MB / 0.6929 GB, free: 19.42 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03999/3.131, allocations: 24.27 MB / 0.7166 GB, free: 14.82 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0128/3.144, allocations: 4.717 MB / 0.7212 GB, free: 13.08 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04076/3.185, allocations: 11.74 MB / 0.7326 GB, free: 7.59 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.353e-05/3.185, allocations: 83.16 kB / 0.7327 GB, free: 7.516 MB / 410.8 MB Notification: Performance of pre-optimization done (n=419): time 9.378e-06/3.185, allocations: 2.141 kB / 0.7327 GB, free: 7.516 MB / 410.8 MB Notification: Performance of matching and sorting (n=425): time 0.04897/3.234, allocations: 13.99 MB / 0.7464 GB, free: 1.297 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/3.234, allocations: 99.97 kB / 0.7465 GB, free: 1.23 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01195/3.246, allocations: 3.777 MB / 0.7501 GB, free: 15.78 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001096/3.247, allocations: 25.7 kB / 0.7502 GB, free: 15.75 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006913/3.254, allocations: 4.44 MB / 0.7545 GB, free: 12.4 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002977/3.257, allocations: 1.351 MB / 0.7558 GB, free: 11.33 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006475/3.258, allocations: 0 / 0.7558 GB, free: 11.33 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0006748/3.259, allocations: 0.4896 MB / 0.7563 GB, free: 10.94 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007434/3.266, allocations: 2.166 MB / 0.7584 GB, free: 10.04 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008852/3.275, allocations: 3.29 MB / 0.7616 GB, free: 7.801 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/3.285, allocations: 3.004 MB / 0.7646 GB, free: 6.668 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.74e-05/3.285, allocations: 12.06 kB / 0.7646 GB, free: 6.668 MB / 426.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02648/3.312, allocations: 7.549 MB / 0.772 GB, free: 3.75 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.491e-05/3.312, allocations: 23 kB / 0.772 GB, free: 3.75 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.729e-05/3.312, allocations: 33.62 kB / 0.772 GB, free: 3.75 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006703/3.319, allocations: 1.422 MB / 0.7734 GB, free: 3.25 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009565/3.329, allocations: 0.9849 MB / 0.7744 GB, free: 2.512 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0473/3.376, allocations: 25.67 MB / 0.7994 GB, free: 9.156 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007064/3.383, allocations: 138 kB / 0.7996 GB, free: 9.055 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/3.384, allocations: 191.2 kB / 0.7997 GB, free: 8.871 MB / 458.8 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.00142/3.386, allocations: 242.5 kB / 0.8 GB, free: 8.633 MB / 458.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0255/3.411, allocations: 7.119 MB / 0.8069 GB, free: 2.367 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002604/3.414, allocations: 0.516 MB / 0.8074 GB, free: 1.848 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4408/3.855, allocations: 7.727 MB / 0.815 GB, free: 83.93 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.484e-05/3.855, allocations: 39.69 kB / 0.815 GB, free: 83.93 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.914e-05/3.855, allocations: 30.62 kB / 0.815 GB, free: 83.93 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001154/3.855, allocations: 22.77 kB / 0.8151 GB, free: 83.93 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05144/3.907, allocations: 14.89 MB / 0.8296 GB, free: 82.79 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.505e-05/3.907, allocations: 4.375 kB / 0.8296 GB, free: 82.79 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005022/3.912, allocations: 453.2 kB / 0.83 GB, free: 82.79 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01031/3.922, allocations: 2.171 MB / 0.8322 GB, free: 82.68 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001041/3.923, allocations: 35.53 kB / 0.8322 GB, free: 82.68 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05857/3.982, allocations: 33.29 MB / 0.8647 GB, free: 66.69 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/3.982, allocations: 14.48 kB / 0.8647 GB, free: 66.69 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03676/4.019, allocations: 11.26 MB / 0.8757 GB, free: 65.17 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005098/4.024, allocations: 1.122 MB / 0.8768 GB, free: 65.07 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002702/4.027, allocations: 18.81 kB / 0.8768 GB, free: 65.07 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006818/4.033, allocations: 191.9 kB / 0.877 GB, free: 65.07 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002406/4.036, allocations: 437.9 kB / 0.8774 GB, free: 65.07 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001106/4.037, allocations: 114.7 kB / 0.8775 GB, free: 65.07 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009223/4.046, allocations: 2.826 MB / 0.8803 GB, free: 64.89 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.252e-06/4.046, allocations: 0 / 0.8803 GB, free: 64.89 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01265/4.059, allocations: 1.682 MB / 0.8819 GB, free: 64.89 MB / 458.8 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.03538/4.094, allocations: 12.91 MB / 0.8945 GB, free: 59.41 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02042/4.115, allocations: 7.287 MB / 0.9017 GB, free: 55.69 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/4.115, allocations: 0 / 0.9017 GB, free: 55.69 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02046/4.135, allocations: 5.346 MB / 0.9069 GB, free: 52.72 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01585/4.151, allocations: 1.178 MB / 0.908 GB, free: 52.46 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08652/4.238, allocations: 17.58 MB / 0.9252 GB, free: 45.86 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01561/4.254, allocations: 6.548 MB / 0.9316 GB, free: 42.29 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.009122/4.263, allocations: 1.18 MB / 0.9327 GB, free: 41.48 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01029/4.273, allocations: 3.878 MB / 0.9365 GB, free: 37.86 MB / 458.8 MB Notification: Performance of SimCode: time 1.813e-06/4.273, allocations: 0 / 0.9365 GB, free: 37.86 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8779/5.151, allocations: 141.3 MB / 1.075 GB, free: 43.41 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002713/5.152, allocations: 176.2 kB / 1.075 GB, free: 43.22 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.584/14.74, allocations: 4.031 kB / 1.075 GB, free: 43.21 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat