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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin426
RA = 335.71, Dec = 12.1568
tmin = 349747201, tmax = 350006401
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='277945', job_status='RUN', time_executed='2021-09-28 10:13:16.449014', time_epoch_executed='1632849196.45' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277945

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277945/ft1_4FGL_J2222.8+1209_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277945/ft2_4FGL_J2222.8+1209_daily_bin426.fits


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

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

Done.
real 3.43
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277945/ft2_4FGL_J2222.8+1209_daily_bin426.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/277945/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin426.fits evtable="EVENTS" outfile="/scratch/kocevski/277945/ft1_filtered_4FGL_J2222.8+1209_daily_bin426.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.52
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277945/ft1_filtered_4FGL_J2222.8+1209_daily_bin426.fits" evtable="EVENTS" scfile=/scratch/kocevski/277945/ft2_4FGL_J2222.8+1209_daily_bin426.fits sctable="SC_DATA" outfile=/scratch/kocevski/277945/ltcube_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.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/277945/ft2_4FGL_J2222.8+1209_daily_bin426.fits
.....................!
real 11.75
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277945/ft1_filtered_4FGL_J2222.8+1209_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/277945/ft2_4FGL_J2222.8+1209_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/277945/ltcube_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.fits outfile=/scratch/kocevski/277945/expmap_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.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/277945/ltcube_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.fits
.....................!
real 191.06
user 185.21
sys 5.41

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/277945/ft1_filtered_4FGL_J2222.8+1209_daily_bin426.fits scfile=/scratch/kocevski/277945/ft2_4FGL_J2222.8+1209_daily_bin426.fits outfile=/scratch/kocevski/277945/cmap_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277945/ft1_filtered_4FGL_J2222.8+1209_daily_bin426.fits scfile=/scratch/kocevski/277945/ft2_4FGL_J2222.8+1209_daily_bin426.fits outfile=/scratch/kocevski/277945/cmap_HighResolution_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    89.217       1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20797E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .95416       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8301       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3808       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.041       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28169E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.854       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79188       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0360       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=   7077.605     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3171 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1323        2.1160       -.13928E-06   -.36521E-03
   2  Prefactor     .10000E-03    30.628        .16133E-04** at limit **
   3  Prefactor     89.199        72.881       -.16438E-04   -.60310E-04
   4  norm          .10000E-03    1.3903        .36767E-07** at limit **
   5  norm          .10000E-03    54.762        .12129E-04** at limit **
   6  Prefactor     26.337        23.648       -.70488E-06    .19688E-04
   7  Prefactor     .10000E-03    61.128       -.17003E-04** at limit **
   8  norm          .95420        .80167       -.69482E-07   -.24811E-03
   9  Prefactor     .10000E-03    10.993       -.47231E-05** at limit **
  10  Prefactor     .10000E-03    14.544        .57241E-05** at limit **
  11  Prefactor     .10000E-03    7.9290        .13065E-05** at limit **
  12  norm          .10000E-03    2.2034       -.26616E-07** at limit **
  13  Prefactor     .10000E-03    7.8560       -.15256E-05** at limit **
  14  Prefactor     .10000E-03    9.5401        .23372E-05** at limit **
  15  Prefactor     .53572        .20025       -.13646E-07    .11462E-03
  16  Prefactor     3.8302        6.8149       -.42211E-06   -.21249E-03
  17  norm          3.3811        1.8364        .32729E-07    .63678E-03
  18  Prefactor     38.434        30.328       -.47122E-05    .29357E-04
  19  Prefactor     .10000E-03    23.790       -.15037E-04** at limit **
  20  Prefactor     11.038        16.359        .35407E-06   -.23039E-05
  21  Prefactor     .28166E-01    .90254E-01   -.15810E-07   -.27848E-02
  22  Prefactor     16.853        32.214       -.13006E-05   -.34429E-05
  23  Prefactor     .10000E-03    1.7323       -.33325E-07** at limit **
  24  Prefactor     .10000E-03    3.9158        .81701E-08** at limit **
  25  Normalizat    .79195        .21482        .16033E-05    .64887E-04
  26  Prefactor     1.0360        .11682        .52656E-06    .16311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13235
  Prefactor  = 0.0001
  Prefactor  = 89.1995
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 26.3366
  Prefactor  = 0.0001
  norm       = 0.954197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.53572
  Prefactor  = 3.83024
  norm       = 3.38107
  Prefactor  = 38.434
  Prefactor  = 0.0001
  Prefactor  = 11.0379
  Prefactor  = 0.0281656
  Prefactor  = 16.8533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.791951
  Prefactor  = 1.03598
 **********
 **   18 **HESSE 
 **********

 FCN=   7077.605     FROM HESSE     STATUS=OK           454 CALLS     3625 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1323        2.1063        .11611E-03   -1.5416    
   2  Prefactor     .10000E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     89.199        73.336        .42539E-04   -1.3816    
   4  norm          .10000E-03    1.4322        .19348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    56.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.337        23.591        .78059E-04   -1.4681    
   7  Prefactor     .10000E-03    61.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .95420        .80107        .66044E-04   -1.5513    
   9  Prefactor     .10000E-03    10.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2368        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .53572        .19932        .21767E-04   -1.5562    
  16  Prefactor     3.8302        6.8172        .20623E-03   -1.5317    
  17  norm          3.3811        1.8371        .81619E-04   -1.5340    
  18  Prefactor     38.434        29.913        .64645E-04   -1.4467    
  19  Prefactor     .10000E-03    24.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.038        16.259        .12057E-03   -1.5043    
  21  Prefactor     .28166E-01    .12936        .39680E-03   -1.5674    
  22  Prefactor     16.853        32.216        .97559E-04   -1.4887    
  23  Prefactor     .10000E-03    1.7344        .10813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.9198        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79195        .24967        .35981E-03   -1.0037    
  26  Prefactor     1.0360        .13756        .17454E-03   -.91540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2711e-10
