Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.643/1.643, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.621e-05/4.638e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2531, allocations: 38.77 MB / 263.9 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1795/0.4327, allocations: 102.4 MB / 366.3 MB, free: 3.215 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.4331, allocations: 83.95 kB / 366.4 MB, free: 3.133 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.058/1.491, allocations: 160.2 MB / 0.5142 GB, free: 27.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.491, allocations: 3.281 kB / 0.5142 GB, free: 27.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006488/1.492, allocations: 173 kB / 0.5144 GB, free: 27.38 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.02675/1.519, allocations: 6.432 MB / 0.5207 GB, free: 25.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/1.519, allocations: 15.06 kB / 0.5207 GB, free: 25.33 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003479/1.522, allocations: 0.9383 MB / 0.5216 GB, free: 25.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007704/1.53, allocations: 1.103 MB / 0.5227 GB, free: 24.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01533/1.546, allocations: 4.902 MB / 0.5275 GB, free: 24.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006132/1.546, allocations: 0.5048 MB / 0.5279 GB, free: 24.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002648/1.549, allocations: 0.665 MB / 0.5286 GB, free: 24.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02797/1.577, allocations: 8.697 MB / 0.5371 GB, free: 23.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003914/1.577, allocations: 16.86 kB / 0.5371 GB, free: 23.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002041/1.579, allocations: 293.2 kB / 0.5374 GB, free: 23.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003582/1.58, allocations: 310.9 kB / 0.5377 GB, free: 23.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02112/1.601, allocations: 6.643 MB / 0.5442 GB, free: 23.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0688/1.67, allocations: 27.7 MB / 0.5712 GB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009118/1.679, allocations: 5.383 MB / 0.5765 GB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005874/1.685, allocations: 2.395 MB / 0.5788 GB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003553/1.685, allocations: 33.41 kB / 0.5788 GB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/1.685, allocations: 65.23 kB / 0.5789 GB, free: 7.758 MB / 346.7 MB Notification: Performance of pre-optimization done (n=268): time 5.801e-06/1.685, allocations: 0 / 0.5789 GB, free: 7.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=320): time 0.0337/1.719, allocations: 10.37 MB / 0.589 GB, free: 2.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/1.719, allocations: 86.64 kB / 0.5891 GB, free: 2.773 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008059/1.727, allocations: 3.052 MB / 0.5921 GB, free: 1.598 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006066/1.728, allocations: 77.33 kB / 0.5922 GB, free: 1.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003025/1.731, allocations: 2.992 MB / 0.5951 GB, free: 14.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001738/1.733, allocations: 1.095 MB / 0.5962 GB, free: 13.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004163/1.733, allocations: 78.95 kB / 0.5962 GB, free: 13.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003453/1.734, allocations: 454.8 kB / 0.5967 GB, free: 13.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004652/1.738, allocations: 1.512 MB / 0.5981 GB, free: 12.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005823/1.744, allocations: 2.549 MB / 0.6006 GB, free: 9.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005967/1.75, allocations: 2.03 MB / 0.6026 GB, free: 7.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.49e-05/1.75, allocations: 12 kB / 0.6026 GB, free: 7.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.01757/1.768, allocations: 5.531 MB / 0.608 GB, free: 2.637 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.786e-05/1.768, allocations: 20 kB / 0.6081 GB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.707e-05/1.768, allocations: 32 kB / 0.6081 GB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004453/1.773, allocations: 0.968 MB / 0.609 GB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00623/1.779, allocations: 0.782 MB / 0.6098 GB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02589/1.805, allocations: 15.09 MB / 0.6245 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00502/1.81, allocations: 167.5 kB / 0.6247 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007024/1.811, allocations: 159.2 kB / 0.6248 GB, free: 2.047 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (407): * Single equations (assignments): 399 * 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%) 20,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 20,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008948/1.811, allocations: 323.9 kB / 0.6252 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/1.813, allocations: 407.1 kB / 0.6255 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2945/2.107, allocations: 4.985 MB / 0.6304 GB, free: 51.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.733e-05/2.107, allocations: 39.42 kB / 0.6304 GB, free: 51.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.603e-05/2.107, allocations: 13.91 kB / 0.6305 GB, free: 51.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.022e-05/2.107, allocations: 17.58 kB / 0.6305 GB, free: 51.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03496/2.142, allocations: 13.17 MB / 0.6433 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.756e-05/2.143, allocations: 6.406 kB / 0.6433 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003872/2.146, allocations: 464.7 kB / 0.6438 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00469/2.151, allocations: 1.106 MB / 0.6449 GB, free: 50.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005836/2.152, allocations: 74.86 kB / 0.6449 GB, free: 50.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02692/2.179, allocations: 18.21 MB / 0.6627 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.23e-05/2.179, allocations: 14.88 kB / 0.6627 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01695/2.196, allocations: 8.012 MB / 0.6706 GB, free: 39.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003072/2.199, allocations: 0.8438 MB / 0.6714 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/2.2, allocations: 73.14 kB / 0.6715 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004205/2.204, allocations: 154 kB / 0.6716 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009509/2.205, allocations: 251.1 kB / 0.6718 GB, free: 39.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003221/2.206, allocations: 96.2 kB / 0.6719 GB, free: 39.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005899/2.212, allocations: 2.316 MB / 0.6742 GB, free: 39.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.292e-06/2.212, allocations: 0 / 0.6742 GB, free: 39.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006987/2.219, allocations: 1.268 MB / 0.6754 GB, free: 39.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.port_n.Phi.re,smpm3.stator.port_n.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 233 * 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.0191/2.238, allocations: 11.14 MB / 0.6863 GB, free: 34.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0122/2.25, allocations: 5.159 MB / 0.6913 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/2.25, allocations: 0 / 0.6913 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008622/2.259, allocations: 3.319 MB / 0.6946 GB, free: 30.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007951/2.267, allocations: 1.041 MB / 0.6956 GB, free: 30.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03501/2.302, allocations: 12.37 MB / 0.7077 GB, free: 25.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007541/2.309, allocations: 4.461 MB / 0.712 GB, free: 23.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004854/2.314, allocations: 0.7863 MB / 0.7128 GB, free: 23.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005359/2.32, allocations: 2.558 MB / 0.7153 GB, free: 21.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.863e-06/2.32, allocations: 0 / 0.7153 GB, free: 21.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5435/2.863, allocations: 111.4 MB / 0.8241 GB, free: 57.64 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002637/2.864, allocations: 212.2 kB / 0.8243 GB, free: 57.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.639/9.503, allocations: 5.797 kB / 0.8243 GB, free: 57.41 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat