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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin723
RA = 335.71, Dec = 12.1568
tmin = 426729601, tmax = 426988801
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='279389', job_status='RUN', time_executed='2021-09-28 10:19:11.220872', time_epoch_executed='1632849551.22' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279389

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279389/ft1_4FGL_J2222.8+1209_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279389/ft1_4FGL_J2222.8+1209_daily_bin723.fits outfile=/scratch/kocevski/279389/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin723.fits ra=335.71 dec=12.1568 rad=12.0 tmin=426729601.0 tmax=426988801.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 5.54
user 5.27
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.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/279389/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/279389/ltcube_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.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/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits
.....................!
real 12.01
user 11.69
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/279389/ltcube_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.fits outfile=/scratch/kocevski/279389/expmap_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.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/279389/ltcube_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.fits
.....................!
real 192.91
user 187.29
sys 5.25

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

Setting source of interest to:
4FGL J2222.8+1209 @ 335.71 12.1568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits scfile=/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits outfile=/scratch/kocevski/279389/cmap_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.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=335.71 yref=12.1568 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits scfile=/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits outfile=/scratch/kocevski/279389/cmap_HighResolution_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.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=335.71 yref=12.1568 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279389/Model_4FGL_J2222.8+1209_daily_bin723.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/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits.....................!
real 77.64
user 76.24
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits', '/scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits', expMap='/scratch/kocevski/279389/expmap_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.fits', expCube='/scratch/kocevski/279389/ltcube_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279389/Model_4FGL_J2222.8+1209_daily_bin723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2222.8+1209'

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/279389/ft1_filtered_4FGL_J2222.8+1209_daily_bin723.fits
Spacecraft file(s): /scratch/kocevski/279389/ft2_4FGL_J2222.8+1209_daily_bin723.fits
Exposure map: /scratch/kocevski/279389/expmap_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.fits
Exposure cube: /scratch/kocevski/279389/ltcube_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279389/Model_4FGL_J2222.8+1209_daily_bin723.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) = 7385.19643658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11820E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.109       1.0000         .10000E-03   10000.    
     4 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.826       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3280       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5337       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.644       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.524       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3879       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74966       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7385.194     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3131 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.348        4.2732       -.66684E-07    .12729E-03
   2  Prefactor     .10000E-03    119.12       -.67330E-05** at limit **
   3  Prefactor     56.114        60.604        .51775E-05   -.35726E-07
   4  norm          .10000E-03    1.9339        .13111E-06** at limit **
   5  norm          14.820        20.823       -.11657E-05   -.26528E-04
   6  Prefactor     .10000E-03    63.320       -.12024E-04** at limit **
   7  Prefactor     .10000E-03    72.437        .18007E-04** at limit **
   8  norm          2.3278        1.2946       -.39981E-07   -.19507E-03
   9  Prefactor     4.3169        21.643       -.80322E-06   -.51554E-04
  10  Prefactor     .10000E-03    6.0739        .15388E-06** at limit **
  11  Prefactor     .10000E-03    10.558        .46299E-06** at limit **
  12  norm          16.898        9.7741        .12186E-07   -.28796E-04
  13  Prefactor     .10000E-03    4.3604       -.15793E-06** at limit **
  14  Prefactor     7.5214        23.922       -.42862E-06   -.25192E-04
  15  Prefactor     .10000E-03    .65794E-01    .13106E-08** at limit **
  16  Prefactor     .10000E-03    5.7894        .70153E-07** at limit **
  17  norm          .10000E-03    1.0347       -.10761E-06** at limit **
  18  Prefactor     .10000E-03    21.612       -.72508E-06** at limit **
  19  Prefactor     25.646        19.373        .24714E-07    .23944E-05
  20  Prefactor     .10000E-03    13.604       -.10616E-07** at limit **
  21  Prefactor     6.8955        .60882        .28144E-07    .10547E-03
  22  Prefactor     22.519        48.532       -.59976E-05   -.18566E-05
  23  Prefactor     .10000E-03    7.3911        .36205E-06** at limit **
  24  Prefactor     .10000E-03    27.796        .51128E-06** at limit **
  25  Normalizat    1.3881        .27968        .11851E-06   -.69546E-05
  26  Prefactor     .74946        .13174       -.31687E-06    .16777E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3482
  Prefactor  = 0.0001
  Prefactor  = 56.1141
  norm       = 0.0001
  norm       = 14.8204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.32778
  Prefactor  = 4.31694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.898
  Prefactor  = 0.0001
  Prefactor  = 7.52143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.646
  Prefactor  = 0.0001
  Prefactor  = 6.89554
  Prefactor  = 22.5186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3881
  Prefactor  = 0.749462
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.194     FROM HESSE     STATUS=OK           454 CALLS     3585 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.348        4.2710        .87690E-04   -1.4924    
   2  Prefactor     .10000E-03    119.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.114        60.651        .53553E-04   -1.4208    
   4  norm          .10000E-03    2.0013        .23229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.820        20.839        .10402E-03   -1.4938    
   6  Prefactor     .10000E-03    63.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    72.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3278        1.2919        .68600E-04   -1.5403    
   9  Prefactor     4.3169        21.726        .19384E-03   -1.5292    
  10  Prefactor     .10000E-03    6.0758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.898        9.7612        .97434E-04   -1.4886    
  13  Prefactor     .10000E-03    4.3634        .17525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5214        24.029        .14611E-03   -1.5159    
  15  Prefactor     .10000E-03    .72338E-01    .42885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0367        .85342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.646        19.366        .79105E-04   -1.4695    
  20  Prefactor     .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8955        .60974        .19200E-04   -1.5183    
  22  Prefactor     22.519        48.563        .84399E-04   -1.4759    
  23  Prefactor     .10000E-03    7.4285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3881        .33663        .36810E-03   -.80973    
  26  Prefactor     .74946        .15787        .23811E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86269e-11
