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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin585
RA = 335.71, Dec = 12.1568
tmin = 390960001, tmax = 391219201
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='279193', job_status='RUN', time_executed='2021-09-28 10:17:52.396761', time_epoch_executed='1632849472.4' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279193/ft1_4FGL_J2222.8+1209_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279193/ft2_4FGL_J2222.8+1209_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279193/ft1_4FGL_J2222.8+1209_daily_bin585.fits outfile=/scratch/kocevski/279193/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin585.fits ra=335.71 dec=12.1568 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.48
user 4.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279193/ft2_4FGL_J2222.8+1209_daily_bin585.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/279193/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/279193/ft1_filtered_4FGL_J2222.8+1209_daily_bin585.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279193/ft1_filtered_4FGL_J2222.8+1209_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/279193/ft2_4FGL_J2222.8+1209_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/279193/ltcube_390960001_391219201_4FGL_J2222.8+1209_daily_bin585.fits outfile=/scratch/kocevski/279193/expmap_390960001_391219201_4FGL_J2222.8+1209_daily_bin585.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/279193/ltcube_390960001_391219201_4FGL_J2222.8+1209_daily_bin585.fits
.....................!
real 191.57
user 186.60
sys 4.62

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/279193/ft1_filtered_4FGL_J2222.8+1209_daily_bin585.fits scfile=/scratch/kocevski/279193/ft2_4FGL_J2222.8+1209_daily_bin585.fits outfile=/scratch/kocevski/279193/cmap_390960001_391219201_4FGL_J2222.8+1209_daily_bin585.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.669       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36969E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5125       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1215       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18470       1.0000         .10000E-03   10000.    
     8 'norm      '    .54836       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9458       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20610E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.306       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9605       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19704E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.692       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4020       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11789E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24030E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81187       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97405       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=   7264.066     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3209 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.671        3.4408       -.10823E-06   -.16124E-02
   2  Prefactor     .10000E-03    404.48        .27601E-04** at limit **
   3  Prefactor     .10000E-03    13.844        .31581E-07** at limit **
   4  norm          3.5095        2.6579       -.66457E-06   -.80636E-03
   5  norm          3.1203        18.333        .10060E-04   -.80692E-04
   6  Prefactor     9.1238        26.123       -.10719E-04    .15467E-04
   7  Prefactor     .79004E-01    37.881       -.41942E-05    .17264E-03
   8  norm          .54841        .50651        .47180E-07    .57793E-03
   9  Prefactor     9.9398        21.930       -.17541E-04   -.99428E-05
  10  Prefactor     .10000E-03    58.382       -.42329E-05** at limit **
  11  Prefactor     .10000E-03    28.976        .25212E-06** at limit **
  12  norm          1.7486        3.9781       -.10521E-05   -.81409E-03
  13  Prefactor     29.292        19.832       -.14436E-04    .65909E-04
  14  Prefactor     .10000E-03    3.2942        .57830E-07** at limit **
  15  Prefactor     1.4973        .32648        .27217E-06   -.26640E-02
  16  Prefactor     5.9626        6.9644       -.36819E-06    .39925E-06
  17  norm          .10000E-03    .82224       -.17808E-06** at limit **
  18  Prefactor     .10278E-03    18.399       -.37439E-06** at limit **
  19  Prefactor     .10000E-03    18.076       -.52269E-06** at limit **
  20  Prefactor     25.692        25.754       -.31229E-05   -.46684E-04
  21  Prefactor     1.4020        .24730       -.37545E-07   -.11358E-02
  22  Prefactor     .10000E-03    35.429        .10352E-06** at limit **
  23  Prefactor     .10126E-03    5.1608        .87916E-06** at limit **
  24  Prefactor     .10000E-03    6.4697       -.11069E-06** at limit **
  25  Normalizat    .81189        .24414        .76456E-05    .36448E-04
  26  Prefactor     .97409        .12442        .20738E-06    .30340E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.50953
  norm       = 3.12026
  Prefactor  = 9.1238
  Prefactor  = 0.0790037
  norm       = 0.548407
  Prefactor  = 9.9398
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.74864
  Prefactor  = 29.2916
  Prefactor  = 0.0001
  Prefactor  = 1.49731
  Prefactor  = 5.96262
  norm       = 0.0001
  Prefactor  = 0.00010278
  Prefactor  = 0.0001
  Prefactor  = 25.6918
  Prefactor  = 1.40204
  Prefactor  = 0.0001
  Prefactor  = 0.00010126
  Prefactor  = 0.0001
  Normalizat = 0.811895
  Prefactor  = 0.974088
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.066     FROM HESSE     STATUS=OK           484 CALLS     3693 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.671        3.4427        .42287E-03   -1.5055    
   2  Prefactor     .10000E-03    406.94        .19590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5095        2.6462        .11323E-03   -1.5333    
   5  norm          3.1203        18.088        .22957E-03   -1.5355    
   6  Prefactor     9.1238        26.085        .13270E-03   -1.5104    
   7  Prefactor     .79004E-01    37.483        .15818       -1.5652    
   8  norm          .54841        .52932        .56462E-03   -1.5560    
   9  Prefactor     9.9398        21.992        .12706E-03   -1.5077    
  10  Prefactor     .10000E-03    59.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7486        3.9674        .24765E-03   -1.5443    
  13  Prefactor     29.292        19.828        .74009E-04   -1.4625    
  14  Prefactor     .10000E-03    3.3007        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4973        .32708        .20360E-04   -1.5463    
  16  Prefactor     5.9626        6.9718        .16447E-03   -1.5220    
  17  norm          .10000E-03    1.4023        .15037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10278E-03    19.570        .12734       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.692        25.792        .79031E-04   -1.4694    
  21  Prefactor     1.4020        .24615        .16144E-04   -1.5471    
  22  Prefactor     .10000E-03    35.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10126E-03    77.071        .36750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81189        .28095        .39447E-03   -.99629    
  26  Prefactor     .97409        .14529        .19427E-03   -.93598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7564e-08
