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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin383
RA = 335.71, Dec = 12.1568
tmin = 338601601, tmax = 338860801
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='277883', job_status='RUN', time_executed='2021-09-28 10:14:41.405807', time_epoch_executed='1632849281.41' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277883

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277883/ft1_4FGL_J2222.8+1209_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277883/ft2_4FGL_J2222.8+1209_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277883/ft1_4FGL_J2222.8+1209_daily_bin383.fits outfile=/scratch/kocevski/277883/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin383.fits ra=335.71 dec=12.1568 rad=12.0 tmin=338601601.0 tmax=338860801.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.22
user 4.91
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277883/ft1_filtered_4FGL_J2222.8+1209_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/277883/ft2_4FGL_J2222.8+1209_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/277883/ltcube_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.fits outfile=/scratch/kocevski/277883/expmap_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.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/277883/ltcube_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.fits
.....................!
real 192.98
user 186.73
sys 4.95

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/277883/ft1_filtered_4FGL_J2222.8+1209_daily_bin383.fits scfile=/scratch/kocevski/277883/ft2_4FGL_J2222.8+1209_daily_bin383.fits outfile=/scratch/kocevski/277883/cmap_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277883/ft1_filtered_4FGL_J2222.8+1209_daily_bin383.fits scfile=/scratch/kocevski/277883/ft2_4FGL_J2222.8+1209_daily_bin383.fits outfile=/scratch/kocevski/277883/cmap_HighResolution_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.71 yref=12.1568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.271       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.685       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5918       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12738E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35581       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70355E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6660       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61417       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=   6759.045     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2650 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3346        3.5036        .10442E-05   -.89488E-03
   2  Prefactor     .10000E-03    19.553       -.12338E-05** at limit **
   3  Prefactor     .10000E-03    52.787       -.16786E-07** at limit **
   4  norm          .10000E-03    .99046       -.39482E-07** at limit **
   5  norm          15.481        20.677       -.52236E-06   -.72943E-04
   6  Prefactor     28.269        30.427       -.14495E-05   -.34512E-04
   7  Prefactor     .10000E-03    28.070        .29843E-06** at limit **
   8  norm          2.0974        1.0453       -.24138E-07   -.15299E-04
   9  Prefactor     .10000E-03    8.0272        .32060E-06** at limit **
  10  Prefactor     .10000E-03    13.044        .85735E-06** at limit **
  11  Prefactor     43.663        31.899       -.24233E-05   -.28457E-03
  12  norm          3.5914        3.5533        .19313E-07   -.26674E-04
  13  Prefactor     .10000E-03    9.9146       -.47533E-06** at limit **
  14  Prefactor     .10000E-03    15.944        .49179E-06** at limit **
  15  Prefactor     .35577        .18989        .28106E-08    .30484E-05
  16  Prefactor     .10000E-03    3.7244        .12286E-07** at limit **
  17  norm          1.6668        1.3989       -.91964E-08    .24195E-04
  18  Prefactor     .10000E-03    7.1863       -.31882E-06** at limit **
  19  Prefactor     .10000E-03    9.7620       -.39182E-06** at limit **
  20  Prefactor     .10000E-03    5.2937        .47032E-07** at limit **
  21  Prefactor     .70410E-01    .86733E-01    .32164E-07    .35182E-03
  22  Prefactor     .10000E-03    28.448        .52036E-06** at limit **
  23  Prefactor     .10000E-03    4.2910        .28667E-07** at limit **
  24  Prefactor     .10000E-03    8.1591        .45115E-06** at limit **
  25  Normalizat    1.6664        .22689        .42537E-06   -.64483E-04
  26  Prefactor     .61392        .11508       -.44633E-06    .11602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.4811
  Prefactor  = 28.2686
  Prefactor  = 0.0001
  norm       = 2.09739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6635
  norm       = 3.59136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.355768
  Prefactor  = 0.0001
  norm       = 1.66681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0704105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6664
  Prefactor  = 0.613917
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.045     FROM HESSE     STATUS=OK           450 CALLS     3100 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3346        3.6669        .55147E-03   -1.5205    
   2  Prefactor     .10000E-03    19.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0336        .15962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.481        20.740        .10175E-03   -1.4921    
   6  Prefactor     28.269        30.422        .75348E-04   -1.4644    
   7  Prefactor     .10000E-03    28.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0974        1.0451        .28498E-04   -1.5418    
   9  Prefactor     .10000E-03    8.0691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.663        33.773        .60656E-04   -1.4385    
  12  norm          3.5914        3.5505        .14968E-03   -1.5329    
  13  Prefactor     .10000E-03    10.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .35577        .18782        .24875E-04   -1.5589    
  16  Prefactor     .10000E-03    3.7400        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6668        1.4049        .86654E-04   -1.5450    
  18  Prefactor     .10000E-03    7.2013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .70410E-01    .78100E-01    .25910E-03   -1.5655    
  22  Prefactor     .10000E-03    28.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3388        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.2032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6664        .26671        .27358E-03   -.73204    
  26  Prefactor     .61392        .13534        .21867E-03   -1.0700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61467e-10
Minuit parameter uncertainties:
  1  3.66705
  2  0.000157957
  3  5.36611e-05
  4  1.61375e-06
  5  20.7497
  6  30.4387
  7  4.08644e-05
  8  1.04512
  9  4.93249e-05
  10  9.82963e-05
  11  33.7882
  12  3.55074
  13  3.50388e-05
  14  1.25991e-05
  15  0.187822
  16  6.85297e-07
  17  1.40496
  18  2.67257e-05
  19  4.21967e-05
  20  1.28172e-06
  21  0.0780997
  22  6.92591e-05
  23  3.41162e-06
  24  3.03442e-05
  25  0.266936
  26  0.135412
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.504e-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:  6.139e-01  1.354e-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.666e+00  2.669e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277883/likelihoodResults_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.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) = 6759.04586176
delta logL = -0.000474556928566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6759.04538746
delta logL = -2.59115040535e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4090       1.0000          .0000       10.000    
     3 'Normalizat'    1.6663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61399       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=   6759.045     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8782        .90712E-02** at limit **
   2  Index         2.4110        5.6676        .50000       -.16570E-05
   3  Normalizat    1.6664        .53565E-02    .61862E-01    .28973E-05
   4  Prefactor     .61392        .27662E-02    .41244E-01    .23714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41103
  Normalizat = 1.6664
  Prefactor  = 0.613916
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.045     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4110        6.1948        .50000       -.54427    
   3  Normalizat    1.6664        .14908E-01    .27357E-03   -.73204    
   4  Prefactor     .61392        .76988E-02    .21867E-03   -1.0700    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.5812e-09
Minuit parameter uncertainties:
  1  3.87794e-05
  2  219.798
  3  0.0149085
  4  0.00769884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277883': 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) = 6759.0453872
delta logL = 1.76805770025e-09

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.878e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.411e+00  2.198e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  6.139e-01  7.699e-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.666e+00  1.491e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/277883/cmap_HighResolution_338601601_338860801_4FGL_J2222.8+1209_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-28 10:26:39.399196', job_id='277883', GAL2='0.61', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1632849999.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.77e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='383' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 277883: <4FGL_J2222.8+1209_daily_bin383> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin383> 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) <bullet0255>, 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:26:40 2021
Results reported at Tue Sep 28 10:26:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin383 335.71 12.1568 338601601 338860801 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 :                                   713.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

