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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin750
RA = 335.71, Dec = 12.1568
tmin = 433728001, tmax = 433987201
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='279429', job_status='RUN', time_executed='2021-09-28 10:19:09.847963', time_epoch_executed='1632849549.85' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279429/ft1_4FGL_J2222.8+1209_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279429/ft2_4FGL_J2222.8+1209_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279429/ft1_4FGL_J2222.8+1209_daily_bin750.fits outfile=/scratch/kocevski/279429/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin750.fits ra=335.71 dec=12.1568 rad=12.0 tmin=433728001.0 tmax=433987201.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.07
user 5.78
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279429/ft1_filtered_4FGL_J2222.8+1209_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/279429/ft2_4FGL_J2222.8+1209_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/279429/ltcube_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.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/279429/ft2_4FGL_J2222.8+1209_daily_bin750.fits
.....................!
real 11.98
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279429/ft1_filtered_4FGL_J2222.8+1209_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/279429/ft2_4FGL_J2222.8+1209_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/279429/ltcube_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.fits outfile=/scratch/kocevski/279429/expmap_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.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/279429/ltcube_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.fits
.....................!
real 190.08
user 185.16
sys 4.57

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/279429/ft1_filtered_4FGL_J2222.8+1209_daily_bin750.fits scfile=/scratch/kocevski/279429/ft2_4FGL_J2222.8+1209_daily_bin750.fits outfile=/scratch/kocevski/279429/cmap_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.623       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2702       1.0000         .10000E-03   10000.    
     5 'norm      '    14.365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.223       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14539E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.221       1.0000         .10000E-03   10000.    
    12 'norm      '    .11093E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16544E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8314       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9451       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4553       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62334       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=   5209.476     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3087 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.623        6.7848        .38726E-07   -.34844E-05
   2  Prefactor     .10000E-03    75.061       -.16699E-06** at limit **
   3  Prefactor     .10000E-03    35.127       -.25381E-07** at limit **
   4  norm          3.2707        4.1949        .23742E-06   -.42930E-04
   5  norm          14.372        23.928       -.10085E-06   -.53281E-04
   6  Prefactor     .10000E-03    81.828       -.15557E-05** at limit **
   7  Prefactor     16.029        126.19       -.39821E-05   -.47622E-04
   8  norm          1.2172        1.4530       -.28149E-07   -.59150E-04
   9  Prefactor     .11066E-03    30.395        .44089E-05** at limit **
  10  Prefactor     15.941        32.861        .54649E-07   -.41201E-04
  11  Prefactor     52.248        42.880       -.11055E-06   -.13475E-03
  12  norm          .10000E-03    8.2396       -.29201E-07** at limit **
  13  Prefactor     .10000E-03    81.091        .87084E-06** at limit **
  14  Prefactor     .10000E-03    10.724       -.13543E-06** at limit **
  15  Prefactor     3.5961        .58194        .16328E-07   -.47034E-03
  16  Prefactor     .10000E-03    7.4847        .69076E-07** at limit **
  17  norm          .10000E-03    .96408       -.12108E-06** at limit **
  18  Prefactor     .10000E-03    51.084        .22280E-06** at limit **
  19  Prefactor     4.8323        16.285        .81749E-05    .17198E-03
  20  Prefactor     .10000E-03    23.116        .11792E-06** at limit **
  21  Prefactor     5.9451        .57267       -.55514E-08   -.30163E-03
  22  Prefactor     .10000E-03    26.631        .16286E-06** at limit **
  23  Prefactor     .10000E-03    3.9633        .37620E-07** at limit **
  24  Prefactor     .10000E-03    16.057        .26831E-06** at limit **
  25  Normalizat    1.4555        .35343       -.40990E-05   -.91762E-04
  26  Prefactor     .62309        .16910        .21646E-05   -.22644E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27068
  norm       = 14.3723
  Prefactor  = 0.0001
  Prefactor  = 16.029
  norm       = 1.21721
  Prefactor  = 0.000110658
  Prefactor  = 15.9411
  Prefactor  = 52.2476
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83226
  Prefactor  = 0.0001
  Prefactor  = 5.94512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45547
  Prefactor  = 0.623089
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.476     FROM HESSE     STATUS=OK           458 CALLS     3545 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.623        6.7816        .90415E-04   -1.4822    
   2  Prefactor     .10000E-03    75.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2707        4.1821        .15587E-03   -1.5346    
   5  norm          14.372        23.914        .10568E-03   -1.4950    
   6  Prefactor     .10000E-03    82.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.029        128.38        .99437E-04   -1.4907    
   8  norm          1.2172        1.4216        .91366E-04   -1.5487    
   9  Prefactor     .11066E-03    27.362        .11293       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.941        32.877        .10022E-03   -1.4909    
  11  Prefactor     52.248        42.967        .55500E-04   -1.4261    
  12  norm          .10000E-03    8.3030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    82.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5961        .58327        .20928E-04   -1.5329    
  16  Prefactor     .10000E-03    7.5028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .96838        .69284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8323        16.563        .91509E-03   -1.5268    
  20  Prefactor     .10000E-03    23.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9451        .57459        .16153E-04   -1.5220    
  22  Prefactor     .10000E-03    26.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9692        .14033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4555        .41333        .39078E-03   -.79037    
  26  Prefactor     .62309        .19774        .28141E-03   -1.0662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66883e-09
