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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin597
RA = 335.71, Dec = 12.1568
tmin = 394070401, tmax = 394329601
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='279210', job_status='RUN', time_executed='2021-09-28 10:17:27.750080', time_epoch_executed='1632849447.75' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279210/ft1_4FGL_J2222.8+1209_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279210/ft1_4FGL_J2222.8+1209_daily_bin597.fits outfile=/scratch/kocevski/279210/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin597.fits ra=335.71 dec=12.1568 rad=12.0 tmin=394070401.0 tmax=394329601.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 4.49
user 4.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.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/279210/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin597.fits evtable="EVENTS" outfile="/scratch/kocevski/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.fits" evtable="EVENTS" scfile=/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits sctable="SC_DATA" outfile=/scratch/kocevski/279210/ltcube_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.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/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/279210/ltcube_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.fits outfile=/scratch/kocevski/279210/expmap_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.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/279210/ltcube_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.fits
.....................!
real 196.82
user 191.69
sys 4.77

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/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.fits scfile=/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits outfile=/scratch/kocevski/279210/cmap_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.fits scfile=/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits outfile=/scratch/kocevski/279210/cmap_HighResolution_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.fits', '/scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits', expMap='/scratch/kocevski/279210/expmap_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.fits', expCube='/scratch/kocevski/279210/ltcube_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279210/Model_4FGL_J2222.8+1209_daily_bin597.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/279210/ft1_filtered_4FGL_J2222.8+1209_daily_bin597.fits
Spacecraft file(s): /scratch/kocevski/279210/ft2_4FGL_J2222.8+1209_daily_bin597.fits
Exposure map: /scratch/kocevski/279210/expmap_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.fits
Exposure cube: /scratch/kocevski/279210/ltcube_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279210/Model_4FGL_J2222.8+1209_daily_bin597.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) = 7217.58090206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56134E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62274E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .17154       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19589E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.155       1.0000         .10000E-03   10000.    
    12 'norm      '    9.5189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2677       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70324       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.124       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9802       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.358       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1670       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76083       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=   7217.576     FROM MIGRAD    STATUS=CONVERGED   1128 CALLS     3675 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66051        3.7461        .22220E-02    .98648E-03
   2  Prefactor     .10002E-03    528.53        .42198E-03** at limit **
   3  Prefactor     .10038E-03    48.516        .17774    ** at limit **
   4  norm          .17207        5.5249        .16924E-02    .14833E-02
   5  norm          .10000E-03    5.3640        .18142E-02** at limit **
   6  Prefactor     .10107E-03    192.79        .79325E-02** at limit **
   7  Prefactor     .10000E-03    11.112        .18142E-02** at limit **
   8  norm          .33164        .81217        .11657E-03    .62731E-03
   9  Prefactor     15.885        13.669        .50255E-03    .13736E-03
  10  Prefactor     12.144        22.650        .11497E-03   -.21754E-05
  11  Prefactor     30.165        24.831        .72962E-04   -.46745E-06
  12  norm          9.5190        5.9067        .12989E-03   -.85337E-04
  13  Prefactor     29.206        14.912        .74138E-04    .11348E-04
  14  Prefactor     4.2700        8.3668        .97516E-03   -.15813E-03
  15  Prefactor     .70329        .23404        .22088E-04   -.26662E-03
  16  Prefactor     11.125        7.7800        .12012E-03   -.13061E-04
  17  norm          2.9804        1.6034        .76849E-04    .51038E-04
  18  Prefactor     .10000E-03    7.7884        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.5886        .18142E-02** at limit **
  20  Prefactor     .10000E-03    9.8509        .18142E-02** at limit **
  21  Prefactor     1.6193        .23478        .14714E-04   -.10388E-02
  22  Prefactor     .10000E-03    14.352        .18142E-02** at limit **
  23  Prefactor     22.360        9.8458        .84711E-04   -.18789E-05
  24  Prefactor     8.1684        10.036        .14029E-03   -.36467E-05
  25  Normalizat    1.0834        .27526        .32997E-03    .10326E-03
  26  Prefactor     .76070        .13427        .20311E-03    .14928E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.660511
  Prefactor  = 0.000100024
  Prefactor  = 0.000100378
  norm       = 0.17207
  norm       = 0.0001
  Prefactor  = 0.000101071
  Prefactor  = 0.0001
  norm       = 0.331644
  Prefactor  = 15.8853
  Prefactor  = 12.1438
  Prefactor  = 30.165
  norm       = 9.51899
  Prefactor  = 29.2056
  Prefactor  = 4.27004
  Prefactor  = 0.703293
  Prefactor  = 11.1253
  norm       = 2.98045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61934
  Prefactor  = 0.0001
  Prefactor  = 22.3603
  Prefactor  = 8.16844
  Normalizat = 1.08343
  Prefactor  = 0.760701
 **********
 **   18 **HESSE 
 **********

 FCN=   7217.576     FROM HESSE     STATUS=OK           444 CALLS     4119 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66051        3.6772        .88879E-04   -1.5545    
   2  Prefactor     .10002E-03    528.55        .84396E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10038E-03    49.605        .17479       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .17207        5.4977        .67696E-04   -1.5625    
   5  norm          .10000E-03    5.3641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10107E-03    198.68        .31730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33164        .81178        .46627E-05   -1.5593    
   9  Prefactor     15.885        13.668        .20102E-04   -1.4911    
  10  Prefactor     12.144        22.644        .45989E-05   -1.5011    
  11  Prefactor     30.165        24.823        .29185E-05   -1.4609    
  12  norm          9.5190        5.9047        .51956E-05   -1.5091    
  13  Prefactor     29.206        14.909        .29655E-05   -1.4627    
  14  Prefactor     4.2700        8.3621        .39006E-04   -1.5295    
  15  Prefactor     .70329        .23396        .88351E-06   -1.5540    
  16  Prefactor     11.125        7.7796        .48048E-05   -1.5041    
  17  norm          2.9804        1.6034        .30740E-05   -1.5363    
  18  Prefactor     .10000E-03    7.7885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6193        .23466        .29427E-05   -1.5453    
  22  Prefactor     .10000E-03    14.352        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.360        9.8444        .33884E-05   -1.4762    
  24  Prefactor     8.1684        10.034        .56116E-05   -1.5136    
  25  Normalizat    1.0834        .27456        .13199E-04   -.90286    
  26  Prefactor     .76070        .13440        .81242E-05   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04799e-08
