/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 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin56
RA = 185.627, Dec = 4.2389
tmin = 253843201, tmax = 254102401
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='534143', job_status='RUN', time_executed='2021-09-05 10:07:31.674567', time_epoch_executed='1630861651.67' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534143

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534143/ft1_4FGL_J1222.5+0414_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534143/ft2_4FGL_J1222.5+0414_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534143/ft1_4FGL_J1222.5+0414_daily_bin56.fits outfile=/scratch/kocevski/534143/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin56.fits ra=185.627 dec=4.2389 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.45
user 1.29
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534143/ft1_filtered_4FGL_J1222.5+0414_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/534143/ft2_4FGL_J1222.5+0414_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/534143/ltcube_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.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/534143/ft2_4FGL_J1222.5+0414_daily_bin56.fits
.....................!
real 12.65
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534143/ft1_filtered_4FGL_J1222.5+0414_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/534143/ft2_4FGL_J1222.5+0414_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/534143/ltcube_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.fits outfile=/scratch/kocevski/534143/expmap_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.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/534143/ltcube_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.fits
.....................!
real 190.81
user 185.49
sys 4.81

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/534143/ft1_filtered_4FGL_J1222.5+0414_daily_bin56.fits scfile=/scratch/kocevski/534143/ft2_4FGL_J1222.5+0414_daily_bin56.fits outfile=/scratch/kocevski/534143/cmap_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534143/ft1_filtered_4FGL_J1222.5+0414_daily_bin56.fits scfile=/scratch/kocevski/534143/ft2_4FGL_J1222.5+0414_daily_bin56.fits outfile=/scratch/kocevski/534143/cmap_HighResolution_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.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.67
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56149E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9924       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.886       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7906       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.843       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.676       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5200       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .67625       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=   6512.512     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3422 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.029        .63679E-06** at limit **
   2  Prefactor     .10000E-03    35.610        .39180E-06** at limit **
   3  Prefactor     .10000E-03    2.6525        .14969E-07** at limit **
   4  Prefactor     .10000E-03    2.7108       -.19353E-06** at limit **
   5  Prefactor     .10000E-03    5.5503       -.14909E-06** at limit **
   6  Prefactor     .10000E-03    78.508       -.18127E-04** at limit **
   7  Prefactor     .10000E-03    22.417       -.20372E-07** at limit **
   8  Prefactor     .10000E-03    13.244        .39145E-06** at limit **
   9  Prefactor     4.6893        24.572       -.12120E-05    .53461E-05
  10  Prefactor     10.017        20.530        .27790E-07    .12086E-04
  11  Prefactor     .10000E-03    15.160        .68120E-06** at limit **
  12  norm          1.9881        2.6207       -.23615E-06   -.54154E-04
  13  norm          3.0307        3.2371       -.69213E-06   -.17481E-03
  14  Prefactor     .10000E-03    11.366       -.11686E-05** at limit **
  15  norm          .10000E-03    24.804       -.68479E-06** at limit **
  16  Prefactor     87.920        126.38       -.42138E-05   -.32369E-04
  17  norm          1.7909        .62456        .42903E-07    .53610E-03
  18  Prefactor     .10000E-03    10.988       -.39436E-05** at limit **
  19  Prefactor     14.857        26.541       -.31591E-05    .22675E-04
  20  Prefactor     .10000E-03    4.3618        .25686E-06** at limit **
  21  norm          11.678        2.4892       -.14416E-07    .23481E-03
  22  Prefactor     .10000E-03    3.3644        .11260E-06** at limit **
  23  Prefactor     .10000E-03    12.225       -.26561E-06** at limit **
  24  Prefactor     .10000E-03    24.756       -.10740E-05** at limit **
  25  norm          .10000E-03    8.4189        .10015E-05** at limit **
  26  Prefactor     .10000E-03    9.3063       -.56511E-06** at limit **
  27  Normalizat    1.5188        .21438        .11812E-05    .84544E-04
  28  Prefactor     .67709        .16711       -.18089E-06    .36631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68931
  Prefactor  = 10.0172
  Prefactor  = 0.0001
  norm       = 1.98815
  norm       = 3.0307
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 87.9198
  norm       = 1.79089
  Prefactor  = 0.0001
  Prefactor  = 14.8574
  Prefactor  = 0.0001
  norm       = 11.6777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51885
  Prefactor  = 0.677087
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.512     FROM HESSE     STATUS=OK           511 CALLS     3933 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6558        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7173        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.699        .50196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6893        24.485        .18619E-03   -1.5275    
  10  Prefactor     10.017        20.505        .12660E-03   -1.5075    
  11  Prefactor     .10000E-03    15.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9881        2.5912        .14115E-03   -1.5426    
  13  norm          3.0307        3.2377        .13757E-03   -1.5360    
  14  Prefactor     .10000E-03    11.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    24.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.920        126.96        .21429E-03   -1.3830    
  17  norm          1.7909        .62079        .34375E-04   -1.5440    
  18  Prefactor     .10000E-03    11.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.857        26.188        .10396E-03   -1.4937    
  20  Prefactor     .10000E-03    4.4221        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.678        2.4884        .55711E-04   -1.5024    
  22  Prefactor     .10000E-03    3.3886        .14453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.4475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.3947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5188        .24365        .25415E-03   -.77250    
  28  Prefactor     .67709        .19262        .29583E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.50922e-10