Minuit parameter uncertainties:
  1  2.10638
  2  2.2513e-06
  3  73.4104
  4  3.87014e-06
  5  0.00104211
  6  23.5996
  7  2.03751e-05
  8  0.801078
  9  3.65503e-05
  10  8.51413e-06
  11  7.08198e-07
  12  4.09985e-06
  13  6.11174e-06
  14  2.77042e-05
  15  0.199317
  16  6.81856
  17  1.83711
  18  29.9244
  19  9.95176e-05
  20  16.2651
  21  0.12051
  22  32.2494
  23  5.5881e-07
  24  1.99646e-06
  25  0.250036
  26  0.137604
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  6.112e-06  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.036e+00  1.376e-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:  7.920e-01  2.500e-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: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277945/likelihoodResults_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.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) = 7077.60543918
delta logL = -0.000603663635047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7077.60483637
delta logL = -8.53811798152e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3878       1.0000          .0000       10.000    
     3 'Normalizat'    .79171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0361       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=   7077.605     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    103.08        .18142E-02** at limit **
   2  Index         2.3138        6.1357        .50000        .14967E-04
   3  Normalizat    .79195        .18606E-01    .35981E-03    .38768E-04
   4  Prefactor     1.0360        .10273E-01    .17454E-03    .72494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101658
  Index      = 2.31384
  Normalizat = 0.791952
  Prefactor  = 1.03598
 **********
 **   18 **HESSE 
 **********

 FCN=   7077.605     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10166E-03    447.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3138        5.0077        .50000       -.56715    
   3  Normalizat    .79195        .41002E-01    .14393E-04   -1.0037    
   4  Prefactor     1.0360        .22633E-01    .34909E-04   -.91540    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97414e-08
Minuit parameter uncertainties:
  1  0.0548816
  2  953.918
  3  0.0410032
  4  0.0226334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277945': 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) = 7077.60483523
delta logL = 2.85959686153e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.017e-04  5.488e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.314e+00  9.539e+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:  1.036e+00  2.263e-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:  7.920e-01  4.100e-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/277945/cmap_HighResolution_349747201_350006401_4FGL_J2222.8+1209_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2021-09-28 10:25:45.713105', job_id='277945', GAL2='1.04', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632849945.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='426' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 277945: <4FGL_J2222.8+1209_daily_bin426> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin426> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:47 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:49 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:10:49 2021
Terminated at Tue Sep 28 10:25:46 2021
Results reported at Tue Sep 28 10:25:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin426 335.71 12.1568 349747201 350006401 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 :                                   748.44 sec.
    Max Memory :                                 1092 MB
    Average Memory :                             285.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

