Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 2.3/2.3, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.86e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01298/0.1259, allocations: 7.612 MB / 352.6 MB, free: 1.297 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00725/0.1332, allocations: 2.728 MB / 355.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001782/0.135, allocations: 67.75 kB / 355.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002158/0.1372, allocations: 497.2 kB / 355.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003223/0.1405, allocations: 0.5956 MB / 356.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.1419, allocations: 239.7 kB / 356.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003712/0.1456, allocations: 1.248 MB / 358 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002566/0.1483, allocations: 1.214 MB / 359.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001629/0.15, allocations: 0.6623 MB / 359.8 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.1523, allocations: 0.9267 MB / 360.8 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.1535, allocations: 159.9 kB / 360.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005072/0.154, allocations: 84 kB / 361 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009942/0.155, allocations: 0.588 MB / 361.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008357/0.1559, allocations: 204 kB / 361.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005514/0.1614, allocations: 3.28 MB / 365.1 MB, free: 4.785 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1615, allocations: 0 / 365.1 MB, free: 4.785 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.1615, allocations: 3.938 kB / 365.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001398/0.1616, allocations: 4 kB / 365.1 MB, free: 4.777 MB / 298.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.007744/0.1694, allocations: 2.275 MB / 367.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.1695, allocations: 8.031 kB / 367.4 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/0.171, allocations: 288.8 kB / 367.6 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004361/0.1754, allocations: 1.452 MB / 369.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002765/0.1757, allocations: 172.1 kB / 369.3 MB, free: 476 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008093/0.1765, allocations: 211.9 kB / 369.5 MB, free: 264 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008972/0.1855, allocations: 2.776 MB / 372.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.511e-05/0.1857, allocations: 7.906 kB / 372.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003452/0.1861, allocations: 87.98 kB / 372.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001906/0.1863, allocations: 108.2 kB / 372.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008244/0.1945, allocations: 2.355 MB / 374.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0245/0.2191, allocations: 8.601 MB / 383.4 MB, free: 1.969 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004356/0.2235, allocations: 1.707 MB / 385.1 MB, free: 148 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000466/0.224, allocations: 207.2 kB / 385.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.2241, allocations: 43.52 kB / 385.3 MB, free: 15.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 4.258e-06/0.2241, allocations: 0 / 385.3 MB, free: 15.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.02413/0.2482, allocations: 6.307 MB / 391.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.2484, allocations: 64.41 kB / 391.7 MB, free: 9.305 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.2513, allocations: 1.223 MB / 392.9 MB, free: 8.074 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002899/0.2517, allocations: 45.7 kB / 393 MB, free: 8.023 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001069/0.2528, allocations: 1.003 MB / 394 MB, free: 7.008 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005642/0.2533, allocations: 410.1 kB / 394.4 MB, free: 6.602 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.2535, allocations: 35.94 kB / 394.4 MB, free: 6.566 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.2537, allocations: 370.7 kB / 394.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/0.2558, allocations: 0.6949 MB / 395.5 MB, free: 5.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002436/0.2583, allocations: 1.077 MB / 396.6 MB, free: 4.266 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/0.2608, allocations: 0.8691 MB / 397.4 MB, free: 3.395 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/0.2609, allocations: 4 kB / 397.4 MB, free: 3.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.006751/0.2677, allocations: 2.312 MB / 399.7 MB, free: 1.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.2677, allocations: 12 kB / 399.7 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.897e-05/0.2678, allocations: 11.98 kB / 399.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.2694, allocations: 395.3 kB / 400.1 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002666/0.2721, allocations: 343.4 kB / 400.5 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3134/0.5855, allocations: 6.356 MB / 406.8 MB, free: 43.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.5876, allocations: 109.1 kB / 406.9 MB, free: 43.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.5878, allocations: 58.73 kB / 407 MB, free: 43.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 156 * 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: 3 * 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: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001779/0.5896, allocations: 0.6817 MB / 407.7 MB, free: 43.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005099/0.5902, allocations: 161.6 kB / 407.8 MB, free: 43.47 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006445/0.5966, allocations: 2.132 MB / 410 MB, free: 42.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.5967, allocations: 14.7 kB / 410 MB, free: 42.59 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/0.5967, allocations: 4.062 kB / 410 MB, free: 42.59 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.562e-05/0.5968, allocations: 6.141 kB / 410 MB, free: 42.59 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/0.6101, allocations: 4.553 MB / 414.6 MB, free: 40.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/0.6102, allocations: 3.438 kB / 414.6 MB, free: 40.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001974/0.6122, allocations: 226.7 kB / 414.8 MB, free: 40.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001942/0.6142, allocations: 427.5 kB / 415.2 MB, free: 40.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002273/0.6144, allocations: 36.25 kB / 415.2 MB, free: 40.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/0.6246, allocations: 7.889 MB / 423.1 MB, free: 34.2 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.6247, allocations: 3.938 kB / 423.1 MB, free: 34.2 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00817/0.6329, allocations: 3.314 MB / 426.4 MB, free: 32.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.634, allocations: 377 kB / 426.8 MB, free: 32.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004278/0.6345, allocations: 30.69 kB / 426.8 MB, free: 32.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.636, allocations: 92.05 kB / 426.9 MB, free: 32.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.6363, allocations: 99.91 kB / 427 MB, free: 32.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.6365, allocations: 34.34 kB / 427.1 MB, free: 32.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001913/0.6384, allocations: 0.9445 MB / 428 MB, free: 31.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.6384, allocations: 0 / 428 MB, free: 31.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002398/0.6408, allocations: 461.8 kB / 428.5 MB, free: 31.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (105): * Single equations (assignments): 101 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004557/0.6413, allocations: 161.9 kB / 428.6 MB, free: 31.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005433/0.6468, allocations: 2.232 MB / 430.8 MB, free: 29.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.6468, allocations: 1.938 kB / 430.8 MB, free: 29.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003657/0.6505, allocations: 1.445 MB / 432.3 MB, free: 28.28 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/0.6535, allocations: 382.1 kB / 432.7 MB, free: 27.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.6641, allocations: 5.362 MB / 438 MB, free: 22.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/0.666, allocations: 1.827 MB / 439.8 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007737/0.6668, allocations: 127.4 kB / 440 MB, free: 20.51 MB / 330.7 MB Notification: Performance of SimCode: time 1.763e-06/0.6668, allocations: 0 / 440 MB, free: 20.51 MB / 330.7 MB Notification: Performance of Templates: time 0.1141/0.7809, allocations: 65.02 MB / 0.4932 GB, free: 3.492 MB / 378.7 MB