Minuit parameter uncertainties:
  1  6.78186
  2  0.000166561
  3  2.84465e-05
  4  4.18244
  5  23.9297
  6  8.77408e-05
  7  90.9944
  8  1.42163
  9  0.0341698
  10  32.9147
  11  42.9929
  12  8.90089e-06
  13  0.000225256
  14  2.4581e-06
  15  0.583274
  16  1.63307e-06
  17  7.55698e-06
  18  7.88891e-05
  19  16.5784
  20  5.07293e-06
  21  0.574589
  22  3.31563e-05
  23  1.95909e-06
  24  2.09371e-05
  25  0.414293
  26  0.197964
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.253e-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:  6.231e-01  1.980e-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.455e+00  4.143e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279429/likelihoodResults_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.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) = 5209.47640225
delta logL = -5.75810017835e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5209.47634517
delta logL = -5.06979631609e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3623       1.0000          .0000       10.000    
     3 'Normalizat'    1.4555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5208.449     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      310 TOTAL
                     EDM=   .63E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29612E-01    .52465        .17833E-05    .36535E-05
   2  Index         5.8645        3.2513        .90479E-04   -.21616E-05
   3  Normalizat    1.2976        .39836       -.81494E-05   -.27304E-04
   4  Prefactor     .67429        .19669        .94505E-05   -.43429E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0296124
  Index      = 5.86454
  Normalizat = 1.29764
  Prefactor  = 0.674291
 **********
 **   18 **HESSE 
 **********

 FCN=   5208.449     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      349 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29612E-01    .96752        .21444E-02   -1.5742    
   2  Index         5.8645        3.5357        .10513        .17378    
   3  Normalizat    1.2976        .31355        .91964E-01   -.83637    
   4  Prefactor     .67429        .11808        .61257E-01   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56231e-09
Minuit parameter uncertainties:
  1  0.337964
  2  3.94397
  3  0.31401
  4  0.118128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279429': 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) = 5208.44871339
delta logL = 1.02763127351

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.961e-02  3.380e-01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  5.865e+00  3.944e+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:  6.743e-01  1.181e-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.298e+00  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 335.710 12.157
Photon Index (Free Index): 5.86 +/- 3.94
Photon Flux (Free Index): 1.99e-07 +/- 4.07e-06
Energy Flux (Free Index): 2.49e-05 +/- 5.07e-04

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/279429/cmap_HighResolution_433728001_433987201_4FGL_J2222.8+1209_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', energy_flux2='2.49e-05', dlogl='1.03e+00', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-28 10:30:17.311838', photon_index_error2='3.94', photon_index2='5.86', ts='-0.00', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='5.07e-04', EG='1.46', time_epoch_completed='1632850217.31', return_code='0', job_id='279429', GAL2='0.67', EG2='1.30', return_code2='102', photon_flux_error2='4.07e-06', ts2='2.17', photon_index='2.41' WHERE bin_id='750' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:30:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 279429: <4FGL_J2222.8+1209_daily_bin750> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin750 335.71 12.1568 433728001 433987201 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

