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


Performing analysis on: 4FGL_J1222.5+0414_weekly_bin753
RA = 185.627, Dec = 4.2389
tmin = 694396801, tmax = 695001601
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='240435', job_status='RUN', time_executed='2023-01-10 03:25:55.750898', time_epoch_executed='1673349955.75' WHERE source_name='4FGL J1222.5+0414' and cadence='weekly' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240435

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240435/ft1_4FGL_J1222.5+0414_weekly_bin753.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240435/ft1_4FGL_J1222.5+0414_weekly_bin753.fits outfile=/scratch/kocevski/240435/ft1_filteredMKT_4FGL_J1222.5+0414_weekly_bin753.fits ra=185.627 dec=4.2389 rad=12.0 tmin=694396801.0 tmax=695001601.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 6.14
user 5.85
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.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/240435/ft1_filteredMKT_4FGL_J1222.5+0414_weekly_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/240435/ft1_filtered_4FGL_J1222.5+0414_weekly_bin753.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.56
user 0.37
sys 0.18

Number of photons that the gtmktime cut: 1447

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240435/ft1_filtered_4FGL_J1222.5+0414_weekly_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/240435/ltcube_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.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/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.fits
.....................!
real 32.35
user 31.72
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240435/ft1_filtered_4FGL_J1222.5+0414_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/240435/ltcube_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.fits outfile=/scratch/kocevski/240435/expmap_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.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/240435/ltcube_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.fits
.....................!
real 191.92
user 185.89
sys 5.45

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/240435/ft1_filtered_4FGL_J1222.5+0414_weekly_bin753.fits scfile=/scratch/kocevski/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.fits outfile=/scratch/kocevski/240435/cmap_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.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.63
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240435/ft1_filtered_4FGL_J1222.5+0414_weekly_bin753.fits scfile=/scratch/kocevski/240435/ft2_4FGL_J1222.5+0414_weekly_bin753.fits outfile=/scratch/kocevski/240435/cmap_HighResolution_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12876E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57876E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13489E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .27665E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.5313       1.0000          .0000       .10000E+07
     6 'Prefactor '    18.897       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14640E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15183E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12632E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12319E-04   1.0000          .0000       .10000E+07
    11 'norm      '    1.7632       1.0000          .0000       .10000E+07
    12 'norm      '    3.8513       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.2088       1.0000          .0000       .10000E+07
    14 'norm      '    .91760E-07   1.0000          .0000       .10000E+07
    15 'norm      '    1.7485       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.2117       1.0000          .0000       .10000E+07
    17 'Prefactor '    .39236E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .57732E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .25445       1.0000          .0000       .10000E+07
    20 'norm      '    .46873E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.0404       1.0000          .0000       .10000E+07
    22 'Normalizat'    .84887       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1437       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=   15909.52     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1594 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83822E-08    23.064        .27772E-06** at limit **
   2  Prefactor     .55511E-10    7.5697       -.16727E-05** at limit **
   3  Prefactor     .55511E-10    2.3524        .10043E-06** at limit **
   4  Prefactor     .51736E-07    16.461       -.21376E-05** at limit **
   5  Prefactor     3.4996        10.158        .58237E-06    .37822E-04
   6  Prefactor     15.911        37.511        .16504E-05   -.50757E-03
   7  Prefactor     .55511E-10    6.3509       -.85725E-06** at limit **
   8  Prefactor     .55511E-10    10.926       -.12217E-06** at limit **
   9  Prefactor     .47629E-07    12.472       -.14415E-05** at limit **
  10  Prefactor      .0000        3.4969       -.15331E-06** at limit **
  11  norm          1.7618        1.2239        .36579E-07    .75032E-02
  12  norm          3.8497        1.8420       -.74291E-07   -.25289E-02
  13  Prefactor     9.1998        2.4602       -.43103E-06   -.12433E-01
  14  norm          .83267E-09    6.6162        .22658E-05** at limit **
  15  norm          1.7478        .34602        .31788E-07    .15114E-01
  16  Prefactor     8.2251        4.9548       -.18296E-06   -.16917E-02
  17  Prefactor      .0000        2.0023        .20621E-06** at limit **
  18  norm           .0000        .32247        .89580E-07** at limit **
  19  Prefactor     .22812        13.200        .11390E-05** at limit **
  20  norm           .0000        2.9286       -.48527E-07** at limit **
  21  Prefactor     1.0617        5.6766       -.28877E-06   -.68795E-03
  22  Normalizat    .84975        .13904       -.26080E-05    .11812E-03
  23  Prefactor     1.1437        .11802        .20463E-05    .26087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38218e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 5.17364e-08
  Prefactor  = 3.49959
  Prefactor  = 15.9113
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 4.76286e-08
  Prefactor  = 0
  norm       = 1.76177
  norm       = 3.84969
  Prefactor  = 9.19975
  norm       = 8.32667e-10
  norm       = 1.74785
  Prefactor  = 8.22514
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.228117
  norm       = 0
  Prefactor  = 1.06166
  Normalizat = 0.849747
  Prefactor  = 1.14372
 **********
 **   18 **HESSE 
 **********

 FCN=   15909.52     FROM HESSE     STATUS=OK           426 CALLS     2020 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83822E-08    26.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    7.6295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    2.3387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51736E-07    3.1141        .80792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4996        10.233        .53768E-03   -1.5671    
   6  Prefactor     15.911        38.492        .23012E-03   -1.5628    
   7  Prefactor     .55511E-10    6.3930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    10.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .47629E-07    24.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.4868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7618        1.2246        .78868E-03   -1.5681    
  12  norm          3.8497        1.8505        .51399E-03   -1.5669    
  13  Prefactor     9.1998        10.804        .33002E-03   -1.5647    
  14  norm          .83267E-09    6.7587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7478        .34711        .68999E-03   -1.5682    
  16  Prefactor     8.2251        4.9531        .34962E-03   -1.5651    
  17  Prefactor      .0000        2.0003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .31548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22812        1.3779        .81079E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.9287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0617        5.6196        .12275E-02   -1.5687    
  22  Normalizat    .84975        .12102        .65619E-01   -.98249    
  23  Prefactor     1.1437        .10175        .36122E-01   -.88081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42735e-06