Minuit parameter uncertainties:
  1  3.50122e-05
  2  1.95818e-05
  3  2.40638e-06
  4  5.89427e-06
  5  1.34021e-05
  6  0.000678649
  7  1.17353e-05
  8  1.52401e-05
  9  21.4441
  10  20.5198
  11  7.9928e-05
  12  2.59132
  13  3.23787
  14  5.47285e-05
  15  1.96217e-06
  16  127.354
  17  0.620792
  18  2.91925e-06
  19  26.2079
  20  1.00971e-06
  21  2.48839
  22  4.71757e-06
  23  2.66273e-05
  24  0.000106868
  25  4.54703e-05
  26  4.39954e-05
  27  0.243839
  28  0.192808
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  6.771e-01  1.928e-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.519e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/534143/likelihoodResults_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.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) = 6512.51108609
delta logL = 0.000435139873844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6512.51105286
delta logL = 0.000468369278678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0307       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7309       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67827       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=   6512.511     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      236 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0366        3.0956        .13638E-03   -.55524E-03
   2  alpha         2.7350        1.5054        .36634E-01   -.19222E-04
   3  Normalizat    1.5167        .24576        .25428E-03   -.49225E-03
   4  Prefactor     .67839        .19616        .29557E-03   -.31252E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.03665
  alpha      = 2.73502
  Normalizat = 1.51674
  Prefactor  = 0.678391
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.511     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0366        3.0763        .54554E-05   -1.5359    
   2  alpha         2.7350        1.4989        .14654E-02    .94149E-01
   3  Normalizat    1.5167        .24651        .50855E-04   -.77309    
   4  Prefactor     .67839        .19640        .11823E-04   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81114e-10
Minuit parameter uncertainties:
  1  3.07651
  2  1.60856
  3  0.246709
  4  0.196601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534143': 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) = 6512.51104769
delta logL = 0.000473531577882

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.037e+00  3.077e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.735e+00  1.609e+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:  6.784e-01  1.966e-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.517e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.74 +/- 1.61
Photon Flux (Free Index): 4.82e-08 +/- 7.04e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/534143/cmap_HighResolution_253843201_254102401_4FGL_J1222.5+0414_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='1.08e-05', photon_flux_error='4.98e-08', dlogl='4.74e-04', energy_flux='1.08e-05', photon_flux2='4.82e-08', job_status='DONE', time_completed='2021-09-05 10:21:23.087871', photon_index_error2='1.61', photon_index2='2.74', ts='1.35', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.11e-05', EG='1.52', time_epoch_completed='1630862483.09', return_code='0', job_id='534143', GAL2='0.68', EG2='1.52', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='7.04e-08', ts2='1.40', photon_index='2.69' WHERE bin_id='56' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 534143: <4FGL_J1222.5+0414_daily_bin56> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 10:05:57 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:05:59 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:05:59 2021
Terminated at Sun Sep  5 10:21:23 2021
Results reported at Sun Sep  5 10:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin56 185.627 4.2389 253843201 254102401 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 :                                   828.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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