Minuit parameter uncertainties:
  1  4.27107
  2  4.40286e-05
  3  60.7175
  4  2.80742e-06
  5  20.849
  6  0.000118884
  7  8.14717e-06
  8  1.29196
  9  19.38
  10  4.04348e-07
  11  1.21858e-06
  12  9.76207
  13  6.18994e-07
  14  24.06
  15  7.14696e-08
  16  1.35667e-06
  17  6.33527e-08
  18  2.30155e-06
  19  19.371
  20  1.3997e-06
  21  0.609739
  22  48.6485
  23  1.07193e-06
  24  6.64616e-06
  25  0.337169
  26  0.157966
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  6.190e-07  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.495e-01  1.580e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.388e+00  3.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279389/likelihoodResults_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.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) = 7385.19526369
delta logL = -0.0010832439084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7385.19418036
delta logL = 8.58681232785e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3814       1.0000          .0000       10.000    
     3 'Normalizat'    1.3881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   7385.194     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.525        .18002E-01** at limit **
   2  Index         1.7321        7.6916        .50000       -.71850E-08
   3  Normalizat    1.3881        .10396E-01    .36810E-03   -.39547E-03
   4  Prefactor     .74946        .51463E-02    .23811E-03   -.60922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73205
  Normalizat = 1.3881
  Prefactor  = 0.749461
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.194     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.25        .21491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7321        5.9579        .50000       -.71232    
   3  Normalizat    1.3881        .31686E-01    .73619E-04   -.80973    
   4  Prefactor     .74946        .15685E-01    .47622E-04   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.55185e-11
Minuit parameter uncertainties:
  1  2.61432e-05
  2  626.362
  3  0.0316868
  4  0.0156852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279389': 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): 102
logL (Free Index) = 7385.1941766
delta logL = 3.84461509384e-06

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.614e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.732e+00  6.264e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.495e-01  1.569e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.388e+00  3.169e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

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/279389/cmap_HighResolution_426729601_426988801_4FGL_J2222.8+1209_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-28 10:32:22.149134', job_id='279389', GAL2='0.75', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632850342.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='723' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 279389: <4FGL_J2222.8+1209_daily_bin723> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin723> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:45 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:15:47 2021
Terminated at Tue Sep 28 10:32:22 2021
Results reported at Tue Sep 28 10:32:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin723 335.71 12.1568 426729601 426988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2222.8+1209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

