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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin1759
RA = 185.627, Dec = 4.2389
tmin = 695260801, tmax = 695520001
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='557005', job_status='RUN', time_executed='2023-01-16 01:08:19.854434', time_epoch_executed='1673860099.85' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557005

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557005/ft1_4FGL_J1222.5+0414_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557005/ft1_4FGL_J1222.5+0414_daily_bin1759.fits outfile=/scratch/kocevski/557005/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin1759.fits ra=185.627 dec=4.2389 rad=12.0 tmin=695260801.0 tmax=695520001.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 2.75
user 2.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.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/557005/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.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.16

Number of photons that the gtmktime cut: 907

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/557005/ltcube_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.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/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits
.....................!
real 14.72
user 14.22
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/557005/ltcube_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.fits outfile=/scratch/kocevski/557005/expmap_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.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/557005/ltcube_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.fits
.....................!
real 193.19
user 185.76
sys 6.21

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/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.fits scfile=/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits outfile=/scratch/kocevski/557005/cmap_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.fits scfile=/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits outfile=/scratch/kocevski/557005/cmap_HighResolution_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.fits', '/scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits', expMap='/scratch/kocevski/557005/expmap_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.fits', expCube='/scratch/kocevski/557005/ltcube_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/557005/Model_4FGL_J1222.5+0414_daily_bin1759.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/557005/ft1_filtered_4FGL_J1222.5+0414_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/557005/ft2_4FGL_J1222.5+0414_daily_bin1759.fits
Exposure map: /scratch/kocevski/557005/expmap_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.fits
Exposure cube: /scratch/kocevski/557005/ltcube_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/557005/Model_4FGL_J1222.5+0414_daily_bin1759.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) = 9820.19167119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.228       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.2173       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9505       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84802E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19648E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21984E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    12.072       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.339       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12692E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3521       1.0000          .0000       .10000E+07
    11 'norm      '    .46406E-05   1.0000          .0000       .10000E+07
    12 'norm      '    3.7205       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11007E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .32906E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .81889       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.2761       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.949       1.0000          .0000       .10000E+07
    18 'norm      '    1.0782       1.0000          .0000       .10000E+07
    19 'Prefactor '    18.714       1.0000          .0000       .10000E+07
    20 'norm      '    7.5575       1.0000          .0000       .10000E+07
    21 'Prefactor '    .38196E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4229       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96661       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=   9820.164     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1986 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.239        95.776        .12434E-05   -.44020E-03
   2  Prefactor     8.2321        6.8770        .16346E-06   -.76296E-03
   3  Prefactor     1.9789        12.684       -.18038E-05   -.18807E-03
   4  Prefactor      .0000        27.200       -.15833E-05** at limit **
   5  Prefactor      .0000        4.9974       -.19350E-06** at limit **
   6  Prefactor     .55511E-08    76.938        .58697E-05** at limit **
   7  Prefactor     12.641        44.854       -.66269E-05   -.32405E-04
   8  Prefactor     13.228        15.128       -.73390E-06    .35699E-03
   9  Prefactor      .0000        5.8147       -.43448E-06** at limit **
  10  Prefactor     1.3901        17.402        .77501E-06    .27885E-03
  11  norm           .0000        1.2358        .11355E-06** at limit **
  12  norm          3.7142        2.9913       -.23147E-07    .80907E-03
  13  Prefactor      .0000        28.547        .56593E-06** at limit **
  14  norm          .55511E-10    59.792       -.11243E-05** at limit **
  15  norm          .81926        .44651       -.45249E-08   -.42665E-02
  16  Prefactor     9.0816        5.8389       -.72143E-06    .24368E-01
  17  Prefactor     12.013        8.2065       -.10865E-06    .13601E-02
  18  norm          1.0801        1.1556       -.17052E-06    .14869E-02
  19  Prefactor     18.576        7.3002        .12958E-06    .19724E-02
  20  norm          7.4365        11.486       -.14521E-05   -.10752E-01
  21  Prefactor     .61062E-09    9.1558        .13015E-06** at limit **
  22  Normalizat    1.4216        .22804        .15746E-04   -.15698E-04
  23  Prefactor     .96731        .17585       -.12190E-04    .18699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.2389
  Prefactor  = 8.23213
  Prefactor  = 1.97886
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-09
  Prefactor  = 12.6412
  Prefactor  = 13.2285
  Prefactor  = 0
  Prefactor  = 1.39011
  norm       = 0
  norm       = 3.71415
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 0.819259
  Prefactor  = 9.08165
  Prefactor  = 12.0129
  norm       = 1.08012
  Prefactor  = 18.576
  norm       = 7.43649
  Prefactor  = 6.10623e-10
  Normalizat = 1.42163
  Prefactor  = 0.967314
 **********
 **   18 **HESSE 
 **********

 FCN=   9820.164     FROM HESSE     STATUS=OK           422 CALLS     2408 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.239        95.438        .11850E-03   -1.5537    
   2  Prefactor     8.2321        6.8760        .34950E-03   -1.5651    
   3  Prefactor     1.9789        13.679        .74278E-03   -1.5680    
   4  Prefactor      .0000        27.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        4.9946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-08    76.507        .16910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.641        46.067        .28806E-03   -1.5637    
   8  Prefactor     13.228        15.235        .27400E-03   -1.5635    
   9  Prefactor      .0000        5.8197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3901        17.972        .94026E-03   -1.5684    
  11  norm           .0000        1.2291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7142        3.0246        .52328E-03   -1.5669    
  13  Prefactor      .0000        28.530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    58.244        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .81926        .45709        .51537E-03   -1.5690    
  16  Prefactor     9.0816        13.267        .32882E-03   -1.5648    
  17  Prefactor     12.013        8.2248        .28955E-03   -1.5639    
  18  norm          1.0801        1.1931        .11619E-02   -1.5687    
  19  Prefactor     18.576        7.3399        .23125E-03   -1.5622    
  20  norm          7.4365        12.548        .36456E-03   -1.5653    
  21  Prefactor     .61062E-09    9.1491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4216        .19193        .62939E-01   -.80005    
  23  Prefactor     .96731        .14787        .45848E-01   -.93827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6844e-07