Minuit parameter uncertainties:
  1  3.11701
  2  0.00720026
  3  0.00866365
  4  1.94486
  5  2.51379e-06
  6  0.0292754
  7  6.41287e-06
  8  0.811803
  9  13.6709
  10  22.66
  11  24.8313
  12  5.90505
  13  14.9112
  14  8.36443
  15  0.233955
  16  7.78026
  17  1.60337
  18  6.56113e-06
  19  3.36491e-05
  20  2.03991e-05
  21  0.234665
  22  1.46037e-05
  23  9.84515
  24  10.0365
  25  0.274918
  26  0.13446
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.921e+01  1.491e+01  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.607e-01  1.345e-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.083e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.63
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.75e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.62e-05

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) = 7217.52906263
delta logL = 0.0471159365288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7217.51915093
delta logL = 0.0570276374237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.870       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2515       1.0000          .0000       10.000    
     3 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75624       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=   7217.519     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.869        22.078        .68855E-04    .41737E-03
   2  Index         2.2519        .46526        .55417E-02    .13482E-03
   3  Normalizat    1.0974        .25705        .32820E-03   -.13658E-03
   4  Prefactor     .75617        .13395        .20366E-03   -.24313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8694
  Index      = 2.25189
  Normalizat = 1.09742
  Prefactor  = 0.756174
 **********
 **   18 **HESSE 
 **********

 FCN=   7217.519     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.869        21.400        .13771E-04   -1.4543    
   2  Index         2.2519        .45059        .22167E-03   -.58191    
   3  Normalizat    1.0974        .25701        .13128E-04   -.89835    
   4  Prefactor     .75617        .13401        .40733E-04   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3387e-10
Minuit parameter uncertainties:
  1  21.405
  2  0.451473
  3  0.257305
  4  0.134064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279210': 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) = 7217.51915034
delta logL = 0.0570282254321

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.387e+01  2.141e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.252e+00  4.515e-01  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.562e-01  1.341e-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.097e+00  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.74
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.25 +/- 0.45
Photon Flux (Free Index): 8.55e-08 +/- 5.67e-08
Energy Flux (Free Index): 3.50e-05 +/- 2.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/279210/cmap_HighResolution_394070401_394329601_4FGL_J2222.8+1209_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.75e-08', energy_flux2='3.50e-05', photon_flux_error='4.98e-08', dlogl='5.70e-02', energy_flux='3.17e-05', photon_flux2='8.55e-08', job_status='DONE', time_completed='2021-09-28 10:29:46.860436', photon_index_error2='0.45', photon_index2='2.25', ts='8.63', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.08', time_epoch_completed='1632850186.86', return_code='0', job_id='279210', GAL2='0.76', EG2='1.10', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.67e-08', ts2='8.74', photon_index='2.41' WHERE bin_id='597' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:29:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 279210: <4FGL_J2222.8+1209_daily_bin597> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin597> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 28 10:15:29 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:15:30 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:30 2021
Terminated at Tue Sep 28 10:29:47 2021
Results reported at Tue Sep 28 10:29:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin597 335.71 12.1568 394070401 394329601 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 :                                   739.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            858 sec.

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

