/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 188 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin924
RA = 185.627, Dec = 4.2389
tmin = 478828801, tmax = 479088001
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='540228', job_status='RUN', time_executed='2021-09-05 10:28:59.605180', time_epoch_executed='1630862939.61' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540228/ft1_4FGL_J1222.5+0414_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540228/ft1_4FGL_J1222.5+0414_daily_bin924.fits outfile=/scratch/kocevski/540228/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin924.fits ra=185.627 dec=4.2389 rad=12.0 tmin=478828801.0 tmax=479088001.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 3.45
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.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/540228/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin924.fits evtable="EVENTS" outfile="/scratch/kocevski/540228/ft1_filtered_4FGL_J1222.5+0414_daily_bin924.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.50
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540228/ft1_filtered_4FGL_J1222.5+0414_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/540228/ltcube_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.fits outfile=/scratch/kocevski/540228/expmap_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.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/540228/ltcube_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.fits
.....................!
real 191.11
user 185.33
sys 5.06

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/540228/ft1_filtered_4FGL_J1222.5+0414_daily_bin924.fits scfile=/scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.fits outfile=/scratch/kocevski/540228/cmap_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.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/540228/ft1_filtered_4FGL_J1222.5+0414_daily_bin924.fits scfile=/scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.fits outfile=/scratch/kocevski/540228/cmap_HighResolution_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540228/ft1_filtered_4FGL_J1222.5+0414_daily_bin924.fits', '/scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.fits', expMap='/scratch/kocevski/540228/expmap_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.fits', expCube='/scratch/kocevski/540228/ltcube_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540228/Model_4FGL_J1222.5+0414_daily_bin924.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  1.000e-04  1.000e+04 ( 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  0.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/540228/ft1_filtered_4FGL_J1222.5+0414_daily_bin924.fits
Spacecraft file(s): /scratch/kocevski/540228/ft2_4FGL_J1222.5+0414_daily_bin924.fits
Exposure map: /scratch/kocevski/540228/expmap_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.fits
Exposure cube: /scratch/kocevski/540228/ltcube_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540228/Model_4FGL_J1222.5+0414_daily_bin924.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) = 5559.75941921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83713E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60718E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50483E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11650E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.878       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0712       1.0000         .10000E-03   10000.    
    13 'norm      '    .16115E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.913       1.0000         .10000E-03   10000.    
    21 'norm      '    4.2069       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    141.68       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6086       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.8091       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .43688       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.

 FCN=   5559.719     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3065 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    119.89       -.16889E-05** at limit **
   2  Prefactor     .10000E-03    33.696        .23592E-06** at limit **
   3  Prefactor     .10015E-03    7.1936        .58964E-06** at limit **
   4  Prefactor     .10000E-03    4.5990        .10613E-06** at limit **
   5  Prefactor     .10305E-03    93.996        .54169E-05** at limit **
   6  Prefactor     .10000E-03    35.344        .44388E-06** at limit **
   7  Prefactor     8.3232        179.56        .44076E-06   -.39043E-04
   8  Prefactor     .10000E-03    11.570        .12408E-06** at limit **
   9  Prefactor     27.864        23.528        .93464E-07   -.85740E-04
  10  Prefactor     .10000E-03    19.128        .15336E-06** at limit **
  11  Prefactor     .10000E-03    12.504        .70933E-06** at limit **
  12  norm          1.0720        1.6440       -.73754E-06   -.90084E-03
  13  norm          .10000E-03    1.7658       -.81325E-07** at limit **
  14  Prefactor     .10000E-03    12.231        .10738E-06** at limit **
  15  norm          .10000E-03    35.306       -.26165E-06** at limit **
  16  Prefactor     .10000E-03    94.669        .56559E-06** at limit **
  17  norm          2.1466        .68090       -.12534E-07   -.16841E-02
  18  Prefactor     .10000E-03    3.6676        .48390E-07** at limit **
  19  Prefactor     .10000E-03    11.580        .50086E-07** at limit **
  20  Prefactor     16.921        11.596        .82751E-07   -.70167E-05
  21  norm          4.2066        1.9417       -.16264E-07   -.32424E-03
  22  Prefactor     .10000E-03    5.2329       -.46663E-08** at limit **
  23  Prefactor     .10000E-03    19.994       -.31282E-07** at limit **
  24  Prefactor     .10000E-03    12.097       -.31179E-07** at limit **
  25  norm          141.73        51.255        .26003E-06   -.35557E-04
  26  Prefactor     5.6087        7.5341        .31402E-07   -.12062E-03
  27  Normalizat    1.8096        .25693        .20979E-05   -.37794E-03
  28  Prefactor     .43645        .20148       -.39892E-05   -.33107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100442
  Prefactor  = 0.0001
  Prefactor  = 0.000100147
  Prefactor  = 0.0001
  Prefactor  = 0.000103054
  Prefactor  = 0.000100001
  Prefactor  = 8.32319
  Prefactor  = 0.0001
  Prefactor  = 27.8644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07204
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9205
  norm       = 4.20659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 141.73
  Prefactor  = 5.60869
  Normalizat = 1.80964
  Prefactor  = 0.436445
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.719     FROM HESSE     STATUS=OK           533 CALLS     3598 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    145.55        .64888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10015E-03    101.03        .36804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6322        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10305E-03    28.642        .82557E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3232        212.94        .14019E-03   -1.5131    
   8  Prefactor     .10000E-03    11.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.864        23.505        .75876E-04   -1.4652    
  10  Prefactor     .10000E-03    19.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0720        1.6462        .13751E-02   -1.5501    
  13  norm          .10000E-03    45.270        .18220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    35.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    94.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1466        .66656        .32068E-04   -1.5415    
  18  Prefactor     .10000E-03    3.6753        .13952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.921        11.592        .97388E-04   -1.4885    
  21  norm          4.2066        1.9363        .67186E-04   -1.5298    
  22  Prefactor     .10000E-03    5.2497        .16655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          141.73        51.205        .16923E-03   -1.3321    
  26  Prefactor     5.6087        7.5365        .84815E-03   -1.5234    
  27  Normalizat    1.8096        .25974        .23499E-03   -.69412    
  28  Prefactor     .43645        .20220        .35675E-03   -1.1499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31786e-09
