Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.809/1.809, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.686e-05/2.686e-05, allocations: 4 kB / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2688, allocations: 38.77 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.4422, allocations: 98.66 MB / 357 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.4426, allocations: 83.95 kB / 357.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7902/1.233, allocations: 149 MB / 0.4942 GB, free: 1.098 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.233, allocations: 4 kB / 0.4942 GB, free: 1.094 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006972/1.234, allocations: 171.8 kB / 0.4944 GB, free: 0.9258 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.2785/1.512, allocations: 6.182 MB / 0.5004 GB, free: 27.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/1.512, allocations: 7.25 kB / 0.5004 GB, free: 27.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/1.522, allocations: 1.059 MB / 0.5015 GB, free: 27.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01975/1.542, allocations: 4.694 MB / 0.5061 GB, free: 26.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005378/1.543, allocations: 215.5 kB / 0.5063 GB, free: 26.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002659/1.546, allocations: 397 kB / 0.5066 GB, free: 26.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02496/1.57, allocations: 6.085 MB / 0.5126 GB, free: 26.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/1.595, allocations: 7.459 MB / 0.5199 GB, free: 25.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002862/1.595, allocations: 10.58 kB / 0.5199 GB, free: 25.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001611/1.596, allocations: 3.969 kB / 0.5199 GB, free: 25.82 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003263/1.597, allocations: 289.5 kB / 0.5202 GB, free: 25.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05662/1.653, allocations: 25.24 MB / 0.5448 GB, free: 20.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007105/1.661, allocations: 5.161 MB / 0.5498 GB, free: 18.53 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004452/1.665, allocations: 2.189 MB / 0.552 GB, free: 18.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002202/1.665, allocations: 34.28 kB / 0.552 GB, free: 18.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/1.665, allocations: 66.14 kB / 0.5521 GB, free: 18.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=256): time 5.531e-06/1.665, allocations: 0 / 0.5521 GB, free: 18.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=302): time 0.03142/1.697, allocations: 9.255 MB / 0.5611 GB, free: 14.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/1.697, allocations: 81.91 kB / 0.5612 GB, free: 14.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004717/1.702, allocations: 2.249 MB / 0.5634 GB, free: 13.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005587/1.702, allocations: 29.61 kB / 0.5634 GB, free: 13.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001972/1.704, allocations: 2.86 MB / 0.5662 GB, free: 11.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001201/1.706, allocations: 0.9883 MB / 0.5672 GB, free: 10.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/1.706, allocations: 0 / 0.5672 GB, free: 10.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002174/1.706, allocations: 445.5 kB / 0.5676 GB, free: 10.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/1.709, allocations: 1.377 MB / 0.5689 GB, free: 10.01 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003637/1.713, allocations: 2.326 MB / 0.5712 GB, free: 8.246 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003938/1.717, allocations: 1.851 MB / 0.573 GB, free: 7.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.704e-05/1.717, allocations: 6.906 kB / 0.573 GB, free: 7.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=453) (initialization): time 0.01184/1.729, allocations: 4.852 MB / 0.5778 GB, free: 5.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.448e-05/1.729, allocations: 15.78 kB / 0.5778 GB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.902e-05/1.729, allocations: 31.03 kB / 0.5778 GB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003525/1.732, allocations: 0.9026 MB / 0.5787 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005281/1.738, allocations: 0.7356 MB / 0.5794 GB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/1.758, allocations: 14.19 MB / 0.5933 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/1.762, allocations: 89.98 kB / 0.5933 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004552/1.763, allocations: 143.5 kB / 0.5935 GB, free: 10.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (383): * Single equations (assignments): 375 * 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,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000743/1.763, allocations: 201 kB / 0.5937 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01033/1.774, allocations: 4.104 MB / 0.5977 GB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.775, allocations: 332.8 kB / 0.598 GB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01114/1.786, allocations: 4.345 MB / 0.6022 GB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.617e-05/1.786, allocations: 39.41 kB / 0.6023 GB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.774e-05/1.786, allocations: 15.72 kB / 0.6023 GB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-05/1.786, allocations: 14.06 kB / 0.6023 GB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02939/1.816, allocations: 10.93 MB / 0.613 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-05/1.816, allocations: 8 kB / 0.613 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003623/1.819, allocations: 441 kB / 0.6134 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004547/1.824, allocations: 1.077 MB / 0.6145 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003753/1.824, allocations: 26.84 kB / 0.6145 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0296/1.854, allocations: 17.55 MB / 0.6316 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.659e-05/1.854, allocations: 11.94 kB / 0.6316 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01631/1.87, allocations: 7.185 MB / 0.6387 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002515/1.873, allocations: 0.7287 MB / 0.6394 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007738/1.874, allocations: 20 kB / 0.6394 GB, free: 2.617 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002745/1.876, allocations: 101.2 kB / 0.6395 GB, free: 2.547 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007314/1.877, allocations: 237.2 kB / 0.6397 GB, free: 2.391 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/1.877, allocations: 87.55 kB / 0.6398 GB, free: 2.312 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003711/1.881, allocations: 1.671 MB / 0.6414 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.881, allocations: 0 / 0.6414 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00812/1.889, allocations: 1.175 MB / 0.6426 GB, free: 0 / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.port_n.Phi.re,smr3.stator.port_n.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 214 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2794/2.169, allocations: 9.938 MB / 0.6523 GB, free: 63.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01085/2.18, allocations: 4.683 MB / 0.6569 GB, free: 62.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/2.18, allocations: 3.875 kB / 0.6569 GB, free: 62.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008074/2.188, allocations: 3.085 MB / 0.6599 GB, free: 62.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/2.194, allocations: 0.6746 MB / 0.6605 GB, free: 62.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0355/2.23, allocations: 11.54 MB / 0.6718 GB, free: 59.69 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008328/2.238, allocations: 4.328 MB / 0.676 GB, free: 58.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004584/2.243, allocations: 0.695 MB / 0.6767 GB, free: 58.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007324/2.25, allocations: 2.428 MB / 0.6791 GB, free: 58.72 MB / 394.7 MB Notification: Performance of SimCode: time 1.804e-06/2.25, allocations: 0 / 0.6791 GB, free: 58.72 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2342/2.484, allocations: 87.91 MB / 0.7649 GB, free: 20.38 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/2.485, allocations: 178.1 kB / 0.7651 GB, free: 20.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.355/7.84, allocations: 4 kB / 0.7651 GB, free: 20.18 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat