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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin381
RA = 335.71, Dec = 12.1568
tmin = 338083201, tmax = 338342401
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='277880', job_status='RUN', time_executed='2021-09-28 10:10:52.743284', time_epoch_executed='1632849052.74' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277880

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277880/ft1_4FGL_J2222.8+1209_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277880/ft1_4FGL_J2222.8+1209_daily_bin381.fits outfile=/scratch/kocevski/277880/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin381.fits ra=335.71 dec=12.1568 rad=12.0 tmin=338083201.0 tmax=338342401.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.73
user 6.40
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277880/ft1_filtered_4FGL_J2222.8+1209_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/277880/ltcube_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.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/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits
.....................!
real 12.64
user 12.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277880/ft1_filtered_4FGL_J2222.8+1209_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/277880/ltcube_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.fits outfile=/scratch/kocevski/277880/expmap_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.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/277880/ltcube_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.fits
.....................!
real 190.87
user 185.00
sys 5.24

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/277880/ft1_filtered_4FGL_J2222.8+1209_daily_bin381.fits scfile=/scratch/kocevski/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits outfile=/scratch/kocevski/277880/cmap_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277880/ft1_filtered_4FGL_J2222.8+1209_daily_bin381.fits scfile=/scratch/kocevski/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits outfile=/scratch/kocevski/277880/cmap_HighResolution_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.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/277880/ft1_filtered_4FGL_J2222.8+1209_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/277880/ft2_4FGL_J2222.8+1209_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277880/Model_4FGL_J2222.8+1209_daily_bin381.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/277880/ft1_filtered_4FGL_J2222.8+1209_daily_bin381.fits.....................!
real 66.65
user 65.22
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.402       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9920       1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.101       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11887E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42463       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4741       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.153       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62782E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.542       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6421       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.657       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81624       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88761       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=   6558.820     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3203 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6746        2.4031        .20354E-06   -.77923E-04
   2  Prefactor     .10000E-03    100.51        .63168E-06** at limit **
   3  Prefactor     82.329        71.498        .31590E-05   -.57443E-04
   4  norm          4.9884        2.5928        .58638E-07   -.35993E-03
   5  norm          .10000E-03    6.9598       -.12281E-05** at limit **
   6  Prefactor     29.102        28.729        .17232E-06   -.70445E-04
   7  Prefactor     .10000E-03    19.691        .66591E-07** at limit **
   8  norm          .73904        1.0212        .29526E-06    .77137E-03
   9  Prefactor     .10000E-03    4.5174       -.18370E-06** at limit **
  10  Prefactor     .10000E-03    62.576       -.42676E-06** at limit **
  11  Prefactor     .10000E-03    43.973        .14234E-06** at limit **
  12  norm          .10000E-03    7.2134        .57547E-06** at limit **
  13  Prefactor     .10000E-03    6.6269        .15076E-06** at limit **
  14  Prefactor     .56281E-02    8.9981        .11951E-05   -.54387E-04
  15  Prefactor     .42443        .22422        .36368E-07   -.22643E-02
  16  Prefactor     .10000E-03    3.5810        .72581E-07** at limit **
  17  norm          3.4751        1.7761       -.28923E-07   -.56956E-03
  18  Prefactor     .10000E-03    18.172       -.27856E-07** at limit **
  19  Prefactor     .10000E-03    17.549        .38785E-06** at limit **
  20  Prefactor     16.148        17.219       -.91263E-06   -.22344E-03
  21  Prefactor     .62725E-01    .12565        .17387E-06    .45709E-02
  22  Prefactor     40.507        49.403        .13502E-05   -.55157E-04
  23  Prefactor     1.6402        10.181        .10256E-04   -.36930E-03
  24  Prefactor     28.638        20.478       -.11172E-05   -.20311E-03
  25  Normalizat    .81705        .22285       -.25921E-05   -.62928E-03
  26  Prefactor     .88749        .10982       -.60549E-06   -.11080E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67464
  Prefactor  = 0.0001
  Prefactor  = 82.3294
  norm       = 4.98835
  norm       = 0.000100002
  Prefactor  = 29.1015
  Prefactor  = 0.0001
  norm       = 0.739043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00562806
  Prefactor  = 0.424425
  Prefactor  = 0.0001
  norm       = 3.47506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1482
  Prefactor  = 0.062725
  Prefactor  = 40.5069
  Prefactor  = 1.64016
  Prefactor  = 28.638
  Normalizat = 0.817052
  Prefactor  = 0.887488
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.820     FROM HESSE     STATUS=OK           458 CALLS     3661 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6746        2.3753        .14124E-03   -1.5449    
   2  Prefactor     .10000E-03    100.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     82.329        71.503        .22124E-03   -1.3891    
   4  norm          4.9884        2.5891        .89646E-04   -1.5261    
   5  norm          .10000E-03    7.0285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.102        28.581        .74268E-04   -1.4629    
   7  Prefactor     .10000E-03    19.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73904        .93544        .90650E-03   -1.5536    
   9  Prefactor     .10000E-03    4.5199        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.5576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .56281E-02    17.219        .67052E-01   -1.5693    
  15  Prefactor     .42443        .22024        .25750E-04   -1.5578    
  16  Prefactor     .10000E-03    3.6005        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4751        1.7770        .75008E-04   -1.5335    
  18  Prefactor     .10000E-03    18.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.148        17.110        .99655E-04   -1.4904    
  21  Prefactor     .62725E-01    .12275        .37279E-04   -1.5658    
  22  Prefactor     40.507        49.466        .62954E-04   -1.4434    
  23  Prefactor     1.6402        10.118        .16484E-02   -1.5452    
  24  Prefactor     28.638        20.514        .74840E-04   -1.4637    
  25  Normalizat    .81705        .26203        .34225E-03   -.99439    
  26  Prefactor     .88749        .13039        .17428E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69375e-09
