Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.744/1.744, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.624e-05, allocations: 4 kB / 255.4 MB, free: 2.699 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07617/0.07621, allocations: 44.5 MB / 299.9 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4433, allocations: 124.5 MB / 424.4 MB, free: 7.031 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.4436, allocations: 86.67 kB / 424.5 MB, free: 7.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7144/1.158, allocations: 123.6 MB / 0.5352 GB, free: 58.83 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.686e-06/1.158, allocations: 0 / 0.5352 GB, free: 58.83 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004101/1.158, allocations: 144.5 kB / 0.5354 GB, free: 58.82 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: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.01405/1.173, allocations: 5.075 MB / 0.5403 GB, free: 56.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/1.173, allocations: 7.875 kB / 0.5403 GB, free: 56.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006884/1.179, allocations: 1.007 MB / 0.5413 GB, free: 56.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/1.193, allocations: 4.561 MB / 0.5458 GB, free: 55.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002883/1.193, allocations: 396.8 kB / 0.5461 GB, free: 55.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/1.194, allocations: 0.5257 MB / 0.5467 GB, free: 55.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01467/1.209, allocations: 6.732 MB / 0.5532 GB, free: 55.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001587/1.209, allocations: 10.81 kB / 0.5532 GB, free: 55.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007185/1.21, allocations: 228.6 kB / 0.5535 GB, free: 55.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002333/1.21, allocations: 248.5 kB / 0.5537 GB, free: 55.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/1.223, allocations: 5.321 MB / 0.5589 GB, free: 55.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04181/1.264, allocations: 22.43 MB / 0.5808 GB, free: 45.01 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007943/1.272, allocations: 8.212 MB / 0.5888 GB, free: 38.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003848/1.276, allocations: 2.092 MB / 0.5909 GB, free: 37.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/1.289, allocations: 6.268 MB / 0.597 GB, free: 34.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/1.289, allocations: 63.62 kB / 0.597 GB, free: 34.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 5.89e-06/1.289, allocations: 0 / 0.597 GB, free: 34.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=251): time 0.02578/1.315, allocations: 10.01 MB / 0.6068 GB, free: 29.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/1.315, allocations: 77.41 kB / 0.6069 GB, free: 29.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005077/1.32, allocations: 2.711 MB / 0.6095 GB, free: 27.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000403/1.321, allocations: 65.7 kB / 0.6096 GB, free: 27.37 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/1.322, allocations: 2.476 MB / 0.612 GB, free: 25.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007903/1.323, allocations: 0.8604 MB / 0.6129 GB, free: 24.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/1.323, allocations: 64 kB / 0.6129 GB, free: 24.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/1.324, allocations: 437.5 kB / 0.6133 GB, free: 23.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002502/1.326, allocations: 1.311 MB / 0.6146 GB, free: 22.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002857/1.329, allocations: 2.261 MB / 0.6168 GB, free: 20.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/1.332, allocations: 1.734 MB / 0.6185 GB, free: 18.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.881e-05/1.332, allocations: 8 kB / 0.6185 GB, free: 18.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.009088/1.341, allocations: 4.659 MB / 0.6231 GB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/1.341, allocations: 22.16 kB / 0.6231 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/1.341, allocations: 32 kB / 0.6231 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/1.344, allocations: 0.7254 MB / 0.6238 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/1.347, allocations: 0.7395 MB / 0.6246 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/1.358, allocations: 9.739 MB / 0.6341 GB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003585/1.362, allocations: 195.8 kB / 0.6342 GB, free: 3.562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/1.362, allocations: 147.8 kB / 0.6344 GB, free: 3.422 MB / 394.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 (375): * Single equations (assignments): 369 * 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.0006115/1.363, allocations: 295.9 kB / 0.6347 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006375/1.363, allocations: 350.9 kB / 0.635 GB, free: 2.781 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008906/1.372, allocations: 4.198 MB / 0.6391 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.093e-05/1.372, allocations: 28 kB / 0.6391 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.262e-05/1.372, allocations: 12 kB / 0.6391 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.06e-05/1.372, allocations: 10.88 kB / 0.6392 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02103/1.394, allocations: 9.138 MB / 0.6481 GB, free: 7.527 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/1.394, allocations: 4 kB / 0.6481 GB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00238/1.396, allocations: 400.6 kB / 0.6485 GB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003558/1.4, allocations: 0.9568 MB / 0.6494 GB, free: 6.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002947/1.4, allocations: 63.17 kB / 0.6495 GB, free: 6.355 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2608/1.661, allocations: 15.92 MB / 0.665 GB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.139e-06/1.661, allocations: 5.75 kB / 0.665 GB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/1.673, allocations: 6.327 MB / 0.6712 GB, free: 61.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002493/1.676, allocations: 0.7173 MB / 0.6719 GB, free: 61.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007273/1.677, allocations: 59.25 kB / 0.6719 GB, free: 61.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/1.679, allocations: 151.6 kB / 0.6721 GB, free: 61.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005258/1.679, allocations: 190.7 kB / 0.6723 GB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002917/1.68, allocations: 75.8 kB / 0.6723 GB, free: 61.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004015/1.684, allocations: 2.043 MB / 0.6743 GB, free: 61.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.064e-06/1.684, allocations: 0 / 0.6743 GB, free: 61.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004728/1.688, allocations: 1.085 MB / 0.6754 GB, free: 61.14 MB / 410.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 (194): * Single equations (assignments): 187 * 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.0009726/1.689, allocations: 0.6066 MB / 0.676 GB, free: 61.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007315/1.697, allocations: 4.019 MB / 0.6799 GB, free: 60.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.746e-06/1.697, allocations: 2.625 kB / 0.6799 GB, free: 60.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005389/1.702, allocations: 2.691 MB / 0.6826 GB, free: 59.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004768/1.707, allocations: 0.871 MB / 0.6834 GB, free: 59.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/1.725, allocations: 8.201 MB / 0.6914 GB, free: 57.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004275/1.729, allocations: 3.509 MB / 0.6948 GB, free: 56.73 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003864/1.733, allocations: 0.7964 MB / 0.6956 GB, free: 56.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009203/1.734, allocations: 239.1 kB / 0.6958 GB, free: 56.63 MB / 410.7 MB Notification: Performance of SimCode: time 1.836e-06/1.734, allocations: 0 / 0.6958 GB, free: 56.63 MB / 410.7 MB Notification: Performance of Templates: time 0.1263/1.86, allocations: 53.77 MB / 0.7484 GB, free: 43.96 MB / 410.7 MB