Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 2.132/2.132, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.625e-05, allocations: 0 / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 50.42 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01413/0.1244, allocations: 8.146 MB / 353.1 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008063/0.1325, allocations: 3.013 MB / 356.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00183/0.1344, allocations: 71.75 kB / 356.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002385/0.1368, allocations: 0.5477 MB / 356.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00364/0.1405, allocations: 0.6696 MB / 357.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.142, allocations: 251.7 kB / 357.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004118/0.1462, allocations: 1.353 MB / 359 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002736/0.149, allocations: 1.254 MB / 360.3 MB, free: 9.578 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.1507, allocations: 0.7051 MB / 361 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00243/0.1532, allocations: 0.9812 MB / 362 MB, free: 7.887 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1544, allocations: 159.9 kB / 362.1 MB, free: 7.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005298/0.1549, allocations: 88 kB / 362.2 MB, free: 7.645 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.1561, allocations: 0.6152 MB / 362.8 MB, free: 7.027 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009325/0.157, allocations: 216 kB / 363 MB, free: 6.816 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005868/0.1629, allocations: 3.467 MB / 366.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.163, allocations: 0 / 366.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.127e-06/0.163, allocations: 0 / 366.5 MB, free: 3.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001487/0.1631, allocations: 0 / 366.5 MB, free: 3.34 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.008064/0.1712, allocations: 2.374 MB / 368.9 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1713, allocations: 12.03 kB / 368.9 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.173, allocations: 316.5 kB / 369.2 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00494/0.178, allocations: 1.536 MB / 370.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002892/0.1783, allocations: 180.4 kB / 370.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008666/0.1792, allocations: 223.9 kB / 371.1 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009432/0.1886, allocations: 2.89 MB / 374 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.1888, allocations: 12 kB / 374 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/0.1892, allocations: 95.97 kB / 374.1 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002149/0.1894, allocations: 108.3 kB / 374.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008514/0.1979, allocations: 2.441 MB / 376.7 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02573/0.2237, allocations: 9.098 MB / 385.8 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004239/0.228, allocations: 1.728 MB / 387.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004674/0.2285, allocations: 207.2 kB / 387.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.304e-05/0.2286, allocations: 43.56 kB / 387.7 MB, free: 13.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 4.469e-06/0.2286, allocations: 7.938 kB / 387.8 MB, free: 13.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.02585/0.2545, allocations: 6.679 MB / 394.4 MB, free: 6.582 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.2546, allocations: 64.41 kB / 394.5 MB, free: 6.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003198/0.2578, allocations: 1.327 MB / 395.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002675/0.2581, allocations: 41.7 kB / 395.9 MB, free: 5.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001077/0.2592, allocations: 1.05 MB / 396.9 MB, free: 4.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00069/0.2599, allocations: 425.8 kB / 397.3 MB, free: 3.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.2601, allocations: 36 kB / 397.4 MB, free: 3.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.2603, allocations: 366.8 kB / 397.7 MB, free: 3.238 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.2625, allocations: 0.7222 MB / 398.4 MB, free: 2.516 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.2652, allocations: 1.141 MB / 399.6 MB, free: 1.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/0.2679, allocations: 0.8965 MB / 400.5 MB, free: 304 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/0.268, allocations: 7.938 kB / 400.5 MB, free: 296 kB / 330.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.289/0.5571, allocations: 2.406 MB / 402.9 MB, free: 47.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.5572, allocations: 10.22 kB / 402.9 MB, free: 47.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.801e-05/0.5572, allocations: 13.12 kB / 402.9 MB, free: 47.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.5588, allocations: 394.8 kB / 403.3 MB, free: 47.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002779/0.5616, allocations: 368.5 kB / 403.7 MB, free: 47.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009639/0.5713, allocations: 6.435 MB / 410.1 MB, free: 42.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/0.5735, allocations: 118.4 kB / 410.2 MB, free: 42.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002341/0.5738, allocations: 63.95 kB / 410.3 MB, free: 42.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 168 * 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%) 12,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001925/0.5757, allocations: 0.7105 MB / 411 MB, free: 42.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005505/0.5763, allocations: 169.9 kB / 411.2 MB, free: 42.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006413/0.5827, allocations: 2.212 MB / 413.4 MB, free: 41.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.62e-05/0.5828, allocations: 15.72 kB / 413.4 MB, free: 41.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/0.5828, allocations: 3.688 kB / 413.4 MB, free: 41.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-05/0.5829, allocations: 9.266 kB / 413.4 MB, free: 41.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/0.5956, allocations: 4.752 MB / 418.1 MB, free: 39.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.5957, allocations: 3.938 kB / 418.1 MB, free: 39.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/0.5976, allocations: 232.4 kB / 418.4 MB, free: 39.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.5995, allocations: 428.7 kB / 418.8 MB, free: 39.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002264/0.5997, allocations: 36.67 kB / 418.8 MB, free: 39.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/0.61, allocations: 7.942 MB / 426.8 MB, free: 32.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.6101, allocations: 3.875 kB / 426.8 MB, free: 32.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00774/0.6179, allocations: 3.469 MB / 430.2 MB, free: 30.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.6191, allocations: 394.8 kB / 430.6 MB, free: 29.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004379/0.6196, allocations: 35.98 kB / 430.7 MB, free: 29.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/0.6212, allocations: 91.91 kB / 430.8 MB, free: 29.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002943/0.6215, allocations: 100.8 kB / 430.9 MB, free: 29.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.6217, allocations: 37.08 kB / 430.9 MB, free: 29.69 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002042/0.6237, allocations: 1.02 MB / 431.9 MB, free: 28.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6238, allocations: 0 / 431.9 MB, free: 28.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002442/0.6262, allocations: 482.1 kB / 432.4 MB, free: 28.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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%) 12,(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.0004612/0.6267, allocations: 167 kB / 432.5 MB, free: 28.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005705/0.6324, allocations: 2.298 MB / 434.8 MB, free: 25.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.6325, allocations: 4 kB / 434.8 MB, free: 25.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/0.6362, allocations: 1.462 MB / 436.3 MB, free: 24.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003367/0.6396, allocations: 438.7 kB / 436.7 MB, free: 23.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.6511, allocations: 5.654 MB / 442.4 MB, free: 18.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/0.6529, allocations: 1.878 MB / 444.3 MB, free: 16.13 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008129/0.6537, allocations: 135.4 kB / 444.4 MB, free: 16 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6538, allocations: 0 / 444.4 MB, free: 16 MB / 330.7 MB Notification: Performance of Templates: time 0.1286/0.7824, allocations: 69.33 MB / 0.5017 GB, free: 10.67 MB / 394.7 MB