Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 225.8 MB / 239.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.436e-05/3.43e-05, allocations: 11.98 kB / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.08902, allocations: 50.41 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4883/0.5774, allocations: 105.9 MB / 449 MB, free: 4.703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.5777, allocations: 82.52 kB / 449 MB, free: 4.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1802/0.758, allocations: 46.29 MB / 495.3 MB, free: 10.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.176e-06/0.758, allocations: 0 / 495.3 MB, free: 10.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001686/0.7582, allocations: 63.86 kB / 495.4 MB, free: 10.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005277/0.7635, allocations: 2.255 MB / 497.6 MB, free: 7.891 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.7635, allocations: 8.031 kB / 497.7 MB, free: 7.883 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000978/0.7645, allocations: 304.7 kB / 498 MB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003934/0.7685, allocations: 1.588 MB / 499.5 MB, free: 5.934 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.7687, allocations: 160.2 kB / 499.7 MB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000463/0.7692, allocations: 211.9 kB / 499.9 MB, free: 5.566 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006057/0.7752, allocations: 2.683 MB / 0.4908 GB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.567e-05/0.7753, allocations: 7.906 kB / 0.4908 GB, free: 2.738 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003115/0.7757, allocations: 88 kB / 0.4909 GB, free: 2.652 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.7758, allocations: 100.2 kB / 0.491 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005017/0.7808, allocations: 2.097 MB / 0.493 GB, free: 456 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01818/0.7991, allocations: 8.624 MB / 0.5015 GB, free: 7.574 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.8022, allocations: 1.675 MB / 0.5031 GB, free: 5.777 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.8039, allocations: 0.777 MB / 0.5039 GB, free: 5.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004183/0.8043, allocations: 223.1 kB / 0.5041 GB, free: 4.746 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/0.8044, allocations: 47.56 kB / 0.5041 GB, free: 4.691 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 5.16e-06/0.8044, allocations: 0 / 0.5041 GB, free: 4.691 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.01726/0.8216, allocations: 5.978 MB / 0.51 GB, free: 14.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.8217, allocations: 68.41 kB / 0.51 GB, free: 14.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002449/0.8242, allocations: 1.237 MB / 0.5112 GB, free: 13.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.8243, allocations: 45.7 kB / 0.5113 GB, free: 13.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.8254, allocations: 1.03 MB / 0.5123 GB, free: 12.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000491/0.8259, allocations: 445.6 kB / 0.5127 GB, free: 11.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.826, allocations: 28 kB / 0.5127 GB, free: 11.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.8263, allocations: 361.9 kB / 0.5131 GB, free: 11.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0015/0.8278, allocations: 0.699 MB / 0.5138 GB, free: 10.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/0.8297, allocations: 1.064 MB / 0.5148 GB, free: 9.496 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001838/0.8315, allocations: 0.8716 MB / 0.5156 GB, free: 8.625 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.8315, allocations: 4 kB / 0.5157 GB, free: 8.621 MB / 442.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.005816/0.8374, allocations: 2.473 MB / 0.5181 GB, free: 6.129 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.8374, allocations: 8 kB / 0.5181 GB, free: 6.121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.8374, allocations: 15.98 kB / 0.5181 GB, free: 6.105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002047/0.8395, allocations: 0.5795 MB / 0.5187 GB, free: 5.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.8412, allocations: 343.5 kB / 0.519 GB, free: 5.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3105/1.152, allocations: 6.316 MB / 0.5252 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/1.154, allocations: 114.9 kB / 0.5253 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003115/1.155, allocations: 61.03 kB / 0.5253 GB, free: 114.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005276/1.155, allocations: 186.1 kB / 0.5255 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005894/1.156, allocations: 159.9 kB / 0.5256 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007891/1.164, allocations: 2.294 MB / 0.5279 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/1.164, allocations: 14.94 kB / 0.5279 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.066e-05/1.164, allocations: 6.281 kB / 0.5279 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.44e-05/1.164, allocations: 6.75 kB / 0.5279 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01692/1.181, allocations: 4.728 MB / 0.5325 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/1.181, allocations: 2.719 kB / 0.5325 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/1.183, allocations: 214.6 kB / 0.5327 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003766/1.187, allocations: 0.6326 MB / 0.5334 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003004/1.187, allocations: 33.83 kB / 0.5334 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0212/1.208, allocations: 8.049 MB / 0.5413 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.657e-05/1.209, allocations: 6.156 kB / 0.5413 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/1.219, allocations: 3.43 MB / 0.5446 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009461/1.22, allocations: 400.3 kB / 0.545 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002934/1.22, allocations: 31.27 kB / 0.545 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/1.221, allocations: 92.14 kB / 0.5451 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/1.221, allocations: 107.3 kB / 0.5452 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/1.222, allocations: 41.84 kB / 0.5452 GB, free: 109.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001775/1.223, allocations: 0.9424 MB / 0.5462 GB, free: 109 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.76e-07/1.223, allocations: 0 / 0.5462 GB, free: 109 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001877/1.225, allocations: 0.5182 MB / 0.5467 GB, free: 109 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005278/1.226, allocations: 316.8 kB / 0.547 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004131/1.23, allocations: 2.213 MB / 0.5491 GB, free: 108.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.673e-06/1.23, allocations: 5.906 kB / 0.5491 GB, free: 108.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002872/1.233, allocations: 1.445 MB / 0.5506 GB, free: 108 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/1.235, allocations: 382.4 kB / 0.5509 GB, free: 107.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007107/1.242, allocations: 3.696 MB / 0.5545 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001764/1.244, allocations: 1.861 MB / 0.5563 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001555/1.246, allocations: 361.7 kB / 0.5567 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004619/1.246, allocations: 113.3 kB / 0.5568 GB, free: 105.4 MB / 442.7 MB Notification: Performance of SimCode: time 2.425e-06/1.246, allocations: 0 / 0.5568 GB, free: 105.4 MB / 442.7 MB Notification: Performance of Templates: time 0.06076/1.307, allocations: 27.08 MB / 0.5832 GB, free: 104 MB / 442.7 MB