Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.765/1.765, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.733e-05/2.718e-05, allocations: 4 kB / 258.9 MB, free: 8.023 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2896, allocations: 44.5 MB / 303.4 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.06192/0.3516, allocations: 29.69 MB / 333 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02403/0.3757, allocations: 8.661 MB / 341.7 MB, free: 7.129 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006559/0.3823, allocations: 279.2 kB / 342 MB, free: 6.855 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008023/0.3904, allocations: 1.88 MB / 343.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0144/0.4048, allocations: 3.213 MB / 347.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007539/0.4124, allocations: 1.495 MB / 348.6 MB, free: 252 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02315/0.4355, allocations: 9.209 MB / 357.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04588/0.4815, allocations: 17.36 MB / 375.1 MB, free: 5.594 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008869/0.4904, allocations: 3.901 MB / 379 MB, free: 1.684 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009998/0.5005, allocations: 4.508 MB / 383.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005297/0.5058, allocations: 0.6988 MB / 384.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003159/0.509, allocations: 412 kB / 384.6 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004125/0.5132, allocations: 2.02 MB / 386.7 MB, free: 10.03 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00452/0.5177, allocations: 0.9648 MB / 387.6 MB, free: 9.066 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03206/0.5498, allocations: 22.57 MB / 410.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.5499, allocations: 3.938 kB / 410.2 MB, free: 2.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5499, allocations: 0 / 410.2 MB, free: 2.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006351/0.5506, allocations: 0 / 410.2 MB, free: 2.43 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05281/0.6034, allocations: 12.84 MB / 423 MB, free: 5.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.6034, allocations: 8.031 kB / 423 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5603/1.164, allocations: 7.281 MB / 430.3 MB, free: 83.67 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02075/1.185, allocations: 7.624 MB / 437.9 MB, free: 79.99 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009092/1.185, allocations: 0.9144 MB / 438.9 MB, free: 79.58 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00464/1.19, allocations: 1.212 MB / 440.1 MB, free: 79.18 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05458/1.245, allocations: 19.04 MB / 459.1 MB, free: 67.39 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004701/1.245, allocations: 26.92 kB / 459.1 MB, free: 67.37 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003106/1.248, allocations: 0.4998 MB / 459.6 MB, free: 66.89 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007281/1.249, allocations: 0.6814 MB / 460.3 MB, free: 66.2 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04527/1.294, allocations: 17.6 MB / 477.9 MB, free: 48.59 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1349/1.429, allocations: 63.93 MB / 0.5291 GB, free: 15.5 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05288/1.482, allocations: 38.58 MB / 0.5668 GB, free: 4.156 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03222/1.515, allocations: 12.02 MB / 0.5786 GB, free: 8.129 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.159e-05/1.515, allocations: 85.78 kB / 0.5786 GB, free: 8.035 MB / 442.8 MB Notification: Performance of pre-optimization done (n=413): time 7.735e-06/1.515, allocations: 0 / 0.5786 GB, free: 8.035 MB / 442.8 MB Notification: Performance of matching and sorting (n=423): time 0.3375/1.852, allocations: 20.44 MB / 0.5986 GB, free: 144.2 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/1.852, allocations: 120.8 kB / 0.5987 GB, free: 144.1 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009191/1.862, allocations: 4.589 MB / 0.6032 GB, free: 142.4 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007753/1.862, allocations: 98.52 kB / 0.6033 GB, free: 142.3 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003678/1.866, allocations: 5.481 MB / 0.6086 GB, free: 138.2 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001894/1.868, allocations: 1.469 MB / 0.6101 GB, free: 137.1 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005971/1.869, allocations: 135.8 kB / 0.6102 GB, free: 136.9 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0003795/1.869, allocations: 0.5738 MB / 0.6108 GB, free: 136.5 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00685/1.876, allocations: 2.951 MB / 0.6136 GB, free: 135.4 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008645/1.885, allocations: 5.644 MB / 0.6192 GB, free: 130.8 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009336/1.894, allocations: 4.187 MB / 0.6232 GB, free: 128.9 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/1.894, allocations: 23.62 kB / 0.6233 GB, free: 128.9 MB / 442.8 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.02588/1.92, allocations: 10.07 MB / 0.6331 GB, free: 124.6 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 8e-05/1.92, allocations: 44 kB / 0.6331 GB, free: 124.6 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/1.92, allocations: 92 kB / 0.6332 GB, free: 124.5 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00471/1.925, allocations: 1.137 MB / 0.6343 GB, free: 123.6 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01027/1.935, allocations: 1.538 MB / 0.6358 GB, free: 122.3 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02137/1.957, allocations: 12.74 MB / 0.6483 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007767/1.965, allocations: 371.4 kB / 0.6486 GB, free: 109.9 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.966, allocations: 347 kB / 0.649 GB, free: 109.6 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (810): * Single equations (assignments): 801 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009404/1.975, allocations: 4.27 MB / 0.6531 GB, free: 105.3 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001643/1.977, allocations: 0.5448 MB / 0.6537 GB, free: 104.7 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01896/1.996, allocations: 7.241 MB / 0.6607 GB, free: 97.4 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01028/2.006, allocations: 4.338 MB / 0.665 GB, free: 93.02 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-05/2.006, allocations: 16.12 kB / 0.665 GB, free: 93 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.07e-05/2.006, allocations: 19.92 kB / 0.665 GB, free: 92.98 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03921/2.045, allocations: 17.21 MB / 0.6818 GB, free: 75.65 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.066e-05/2.045, allocations: 8.031 kB / 0.6818 GB, free: 75.64 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005667/2.051, allocations: 0.7021 MB / 0.6825 GB, free: 74.94 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005071/2.056, allocations: 1.17 MB / 0.6837 GB, free: 73.75 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004526/2.057, allocations: 104 kB / 0.6838 GB, free: 73.64 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02477/2.081, allocations: 16.24 MB / 0.6996 GB, free: 56.62 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/2.081, allocations: 8 kB / 0.6996 GB, free: 56.61 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02378/2.105, allocations: 11.14 MB / 0.7105 GB, free: 45.21 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003601/2.109, allocations: 1.142 MB / 0.7116 GB, free: 44.04 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00139/2.11, allocations: 80 kB / 0.7117 GB, free: 43.96 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004403/2.115, allocations: 223.8 kB / 0.7119 GB, free: 43.74 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008369/2.116, allocations: 307.4 kB / 0.7122 GB, free: 43.44 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003957/2.116, allocations: 124 kB / 0.7123 GB, free: 43.32 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.006996/2.123, allocations: 3.421 MB / 0.7157 GB, free: 39.92 MB / 442.8 MB Notification: Performance of sort global known variables: time 5.61e-07/2.123, allocations: 4 kB / 0.7157 GB, free: 39.91 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.009401/2.132, allocations: 1.986 MB / 0.7176 GB, free: 37.93 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (361): * Single equations (assignments): 351 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001086/2.134, allocations: 277.9 kB / 0.7179 GB, free: 37.66 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01764/2.151, allocations: 7.939 MB / 0.7256 GB, free: 29.65 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/2.151, allocations: 4.188 kB / 0.7256 GB, free: 29.65 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009832/2.161, allocations: 4.148 MB / 0.7297 GB, free: 25.42 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009214/2.17, allocations: 1.312 MB / 0.731 GB, free: 24.11 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.333/2.503, allocations: 24.93 MB / 0.7553 GB, free: 132.1 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01354/2.517, allocations: 7.646 MB / 0.7628 GB, free: 131.2 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.01058/2.528, allocations: 2.086 MB / 0.7648 GB, free: 131 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002003/2.53, allocations: 405.7 kB / 0.7652 GB, free: 131 MB / 442.8 MB Notification: Performance of SimCode: time 1.082e-06/2.53, allocations: 0 / 0.7652 GB, free: 131 MB / 442.8 MB Notification: Performance of Templates: time 0.4442/2.974, allocations: 79.15 MB / 0.8425 GB, free: 61.91 MB / 442.8 MB