Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.366/2.366, allocations: 270 MB / 282.7 MB, free: 1.777 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.726e-05/2.74e-05, allocations: 0 / 347 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3239, allocations: 61.87 MB / 408.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4833/0.8072, allocations: 123.4 MB / 0.5197 GB, free: 50.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.8075, allocations: 76.31 kB / 0.5198 GB, free: 50.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2313/1.039, allocations: 62.26 MB / 0.5806 GB, free: 38.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.039, allocations: 0 / 0.5806 GB, free: 38.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002626/1.039, allocations: 89.95 kB / 0.5807 GB, free: 38.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007959/1.047, allocations: 2.916 MB / 0.5836 GB, free: 36.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/1.047, allocations: 7.906 kB / 0.5836 GB, free: 36.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001983/1.049, allocations: 403 kB / 0.5839 GB, free: 36.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005848/1.055, allocations: 2.15 MB / 0.586 GB, free: 35.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/1.055, allocations: 216.8 kB / 0.5862 GB, free: 35.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008576/1.056, allocations: 295.4 kB / 0.5865 GB, free: 35.85 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008715/1.065, allocations: 3.584 MB / 0.59 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/1.065, allocations: 3.906 kB / 0.59 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004425/1.066, allocations: 121.4 kB / 0.5902 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/1.066, allocations: 131.7 kB / 0.5903 GB, free: 34.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007636/1.073, allocations: 2.884 MB / 0.5931 GB, free: 34.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02516/1.099, allocations: 11.64 MB / 0.6045 GB, free: 25.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004211/1.103, allocations: 2.165 MB / 0.6066 GB, free: 22.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/1.105, allocations: 1.073 MB / 0.6076 GB, free: 21.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003637/1.105, allocations: 219.5 kB / 0.6078 GB, free: 21.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/1.105, allocations: 51.88 kB / 0.6079 GB, free: 21.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=142): time 5.322e-06/1.105, allocations: 0 / 0.6079 GB, free: 21.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.01454/1.12, allocations: 6.075 MB / 0.6138 GB, free: 15.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/1.12, allocations: 68.66 kB / 0.6139 GB, free: 15.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003223/1.123, allocations: 1.694 MB / 0.6155 GB, free: 13.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003139/1.123, allocations: 49.7 kB / 0.6156 GB, free: 13.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007474/1.124, allocations: 1.284 MB / 0.6168 GB, free: 12.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000502/1.125, allocations: 0.5314 MB / 0.6174 GB, free: 11.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/1.125, allocations: 32 kB / 0.6174 GB, free: 11.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/1.125, allocations: 386.8 kB / 0.6178 GB, free: 11.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/1.127, allocations: 0.8708 MB / 0.6186 GB, free: 10.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/1.129, allocations: 1.299 MB / 0.6199 GB, free: 8.836 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002042/1.131, allocations: 1.101 MB / 0.6209 GB, free: 7.738 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/1.131, allocations: 4 kB / 0.6209 GB, free: 7.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005585/1.136, allocations: 2.721 MB / 0.6236 GB, free: 4.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/1.136, allocations: 12 kB / 0.6236 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/1.136, allocations: 12 kB / 0.6236 GB, free: 4.973 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/1.138, allocations: 446.5 kB / 0.6241 GB, free: 4.527 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/1.14, allocations: 463.3 kB / 0.6245 GB, free: 4.074 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009095/1.149, allocations: 7.038 MB / 0.6314 GB, free: 12.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/1.152, allocations: 119.9 kB / 0.6315 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004959/1.152, allocations: 75.98 kB / 0.6316 GB, free: 12.45 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005587/1.153, allocations: 211.7 kB / 0.6318 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007426/1.154, allocations: 213.3 kB / 0.632 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007765/1.161, allocations: 2.965 MB / 0.6349 GB, free: 9.027 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.552e-05/1.162, allocations: 16 kB / 0.6349 GB, free: 9.012 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.564e-05/1.162, allocations: 8 kB / 0.6349 GB, free: 9.004 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.323e-05/1.162, allocations: 7.969 kB / 0.6349 GB, free: 8.996 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/1.178, allocations: 6.123 MB / 0.6409 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.178, allocations: 4 kB / 0.6409 GB, free: 2.758 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/1.18, allocations: 240 kB / 0.6411 GB, free: 2.523 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003309/1.183, allocations: 0.8256 MB / 0.6419 GB, free: 1.688 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003145/1.184, allocations: 35.98 kB / 0.6419 GB, free: 1.652 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01843/1.202, allocations: 10.2 MB / 0.6519 GB, free: 7.043 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.377e-06/1.202, allocations: 11.95 kB / 0.6519 GB, free: 7.031 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/1.212, allocations: 4.374 MB / 0.6562 GB, free: 2.496 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/1.214, allocations: 0.4905 MB / 0.6567 GB, free: 1.984 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006094/1.215, allocations: 36 kB / 0.6567 GB, free: 1.949 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/1.217, allocations: 103.9 kB / 0.6568 GB, free: 1.848 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003898/1.217, allocations: 125 kB / 0.6569 GB, free: 1.727 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/1.217, allocations: 48.08 kB / 0.657 GB, free: 1.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003215/1.22, allocations: 1.302 MB / 0.6582 GB, free: 356 kB / 474.7 MB Notification: Performance of sort global known variables: time 9.96e-07/1.22, allocations: 0 / 0.6582 GB, free: 356 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.003491/1.224, allocations: 0.6289 MB / 0.6589 GB, free: 15.71 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000958/1.225, allocations: 423.7 kB / 0.6593 GB, free: 15.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005924/1.231, allocations: 2.546 MB / 0.6617 GB, free: 12.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.29e-06/1.231, allocations: 1 kB / 0.6617 GB, free: 12.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003722/1.235, allocations: 1.605 MB / 0.6633 GB, free: 11.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003428/1.238, allocations: 0.4895 MB / 0.6638 GB, free: 10.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/1.251, allocations: 4.775 MB / 0.6685 GB, free: 5.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00341/1.255, allocations: 2.244 MB / 0.6706 GB, free: 3.473 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/1.256, allocations: 163.4 kB / 0.6708 GB, free: 3.312 MB / 490.7 MB Notification: Performance of SimCode: time 1.882e-06/1.256, allocations: 0 / 0.6708 GB, free: 3.312 MB / 490.7 MB Notification: Performance of Templates: time 0.4217/1.677, allocations: 74.78 MB / 0.7438 GB, free: 147.5 MB / 0.5261 GB