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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin734
RA = 335.71, Dec = 12.1568
tmin = 429580801, tmax = 429840001
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='279405', job_status='RUN', time_executed='2021-09-28 10:18:31.074390', time_epoch_executed='1632849511.07' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279405/ft1_4FGL_J2222.8+1209_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279405/ft2_4FGL_J2222.8+1209_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279405/ft1_4FGL_J2222.8+1209_daily_bin734.fits outfile=/scratch/kocevski/279405/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin734.fits ra=335.71 dec=12.1568 rad=12.0 tmin=429580801.0 tmax=429840001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.26
user 6.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279405/ft1_filtered_4FGL_J2222.8+1209_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/279405/ft2_4FGL_J2222.8+1209_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/279405/ltcube_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.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/279405/ft2_4FGL_J2222.8+1209_daily_bin734.fits
.....................!
real 12.07
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279405/ft1_filtered_4FGL_J2222.8+1209_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/279405/ft2_4FGL_J2222.8+1209_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/279405/ltcube_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.fits outfile=/scratch/kocevski/279405/expmap_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.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/279405/ltcube_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.fits
.....................!
real 190.91
user 185.26
sys 5.28

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/279405/ft1_filtered_4FGL_J2222.8+1209_daily_bin734.fits scfile=/scratch/kocevski/279405/ft2_4FGL_J2222.8+1209_daily_bin734.fits outfile=/scratch/kocevski/279405/cmap_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279405/ft1_filtered_4FGL_J2222.8+1209_daily_bin734.fits scfile=/scratch/kocevski/279405/ft2_4FGL_J2222.8+1209_daily_bin734.fits outfile=/scratch/kocevski/279405/cmap_HighResolution_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7314       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    267.68       1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.532       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85562E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7519       1.0000         .10000E-03   10000.    
    12 'norm      '    9.4854       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75304E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.144       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.917       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.974       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20348E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.480       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .33406       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0866       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=   5690.908     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3643 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7304        3.6657       -.38393E-07    .13158E-03
   2  Prefactor     .10000E-03    42.914       -.12046E-05** at limit **
   3  Prefactor     267.67        139.17        .19181E-05   -.16947E-05
   4  norm          .10000E-03    2.1618        .26780E-06** at limit **
   5  norm          .10000E-03    42.093        .19911E-05** at limit **
   6  Prefactor     .10000E-03    19.331        .10609E-06** at limit **
   7  Prefactor     26.539        97.296        .90420E-06   -.35889E-05
   8  norm          1.7016        1.5228        .16861E-06   -.16517E-04
   9  Prefactor     .10047E-03    209.78        .62887E-05** at limit **
  10  Prefactor     .10000E-03    19.543        .55675E-07** at limit **
  11  Prefactor     8.7696        45.377        .18337E-06    .51510E-04
  12  norm          9.4816        13.938        .53359E-07   -.65371E-04
  13  Prefactor     .17951E-03    27.372       -.18541E-05** at limit **
  14  Prefactor     .52136        54.266        .62325E-05   -.24976E-03
  15  Prefactor     .16187        .29394        .19470E-06    .40502E-03
  16  Prefactor     .10000E-03    5.8303       -.11355E-06** at limit **
  17  norm          1.6703        2.6430       -.19247E-06    .60981E-04
  18  Prefactor     .10000E-03    108.82        .12745E-05** at limit **
  19  Prefactor     .10000E-03    12.738        .34878E-07** at limit **
  20  Prefactor     13.093        48.242       -.18278E-05   -.69460E-05
  21  Prefactor     13.917        .87749        .61911E-07   -.12511E-02
  22  Prefactor     14.026        88.219        .55417E-05    .52539E-05
  23  Prefactor     .10000E-03    9.8658        .23196E-06** at limit **
  24  Prefactor     18.475        22.287        .58030E-06    .75038E-05
  25  Normalizat    .33375        .43709       -.20760E-04   -.59580E-04
  26  Prefactor     1.0868        .22208        .33807E-05    .86611E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73043
  Prefactor  = 0.0001
  Prefactor  = 267.673
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5389
  norm       = 1.70161
  Prefactor  = 0.000100469
  Prefactor  = 0.0001
  Prefactor  = 8.76961
  norm       = 9.48162
  Prefactor  = 0.000179514
  Prefactor  = 0.52136
  Prefactor  = 0.16187
  Prefactor  = 0.0001
  norm       = 1.67029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0929
  Prefactor  = 13.9173
  Prefactor  = 14.0259
  Prefactor  = 0.0001
  Prefactor  = 18.4753
  Normalizat = 0.333754
  Prefactor  = 1.08682
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.908     FROM HESSE     STATUS=OK           480 CALLS     4123 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7304        3.6612        .16125E-03   -1.5377    
   2  Prefactor     .10000E-03    42.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     267.67        138.03        .12391E-03   -1.2421    
   4  norm          .10000E-03    2.2057        .10854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    42.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.539        97.709        .77773E-04   -1.4677    
   8  norm          1.7016        1.5205        .84467E-04   -1.5447    
   9  Prefactor     .10047E-03    223.77        .78843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7696        44.052        .13549E-03   -1.5116    
  12  norm          9.4816        13.925        .13012E-03   -1.5092    
  13  Prefactor     .17951E-03    27.197        .95852E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .52136        296.45        .68469E-02   -1.5564    
  15  Prefactor     .16187        .29538        .49447E-03   -1.5628    
  16  Prefactor     .10000E-03    5.8352        .17788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6703        2.6160        .14941E-03   -1.5449    
  18  Prefactor     .10000E-03    109.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.093        48.114        .11048E-03   -1.4984    
  21  Prefactor     13.917        .87176        .16432E-04   -1.4962    
  22  Prefactor     14.026        88.557        .10715E-03   -1.4959    
  23  Prefactor     .10000E-03    56.858        .45773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.475        22.267        .93169E-04   -1.4848    
  25  Normalizat    .33375        .44020        .76935E-03   -1.2088    
  26  Prefactor     1.0868        .22032        .23217E-03   -.89889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83612e-09