Minuit parameter uncertainties:
  1  0.0160772
  2  4.99032e-06
  3  0.00772298
  4  1.52508e-05
  5  0.0187151
  6  0.000313274
  7  84.5343
  8  9.64219e-06
  9  23.5126
  10  2.97724e-05
  11  0.000126354
  12  1.64624
  13  0.000594127
  14  9.59506e-06
  15  3.32688e-05
  16  5.36119e-05
  17  0.66656
  18  1.04375e-05
  19  3.62408e-05
  20  11.594
  21  1.93629
  22  5.45115e-06
  23  3.27741e-05
  24  1.2658e-05
  25  51.2207
  26  7.53775
  27  0.259942
  28  0.202528
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  5.941e-04  1.000e-04  1.000e+04 ( 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  0.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:  4.364e-01  2.025e-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.810e+00  2.599e-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.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540228/likelihoodResults_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.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) = 5559.71888184
delta logL = -0.000105804621853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5559.65322765
delta logL = 0.0655483826058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80129       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7165       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44922       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=   5559.653     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      409 TOTAL
                     EDM=   .97E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79570        2.8138        .17070E-03    .44622E-05
   2  alpha         3.7145        3.8755        .66268E-02   -.14925E-06
   3  Normalizat    1.7814        .26094        .23630E-03    .52442E-05
   4  Prefactor     .44909        .20382        .35189E-03    .30046E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.795702
  alpha      = 3.71453
  Normalizat = 1.78143
  Prefactor  = 0.449085
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.653     FROM HESSE     STATUS=OK            23 CALLS      432 TOTAL
                     EDM=   .85E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79570        2.7413        .68281E-05   -1.5530    
   2  alpha         3.7145        3.8457        .26507E-03    .50729    
   3  Normalizat    1.7814        .26107        .94519E-05   -.70149    
   4  Prefactor     .44909        .20395        .14076E-04   -1.1437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52655e-14
Minuit parameter uncertainties:
  1  2.74172
  2  2.48945
  3  0.261277
  4  0.204281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540228': 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) = 5559.65322244
delta logL = 0.0655535936394

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  7.957e-01  2.742e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.715e+00  2.489e+00  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.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:  4.491e-01  2.043e-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.781e+00  2.613e-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/540228/cmap_HighResolution_478828801_479088001_4FGL_J1222.5+0414_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-05 10:41:41.735111', job_id='540228', GAL2='0.45', fit_tolerance='1e-08', EG2='1.78', EG='1.81', time_epoch_completed='1630863701.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='6.56e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='924' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:41:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 540228: <4FGL_J1222.5+0414_daily_bin924> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin924> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:39 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:25:41 2021
Terminated at Sun Sep  5 10:41:42 2021
Results reported at Sun Sep  5 10:41:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin924 185.627 4.2389 478828801 479088001 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 :                                   759.00 sec.
    Max Memory :                                 1153 MB
    Average Memory :                             271.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

