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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin405
RA = 335.71, Dec = 12.1568
tmin = 344304001, tmax = 344563201
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='277915', job_status='RUN', time_executed='2021-09-28 10:13:11.457024', time_epoch_executed='1632849191.46' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277915/ft1_4FGL_J2222.8+1209_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277915/ft2_4FGL_J2222.8+1209_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277915/ft1_4FGL_J2222.8+1209_daily_bin405.fits outfile=/scratch/kocevski/277915/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin405.fits ra=335.71 dec=12.1568 rad=12.0 tmin=344304001.0 tmax=344563201.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.40
user 3.16
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277915/ft1_filtered_4FGL_J2222.8+1209_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/277915/ft2_4FGL_J2222.8+1209_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/277915/ltcube_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.fits outfile=/scratch/kocevski/277915/expmap_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.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/277915/ltcube_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.fits
.....................!
real 193.06
user 187.49
sys 5.18

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/277915/ft1_filtered_4FGL_J2222.8+1209_daily_bin405.fits scfile=/scratch/kocevski/277915/ft2_4FGL_J2222.8+1209_daily_bin405.fits outfile=/scratch/kocevski/277915/cmap_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277915/ft1_filtered_4FGL_J2222.8+1209_daily_bin405.fits scfile=/scratch/kocevski/277915/ft2_4FGL_J2222.8+1209_daily_bin405.fits outfile=/scratch/kocevski/277915/cmap_HighResolution_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.734       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10445E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.22       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4590       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.282       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15028E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2535       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24199E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.588       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.527       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .38784       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2056       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=   7142.814     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3138 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4827        2.7232       -.10728E-07   -.25889E-03
   2  Prefactor     20.487        119.53        .20749E-05   -.10275E-04
   3  Prefactor     41.699        68.359       -.49641E-04   -.13734E-03
   4  norm          7.5835        3.5698        .21777E-06   -.86490E-03
   5  norm          .10000E-03    23.392        .14109E-04** at limit **
   6  Prefactor     .10000E-03    14.526        .55314E-05** at limit **
   7  Prefactor     100.21        59.339       -.12547E-04   -.22370E-04
   8  norm          1.4588        1.1146        .90580E-08   -.63422E-03
   9  Prefactor     1.7149        70.237        .68898E-04   -.34774E-04
  10  Prefactor     .10000E-03    18.130       -.82251E-05** at limit **
  11  Prefactor     59.275        36.068       -.78208E-05   -.28343E-03
  12  norm          .10000E-03    1.7419        .15188E-07** at limit **
  13  Prefactor     .10003E-03    8.0766       -.80578E-06** at limit **
  14  Prefactor     .10000E-03    14.549        .20942E-05** at limit **
  15  Prefactor     1.2536        .26992       -.65384E-08    .17192E-02
  16  Prefactor     .10000E-03    4.2741        .73200E-07** at limit **
  17  norm          3.3892        1.6603       -.13434E-07    .19531E-03
  18  Prefactor     .10000E-03    16.913       -.86041E-05** at limit **
  19  Prefactor     .10000E-03    4.0853       -.38555E-07** at limit **
  20  Prefactor     .10000E-03    7.4586       -.20594E-06** at limit **
  21  Prefactor     .24200E-01    .70155E-01   -.15689E-06   -.35252E-02
  22  Prefactor     28.765        28.759        .50132E-06    .13848E-05
  23  Prefactor     13.586        7.2931        .12757E-06    .10299E-03
  24  Prefactor     16.525        12.766        .57851E-09    .88203E-05
  25  Normalizat    .38811        .28113        .26947E-05   -.14559E-03
  26  Prefactor     1.2055        .14527        .29255E-06   -.43243E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48274
  Prefactor  = 20.4873
  Prefactor  = 41.6992
  norm       = 7.58348
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 100.209
  norm       = 1.45884
  Prefactor  = 1.71493
  Prefactor  = 0.0001
  Prefactor  = 59.2754
  norm       = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 1.25363
  Prefactor  = 0.0001
  norm       = 3.38921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0241996
  Prefactor  = 28.7648
  Prefactor  = 13.5863
  Prefactor  = 16.5252
  Normalizat = 0.388107
  Prefactor  = 1.20548
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.814     FROM HESSE     STATUS=OK           458 CALLS     3596 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4827        2.7194        .86853E-04   -1.5199    
   2  Prefactor     20.487        121.78        .88492E-04   -1.4802    
   3  Prefactor     41.699        68.581        .62052E-04   -1.4416    
   4  norm          7.5835        3.5825        .87313E-04   -1.5157    
   5  norm          .10000E-03    23.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.21        59.208        .20079E-03   -1.3703    
   8  norm          1.4588        1.0871        .72343E-04   -1.5466    
   9  Prefactor     1.7149        67.838        .32431E-03   -1.5446    
  10  Prefactor     .10000E-03    18.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.275        35.871        .52108E-04   -1.4167    
  12  norm          .10000E-03    1.7508        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    43.640        .44784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2536        .26287        .18674E-04   -1.5484    
  16  Prefactor     .10000E-03    4.2926        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3892        1.6599        .74031E-04   -1.5340    
  18  Prefactor     .10000E-03    16.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1064        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.4661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .24200E-01    .85294E-01    .35462E-03   -1.5677    
  22  Prefactor     28.765        28.719        .74701E-04   -1.4635    
  23  Prefactor     13.586        7.2705        .10866E-03   -1.4971    
  24  Prefactor     16.525        12.743        .98520E-04   -1.4895    
  25  Normalizat    .38811        .25725        .51361E-03   -1.1792    
  26  Prefactor     1.2055        .14129        .17247E-03   -.86163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52418e-09
