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 86 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 = 7462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin1712
RA = 185.627, Dec = 4.2389
tmin = 683078401, tmax = 683337601
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='117717', job_status='RUN', time_executed='2022-09-16 16:43:41.226331', time_epoch_executed='1663371821.23' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117717/ft1_4FGL_J1222.5+0414_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117717/ft1_4FGL_J1222.5+0414_daily_bin1712.fits outfile=/scratch/kocevski/117717/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin1712.fits ra=185.627 dec=4.2389 rad=12.0 tmin=683078401.0 tmax=683337601.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.76
user 4.52
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.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/117717/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/117717/ltcube_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.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/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits
.....................!
real 12.84
user 12.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/117717/ltcube_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.fits outfile=/scratch/kocevski/117717/expmap_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.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/117717/ltcube_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.fits
.....................!
real 193.33
user 188.21
sys 4.74

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits scfile=/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits outfile=/scratch/kocevski/117717/cmap_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.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=185.627 yref=4.2389 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits scfile=/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits outfile=/scratch/kocevski/117717/cmap_HighResolution_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.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=185.627 yref=4.2389 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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117717/Model_4FGL_J1222.5+0414_daily_bin1712.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/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits.....................!
real 55.91
user 54.56
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits', '/scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits', expMap='/scratch/kocevski/117717/expmap_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.fits', expCube='/scratch/kocevski/117717/ltcube_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117717/Model_4FGL_J1222.5+0414_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117717/ft1_filtered_4FGL_J1222.5+0414_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/117717/ft2_4FGL_J1222.5+0414_daily_bin1712.fits
Exposure map: /scratch/kocevski/117717/expmap_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.fits
Exposure cube: /scratch/kocevski/117717/ltcube_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117717/Model_4FGL_J1222.5+0414_daily_bin1712.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) = 6510.9093033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.99       1.0000          .0000       .10000E+07
     2 'Prefactor '    15.451       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1398       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28729E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1410       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81468E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.1319       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.104       1.0000          .0000       .10000E+07
     9 'Prefactor '    48.178       1.0000          .0000       .10000E+07
    10 'Prefactor '    32.236       1.0000          .0000       .10000E+07
    11 'norm      '    .96214       1.0000          .0000       .10000E+07
    12 'norm      '    .21708E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.997       1.0000          .0000       .10000E+07
    14 'norm      '    37.728       1.0000          .0000       .10000E+07
    15 'norm      '    .32255       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.780       1.0000          .0000       .10000E+07
    17 'Prefactor '    .52636E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.5551       1.0000          .0000       .10000E+07
    19 'Prefactor '    12.876       1.0000          .0000       .10000E+07
    20 'norm      '    .24011E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    6.0794       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6510.816     FROM MIGRAD    STATUS=CONVERGED    207 CALLS     1947 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     132.09        114.97       -.12372E-06   -.34674E-02
   2  Prefactor     15.530        13.140        .17617E-06   -.32980E-01
   3  Prefactor     6.9684        6.4807        .58920E-07   -.10228E-02
   4  Prefactor     .42688E-07    9.0390       -.52056E-07** at limit **
   5  Prefactor     1.2268        27.134       -.21162E-06   -.31169E-02
   6  Prefactor     .60646E-06    34.589       -.58658E-07** at limit **
   7  Prefactor     1.9029        115.44       -.14206E-06    .51480E-02
   8  Prefactor     14.122        7.5378       -.76255E-08    .31036E-01
   9  Prefactor     48.268        17.734        .84247E-07   -.17360    
  10  Prefactor     32.208        13.164       -.29457E-07    .17521    
  11  norm          .96921        2.4446        .97142E-07   -.98646E-02
  12  norm          .11102E-09    6.0027       -.17734E-06** at limit **
  13  Prefactor     42.959        43.619       -.23608E-06   -.76912E-02
  14  norm          37.662        7.6806        .39112E-08   -.82067E-01
  15  norm          .32558        .47837        .13037E-07    .40375E-02
  16  Prefactor     11.818        10.783        .83207E-07    .45064E-02
  17  Prefactor     .31719E-06    31.890        .66901E-06** at limit **
  18  norm          1.5574        1.2801       -.21451E-07   -.37243E-02
  19  Prefactor     12.834        7.5156        .63015E-08   -.26992E-02
  20  norm          .46851E-07    8.0537       -.15702E-06** at limit **
  21  Prefactor     6.1642        13.510       -.27444E-06   -.59373E-01
  22  Normalizat    1.0287        .25478       -.41172E-06    .45452E-04
  23  Prefactor     .99028        .19825        .80913E-06    .98519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 132.085
  Prefactor  = 15.5298
  Prefactor  = 6.96835
  Prefactor  = 4.26881e-08
  Prefactor  = 1.22685
  Prefactor  = 6.06459e-07
  Prefactor  = 1.90291
  Prefactor  = 14.1225
  Prefactor  = 48.2683
  Prefactor  = 32.2083
  norm       = 0.969215
  norm       = 1.11022e-10
  Prefactor  = 42.9586
  norm       = 37.6619
  norm       = 0.325584
  Prefactor  = 11.8184
  Prefactor  = 3.17191e-07
  norm       = 1.55738
  Prefactor  = 12.8344
  norm       = 4.68514e-08
  Prefactor  = 6.16422
  Normalizat = 1.02875
  Prefactor  = 0.990275
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.816     FROM HESSE     STATUS=OK           424 CALLS     2371 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     132.09        114.34        .90546E-04   -1.5478    
   2  Prefactor     15.530        13.210        .25454E-03   -1.5629    
   3  Prefactor     6.9684        6.5101        .37517E-03   -1.5655    
   4  Prefactor     .42688E-07    9.0809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2268        26.822        .10878E-02   -1.5686    
   6  Prefactor     .60646E-06    35.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9029        117.48        .10969E-02   -1.5680    
   8  Prefactor     14.122        23.349        .26645E-03   -1.5633    
   9  Prefactor     48.268        31.120        .14408E-03   -1.5569    
  10  Prefactor     32.208        17.679        .17615E-03   -1.5594    
  11  norm          .96921        2.5710        .42420E-03   -1.5688    
  12  norm          .11102E-09    5.9265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.959        43.853        .15619E-03   -1.5577    
  14  norm          37.662        40.882        .16282E-03   -1.5585    
  15  norm          .32558        .52644        .99072E-03   -1.5697    
  16  Prefactor     11.818        10.782        .29162E-03   -1.5639    
  17  Prefactor     .31719E-06    31.574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5574        1.3016        .85341E-03   -1.5683    
  19  Prefactor     12.834        7.5446        .27890E-03   -1.5636    
  20  norm          .46851E-07    8.0946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1642        14.213        .40696E-03   -1.5658    
  22  Normalizat    1.0287        .21926        .67330E-01   -.92074    
  23  Prefactor     .99028        .16976        .46135E-01   -.93054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19545e-06
