Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.716e-05/2.722e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.08963, allocations: 50.42 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5308/0.6205, allocations: 131.7 MB / 474.8 MB, free: 11.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.6208, allocations: 99.56 kB / 474.9 MB, free: 11.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6863/1.307, allocations: 124.4 MB / 0.5852 GB, free: 97.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.307, allocations: 3.938 kB / 0.5853 GB, free: 97.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004401/1.308, allocations: 136.3 kB / 0.5854 GB, free: 97.49 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01517/1.323, allocations: 5.122 MB / 0.5904 GB, free: 95.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/1.323, allocations: 15.09 kB / 0.5904 GB, free: 95.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006483/1.329, allocations: 1.005 MB / 0.5914 GB, free: 94.72 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/1.343, allocations: 4.609 MB / 0.5959 GB, free: 92.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000389/1.343, allocations: 396.5 kB / 0.5963 GB, free: 92.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001663/1.345, allocations: 0.5293 MB / 0.5968 GB, free: 92.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01696/1.362, allocations: 6.763 MB / 0.6034 GB, free: 88.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000181/1.362, allocations: 15.84 kB / 0.6034 GB, free: 88.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007918/1.363, allocations: 222.3 kB / 0.6036 GB, free: 88.53 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002339/1.363, allocations: 250.6 kB / 0.6038 GB, free: 88.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/1.377, allocations: 5.347 MB / 0.6091 GB, free: 82.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04232/1.419, allocations: 22.53 MB / 0.6311 GB, free: 60 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008247/1.428, allocations: 8.239 MB / 0.6391 GB, free: 50.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004043/1.432, allocations: 2.101 MB / 0.6412 GB, free: 48.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/1.445, allocations: 6.318 MB / 0.6473 GB, free: 42.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/1.445, allocations: 60.5 kB / 0.6474 GB, free: 42.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 5.664e-06/1.445, allocations: 4 kB / 0.6474 GB, free: 42.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.0252/1.471, allocations: 10.08 MB / 0.6572 GB, free: 32.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/1.471, allocations: 81.34 kB / 0.6573 GB, free: 32.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005137/1.476, allocations: 2.725 MB / 0.66 GB, free: 29.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004357/1.476, allocations: 69.7 kB / 0.6601 GB, free: 29.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/1.478, allocations: 2.493 MB / 0.6625 GB, free: 26.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009512/1.479, allocations: 0.8754 MB / 0.6633 GB, free: 25.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/1.479, allocations: 71.94 kB / 0.6634 GB, free: 25.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000207/1.479, allocations: 436.7 kB / 0.6638 GB, free: 25.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/1.482, allocations: 1.322 MB / 0.6651 GB, free: 24.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003171/1.485, allocations: 2.275 MB / 0.6673 GB, free: 21.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/1.488, allocations: 1.741 MB / 0.669 GB, free: 19.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/1.489, allocations: 8 kB / 0.669 GB, free: 19.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.009657/1.498, allocations: 4.679 MB / 0.6736 GB, free: 14.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/1.498, allocations: 16 kB / 0.6736 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/1.498, allocations: 32 kB / 0.6737 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/1.501, allocations: 0.7158 MB / 0.6744 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003868/1.504, allocations: 0.7566 MB / 0.6751 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/1.516, allocations: 9.759 MB / 0.6846 GB, free: 3.012 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003621/1.519, allocations: 207.7 kB / 0.6848 GB, free: 2.809 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003791/1.52, allocations: 144 kB / 0.685 GB, free: 2.668 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006184/1.52, allocations: 299.9 kB / 0.6853 GB, free: 2.367 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006206/1.521, allocations: 351.6 kB / 0.6856 GB, free: 2.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2788/1.8, allocations: 4.211 MB / 0.6897 GB, free: 86.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.704e-05/1.8, allocations: 25.77 kB / 0.6897 GB, free: 86.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.814e-05/1.8, allocations: 13.88 kB / 0.6897 GB, free: 86.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.286e-05/1.8, allocations: 12.19 kB / 0.6897 GB, free: 86.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/1.824, allocations: 9.192 MB / 0.6987 GB, free: 85.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/1.824, allocations: 4.531 kB / 0.6987 GB, free: 85.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002833/1.827, allocations: 417.8 kB / 0.6991 GB, free: 85.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0039/1.831, allocations: 0.9566 MB / 0.7001 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000434/1.831, allocations: 64.22 kB / 0.7001 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02074/1.852, allocations: 15.95 MB / 0.7157 GB, free: 76.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.464e-06/1.852, allocations: 7.531 kB / 0.7157 GB, free: 76.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.864, allocations: 6.371 MB / 0.7219 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/1.867, allocations: 0.7205 MB / 0.7226 GB, free: 75.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/1.868, allocations: 61.56 kB / 0.7227 GB, free: 75.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.871, allocations: 154.3 kB / 0.7228 GB, free: 75.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005531/1.871, allocations: 193 kB / 0.723 GB, free: 75.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/1.871, allocations: 82.39 kB / 0.7231 GB, free: 75.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004427/1.876, allocations: 2.056 MB / 0.7251 GB, free: 75.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.75e-07/1.876, allocations: 3.062 kB / 0.7251 GB, free: 75.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00516/1.881, allocations: 1.09 MB / 0.7262 GB, free: 75.03 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001174/1.882, allocations: 0.6272 MB / 0.7268 GB, free: 74.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008496/1.891, allocations: 4.057 MB / 0.7307 GB, free: 73.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.891, allocations: 3.438 kB / 0.7308 GB, free: 73.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005472/1.896, allocations: 2.706 MB / 0.7334 GB, free: 71.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004928/1.901, allocations: 0.88 MB / 0.7343 GB, free: 71.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01815/1.919, allocations: 8.228 MB / 0.7423 GB, free: 68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004201/1.924, allocations: 3.53 MB / 0.7457 GB, free: 66.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004021/1.928, allocations: 0.803 MB / 0.7465 GB, free: 66.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/1.929, allocations: 238.6 kB / 0.7467 GB, free: 66.59 MB / 442.7 MB Notification: Performance of SimCode: time 1.641e-06/1.929, allocations: 0 / 0.7467 GB, free: 66.59 MB / 442.7 MB Notification: Performance of Templates: time 0.1292/2.058, allocations: 54.35 MB / 0.7998 GB, free: 36.09 MB / 442.7 MB