Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.676e-05, allocations: 4 kB / 292.2 MB, free: 8.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08697/0.08702, allocations: 50.41 MB / 342.6 MB, free: 5.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5105/0.5976, allocations: 157.3 MB / 499.9 MB, free: 1.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.598, allocations: 102 kB / 500 MB, free: 1.918 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.548/2.146, allocations: 375 MB / 0.8545 GB, free: 9.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.452e-06/2.146, allocations: 0 / 0.8545 GB, free: 9.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008641/2.147, allocations: 287.6 kB / 0.8547 GB, free: 9.449 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.6595/2.807, allocations: 10.73 MB / 0.8652 GB, free: 28.61 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/2.807, allocations: 9.281 kB / 0.8652 GB, free: 28.61 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03435/2.841, allocations: 4.399 MB / 0.8695 GB, free: 28.01 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02947/2.871, allocations: 9.321 MB / 0.8786 GB, free: 27.49 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001102/2.872, allocations: 0.877 MB / 0.8795 GB, free: 27.46 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004826/2.877, allocations: 1.149 MB / 0.8806 GB, free: 27.45 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05178/2.929, allocations: 18.06 MB / 0.8982 GB, free: 26.07 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005443/2.929, allocations: 24.12 kB / 0.8983 GB, free: 26.06 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003847/2.933, allocations: 0.4996 MB / 0.8988 GB, free: 26.06 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009958/2.934, allocations: 0.813 MB / 0.8995 GB, free: 26.03 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04069/2.975, allocations: 15.08 MB / 0.9143 GB, free: 25.98 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1206/3.096, allocations: 59.12 MB / 0.972 GB, free: 1.195 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03468/3.13, allocations: 32.63 MB / 1.004 GB, free: 2.855 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007584/3.138, allocations: 3.607 MB / 1.007 GB, free: 1.484 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02515/3.163, allocations: 8.647 MB / 1.016 GB, free: 13.93 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.674e-05/3.163, allocations: 69.19 kB / 1.016 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=350): time 7.365e-06/3.163, allocations: 0 / 1.016 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of matching and sorting (n=390): time 0.03583/3.199, allocations: 13.53 MB / 1.029 GB, free: 3.758 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/3.199, allocations: 94.47 kB / 1.029 GB, free: 3.652 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009918/3.209, allocations: 4.277 MB / 1.033 GB, free: 15.85 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007022/3.21, allocations: 85.7 kB / 1.033 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005438/3.215, allocations: 5.461 MB / 1.039 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/3.217, allocations: 1.352 MB / 1.04 GB, free: 9.707 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006667/3.218, allocations: 136 kB / 1.04 GB, free: 9.574 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005805/3.219, allocations: 0.5758 MB / 1.041 GB, free: 9.074 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006382/3.225, allocations: 2.783 MB / 1.044 GB, free: 6.57 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3364/3.562, allocations: 5.765 MB / 1.049 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009308/3.571, allocations: 4.154 MB / 1.053 GB, free: 84.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001814/3.571, allocations: 29.44 kB / 1.053 GB, free: 84.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02443/3.596, allocations: 9.35 MB / 1.062 GB, free: 84.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/3.596, allocations: 48.84 kB / 1.062 GB, free: 84.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002087/3.596, allocations: 107 kB / 1.063 GB, free: 84.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003431/3.599, allocations: 0.9356 MB / 1.063 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008387/3.608, allocations: 1.592 MB / 1.065 GB, free: 84.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/3.622, allocations: 9.384 MB / 1.074 GB, free: 80.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006675/3.629, allocations: 411 kB / 1.075 GB, free: 80.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/3.63, allocations: 358.1 kB / 1.075 GB, free: 80.79 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00127/3.631, allocations: 0.5558 MB / 1.075 GB, free: 80.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/3.633, allocations: 0.5084 MB / 1.076 GB, free: 80.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01354/3.646, allocations: 6.29 MB / 1.082 GB, free: 80.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.645e-05/3.646, allocations: 43.62 kB / 1.082 GB, free: 80.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.1e-05/3.646, allocations: 7.359 kB / 1.082 GB, free: 80.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.249e-05/3.646, allocations: 25.39 kB / 1.082 GB, free: 80.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04578/3.692, allocations: 15.41 MB / 1.097 GB, free: 79.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.553e-05/3.692, allocations: 3.125 kB / 1.097 GB, free: 79.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008665/3.701, allocations: 0.7401 MB / 1.098 GB, free: 79.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005238/3.706, allocations: 0.774 MB / 1.099 GB, free: 79.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007072/3.707, allocations: 83.78 kB / 1.099 GB, free: 79.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02044/3.727, allocations: 8.559 MB / 1.107 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/3.728, allocations: 6.656 kB / 1.107 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03008/3.758, allocations: 9.507 MB / 1.116 GB, free: 74.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005005/3.763, allocations: 1.038 MB / 1.117 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002382/3.765, allocations: 73.81 kB / 1.117 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006704/3.772, allocations: 231.4 kB / 1.118 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001126/3.773, allocations: 262.4 kB / 1.118 GB, free: 74.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006531/3.774, allocations: 114 kB / 1.118 GB, free: 74.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01076/3.785, allocations: 3.167 MB / 1.121 GB, free: 74.14 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-06/3.785, allocations: 4 kB / 1.121 GB, free: 74.13 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01541/3.8, allocations: 1.918 MB / 1.123 GB, free: 74.13 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (368): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002204/3.802, allocations: 0.7348 MB / 1.124 GB, free: 73.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02499/3.827, allocations: 7.236 MB / 1.131 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/3.827, allocations: 0 / 1.131 GB, free: 73.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007024/3.834, allocations: 3.396 MB / 1.134 GB, free: 72.68 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006828/3.841, allocations: 1.16 MB / 1.135 GB, free: 72.63 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04086/3.882, allocations: 16.61 MB / 1.152 GB, free: 66.54 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0139/3.896, allocations: 7.509 MB / 1.159 GB, free: 63.94 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009215/3.905, allocations: 2.148 MB / 1.161 GB, free: 63.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001823/3.907, allocations: 404 kB / 1.161 GB, free: 63.72 MB / 0.5105 GB Notification: Performance of SimCode: time 1.848e-06/3.907, allocations: 0 / 1.161 GB, free: 63.72 MB / 0.5105 GB Notification: Performance of Templates: time 0.5102/4.417, allocations: 74.06 MB / 1.234 GB, free: 86.47 MB / 0.5105 GB