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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin743
RA = 335.71, Dec = 12.1568
tmin = 431913601, tmax = 432172801
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='279419', job_status='RUN', time_executed='2021-09-28 10:18:22.114703', time_epoch_executed='1632849502.11' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279419/ft1_4FGL_J2222.8+1209_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279419/ft2_4FGL_J2222.8+1209_daily_bin743.fits


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

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

Done.
real 5.35
user 4.95
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279419/ft2_4FGL_J2222.8+1209_daily_bin743.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/279419/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/279419/ft1_filtered_4FGL_J2222.8+1209_daily_bin743.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/279419/ft1_filtered_4FGL_J2222.8+1209_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/279419/ft2_4FGL_J2222.8+1209_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/279419/ltcube_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.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/279419/ft2_4FGL_J2222.8+1209_daily_bin743.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279419/ft1_filtered_4FGL_J2222.8+1209_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/279419/ft2_4FGL_J2222.8+1209_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/279419/ltcube_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.fits outfile=/scratch/kocevski/279419/expmap_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.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/279419/ltcube_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.fits
.....................!
real 191.68
user 186.80
sys 4.48

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/279419/ft1_filtered_4FGL_J2222.8+1209_daily_bin743.fits scfile=/scratch/kocevski/279419/ft2_4FGL_J2222.8+1209_daily_bin743.fits outfile=/scratch/kocevski/279419/cmap_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.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/279419/ft1_filtered_4FGL_J2222.8+1209_daily_bin743.fits scfile=/scratch/kocevski/279419/ft2_4FGL_J2222.8+1209_daily_bin743.fits outfile=/scratch/kocevski/279419/cmap_HighResolution_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.794       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .59796       1.0000         .10000E-03   10000.    
     5 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12408E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.191       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4656       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6284       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.461       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6693       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .35924       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=   5527.990     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3118 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.795        6.0122        .33078E-06    .20170E-02
   2  Prefactor     .10000E-03    101.60       -.19622E-04** at limit **
   3  Prefactor     .10000E-03    184.46        .72895E-04** at limit **
   4  norm          .59788        2.0711       -.12822E-05   -.94065E-03
   5  norm          .10001E-03    70.279       -.39829E-04** at limit **
   6  Prefactor     .10001E-03    299.51       -.13427E-03** at limit **
   7  Prefactor     .10000E-03    145.48        .66617E-04** at limit **
   8  norm          .10000E-03    .88105        .19913E-06** at limit **
   9  Prefactor     25.550        34.105        .60379E-06    .94135E-04
  10  Prefactor     2.9547        146.87       -.37686E-05   -.74544E-05
  11  Prefactor     .10000E-03    249.53       -.34595E-04** at limit **
  12  norm          15.194        9.9703        .17504E-06   -.38044E-04
  13  Prefactor     .10000E-03    51.089        .34357E-04** at limit **
  14  Prefactor     .10000E-03    15.860        .10137E-05** at limit **
  15  Prefactor     2.7861        .55147       -.43488E-07   -.28890E-02
  16  Prefactor     .10000E-03    6.4500       -.84901E-06** at limit **
  17  norm          .10000E-03    1.1193       -.11729E-06** at limit **
  18  Prefactor     .10000E-03    25.295        .25625E-05** at limit **
  19  Prefactor     7.4656        12.911       -.11643E-06   -.36099E-04
  20  Prefactor     .10000E-03    21.436       -.61473E-06** at limit **
  21  Prefactor     9.6284        .68538       -.69930E-08   -.25177E-03
  22  Prefactor     .10000E-03    37.921       -.13558E-04** at limit **
  23  Prefactor     10.460        13.864       -.16569E-05   -.84796E-03
  24  Prefactor     .10000E-03    12.425        .90489E-06** at limit **
  25  Normalizat    1.6691        .34324        .19229E-05    .27673E-03
  26  Prefactor     .35935        .15948        .29584E-06    .38351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7949
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.597878
  norm       = 0.000100005
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5501
  Prefactor  = 2.95468
  Prefactor  = 0.000100001
  norm       = 15.194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7861
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.46557
  Prefactor  = 0.0001
  Prefactor  = 9.62842
  Prefactor  = 0.0001
  Prefactor  = 10.4604
  Prefactor  = 0.0001
  Normalizat = 1.66911
  Prefactor  = 0.359348
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.990     FROM HESSE     STATUS=OK           444 CALLS     3562 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.795        6.0025        .92388E-04   -1.4841    
   2  Prefactor     .10000E-03    101.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    185.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .59788        2.0222        .18960E-03   -1.5553    
   5  norm          .10001E-03    72.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    302.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    145.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .91224        .13598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.550        33.999        .79254E-04   -1.4697    
  10  Prefactor     2.9547        147.81        .23620E-03   -1.5364    
  11  Prefactor     .10000E-03    256.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.194        10.017        .10276E-03   -1.4928    
  13  Prefactor     .10000E-03    51.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7861        .55371        .23288E-04   -1.5374    
  16  Prefactor     .10000E-03    6.4568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1248        .76796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4656        12.900        .14678E-03   -1.5161    
  20  Prefactor     .10000E-03    21.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.6284        .68879        .15561E-04   -1.5087    
  22  Prefactor     .10000E-03    37.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.460        13.940        .61939E-03   -1.5061    
  24  Prefactor     .10000E-03    12.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6691        .42209        .35867E-03   -.73131    
  26  Prefactor     .35935        .19207        .34350E-03   -1.1894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41977e-09