Minuit parameter uncertainties:
  1  2.71942
  2  100.207
  3  68.7113
  4  3.5826
  5  0.000559855
  6  3.27275e-05
  7  59.2431
  8  1.0871
  9  21.5977
  10  0.000106148
  11  35.884
  12  7.9239e-07
  13  0.00233413
  14  3.4968e-05
  15  0.262869
  16  2.28453e-06
  17  1.65988
  18  1.00313e-05
  19  3.48956e-06
  20  8.44415e-07
  21  0.0852948
  22  28.7332
  23  7.27096
  24  12.7446
  25  0.258036
  26  0.141332
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.334e-03  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.205e+00  1.413e-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.881e-01  2.580e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277915/likelihoodResults_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.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) = 7142.81394907
delta logL = -0.000108077234472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7142.81394906
delta logL = -0.000108062772597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96349E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4069       1.0000          .0000       10.000    
     3 'Normalizat'    .38810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2055       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=   7142.814     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      224 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10128E-03    2.3482        .90714E-01** at limit **
   2  Index         2.5326        2.3761        .50000       -.31477E-04
   3  Normalizat    .38811        .30595E-02    .11593        .14417E-03
   4  Prefactor     1.2055        .17577E-02    .34502E-01    .41131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010128
  Index      = 2.53261
  Normalizat = 0.388106
  Prefactor  = 1.20548
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.814     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      265 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10128E-03    4.4027        .66818E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5326        2.5683        .50000       -.51608    
   3  Normalizat    .38811        .33350E-02    .51361E-03   -1.1792    
   4  Prefactor     1.2055        .19210E-02    .17247E-03   -.86163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80429e-11
Minuit parameter uncertainties:
  1  0.00474768
  2  2.74751
  3  0.00333504
  4  0.00192098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277915': 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) = 7142.8138402
delta logL = 7.96200765762e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.013e-04  4.748e-03  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.533e+00  2.748e+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.205e+00  1.921e-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:  3.881e-01  3.335e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/277915/cmap_HighResolution_344304001_344563201_4FGL_J2222.8+1209_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 10:25:54.994270', job_id='277915', GAL2='1.21', fit_tolerance='1e-08', EG2='0.39', EG='0.39', time_epoch_completed='1632849954.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='7.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='405' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 277915: <4FGL_J2222.8+1209_daily_bin405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin405 335.71 12.1568 344304001 344563201 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 :                                   763.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

