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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin693
RA = 335.71, Dec = 12.1568
tmin = 418953601, tmax = 419212801
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='279347', job_status='RUN', time_executed='2021-09-28 10:19:33.883736', time_epoch_executed='1632849573.88' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279347/ft1_4FGL_J2222.8+1209_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279347/ft2_4FGL_J2222.8+1209_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279347/ft1_4FGL_J2222.8+1209_daily_bin693.fits outfile=/scratch/kocevski/279347/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin693.fits ra=335.71 dec=12.1568 rad=12.0 tmin=418953601.0 tmax=419212801.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.46
user 5.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279347/ft1_filtered_4FGL_J2222.8+1209_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/279347/ft2_4FGL_J2222.8+1209_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/279347/ltcube_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.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/279347/ft2_4FGL_J2222.8+1209_daily_bin693.fits
.....................!
real 11.86
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279347/ft1_filtered_4FGL_J2222.8+1209_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/279347/ft2_4FGL_J2222.8+1209_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/279347/ltcube_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.fits outfile=/scratch/kocevski/279347/expmap_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.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/279347/ltcube_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.fits
.....................!
real 195.95
user 191.62
sys 3.97

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/279347/ft1_filtered_4FGL_J2222.8+1209_daily_bin693.fits scfile=/scratch/kocevski/279347/ft2_4FGL_J2222.8+1209_daily_bin693.fits outfile=/scratch/kocevski/279347/cmap_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.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.13

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16822E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    149.93       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.147       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8644       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21522E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.486       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39861E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11967E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6887       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .59465E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4457       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87395       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4359.621     FROM MIGRAD    STATUS=CONVERGED   1128 CALLS     4073 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    7.7576        .37237E-01** at limit **
   2  Prefactor     .10000E-03    51.618        .18142E-02** at limit **
   3  Prefactor     149.82        113.76        .16458E-03   -.52444E-04
   4  norm          .10000E-03    1.2877        .72886E-03** at limit **
   5  norm          .10000E-03    12.200        .18142E-02** at limit **
   6  Prefactor     86.268        63.329        .21642E-03   -.63247E-04
   7  Prefactor     .10000E-03    30.423        .18142E-02** at limit **
   8  norm          6.8656        2.6630        .63697E-04   -.36678E-03
   9  Prefactor     11.336        30.368        .11893E-03    .21508E-04
  10  Prefactor     .10000E-03    196.46        .36285E-03** at limit **
  11  Prefactor     .10000E-03    41.111        .18142E-02** at limit **
  12  norm          21.486        10.168        .86410E-04   -.86702E-04
  13  Prefactor     .10165E-03    353.89        .74047E-02** at limit **
  14  Prefactor     3.5429        21.728        .21460E-03    .21932E-04
  15  Prefactor     .89908        .43480        .28501E-04   -.22186E-02
  16  Prefactor     .10000E-03    42.015        .40566E-02** at limit **
  17  norm          .10000E-03    1.3190        .73682E-03** at limit **
  18  Prefactor     .10000E-03    55.176        .18142E-02** at limit **
  19  Prefactor     .10000E-03    22.513        .18142E-02** at limit **
  20  Prefactor     .10000E-03    11.904        .18142E-02** at limit **
  21  Prefactor     3.6885        .50134        .16414E-04    .10113E-03
  22  Prefactor     .10000E-03    61.910        .18142E-02** at limit **
  23  Prefactor     .10035E-03    10.901        .65032E-01** at limit **
  24  Prefactor     .10000E-03    6.5624        .16519E-02** at limit **
  25  Normalizat    1.4459        .46041        .39128E-03   -.25296E-03
  26  Prefactor     .87400        .22648        .24442E-03   -.15675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010011
  Prefactor  = 0.0001
  Prefactor  = 149.824
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 86.2676
  Prefactor  = 0.0001
  norm       = 6.86564
  Prefactor  = 11.3359
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 21.4856
  Prefactor  = 0.000101647
  Prefactor  = 3.54291
  Prefactor  = 0.899085
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68847
  Prefactor  = 0.0001
  Prefactor  = 0.000100347
  Prefactor  = 0.0001
  Normalizat = 1.44593
  Prefactor  = 0.874
 **********
 **   18 **HESSE 
 **********

 FCN=   4359.621     FROM HESSE     STATUS=OK           450 CALLS     4523 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    5.8039        .44832E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     149.82        113.75        .32915E-04   -1.3254    
   4  norm          .10000E-03    1.2878        .14577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     86.268        63.211        .86568E-05   -1.3848    
   7  Prefactor     .10000E-03    30.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8656        2.6633        .25479E-05   -1.5184    
   9  Prefactor     11.336        30.375        .47572E-05   -1.5034    
  10  Prefactor     .10000E-03    196.46        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.486        10.167        .34564E-05   -1.4781    
  13  Prefactor     .10165E-03    365.70        .29619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5429        21.723        .85839E-05   -1.5331    
  15  Prefactor     .89908        .43362        .11400E-05   -1.5518    
  16  Prefactor     .10000E-03    42.418        .81132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3191        .14736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.6885        .50137        .65654E-06   -1.5324    
  22  Prefactor     .10000E-03    61.912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10035E-03    10.225        .68625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5625        .33038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4459        .46065        .78257E-04   -.79309    
  26  Prefactor     .87400        .22664        .97768E-05   -.97056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67772e-09