Minuit parameter uncertainties:
  1  2.37545
  2  0.000164124
  3  71.5774
  4  2.58918
  5  0.000215221
  6  28.5946
  7  2.79274e-05
  8  0.935457
  9  2.5107e-05
  10  9.04824e-05
  11  9.23627e-05
  12  0.000109177
  13  2.87602e-05
  14  0.617229
  15  0.220239
  16  1.04029e-05
  17  1.77704
  18  3.45248e-05
  19  0.000123498
  20  17.1155
  21  0.122751
  22  49.5165
  23  8.14932
  24  20.5188
  25  0.262439
  26  0.13044
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.876e-05  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:  8.875e-01  1.304e-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:  8.171e-01  2.624e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277880/likelihoodResults_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.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) = 6558.82062696
delta logL = -0.000717378292393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6558.81990961
delta logL = -2.10429789149e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4010       1.0000          .0000       10.000    
     3 'Normalizat'    .81704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88748       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.

 FCN=   6558.820     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    616.75        .90712E-02** at limit **
   2  Index         2.3951        8.2172        .50000        .75366E-05
   3  Normalizat    .81706        .58197E-01    .77317E-01   -.83921E-05
   4  Prefactor     .88749        .30936E-01    .44845E-01   -.41529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39512
  Normalizat = 0.817055
  Prefactor  = 0.887488
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.820     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1314.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3951        5.4356        .50000       -.54800    
   3  Normalizat    .81706        .12499        .34225E-03   -.99439    
   4  Prefactor     .88749        .66634E-01    .17428E-03   -.96580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.40638e-09
Minuit parameter uncertainties:
  1  0.000300197
  2  61.4197
  3  0.125037
  4  0.0666401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277880': 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) = 6558.81990956
delta logL = 2.15477484744e-08

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.002e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.395e+00  6.142e+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:  8.875e-01  6.664e-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:  8.171e-01  1.250e-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/277880/cmap_HighResolution_338083201_338342401_4FGL_J2222.8+1209_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-28 10:22:51.615348', job_id='277880', GAL2='0.89', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632849771.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='381' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:22:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 277880: <4FGL_J2222.8+1209_daily_bin381> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin381> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:10:42 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:10:44 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:44 2021
Terminated at Tue Sep 28 10:22:52 2021
Results reported at Tue Sep 28 10:22:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin381 335.71 12.1568 338083201 338342401 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 :                                   716.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             356.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            730 sec.

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

