Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.912e-05/2.927e-05, allocations: 7.984 kB / 292.2 MB, free: 8.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 50.4 MB / 342.6 MB, free: 5.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4823/0.5879, allocations: 107.8 MB / 450.4 MB, free: 2.797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.5882, allocations: 83.39 kB / 450.5 MB, free: 2.754 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.22/0.8082, allocations: 58.23 MB / 0.4968 GB, free: 12.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.8083, allocations: 0 / 0.4968 GB, free: 12.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002747/0.8086, allocations: 83.81 kB / 0.4969 GB, free: 12.16 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007801/0.8164, allocations: 2.888 MB / 0.4997 GB, free: 9.211 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.8165, allocations: 12.03 kB / 0.4997 GB, free: 9.199 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001847/0.8183, allocations: 407.5 kB / 0.5001 GB, free: 8.797 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00554/0.8239, allocations: 2.051 MB / 0.5021 GB, free: 6.691 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002488/0.8242, allocations: 209.7 kB / 0.5023 GB, free: 6.484 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008309/0.825, allocations: 287.9 kB / 0.5026 GB, free: 6.203 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008886/0.8339, allocations: 3.713 MB / 0.5062 GB, free: 2.328 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.309e-05/0.834, allocations: 11.91 kB / 0.5062 GB, free: 2.316 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.8345, allocations: 123.9 kB / 0.5063 GB, free: 2.195 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001556/0.8346, allocations: 117.5 kB / 0.5064 GB, free: 2.078 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007392/0.842, allocations: 2.951 MB / 0.5093 GB, free: 15.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02595/0.868, allocations: 11.78 MB / 0.5208 GB, free: 3.027 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2454/1.113, allocations: 3.636 MB / 0.5244 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002928/1.116, allocations: 1.133 MB / 0.5255 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003547/1.117, allocations: 136.7 kB / 0.5256 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/1.117, allocations: 50.38 kB / 0.5257 GB, free: 105.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 5.449e-06/1.117, allocations: 2.719 kB / 0.5257 GB, free: 105.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01764/1.135, allocations: 6.499 MB / 0.532 GB, free: 104.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/1.135, allocations: 70.81 kB / 0.5321 GB, free: 104.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003709/1.138, allocations: 1.784 MB / 0.5338 GB, free: 104.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002659/1.139, allocations: 53.2 kB / 0.5339 GB, free: 104.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/1.14, allocations: 1.354 MB / 0.5352 GB, free: 103.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005481/1.14, allocations: 0.5397 MB / 0.5357 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/1.14, allocations: 37.47 kB / 0.5358 GB, free: 103.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/1.141, allocations: 382.2 kB / 0.5361 GB, free: 103 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/1.142, allocations: 0.8803 MB / 0.537 GB, free: 103 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002104/1.145, allocations: 1.326 MB / 0.5383 GB, free: 102.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/1.147, allocations: 1.113 MB / 0.5394 GB, free: 102.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/1.147, allocations: 7.859 kB / 0.5394 GB, free: 102.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.008459/1.155, allocations: 3.321 MB / 0.5426 GB, free: 102.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/1.155, allocations: 14.59 kB / 0.5426 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.39e-05/1.156, allocations: 13.75 kB / 0.5426 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00437/1.16, allocations: 1.032 MB / 0.5436 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/1.162, allocations: 330.9 kB / 0.544 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01991/1.182, allocations: 19.2 MB / 0.5627 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/1.184, allocations: 106.1 kB / 0.5628 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/1.184, allocations: 69.47 kB / 0.5629 GB, free: 89.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004097/1.184, allocations: 229.5 kB / 0.5631 GB, free: 89.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004127/1.185, allocations: 217.2 kB / 0.5633 GB, free: 88.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006031/1.191, allocations: 2.797 MB / 0.566 GB, free: 88.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/1.191, allocations: 13.06 kB / 0.5661 GB, free: 88.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/1.191, allocations: 9.5 kB / 0.5661 GB, free: 88.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/1.191, allocations: 7.641 kB / 0.5661 GB, free: 88.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/1.204, allocations: 5.995 MB / 0.5719 GB, free: 85.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/1.204, allocations: 3.781 kB / 0.5719 GB, free: 85.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009871/1.205, allocations: 192.8 kB / 0.5721 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003319/1.208, allocations: 0.9175 MB / 0.573 GB, free: 85.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001826/1.208, allocations: 37.03 kB / 0.573 GB, free: 85.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/1.225, allocations: 17.09 MB / 0.5897 GB, free: 71.58 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.897e-06/1.225, allocations: 3.562 kB / 0.5897 GB, free: 71.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007476/1.233, allocations: 4.121 MB / 0.5938 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/1.234, allocations: 0.4902 MB / 0.5942 GB, free: 69.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004085/1.235, allocations: 34.25 kB / 0.5943 GB, free: 69.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/1.236, allocations: 122.2 kB / 0.5944 GB, free: 69.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003753/1.237, allocations: 140.8 kB / 0.5945 GB, free: 69.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/1.237, allocations: 46.17 kB / 0.5946 GB, free: 69.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002412/1.239, allocations: 1.348 MB / 0.5959 GB, free: 68.81 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.05e-07/1.239, allocations: 0 / 0.5959 GB, free: 68.81 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002921/1.242, allocations: 0.7348 MB / 0.5966 GB, free: 68.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006684/1.243, allocations: 416.2 kB / 0.597 GB, free: 68.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005696/1.248, allocations: 3.411 MB / 0.6003 GB, free: 66.74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.696e-06/1.248, allocations: 5.906 kB / 0.6003 GB, free: 66.74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003124/1.252, allocations: 2.157 MB / 0.6024 GB, free: 65.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003532/1.255, allocations: 0.6268 MB / 0.603 GB, free: 65.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008847/1.264, allocations: 4.587 MB / 0.6075 GB, free: 63.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002436/1.267, allocations: 2.362 MB / 0.6098 GB, free: 62.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002043/1.269, allocations: 486.5 kB / 0.6103 GB, free: 62.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004655/1.269, allocations: 134.1 kB / 0.6104 GB, free: 62.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.722e-06/1.269, allocations: 0 / 0.6104 GB, free: 62.27 MB / 442.7 MB Notification: Performance of Templates: time 0.08723/1.356, allocations: 41.08 MB / 0.6505 GB, free: 31.1 MB / 442.7 MB