Minuit parameter uncertainties:
  1  3.44275
  2  0.000311409
  3  1.68673e-07
  4  2.64625
  5  15.0319
  6  26.1172
  7  3.44167
  8  0.529324
  9  22.0099
  10  0.000408312
  11  0.000134116
  12  3.96804
  13  19.8324
  14  9.17278e-06
  15  0.327081
  16  6.97273
  17  2.23008e-05
  18  0.0147579
  19  0.000154845
  20  25.8031
  21  0.246154
  22  0.000108301
  23  0.0197326
  24  1.80677e-05
  25  0.281453
  26  0.145352
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.929e+01  1.983e+01  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:  9.741e-01  1.454e-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:  8.119e-01  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.78e-08 +/- 6.62e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 2.15e-05

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): 0
logL (Free Index) = 7263.67208907
delta logL = 0.394327557988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7263.66736701
delta logL = 0.399049613931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.121       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8800       1.0000          .0000       10.000    
     3 'Normalizat'    .76373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98994       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=   7263.667     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      264 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.121        152.56        .24199E-02    .49473E-03
   2  Index         2.8802        2.4733        .11476        .17757E-03
   3  Normalizat    .76346        .94724E-01    .91460E-01    .85828E-05
   4  Prefactor     .99006        .44868E-01    .46141E-01   -.13556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1208
  Index      = 2.88024
  Normalizat = 0.763464
  Prefactor  = 0.990057
 **********
 **   18 **HESSE 
 **********

 FCN=   7263.667     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.121        20.456        .96796E-04   -1.4880    
   2  Index         2.8802        .64271        .41754E-02   -.43781    
   3  Normalizat    .76346        .27492        .40516E-03   -1.0144    
   4  Prefactor     .99006        .14515        .19275E-03   -.93062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90774e-09
Minuit parameter uncertainties:
  1  20.4639
  2  0.644887
  3  0.275424
  4  0.145208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279193': 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): 0
logL (Free Index) = 7263.66736647
delta logL = 0.399050153073

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.901e-01  1.452e-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:  7.635e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.70
Ra Dec: 335.710 12.157
Photon Index (Free Index): 2.88 +/- 0.64
Photon Flux (Free Index): 1.44e-07 +/- 8.53e-08
Energy Flux (Free Index): 3.06e-05 +/- 1.72e-05

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/279193/cmap_HighResolution_390960001_391219201_4FGL_J2222.8+1209_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.78e-08', energy_flux2='3.06e-05', photon_flux_error='6.62e-08', dlogl='3.99e-01', energy_flux='3.18e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-28 10:29:36.958841', photon_index_error2='0.64', photon_index2='2.88', ts='4.76', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.81', time_epoch_completed='1632850176.96', return_code='0', job_id='279193', GAL2='0.99', EG2='0.76', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.53e-08', ts2='5.70', photon_index='2.41' WHERE bin_id='585' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:29:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 279193: <4FGL_J2222.8+1209_daily_bin585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin585 335.71 12.1568 390960001 391219201 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