Minuit parameter uncertainties:
  1  95.4399
  2  6.87601
  3  10.4056
  4  5.90931e-06
  5  9.13977e-06
  6  0.0013015
  7  46.0686
  8  15.2353
  9  1.97325e-05
  10  9.99654
  11  4.445e-06
  12  3.02464
  13  2.8077e-05
  14  8.41419e-05
  15  0.457091
  16  13.2672
  17  8.2248
  18  1.19307
  19  7.33987
  20  12.5478
  21  0.000150767
  22  0.192023
  23  0.147934
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.714e+00  3.025e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.673e-01  1.479e-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.422e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/557005/likelihoodResults_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.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): 0
logL (Free Index) = 9819.89814629
delta logL = 0.266093601547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9819.89596075
delta logL = 0.268279139018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8525       1.0000          .0000       .10000E+07
     2 'alpha     '    3.5702       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99641       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.

 FCN=   9819.896     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8525        41.816        .60171E-03    .76521E-02
   2  alpha         3.5702        2.5426        .47379        .53787E-04
   3  Normalizat    1.3766        .68432E-01    .63767E-01    .10770E-04
   4  Prefactor     .99641        .57776E-01    .46222E-01    .18128E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85254
  alpha      = 3.57024
  Normalizat = 1.37655
  Prefactor  = 0.996409
 **********
 **   18 **HESSE 
 **********

 FCN=   9819.896     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8525        3.9866        .10647E-04   -1.5674    
   2  alpha         3.5702        1.5620        .32841E-01    .44239    
   3  Normalizat    1.3766        .22338        .28206E-03   -.81309    
   4  Prefactor     .99641        .17945        .26711E-03   -.92849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6847e-11
Minuit parameter uncertainties:
  1  3.98662
  2  1.72473
  3  0.22354
  4  0.179558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557005': 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) = 9819.89596075
delta logL = 0.268279141854

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.853e+00  3.987e+00  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  3.570e+00  1.725e+00  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:  9.964e-01  1.796e-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.377e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.57 +/- 1.72
Photon Flux (Free Index): 8.53e-08 +/- 6.19e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/557005/cmap_HighResolution_695260801_695520001_4FGL_J1222.5+0414_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='1.41e-05', photon_flux_error='4.65e-08', dlogl='2.68e-01', energy_flux='1.32e-05', photon_flux2='8.53e-08', job_status='DONE', time_completed='2023-01-16 01:21:56.500340', photon_index_error2='1.72', photon_index2='3.57', ts='2.30', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.01e-05', EG='1.42', time_epoch_completed='1673860916.5', return_code='0', job_id='557005', GAL2='1.00', EG2='1.38', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='6.19e-08', ts2='2.95', photon_index='2.69' WHERE bin_id='1759' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:21:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 557005: <4FGL_J1222.5+0414_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 01:05:22 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:06:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:06:47 2023
Terminated at Mon Jan 16 01:21:57 2023
Results reported at Mon Jan 16 01:21:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin1759 185.627 4.2389 695260801 695520001 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 :                                   816.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            995 sec.

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

