aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 35 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.2+5301_daily_bin1778
RA = 193.307, Dec = 53.0173
tmin = 700185601, tmax = 700444801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='962179', job_status='RUN', time_executed='2023-03-14 00:56:02.212191', time_epoch_executed='1678780562.21' WHERE source_name='4FGL J1253.2+5301' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962179

Creating custom pfile directory:
/scratch/kocevski/962179/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=700185601.0 && nMetStart<700444801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=700185601.0 && nMetStart<700444801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962179/ft1_4FGL_J1253.2+5301_daily_bin1778.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=700185601.0 && nMetStart<700444801.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962179/ft1_4FGL_J1253.2+5301_daily_bin1778.fits outfile=/scratch/kocevski/962179/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1778.fits ra=193.307 dec=53.0173 rad=12.0 tmin=700185601.0 tmax=700444801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.00
user 3.76
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/962179/ft1_filteredMKT_4FGL_J1253.2+5301_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 545

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/962179/ltcube_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits
.....................!
real 12.84
user 12.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/962179/ltcube_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits outfile=/scratch/kocevski/962179/expmap_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/962179/ltcube_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits
.....................!
real 190.42
user 184.49
sys 5.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.2+5301 @ 193.307 53.0173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits scfile=/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits outfile=/scratch/kocevski/962179/cmap_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.307 yref=53.0173 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits scfile=/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits outfile=/scratch/kocevski/962179/cmap_HighResolution_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.307 yref=53.0173 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/962179/Model_4FGL_J1253.2+5301_daily_bin1778.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits.....................!
real 51.90
user 50.56
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits', '/scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits', expMap='/scratch/kocevski/962179/expmap_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits', expCube='/scratch/kocevski/962179/ltcube_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/962179/Model_4FGL_J1253.2+5301_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.2+5301'

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  3.003e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/962179/ft1_filtered_4FGL_J1253.2+5301_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/962179/ft2_4FGL_J1253.2+5301_daily_bin1778.fits
Exposure map: /scratch/kocevski/962179/expmap_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits
Exposure cube: /scratch/kocevski/962179/ltcube_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/962179/Model_4FGL_J1253.2+5301_daily_bin1778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6012.13073788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6012.0979379

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28244E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .14053E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    28.727       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12058E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .23220       1.0000          .0000       .10000E+07
     6 'norm      '    .14540E-05   1.0000          .0000       .10000E+07
     7 'norm      '    14.127       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18675       1.0000          .0000       .10000E+07
     9 'Prefactor '    5.3660       1.0000          .0000       .10000E+07
    10 'norm      '    3.1495       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12295E-02   1.0000          .0000       .10000E+07
    12 'norm      '    2.0555       1.0000          .0000       .10000E+07
    13 'Prefactor '    40.270       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27017E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .89283E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .41762E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    22.699       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.8926       1.0000          .0000       .10000E+07
    19 'norm      '    .48269E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .12176E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .92871       1.0000          .0000       .10000E+07
    22 'norm      '    .52718E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    34.541       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0275       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98238       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6012.094     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2089 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7738        .55397E-06** at limit **
   2  norm           .0000        .91528        .61634E-06** at limit **
   3  Prefactor     28.855        20.569       -.29797E-05   -.84345E-01
   4  Prefactor      .0000        4.3491        .58917E-06** at limit **
   5  Prefactor     .18258E-04    7.9248        .60279E-05** at limit **
   6  norm           .0000        .93847       -.12316E-06** at limit **
   7  norm          14.107        8.0685        .10094E-05   -.80864E-02
   8  Prefactor     .48156E-06    144.07       -.41732E-04** at limit **
   9  Prefactor     5.3609        5.8931       -.17931E-06   -.71428E-03
  10  norm          3.1485        2.1339       -.70003E-07   -.22190E-02
  11  Prefactor     .55511E-10    4.9970       -.24110E-05** at limit **
  12  norm          2.0570        1.4022       -.39738E-06   -.25110E-02
  13  Prefactor     41.480        23.018       -.68708E-05    .12303E-01
  14  Prefactor     .16653E-09    3.6278       -.22932E-05** at limit **
  15  norm           .0000        4.9122        .15451E-05** at limit **
  16  norm          .55511E-10    1.7363        .33654E-06** at limit **
  17  Prefactor     20.584        47.239       -.11511E-04   -.88841E-01
  18  Prefactor     5.9945        69.429        .10968E-04   -.61916E-01
  19  norm           .0000        2.5712        .10742E-05** at limit **
  20  Prefactor     .10855E-05    39.625       -.11695E-05** at limit **
  21  norm          .92962        1.2277        .44604E-06    .42229E-02
  22  norm           .0000        1.0867        .10348E-05** at limit **
  23  Prefactor     36.039        31.012       -.95786E-05    .64332E-01
  24  Normalizat    1.0282        .18719        .30355E-04   -.57661E-03
  25  Prefactor     .98167        .22908       -.21305E-04   -.46194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 28.8546
  Prefactor  = 0
  Prefactor  = 1.82582e-05
  norm       = 0
  norm       = 14.1072
  Prefactor  = 4.81559e-07
  Prefactor  = 5.36093
  norm       = 3.14851
  Prefactor  = 5.55112e-11
  norm       = 2.05704
  Prefactor  = 41.4799
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 20.5842
  Prefactor  = 5.99446
  norm       = 0
  Prefactor  = 1.08552e-06
  norm       = 0.929617
  norm       = 0
  Prefactor  = 36.0394
  Normalizat = 1.0282
  Prefactor  = 0.981675
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.094     FROM HESSE     STATUS=OK           477 CALLS     2566 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .91588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.855        21.905        .18661E-03   -1.5601    
   4  Prefactor      .0000        4.3344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18258E-04    15.486        .11229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .93438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.107        8.6338        .26622E-03   -1.5633    
   8  Prefactor     .48156E-06    18.557        .12017E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3609        5.9016        .43360E-03   -1.5662    
  10  norm          3.1485        2.1353        .57091E-03   -1.5672    
  11  Prefactor     .55511E-10    4.9982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0570        1.3968        .72062E-03   -1.5679    
  13  Prefactor     41.480        39.460        .15760E-03   -1.5579    
  14  Prefactor     .16653E-09    3.6261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        4.9192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55511E-10    1.7432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.584        49.828        .20995E-03   -1.5617    
  18  Prefactor     5.9945        98.282        .45450E-03   -1.5659    
  19  norm           .0000        2.5654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10855E-05    41.475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .92962        1.2383        .43795E-03   -1.5689    
  22  norm           .0000        1.0873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.039        41.328        .17017E-03   -1.5588    
  24  Normalizat    1.0282        .16191        .42424E-01   -.92091    
  25  Prefactor     .98167        .19589        .46047E-01   -.93343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20484e-06
