Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.74e-05, allocations: 4 kB / 255.4 MB, free: 2.656 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0734/0.07345, allocations: 44.5 MB / 299.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4174/0.4909, allocations: 156.2 MB / 456.1 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.4912, allocations: 101.4 kB / 456.2 MB, free: 7.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.909/2.4, allocations: 397 MB / 0.8332 GB, free: 25.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.875e-06/2.4, allocations: 0 / 0.8332 GB, free: 25.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008515/2.401, allocations: 301.2 kB / 0.8335 GB, free: 25.2 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.0438/2.445, allocations: 11.31 MB / 0.8446 GB, free: 21.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/2.445, allocations: 16.19 kB / 0.8446 GB, free: 21.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04929/2.494, allocations: 6.416 MB / 0.8508 GB, free: 20.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02749/2.522, allocations: 9.653 MB / 0.8603 GB, free: 19.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00123/2.523, allocations: 0.944 MB / 0.8612 GB, free: 19.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005218/2.528, allocations: 1.234 MB / 0.8624 GB, free: 19.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05708/2.585, allocations: 20.51 MB / 0.8824 GB, free: 18.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005308/2.586, allocations: 25 kB / 0.8825 GB, free: 18.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004225/2.59, allocations: 0.531 MB / 0.883 GB, free: 18.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009776/2.591, allocations: 0.8502 MB / 0.8838 GB, free: 18.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04714/2.638, allocations: 18.47 MB / 0.9018 GB, free: 18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1451/2.784, allocations: 65.9 MB / 0.9662 GB, free: 13.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3762/3.16, allocations: 45.95 MB / 1.011 GB, free: 16.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01682/3.177, allocations: 7.773 MB / 1.019 GB, free: 16.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05067/3.227, allocations: 23.8 MB / 1.042 GB, free: 31.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.226e-05/3.227, allocations: 103.3 kB / 1.042 GB, free: 31.43 MB / 474.7 MB Notification: Performance of pre-optimization done (n=771): time 1.557e-05/3.227, allocations: 5.344 kB / 1.042 GB, free: 31.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=813): time 0.05983/3.287, allocations: 27.03 MB / 1.068 GB, free: 29.23 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/3.287, allocations: 122.8 kB / 1.069 GB, free: 29.16 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007656/3.295, allocations: 3.771 MB / 1.072 GB, free: 28.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001396/3.297, allocations: 135.6 kB / 1.072 GB, free: 28.79 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003119/3.3, allocations: 5.082 MB / 1.077 GB, free: 25.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003318/3.303, allocations: 2.7 MB / 1.08 GB, free: 23.15 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009814/3.304, allocations: 164.6 kB / 1.08 GB, free: 23.02 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007762/3.305, allocations: 0.6752 MB / 1.081 GB, free: 22.55 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01064/3.316, allocations: 5.081 MB / 1.086 GB, free: 20.46 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01188/3.327, allocations: 7.497 MB / 1.093 GB, free: 15.39 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/3.34, allocations: 6.447 MB / 1.099 GB, free: 12.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-05/3.34, allocations: 21.16 kB / 1.099 GB, free: 12.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.03588/3.376, allocations: 15.48 MB / 1.114 GB, free: 6.855 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/3.376, allocations: 41.39 kB / 1.115 GB, free: 6.855 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/3.377, allocations: 75.56 kB / 1.115 GB, free: 6.855 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/3.387, allocations: 4.108 MB / 1.119 GB, free: 5.609 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008571/3.395, allocations: 1.667 MB / 1.12 GB, free: 5.559 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01784/3.413, allocations: 12.19 MB / 1.132 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007492/3.421, allocations: 454.9 kB / 1.133 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001407/3.422, allocations: 394.8 kB / 1.133 GB, free: 13.45 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 814 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001904/3.424, allocations: 0.5927 MB / 1.134 GB, free: 13.05 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001724/3.426, allocations: 0.6033 MB / 1.134 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03173/3.457, allocations: 14.38 MB / 1.148 GB, free: 3.402 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002965/3.458, allocations: 199.1 kB / 1.148 GB, free: 3.234 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/3.458, allocations: 2.75 kB / 1.148 GB, free: 3.234 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001149/3.458, allocations: 33.14 kB / 1.148 GB, free: 3.234 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.369/3.827, allocations: 29.24 MB / 1.177 GB, free: 80.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-05/3.827, allocations: 3.75 kB / 1.177 GB, free: 80.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006348/3.833, allocations: 1.053 MB / 1.178 GB, free: 80.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01053/3.844, allocations: 3.98 MB / 1.182 GB, free: 80.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001467/3.846, allocations: 175.3 kB / 1.182 GB, free: 80.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01558/3.861, allocations: 12.03 MB / 1.194 GB, free: 75.59 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.505e-06/3.861, allocations: 6.75 kB / 1.194 GB, free: 75.59 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04364/3.905, allocations: 21.78 MB / 1.215 GB, free: 74.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005706/3.911, allocations: 1.77 MB / 1.217 GB, free: 74.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002382/3.913, allocations: 125.8 kB / 1.217 GB, free: 74.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005604/3.919, allocations: 329.5 kB / 1.217 GB, free: 74.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002188/3.921, allocations: 0.5764 MB / 1.218 GB, free: 74.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001364/3.922, allocations: 222.6 kB / 1.218 GB, free: 74.15 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006352/3.929, allocations: 2.802 MB / 1.221 GB, free: 73.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.093e-06/3.929, allocations: 3.938 kB / 1.221 GB, free: 73.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01119/3.94, allocations: 2.213 MB / 1.223 GB, free: 73.95 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (551): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002431/3.942, allocations: 0.7982 MB / 1.224 GB, free: 73.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.027/3.969, allocations: 12.83 MB / 1.236 GB, free: 70.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.392e-06/3.969, allocations: 6.031 kB / 1.236 GB, free: 70.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01511/3.985, allocations: 6.688 MB / 1.243 GB, free: 67.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008711/3.993, allocations: 1.271 MB / 1.244 GB, free: 66.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05358/4.047, allocations: 22.1 MB / 1.266 GB, free: 56.82 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01453/4.062, allocations: 8.078 MB / 1.273 GB, free: 50.79 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009242/4.071, allocations: 2.01 MB / 1.275 GB, free: 49.41 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002411/4.073, allocations: 454.3 kB / 1.276 GB, free: 49 MB / 490.7 MB Notification: Performance of SimCode: time 1.826e-06/4.073, allocations: 0 / 1.276 GB, free: 49 MB / 490.7 MB Notification: Performance of Templates: time 0.5802/4.653, allocations: 126.4 MB / 1.399 GB, free: 73.13 MB / 490.7 MB