Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.842e-05/2.847e-05, allocations: 4 kB / 292.2 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09057, allocations: 50.41 MB / 342.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4329/0.5235, allocations: 126.4 MB / 469 MB, free: 500 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.5238, allocations: 94.44 kB / 469.1 MB, free: 448 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7593/1.283, allocations: 116.3 MB / 0.5716 GB, free: 96.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.259e-06/1.283, allocations: 0 / 0.5716 GB, free: 96.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004265/1.284, allocations: 136.2 kB / 0.5718 GB, free: 96.64 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01572/1.299, allocations: 4.894 MB / 0.5765 GB, free: 94.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/1.299, allocations: 7.062 kB / 0.5765 GB, free: 94.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006679/1.306, allocations: 0.9563 MB / 0.5775 GB, free: 94.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/1.319, allocations: 4.417 MB / 0.5818 GB, free: 93.68 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000426/1.32, allocations: 390.3 kB / 0.5822 GB, free: 93.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001735/1.322, allocations: 0.4994 MB / 0.5827 GB, free: 93.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01727/1.339, allocations: 6.494 MB / 0.589 GB, free: 90.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002034/1.339, allocations: 11.41 kB / 0.589 GB, free: 90.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001213/1.34, allocations: 217.2 kB / 0.5892 GB, free: 90.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002409/1.341, allocations: 233.5 kB / 0.5894 GB, free: 90.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01471/1.355, allocations: 5.172 MB / 0.5945 GB, free: 88.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05848/1.414, allocations: 21.13 MB / 0.6151 GB, free: 74.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0118/1.426, allocations: 8.456 MB / 0.6234 GB, free: 65.28 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004406/1.43, allocations: 2.004 MB / 0.6253 GB, free: 63.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01369/1.444, allocations: 6.007 MB / 0.6312 GB, free: 57.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/1.444, allocations: 60.56 kB / 0.6313 GB, free: 57.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 5.534e-06/1.444, allocations: 0 / 0.6313 GB, free: 57.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=232): time 0.02341/1.468, allocations: 9.301 MB / 0.6403 GB, free: 48.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/1.468, allocations: 73.41 kB / 0.6404 GB, free: 47.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/1.473, allocations: 2.5 MB / 0.6429 GB, free: 45.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004232/1.473, allocations: 65.7 kB / 0.6429 GB, free: 45.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/1.474, allocations: 2.198 MB / 0.6451 GB, free: 43.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007919/1.475, allocations: 0.7972 MB / 0.6458 GB, free: 42.36 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/1.475, allocations: 64 kB / 0.6459 GB, free: 42.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/1.476, allocations: 425 kB / 0.6463 GB, free: 41.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002459/1.478, allocations: 1.248 MB / 0.6475 GB, free: 40.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/1.481, allocations: 2.103 MB / 0.6496 GB, free: 38.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003208/1.484, allocations: 1.63 MB / 0.6512 GB, free: 36.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.517e-05/1.484, allocations: 8 kB / 0.6512 GB, free: 36.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.008976/1.493, allocations: 4.201 MB / 0.6553 GB, free: 32.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.613e-05/1.494, allocations: 20 kB / 0.6553 GB, free: 32.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.09e-05/1.494, allocations: 32.42 kB / 0.6553 GB, free: 32.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/1.496, allocations: 0.7191 MB / 0.656 GB, free: 31.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/1.499, allocations: 0.6942 MB / 0.6567 GB, free: 30.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/1.51, allocations: 9.383 MB / 0.6659 GB, free: 20.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/1.514, allocations: 191.7 kB / 0.6661 GB, free: 20.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006542/1.515, allocations: 132 kB / 0.6662 GB, free: 20.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * 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: 4 * 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: 4 {(6,75.0%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000632/1.515, allocations: 284 kB / 0.6665 GB, free: 20.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008819/1.516, allocations: 320.1 kB / 0.6668 GB, free: 19.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008767/1.525, allocations: 3.998 MB / 0.6707 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/1.525, allocations: 24 kB / 0.6707 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.735e-05/1.525, allocations: 8 kB / 0.6707 GB, free: 15.76 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.87e-05/1.525, allocations: 19.95 kB / 0.6707 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01817/1.543, allocations: 8.63 MB / 0.6791 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/1.543, allocations: 8.062 kB / 0.6791 GB, free: 6.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/1.546, allocations: 383.4 kB / 0.6795 GB, free: 6.613 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003244/1.549, allocations: 0.9325 MB / 0.6804 GB, free: 5.664 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003548/1.549, allocations: 63.97 kB / 0.6805 GB, free: 5.602 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.291/1.84, allocations: 15.48 MB / 0.6956 GB, free: 81.81 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.395e-06/1.84, allocations: 8.109 kB / 0.6956 GB, free: 81.81 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01339/1.854, allocations: 5.906 MB / 0.7014 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002328/1.856, allocations: 0.6657 MB / 0.702 GB, free: 80.79 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/1.857, allocations: 54.94 kB / 0.7021 GB, free: 80.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002698/1.86, allocations: 150.2 kB / 0.7022 GB, free: 80.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00073/1.861, allocations: 181.7 kB / 0.7024 GB, free: 80.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003081/1.861, allocations: 67.92 kB / 0.7025 GB, free: 80.78 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004885/1.866, allocations: 1.888 MB / 0.7043 GB, free: 80.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.866, allocations: 0 / 0.7043 GB, free: 80.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005377/1.871, allocations: 1.018 MB / 0.7053 GB, free: 80.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001248/1.873, allocations: 0.5564 MB / 0.7058 GB, free: 80.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008601/1.881, allocations: 3.846 MB / 0.7096 GB, free: 79.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.143e-06/1.881, allocations: 0.9375 kB / 0.7096 GB, free: 79.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005594/1.887, allocations: 2.607 MB / 0.7121 GB, free: 79.06 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004833/1.892, allocations: 0.7786 MB / 0.7129 GB, free: 79.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01863/1.911, allocations: 7.847 MB / 0.7206 GB, free: 77.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00538/1.916, allocations: 3.324 MB / 0.7238 GB, free: 76.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/1.917, allocations: 243.4 kB / 0.724 GB, free: 76.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.792e-06/1.917, allocations: 1.969 kB / 0.724 GB, free: 76.27 MB / 442.7 MB Notification: Performance of Templates: time 0.5482/2.466, allocations: 212.2 MB / 0.9313 GB, free: 91.37 MB / 474.7 MB