Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadModel(PowerSystems): time 2.263/2.263, allocations: 232.9 MB / 248.1 MB, free: 10.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.388e-05/3.381e-05, allocations: 7.984 kB / 304.4 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.342, allocations: 53.22 MB / 357.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008301/0.3503, allocations: 5.059 MB / 362.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003812/0.3542, allocations: 1.61 MB / 364.3 MB, free: 8.809 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004967/0.3547, allocations: 39.75 kB / 364.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003798/0.3551, allocations: 115.2 kB / 364.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009088/0.3561, allocations: 287 kB / 364.7 MB, free: 8.375 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005574/0.3566, allocations: 151.8 kB / 364.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007271/0.3574, allocations: 339 kB / 365.2 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004998/0.3579, allocations: 260.2 kB / 365.4 MB, free: 7.645 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.3583, allocations: 191.4 kB / 365.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.3587, allocations: 179.4 kB / 365.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.933e-05/0.3588, allocations: 16 kB / 365.8 MB, free: 7.266 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.404e-05/0.3589, allocations: 16 kB / 365.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.3591, allocations: 111.6 kB / 365.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.3592, allocations: 52 kB / 366 MB, free: 7.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006373/0.3599, allocations: 450.8 kB / 366.4 MB, free: 6.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3599, allocations: 0 / 366.4 MB, free: 6.648 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3599, allocations: 3.938 kB / 366.4 MB, free: 6.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.3599, allocations: 0 / 366.4 MB, free: 6.645 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001637/0.3616, allocations: 0.6728 MB / 367.1 MB, free: 5.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3616, allocations: 8.031 kB / 367.1 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.3618, allocations: 55.34 kB / 367.1 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009827/0.3628, allocations: 418.8 kB / 367.6 MB, free: 5.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.3629, allocations: 62.7 kB / 367.6 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.363, allocations: 44 kB / 367.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.3643, allocations: 0.497 MB / 368.2 MB, free: 4.762 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/0.3644, allocations: 7.984 kB / 368.2 MB, free: 4.754 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.3644, allocations: 19.95 kB / 368.2 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.3645, allocations: 15.94 kB / 368.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.3656, allocations: 347.6 kB / 368.5 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.3691, allocations: 1.988 MB / 370.5 MB, free: 2.277 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007309/0.3699, allocations: 223.6 kB / 370.7 MB, free: 2.031 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.37, allocations: 12.38 kB / 370.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.37, allocations: 34.56 kB / 370.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 3.256e-06/0.37, allocations: 0 / 370.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.003219/0.3733, allocations: 1.096 MB / 371.9 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.987e-05/0.3734, allocations: 106.8 kB / 372 MB, free: 0.668 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004906/0.3739, allocations: 292.8 kB / 372.3 MB, free: 388 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.3739, allocations: 25.7 kB / 372.3 MB, free: 356 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.3742, allocations: 318.1 kB / 372.6 MB, free: 32 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.3743, allocations: 86.97 kB / 372.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.3743, allocations: 4 kB / 372.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3745, allocations: 334.7 kB / 373 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.3749, allocations: 83.95 kB / 373.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004696/0.3754, allocations: 221 kB / 373.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.3767, allocations: 310.5 kB / 373.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3767, allocations: 0 / 373.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001393/0.3781, allocations: 400.5 kB / 374 MB, free: 14.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3781, allocations: 8 kB / 374 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3782, allocations: 4 kB / 374 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005043/0.3787, allocations: 77.17 kB / 374.1 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.3792, allocations: 75.84 kB / 374.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00282/0.382, allocations: 1.769 MB / 376 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.3824, allocations: 24 kB / 376 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.3825, allocations: 16 kB / 376 MB, free: 12.42 MB / 314.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000347/0.3828, allocations: 197.4 kB / 376.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.3829, allocations: 43.53 kB / 376.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.484e-05/0.383, allocations: 39.3 kB / 376.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3831, allocations: 4 kB / 376.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.3831, allocations: 3.953 kB / 376.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3831, allocations: 7.938 kB / 376.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.385, allocations: 0.7835 MB / 377.1 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3851, allocations: 0 / 377.1 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.3856, allocations: 55.91 kB / 377.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.3857, allocations: 25.09 kB / 377.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.3858, allocations: 4 kB / 377.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.387, allocations: 1.292 MB / 378.4 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3871, allocations: 0 / 378.4 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.3884, allocations: 0.55 MB / 379 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.3886, allocations: 116.8 kB / 379.1 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.166e-05/0.3887, allocations: 3.953 kB / 379.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.389, allocations: 15.98 kB / 379.1 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.828e-05/0.3891, allocations: 15.98 kB / 379.1 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.3891, allocations: 7.984 kB / 379.1 MB, free: 8.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003584/0.3895, allocations: 227.2 kB / 379.4 MB, free: 8.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3895, allocations: 4 kB / 379.4 MB, free: 8.766 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006682/0.3902, allocations: 88 kB / 379.5 MB, free: 8.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001552/0.3903, allocations: 115.2 kB / 379.6 MB, free: 8.559 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3916, allocations: 378.6 kB / 379.9 MB, free: 8.176 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3916, allocations: 0 / 379.9 MB, free: 8.176 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.3921, allocations: 223.4 kB / 380.2 MB, free: 7.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.393, allocations: 95.61 kB / 380.3 MB, free: 7.852 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002607/0.3956, allocations: 1.215 MB / 381.5 MB, free: 6.605 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/0.3962, allocations: 0.8545 MB / 382.3 MB, free: 5.727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3964, allocations: 27.44 kB / 382.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3964, allocations: 4 kB / 382.4 MB, free: 5.695 MB / 314.7 MB Notification: Performance of Templates: time 0.01434/0.4107, allocations: 6.664 MB / 389 MB, free: 15.04 MB / 330.7 MB