Minuit parameter uncertainties:
  1  7.74227e-06
  2  9.04517e-06
  3  21.9048
  4  2.66008e-06
  5  0.0336303
  6  1.83463e-06
  7  8.63377
  8  0.00597873
  9  5.9016
  10  2.13527
  11  3.73891e-05
  12  1.39679
  13  39.4606
  14  4.72882e-05
  15  9.01352e-07
  16  2.14393e-05
  17  49.8288
  18  48.5458
  19  3.96379e-06
  20  0.0134198
  21  1.23828
  22  6.2211e-06
  23  41.3284
  24  0.161984
  25  0.196037
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6012.09367228

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.057e+00  1.397e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  1.931e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.817e-01  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.028e+00  1.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.11
Ra Dec: 193.307 53.017
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.00e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 9.80e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6011.15677724
delta logL = 0.936895044151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6011.13258088
delta logL = 0.961091396024

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0223       1.0000          .0000       .10000E+07
     2 'alpha     '    1.2616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6011.133     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0222        1.3987        .72739E-03   -.22235E-02
   2  alpha         1.2614        .38946        .33007       -.23107E-04
   3  Normalizat    1.0341        .15701        .41776E-01    .44927E-05
   4  Prefactor     .98005        .19542        .46017E-01    .11278E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02217
  alpha      = 1.26136
  Normalizat = 1.03407
  Prefactor  = 0.980045
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.133     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0222        1.5554        .74253E-05   -1.5680    
   2  alpha         1.2614        .46059        .13616E-01   -.51836    
   3  Normalizat    1.0341        .18361        .21681E-03   -.91898    
   4  Prefactor     .98005        .22853        .27503E-03   -.93398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45349e-13
Minuit parameter uncertainties:
  1  1.55545
  2  0.464116
  3  0.183718
  4  0.228752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962179': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6011.13258055
delta logL = 0.96109172551

Extracting fit parameters...

4FGL J1253.2+5301
   Spectrum: LogParabola
333         norm:  2.022e+00  1.555e+00  0.000e+00  1.000e+06 ( 1.000e-12)
334        alpha:  1.261e+00  4.641e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  8.810e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  1.175e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  9.800e-01  2.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.034e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.04
Ra Dec: 193.307 53.017
Photon Index (Free Index): 1.26 +/- 0.46
Photon Flux (Free Index): 1.12e-08 +/- 9.18e-09
Energy Flux (Free Index): 4.23e-05 +/- 4.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/962179/cmap_HighResolution_700185601_700444801_4FGL_J1253.2+5301_daily_bin1778.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/962179

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-08', energy_flux2='4.23e-05', photon_flux_error='1.36e-08', dlogl='9.61e-01', energy_flux='1.44e-05', photon_flux2='1.12e-08', job_status='DONE', time_completed='2023-03-14 01:06:12.398621', photon_index_error2='0.46', photon_index2='1.26', ts='11.11', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.54e-05', EG='1.03', time_epoch_completed='1678781172.4', return_code='0', job_id='962179', GAL2='0.98', EG2='1.03', return_code2='0', energy_flux_error='9.80e-06', photon_flux_error2='9.18e-09', ts2='13.04', photon_index='1.93' WHERE bin_id='1778' AND source_name='4FGL J1253.2+5301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:06:12 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 962179: <4FGL_J1253.2+5301_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1253.2+5301_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:55:16 2023
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:55:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:55:18 2023
Terminated at Tue Mar 14 01:06:13 2023
Results reported at Tue Mar 14 01:06:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.2+5301_daily_bin1778 193.307 53.0173 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.2+5301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   612.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            657 sec.

The output (if any) is above this job summary.