Minuit parameter uncertainties:
  1  0.000935853
  2  3.2182e-05
  3  1.72503e-05
  4  0.000802812
  5  10.233
  6  38.4931
  7  4.32532e-05
  8  6.02946e-05
  9  0.00215211
  10  1.75916e-05
  11  1.22458
  12  1.85054
  13  10.8036
  14  0.000147953
  15  0.347112
  16  4.95313
  17  3.99584e-07
  18  1.35335e-06
  19  1.12129
  20  1.25259e-06
  21  4.88511
  22  0.121059
  23  0.101768
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.850e+00  1.851e+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:  1.144e+00  1.018e-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:  8.497e-01  1.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.82
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 5.92e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 6.58e-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) = 15908.1880794
delta logL = 1.3291799595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15908.1747008
delta logL = 1.34255862707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6873       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9365       1.0000          .0000       5.0000    
     3 'Normalizat'    .88240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1210       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=   15908.17     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6861        1.6438        .52572E-03    .50643E-02
   2  alpha         1.9362        .28721        .39611       -.10786E-03
   3  Normalizat    .88259        .11655        .64528E-01    .45671E-04
   4  Prefactor     1.1208        .10081        .36839E-01    .38909E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.68615
  alpha      = 1.93617
  Normalizat = 0.882587
  Prefactor  = 1.1208
 **********
 **   18 **HESSE 
 **********

 FCN=   15908.17     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6861        1.8425        .10424E-04   -1.5670    
   2  alpha         1.9362        .38989        .14484E-01   -.22749    
   3  Normalizat    .88259        .13548        .28543E-03   -.97075    
   4  Prefactor     1.1208        .11700        .22113E-03   -.88805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50808e-11
Minuit parameter uncertainties:
  1  1.84251
  2  0.391575
  3  0.135532
  4  0.117025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240435': 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) = 15908.1746994
delta logL = 1.34256001176

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.686e+00  1.843e+00  0.000e+00  1.000e+06 ( 1.000e-11)
325        alpha:  1.936e+00  3.916e-01  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.121e+00  1.170e-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:  8.826e-01  1.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 185.627 4.239
Photon Index (Free Index): 1.94 +/- 0.39
Photon Flux (Free Index): 3.96e-08 +/- 2.20e-08
Energy Flux (Free Index): 1.89e-05 +/- 9.60e-06

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/240435/cmap_HighResolution_694396801_695001601_4FGL_J1222.5+0414_weekly_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.92e-08', energy_flux2='1.89e-05', photon_flux_error='2.84e-08', dlogl='1.34e+00', energy_flux='1.37e-05', photon_flux2='3.96e-08', job_status='DONE', time_completed='2023-01-10 03:41:54.184203', photon_index_error2='0.39', photon_index2='1.94', ts='7.82', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='9.60e-06', EG='0.85', time_epoch_completed='1673350914.18', return_code='0', job_id='240435', GAL2='1.12', EG2='0.88', return_code2='0', energy_flux_error='6.58e-06', photon_flux_error2='2.20e-08', ts2='10.41', photon_index='2.69' WHERE bin_id='753' AND source_name='4FGL J1222.5+0414' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 10 03:41:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 240435: <4FGL_J1222.5+0414_weekly_bin753> in cluster <slac> Done

Job <4FGL_J1222.5+0414_weekly_bin753> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 10 03:25:17 2023
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 03:25:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 03:25:35 2023
Terminated at Tue Jan 10 03:41:55 2023
Results reported at Tue Jan 10 03:41:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_weekly_bin753 185.627 4.2389 694396801 695001601 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 :                                   958.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            998 sec.

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