Minuit parameter uncertainties:
  1  114.339
  2  13.2104
  3  6.51009
  4  0.00124483
  5  11.4728
  6  0.00922865
  7  29.9041
  8  23.3487
  9  31.1204
  10  17.679
  11  2.57104
  12  4.9745e-05
  13  43.853
  14  40.8824
  15  0.52644
  16  10.7817
  17  0.00632901
  18  1.30161
  19  7.54463
  20  0.00123192
  21  14.2129
  22  0.21945
  23  0.169851
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.110e-10  4.974e-05  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.903e-01  1.699e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.029e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117717/likelihoodResults_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.txt

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): 102
logL (Free Index) = 6510.92596363
delta logL = -0.11027388346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6510.57239115
delta logL = 0.243298592124

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6510.572     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      310 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40771        .74806        .75958E-05   -.15117E-03
   2  alpha         5.0000        4.8244        .50000    ** at limit **
   3  Normalizat    .97740        .24891        .30441E-03   -.52284E-06
   4  Prefactor     1.0175        .20122        .24680E-03    .36851E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.407714
  alpha      = 5
  Normalizat = 0.9774
  Prefactor  = 1.01747
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.572     FROM HESSE     STATUS=OK            29 CALLS      339 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40771        .74352        .30383E-06   -1.5695    
   2  alpha         5.0000        4.8144        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97740        .24918        .12177E-04   -.93791    
   4  Prefactor     1.0175        .20143        .98720E-05   -.92149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25695e-12
Minuit parameter uncertainties:
  1  0.743516
  2  7.43752e-05
  3  0.249475
  4  0.201577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117717': 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) = 6510.5723849
delta logL = 0.243304845554

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.077e-01  7.435e-01  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  5.000e+00  7.438e-05  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.017e+00  2.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  9.774e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.627 4.239

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/117717/cmap_HighResolution_683078401_683337601_4FGL_J1222.5+0414_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2022-09-16 16:54:22.615016', job_id='117717', GAL2='1.02', fit_tolerance='1e-08', EG2='0.98', EG='1.03', time_epoch_completed='1663372462.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.43e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='1712' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:54:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 117717: <4FGL_J1222.5+0414_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin1712> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:39 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:42:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:42:06 2022
Terminated at Fri Sep 16 16:54:23 2022
Results reported at Fri Sep 16 16:54:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin1712 185.627 4.2389 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   643.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            824 sec.

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

