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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin810
RA = 335.71, Dec = 12.1568
tmin = 449280001, tmax = 449539201
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='280571', job_status='RUN', time_executed='2021-09-28 10:23:26.182517', time_epoch_executed='1632849806.18' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280571/ft1_4FGL_J2222.8+1209_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280571/ft2_4FGL_J2222.8+1209_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280571/ft1_4FGL_J2222.8+1209_daily_bin810.fits outfile=/scratch/kocevski/280571/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin810.fits ra=335.71 dec=12.1568 rad=12.0 tmin=449280001.0 tmax=449539201.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.00
user 5.69
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280571/ft1_filtered_4FGL_J2222.8+1209_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/280571/ft2_4FGL_J2222.8+1209_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/280571/ltcube_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.fits outfile=/scratch/kocevski/280571/expmap_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.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/280571/ltcube_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.fits
.....................!
real 192.56
user 185.45
sys 4.51

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/280571/ft1_filtered_4FGL_J2222.8+1209_daily_bin810.fits scfile=/scratch/kocevski/280571/ft2_4FGL_J2222.8+1209_daily_bin810.fits outfile=/scratch/kocevski/280571/cmap_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280571/ft1_filtered_4FGL_J2222.8+1209_daily_bin810.fits scfile=/scratch/kocevski/280571/ft2_4FGL_J2222.8+1209_daily_bin810.fits outfile=/scratch/kocevski/280571/cmap_HighResolution_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.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/280571/ft1_filtered_4FGL_J2222.8+1209_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/280571/ft2_4FGL_J2222.8+1209_daily_bin810.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/280571/Model_4FGL_J2222.8+1209_daily_bin810.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/280571/ft1_filtered_4FGL_J2222.8+1209_daily_bin810.fits.....................!
real 69.84
user 68.50
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7729       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0759       1.0000         .10000E-03   10000.    
     5 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .54607       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14929E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36212E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    7.3140       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.688       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66544E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.194       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8072       1.0000         .10000E-03   10000.    
    22 'Prefactor '    144.39       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .56479       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1181       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=   6857.364     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3102 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6016        2.8100       -.18422E-06   -.15721E-03
   2  Prefactor     .10000E-03    16.059        .37876E-07** at limit **
   3  Prefactor     6.7592        96.544       -.22479E-04   -.11138E-04
   4  norm          3.0748        2.1516       -.18756E-06   -.34243E-03
   5  norm          .10000E-03    8.7869       -.13812E-06** at limit **
   6  Prefactor     .10000E-03    34.904        .12716E-06** at limit **
   7  Prefactor     .10000E-03    25.934       -.35551E-07** at limit **
   8  norm          .54455        .75185       -.18406E-06   -.14267E-02
   9  Prefactor     34.245        25.994        .42508E-06   -.51719E-04
  10  Prefactor     .10000E-03    66.491       -.13363E-05** at limit **
  11  Prefactor     .10001E-03    245.19        .16872E-04** at limit **
  12  norm          7.3133        6.1426        .11261E-06   -.91893E-04
  13  Prefactor     .10000E-03    8.3029       -.17279E-06** at limit **
  14  Prefactor     .10000E-03    5.8758       -.61731E-07** at limit **
  15  Prefactor     1.8883        .41984       -.22503E-07    .37057E-03
  16  Prefactor     34.694        18.395       -.16330E-06   -.17319E-04
  17  norm          .10000E-03    1.0487       -.32624E-08** at limit **
  18  Prefactor     .10000E-03    399.12       -.63207E-04** at limit **
  19  Prefactor     .10000E-03    8.4299        .10640E-06** at limit **
  20  Prefactor     25.197        29.412       -.44857E-06    .37026E-04
  21  Prefactor     2.8071        .49545        .18656E-07    .29448E-02
  22  Prefactor     144.34        119.86       -.37905E-04   -.22413E-05
  23  Prefactor     .10000E-03    10.435       -.15256E-07** at limit **
  24  Prefactor     .10000E-03    8.7920        .22596E-06** at limit **
  25  Normalizat    .56505        .30208        .49108E-05    .18189E-04
  26  Prefactor     1.1181        .14587        .29811E-06    .35674E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.60159
  Prefactor  = 0.0001
  Prefactor  = 6.7592
  norm       = 3.07479
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.544551
  Prefactor  = 34.2453
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 7.31327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88832
  Prefactor  = 34.6938
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.1974
  Prefactor  = 2.8071
  Prefactor  = 144.343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.565049
  Prefactor  = 1.11813
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.364     FROM HESSE     STATUS=OK           454 CALLS     3556 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6016        2.8047        .93341E-04   -1.5235    
   2  Prefactor     .10000E-03    16.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7592        96.250        .15418E-03   -1.5188    
   4  norm          3.0748        2.1397        .95194E-04   -1.5357    
   5  norm          .10000E-03    8.8221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .54455        .64437        .80641E-03   -1.5560    
   9  Prefactor     34.245        25.909        .68475E-04   -1.4537    
  10  Prefactor     .10000E-03    67.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    250.75        .39230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3133        6.1324        .14831E-03   -1.5167    
  13  Prefactor     .10000E-03    8.3161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8883        .42003        .23020E-04   -1.5433    
  16  Prefactor     34.694        18.487        .68041E-04   -1.4529    
  17  norm          .10000E-03    1.0502        .82815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    404.11        .21008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.197        29.496        .79808E-04   -1.4704    
  21  Prefactor     2.8071        .49597        .23097E-04   -1.5373    
  22  Prefactor     144.34        119.90        .16765E-03   -1.3299    
  23  Prefactor     .10000E-03    10.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .56505        .31434        .50395E-03   -1.0949    
  26  Prefactor     1.1181        .15617        .19097E-03   -.88889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96986e-10