Minuit parameter uncertainties:
  1  3.66151
  2  5.06803e-05
  3  138.202
  4  1.55252e-05
  5  0.000123306
  6  2.19801e-05
  7  98.3058
  8  1.52053
  9  0.0205667
  10  3.84424e-05
  11  39.356
  12  13.9294
  13  0.093049
  14  24.9869
  15  0.295385
  16  2.56736e-05
  17  2.6162
  18  0.000207184
  19  2.17003e-05
  20  48.2576
  21  0.871757
  22  70.6408
  23  0.000281239
  24  22.2774
  25  0.444871
  26  0.220504
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.795e-04  9.305e-02  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:  1.087e+00  2.205e-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:  3.338e-01  4.449e-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: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279405/likelihoodResults_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.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) = 5690.90829807
delta logL = -4.31047828897e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5690.90829807
delta logL = -4.30429190601e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96352E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4068       1.0000          .0000       10.000    
     3 'Normalizat'    .33375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0868       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5690.907     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      351 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99327        175.63        .18143E-02   -.84062E-04
   2  Index         2.0991        5.9628        .22224E-01   -.45222E-05
   3  Normalizat    .33378        .39080        .76931E-03   -.30457E-04
   4  Prefactor     1.0860        .21054        .23224E-03    .11452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.993272
  Index      = 2.09912
  Normalizat = 0.333778
  Prefactor  = 1.08603
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.907     FROM HESSE     STATUS=OK            25 CALLS      376 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99327        147.81        .72571E-04   -1.5509    
   2  Index         2.0991        6.0149        .88895E-03   -.61895    
   3  Normalizat    .33378        .39039        .30772E-04   -1.2088    
   4  Prefactor     1.0860        .21006        .46447E-04   -.89914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71229e-10
Minuit parameter uncertainties:
  1  24.2934
  2  4.55512
  3  0.393632
  4  0.210223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279405': 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) = 5690.90742676
delta logL = 0.00086700371503

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  9.933e-01  2.429e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.099e+00  4.555e+00  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:  1.086e+00  2.102e-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:  3.338e-01  3.936e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279405/cmap_HighResolution_429580801_429840001_4FGL_J2222.8+1209_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-28 10:31:07.809586', job_id='279405', GAL2='1.09', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1632850267.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='8.67e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='734' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 279405: <4FGL_J2222.8+1209_daily_bin734> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin734 335.71 12.1568 429580801 429840001 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 :                                   755.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

