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.215/2.215, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.064e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02701/0.1387, allocations: 15.77 MB / 360.8 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01501/0.1537, allocations: 5.213 MB / 366 MB, free: 3.871 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003943/0.1577, allocations: 163.5 kB / 366.1 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004295/0.1621, allocations: 0.9242 MB / 367.1 MB, free: 2.781 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008249/0.1704, allocations: 1.538 MB / 368.6 MB, free: 1.238 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004271/0.1747, allocations: 0.7867 MB / 369.4 MB, free: 464 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009806/0.1845, allocations: 3.105 MB / 372.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007079/0.1917, allocations: 2.839 MB / 375.3 MB, free: 10.47 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00398/0.1957, allocations: 1.535 MB / 376.9 MB, free: 8.934 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005129/0.2009, allocations: 2.071 MB / 378.9 MB, free: 6.855 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002879/0.2038, allocations: 419.6 kB / 379.3 MB, free: 6.445 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001692/0.2056, allocations: 200 kB / 379.5 MB, free: 6.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002647/0.2083, allocations: 1.172 MB / 380.7 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002458/0.2108, allocations: 468 kB / 381.2 MB, free: 4.617 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.2248, allocations: 8.313 MB / 389.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2249, allocations: 0 / 389.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.436e-06/0.2249, allocations: 4 kB / 389.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003482/0.2253, allocations: 0 / 389.5 MB, free: 12.28 MB / 330.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.02062/0.2459, allocations: 5.16 MB / 394.6 MB, free: 7.043 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.246, allocations: 8.031 kB / 394.7 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008215/0.2542, allocations: 1.008 MB / 395.7 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.2649, allocations: 3.384 MB / 399 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006724/0.2657, allocations: 402.2 kB / 399.4 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/0.2677, allocations: 0.5037 MB / 399.9 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3792/0.6469, allocations: 6.704 MB / 406.6 MB, free: 40.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004338/0.6474, allocations: 14.14 kB / 406.7 MB, free: 40.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002032/0.6495, allocations: 211.1 kB / 406.9 MB, free: 40.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006137/0.6501, allocations: 239.8 kB / 407.1 MB, free: 40.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02967/0.6799, allocations: 5.746 MB / 412.8 MB, free: 38.31 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07812/0.758, allocations: 21.13 MB / 434 MB, free: 23.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01717/0.7753, allocations: 8.51 MB / 442.5 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02026/0.7956, allocations: 4.944 MB / 447.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.942e-05/0.7957, allocations: 60.56 kB / 447.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=217): time 8.045e-06/0.7958, allocations: 0 / 447.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=236): time 0.05165/0.8474, allocations: 10.75 MB / 458.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.091e-05/0.8476, allocations: 77.41 kB / 458.3 MB, free: 14.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00917/0.8568, allocations: 2.49 MB / 460.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006539/0.8575, allocations: 69.7 kB / 460.9 MB, free: 11.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003248/0.8608, allocations: 2.188 MB / 463.1 MB, free: 9.367 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001803/0.8626, allocations: 0.8031 MB / 463.9 MB, free: 8.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000404/0.8631, allocations: 60 kB / 463.9 MB, free: 8.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004132/0.8635, allocations: 433 kB / 464.3 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005956/0.8695, allocations: 1.31 MB / 465.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007328/0.8769, allocations: 2.178 MB / 467.8 MB, free: 4.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007444/0.8844, allocations: 1.685 MB / 469.5 MB, free: 2.492 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.303e-05/0.8845, allocations: 8 kB / 469.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=381) (initialization): time 0.01533/0.8998, allocations: 4.335 MB / 473.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.8999, allocations: 16 kB / 473.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.738e-05/0.9, allocations: 28 kB / 473.9 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/0.902, allocations: 0.5139 MB / 474.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005427/0.9075, allocations: 0.7137 MB / 475.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01357/0.9211, allocations: 9.458 MB / 484.6 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003982/0.9251, allocations: 183.9 kB / 484.8 MB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005049/0.9257, allocations: 128 kB / 484.9 MB, free: 2.324 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (356): * Single equations (assignments): 349 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004364/0.93, allocations: 1.516 MB / 486.4 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/0.9311, allocations: 316.2 kB / 486.7 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/0.9427, allocations: 4.019 MB / 490.7 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/0.9428, allocations: 24 kB / 490.8 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/0.9429, allocations: 8 kB / 490.8 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.011e-05/0.9429, allocations: 11.95 kB / 490.8 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02491/0.9678, allocations: 8.787 MB / 499.6 MB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.536e-05/0.9679, allocations: 4 kB / 499.6 MB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003745/0.9717, allocations: 419.4 kB / 500 MB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003394/0.9751, allocations: 0.7195 MB / 0.489 GB, free: 2.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004627/0.9756, allocations: 67.97 kB / 0.489 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02266/0.9983, allocations: 15.38 MB / 0.504 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.9983, allocations: 4.047 kB / 0.5041 GB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01649/1.015, allocations: 6.235 MB / 0.5101 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/1.017, allocations: 0.661 MB / 0.5108 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.019, allocations: 59.98 kB / 0.5108 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003342/1.022, allocations: 147.8 kB / 0.511 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007097/1.023, allocations: 181.6 kB / 0.5112 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002648/1.023, allocations: 71.97 kB / 0.5112 GB, free: 10.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004959/1.028, allocations: 1.889 MB / 0.5131 GB, free: 8.148 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.028, allocations: 0 / 0.5131 GB, free: 8.148 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005298/1.033, allocations: 0.9427 MB / 0.514 GB, free: 7.211 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (199): * Single equations (assignments): 191 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(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.000898/1.034, allocations: 231.4 kB / 0.5142 GB, free: 6.984 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01117/1.045, allocations: 4.048 MB / 0.5182 GB, free: 2.836 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/1.045, allocations: 4 kB / 0.5182 GB, free: 2.832 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007516/1.053, allocations: 2.718 MB / 0.5208 GB, free: 12 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006347/1.059, allocations: 0.7798 MB / 0.5216 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02923/1.089, allocations: 11.48 MB / 0.5328 GB, free: 3.664 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006673/1.095, allocations: 3.316 MB / 0.536 GB, free: 328 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001747/1.097, allocations: 243.4 kB / 0.5363 GB, free: 84 kB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/1.097, allocations: 0 / 0.5363 GB, free: 84 kB / 426.7 MB Notification: Performance of Templates: time 1.166/2.263, allocations: 234.3 MB / 0.7651 GB, free: 139.9 MB / 474.7 MB