Minuit parameter uncertainties:
  1  2.80479
  2  2.0837e-06
  3  51.112
  4  2.13971
  5  2.31484e-05
  6  6.72405e-05
  7  1.91289e-05
  8  0.644377
  9  25.9172
  10  0.000295049
  11  0.0030617
  12  6.13295
  13  1.29264e-05
  14  8.88757e-06
  15  0.420029
  16  18.4896
  17  9.64773e-07
  18  0.00099029
  19  6.9685e-06
  20  29.513
  21  0.495975
  22  120.101
  23  1.88624e-06
  24  1.41638e-05
  25  0.315341
  26  0.156231
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.293e-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:  1.118e+00  1.562e-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:  5.650e-01  3.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280571/likelihoodResults_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.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) = 6857.36467584
delta logL = -0.00057261267375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6857.36410326
delta logL = -3.81860445486e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3852       1.0000          .0000       10.000    
     3 'Normalizat'    .56507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1181       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=   6857.364     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    92.816        .18142E-02** at limit **
   2  Index         2.3072        8.5243        .50000        .18786E-04
   3  Normalizat    .56505        .20571E-01    .50394E-03   -.65355E-04
   4  Prefactor     1.1181        .10776E-01    .19097E-03    .63090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102148
  Index      = 2.30722
  Normalizat = 0.565045
  Prefactor  = 1.11813
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.364     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10215E-03    387.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3072        5.9738        .50000       -.56872    
   3  Normalizat    .56505        .43893E-01    .20158E-04   -1.0949    
   4  Prefactor     1.1181        .22994E-01    .38195E-04   -.88889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84479e-08
Minuit parameter uncertainties:
  1  0.0580837
  2  747.01
  3  0.0438961
  4  0.0229939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280571': 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) = 6857.36410286
delta logL = 3.68012479157e-07

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.021e-04  5.808e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.307e+00  7.470e+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:  1.118e+00  2.299e-02  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:  5.650e-01  4.390e-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/280571/cmap_HighResolution_449280001_449539201_4FGL_J2222.8+1209_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-28 10:35:43.781004', job_id='280571', GAL2='1.12', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1632850543.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='810' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 280571: <4FGL_J2222.8+1209_daily_bin810> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin810> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 10:20:16 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:20:18 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:20:18 2021
Terminated at Tue Sep 28 10:35:44 2021
Results reported at Tue Sep 28 10:35:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin810 335.71 12.1568 449280001 449539201 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 :                                   734.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