Minuit parameter uncertainties:
  1  6.00266
  2  0.000463811
  3  0.00012983
  4  2.02245
  5  0.00124688
  6  0.00300646
  7  0.000187582
  8  3.55862e-06
  9  34.0247
  10  41.905
  11  0.00101749
  12  10.0176
  13  0.000263283
  14  3.62387e-05
  15  0.553712
  16  2.23562e-06
  17  1.00078e-06
  18  3.93537e-06
  19  12.905
  20  3.29471e-07
  21  0.688795
  22  7.93316e-06
  23  13.9445
  24  4.71411e-06
  25  0.422999
  26  0.192417
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.633e-04  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:  3.593e-01  1.924e-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.669e+00  4.230e-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: 2.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279419/likelihoodResults_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.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) = 5527.98966379
delta logL = -9.27632454477e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5527.98957356
delta logL = -2.53204689216e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6202       1.0000          .0000       10.000    
     3 'Normalizat'    1.6691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35935       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=   5527.990     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      254 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    .29119        .10493    ** at limit **
   2  Index         2.6256        6.0570        .50000       -.93114E-05
   3  Normalizat    1.6691        .10642E-02    .81059E-01    .28139E-03
   4  Prefactor     .35934        .51025E-03    .77495E-01    .10972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100201
  Index      = 2.62557
  Normalizat = 1.66912
  Prefactor  = 0.359342
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.990     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    54.319        .60432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6256        5.2786        .50000       -.49483    
   3  Normalizat    1.6691        .60820E-02    .35867E-03   -.73131    
   4  Prefactor     .35934        .29088E-02    .34350E-03   -1.1894    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92473e-08
Minuit parameter uncertainties:
  1  0.00661697
  2  65.3046
  3  0.00608197
  4  0.00290879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279419': 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) = 5527.98957055
delta logL = 4.75623892271e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.002e-04  6.617e-03  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.626e+00  6.530e+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:  3.593e-01  2.909e-03  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.669e+00  6.082e-03  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/279419/cmap_HighResolution_431913601_432172801_4FGL_J2222.8+1209_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-28 10:30:19.710754', job_id='279419', GAL2='0.36', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1632850219.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='4.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='743' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:30:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 279419: <4FGL_J2222.8+1209_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin743 335.71 12.1568 431913601 432172801 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 :                                   717.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