Minuit parameter uncertainties:
  1  0.00160162
  2  8.51579e-06
  3  113.921
  4  5.32932e-06
  5  7.00747e-05
  6  63.26
  7  6.27312e-06
  8  2.6633
  9  30.4163
  10  0.00169207
  11  9.0475e-05
  12  10.1678
  13  0.0493843
  14  17.5551
  15  0.433617
  16  0.000317095
  17  8.46356e-07
  18  0.000134679
  19  1.54576e-06
  20  4.63884e-06
  21  0.50137
  22  3.56765e-05
  23  0.00376841
  24  2.76528e-07
  25  0.461989
  26  0.22688
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.740e-01  2.269e-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.446e+00  4.620e-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.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279347/likelihoodResults_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.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) = 4359.62103566
delta logL = -1.29116724565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4359.62103566
delta logL = -1.29100862978e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4069       1.0000          .0000       10.000    
     3 'Normalizat'    1.4459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87401       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=   4358.829     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      287 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41328        5.6455        .77158E-02   -.55918E-03
   2  Index         4.7753        2.4458        .10238        .22827E-04
   3  Normalizat    1.2230        .91989E-01    .94441E-01   -.58330E-04
   4  Prefactor     .94560        .46422E-01    .44673E-01    .67733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.413279
  Index      = 4.77532
  Normalizat = 1.22303
  Prefactor  = 0.945604
 **********
 **   18 **HESSE 
 **********

 FCN=   4358.829     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      320 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41328        14.253        .34927E-04   -1.5579    
   2  Index         4.7753        7.0654        .37602E-02   -.44951E-01
   3  Normalizat    1.2230        .39940        .41840E-03   -.85894    
   4  Prefactor     .94560        .19697        .23575E-03   -.94565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15032e-09
Minuit parameter uncertainties:
  1  4.85471
  2  5.05738
  3  0.400408
  4  0.197121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279347': 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) = 4358.82893329
delta logL = 0.792089458126

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  4.133e-01  4.855e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  4.775e+00  5.057e+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:  9.456e-01  1.971e-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.223e+00  4.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 335.710 12.157
Photon Index (Free Index): 4.78 +/- 5.06
Photon Flux (Free Index): 2.20e-07 +/- 1.89e-07
Energy Flux (Free Index): 2.98e-05 +/- 3.12e-05

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/279347/cmap_HighResolution_418953601_419212801_4FGL_J2222.8+1209_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-02', comment='SUCCESS', energy_flux2='2.98e-05', dlogl='7.92e-01', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-28 10:30:26.026412', photon_index_error2='5.06', photon_index2='4.78', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.72e-07', energy_flux_error2='3.12e-05', EG='1.45', time_epoch_completed='1632850226.03', return_code='0', job_id='279347', GAL2='0.95', EG2='1.22', return_code2='102', photon_flux_error2='1.89e-07', ts2='1.78', photon_index='2.41' WHERE bin_id='693' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 279347: <4FGL_J2222.8+1209_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin693 335.71 12.1568 418953601 419212801 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 :                                   652.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

