Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.36e-05, allocations: 8 kB / 269.4 MB, free: 6.379 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.0862, allocations: 47.57 MB / 316.9 MB, free: 6.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5196, allocations: 115.7 MB / 432.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.5199, allocations: 89.62 kB / 432.7 MB, free: 4.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2772/0.7971, allocations: 74.96 MB / 0.4958 GB, free: 192 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.7971, allocations: 0 / 0.4958 GB, free: 192 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003231/0.7974, allocations: 91.86 kB / 0.4959 GB, free: 100 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01107/0.8085, allocations: 3.125 MB / 0.4989 GB, free: 12.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.8086, allocations: 11.98 kB / 0.4989 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004252/0.8129, allocations: 0.5891 MB / 0.4995 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.8241, allocations: 3.104 MB / 0.5025 GB, free: 9.141 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003508/0.8245, allocations: 242.2 kB / 0.5028 GB, free: 8.902 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.8256, allocations: 315.9 kB / 0.5031 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01235/0.838, allocations: 3.893 MB / 0.5069 GB, free: 4.562 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.8382, allocations: 4 kB / 0.5069 GB, free: 4.559 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007622/0.839, allocations: 132 kB / 0.507 GB, free: 4.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002108/0.8392, allocations: 146.2 kB / 0.5071 GB, free: 4.285 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009514/0.8487, allocations: 3.043 MB / 0.5101 GB, free: 1.238 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2656/1.114, allocations: 13.43 MB / 0.5232 GB, free: 88.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004615/1.119, allocations: 3.91 MB / 0.527 GB, free: 85.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/1.121, allocations: 0.9819 MB / 0.528 GB, free: 85.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005772/1.127, allocations: 2.666 MB / 0.5306 GB, free: 85.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/1.127, allocations: 49.42 kB / 0.5307 GB, free: 85.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=107): time 5.675e-06/1.127, allocations: 3.031 kB / 0.5307 GB, free: 85.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.01381/1.141, allocations: 5.16 MB / 0.5357 GB, free: 84.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/1.141, allocations: 64.41 kB / 0.5358 GB, free: 84.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003243/1.144, allocations: 1.649 MB / 0.5374 GB, free: 84.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/1.145, allocations: 48.55 kB / 0.5374 GB, free: 84.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009612/1.146, allocations: 1.51 MB / 0.5389 GB, free: 83.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/1.146, allocations: 487.6 kB / 0.5394 GB, free: 83.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/1.146, allocations: 37.94 kB / 0.5394 GB, free: 83.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/1.146, allocations: 379.5 kB / 0.5398 GB, free: 83.01 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/1.148, allocations: 0.7368 MB / 0.5405 GB, free: 83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001791/1.15, allocations: 1.313 MB / 0.5418 GB, free: 82.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/1.152, allocations: 0.9796 MB / 0.5427 GB, free: 82.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/1.152, allocations: 4.406 kB / 0.5427 GB, free: 82.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005002/1.157, allocations: 2.347 MB / 0.545 GB, free: 82.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/1.157, allocations: 13.81 kB / 0.545 GB, free: 82.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/1.157, allocations: 23.36 kB / 0.545 GB, free: 82.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004166/1.157, allocations: 115.8 kB / 0.5452 GB, free: 82.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002353/1.16, allocations: 489.8 kB / 0.5456 GB, free: 82.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000953/1.161, allocations: 1.315 MB / 0.5469 GB, free: 80.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/1.163, allocations: 113.5 kB / 0.547 GB, free: 80.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/1.163, allocations: 78.28 kB / 0.5471 GB, free: 80.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (229): * Single equations (assignments): 226 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003975/1.163, allocations: 223 kB / 0.5473 GB, free: 80.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003641/1.164, allocations: 202 kB / 0.5475 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004156/1.168, allocations: 1.914 MB / 0.5494 GB, free: 80.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/1.168, allocations: 20.2 kB / 0.5494 GB, free: 80.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.342e-06/1.168, allocations: 0 / 0.5494 GB, free: 80.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-05/1.168, allocations: 10.53 kB / 0.5494 GB, free: 80.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/1.179, allocations: 4.925 MB / 0.5542 GB, free: 79.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/1.179, allocations: 9.531 kB / 0.5542 GB, free: 79.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/1.181, allocations: 321 kB / 0.5545 GB, free: 79.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004154/1.181, allocations: 96.98 kB / 0.5546 GB, free: 79.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/1.181, allocations: 28.75 kB / 0.5546 GB, free: 79.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008458/1.182, allocations: 1.278 MB / 0.5559 GB, free: 77.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.613e-06/1.182, allocations: 2.531 kB / 0.5559 GB, free: 77.92 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005737/1.188, allocations: 3.133 MB / 0.5589 GB, free: 76.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/1.189, allocations: 469.6 kB / 0.5594 GB, free: 75.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003737/1.19, allocations: 26.81 kB / 0.5594 GB, free: 75.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.191, allocations: 82.67 kB / 0.5595 GB, free: 75.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/1.191, allocations: 92.66 kB / 0.5596 GB, free: 75.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.191, allocations: 43.7 kB / 0.5596 GB, free: 75.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002441/1.194, allocations: 1.24 MB / 0.5608 GB, free: 75.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.59e-07/1.194, allocations: 0 / 0.5608 GB, free: 75.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002652/1.197, allocations: 0.5847 MB / 0.5614 GB, free: 75.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000779/1.197, allocations: 0.4994 MB / 0.5619 GB, free: 75.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003743/1.201, allocations: 2.097 MB / 0.5639 GB, free: 74.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.388e-06/1.201, allocations: 0 / 0.5639 GB, free: 74.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/1.203, allocations: 1.14 MB / 0.5651 GB, free: 73.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.206, allocations: 484.8 kB / 0.5655 GB, free: 73.51 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009842/1.216, allocations: 4.409 MB / 0.5698 GB, free: 71.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002436/1.218, allocations: 2.318 MB / 0.5721 GB, free: 70.61 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002651/1.221, allocations: 0.5099 MB / 0.5726 GB, free: 70.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006545/1.222, allocations: 155.4 kB / 0.5727 GB, free: 70.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.701e-06/1.222, allocations: 0 / 0.5727 GB, free: 70.54 MB / 426.7 MB Notification: Performance of Templates: time 0.07118/1.293, allocations: 28.31 MB / 0.6004 GB, free: 64.64 MB / 426.7 MB