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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin35
RA = 334.238, Dec = 24.3575
tmin = 248400001, tmax = 248659201
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='226186', job_status='RUN', time_executed='2021-09-28 07:16:20.694415', time_epoch_executed='1632838580.69' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226186/ft1_4FGL_J2216.9+2421_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226186/ft1_4FGL_J2216.9+2421_daily_bin35.fits outfile=/scratch/kocevski/226186/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin35.fits ra=334.238 dec=24.3575 rad=12.0 tmin=248400001.0 tmax=248659201.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 1.47
user 1.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.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/226186/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/226186/ltcube_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.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/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits
.....................!
real 14.85
user 14.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/226186/ltcube_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.fits outfile=/scratch/kocevski/226186/expmap_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.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/226186/ltcube_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.fits
.....................!
real 190.64
user 185.27
sys 4.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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 159 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2216.9+2421 @ 334.238 24.3575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits scfile=/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits outfile=/scratch/kocevski/226186/cmap_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.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=334.238 yref=24.3575 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/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits scfile=/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits outfile=/scratch/kocevski/226186/cmap_HighResolution_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.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=334.238 yref=24.3575 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226186/Model_4FGL_J2216.9+2421_daily_bin35.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits.....................!
real 203.29
user 201.63
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits', '/scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits', expMap='/scratch/kocevski/226186/expmap_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.fits', expCube='/scratch/kocevski/226186/ltcube_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/226186/Model_4FGL_J2216.9+2421_daily_bin35.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2216.9+2421'

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.564e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/226186/ft1_filtered_4FGL_J2216.9+2421_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/226186/ft2_4FGL_J2216.9+2421_daily_bin35.fits
Exposure map: /scratch/kocevski/226186/expmap_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.fits
Exposure cube: /scratch/kocevski/226186/ltcube_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/226186/Model_4FGL_J2216.9+2421_daily_bin35.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) = 12277.7409942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4302       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0266       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1790       1.0000         .10000E-03   10000.    
     5 'norm      '    .58437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.533       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.635       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6642       1.0000         .10000E-03   10000.    
    12 'norm      '    .88740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13669       1.0000         .10000E-03   10000.    
    14 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.810       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5152       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9619       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1481       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12277.73     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2150 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.544       -.54785E-06** at limit **
   2  norm          1.4319        1.6616       -.10771E-05   -.21140E-02
   3  Prefactor     4.0314        6.7928        .51418E-06   -.14293E-04
   4  Prefactor     1.2432        134.79        .25616E-04   -.74690E-04
   5  norm          .58282        .77193        .17396E-06    .18718E-03
   6  Prefactor     .10000E-03    56.899        .62086E-06** at limit **
   7  norm          1.0992        .86166       -.27256E-06   -.21235E-02
   8  Prefactor     20.531        13.395        .22274E-06   -.79765E-04
   9  norm          .10000E-03    2.6625        .96189E-07** at limit **
  10  Prefactor     16.622        63.741        .30288E-05   -.13767E-04
  11  Prefactor     1.6647        4.9803        .49350E-06   -.42125E-04
  12  norm          .88970        1.1271        .14251E-06    .24375E-03
  13  Prefactor     .10344E-03    13.895       -.11557E-05** at limit **
  14  norm          .10000E-03    .48201        .15839E-07** at limit **
  15  Prefactor     34.810        32.222        .34212E-06   -.10015E-04
  16  Prefactor     1.9486        10.394        .90568E-05   -.26454E-03
  17  Prefactor     4.5150        .41004       -.10612E-07   -.12756E-02
  18  Prefactor     4.9614        5.7646        .57068E-07   -.31494E-04
  19  Normalizat    1.1481        .20685       -.25154E-05   -.49821E-03
  20  Prefactor     .97606        .92069E-01   -.50798E-06   -.10319E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.43194
  Prefactor  = 4.03137
  Prefactor  = 1.24319
  norm       = 0.582824
  Prefactor  = 0.000100001
  norm       = 1.09919
  Prefactor  = 20.531
  norm       = 0.0001
  Prefactor  = 16.6217
  Prefactor  = 1.66474
  norm       = 0.889701
  Prefactor  = 0.000103438
  norm       = 0.0001
  Prefactor  = 34.81
  Prefactor  = 1.94865
  Prefactor  = 4.515
  Prefactor  = 4.96137
  Normalizat = 1.1481
  Prefactor  = 0.97606
 **********
 **   18 **HESSE 
 **********

 FCN=   12277.73     FROM HESSE     STATUS=OK           315 CALLS     2465 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4319        1.6707        .14668E-03   -1.5469    
   3  Prefactor     4.0314        6.7528        .20096E-03   -1.5306    
   4  Prefactor     1.2432        138.17        .42128E-02   -1.5485    
   5  norm          .58282        .70786        .10519E-02   -1.5555    
   6  Prefactor     .10000E-03    57.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0992        .84201        .86644E-04   -1.5498    
   8  Prefactor     20.531        13.416        .44196E-03   -1.4801    
   9  norm          .10000E-03    2.7267        .17651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.622        63.642        .98200E-04   -1.4892    
  11  Prefactor     1.6647        4.9416        .32694E-03   -1.5450    
  12  norm          .88970        1.0752        .11620E-03   -1.5519    
  13  Prefactor     .10344E-03    15.524        .11065       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .81096        .14909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.810        32.332        .67922E-04   -1.4527    
  16  Prefactor     1.9486        10.573        .14893E-02   -1.5429    
  17  Prefactor     4.5150        .41230        .20079E-04   -1.5283    
  18  Prefactor     4.9614        5.7622        .18055E-03   -1.5262    
  19  Normalizat    1.1481        .24501        .38289E-03   -.88222    
  20  Prefactor     .97606        .11063        .19179E-03   -.93532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07544e-09
Minuit parameter uncertainties:
  1  5.56026e-05
  2  1.67072
  3  6.75404
  4  26.2735
  5  0.707866
  6  0.000369522
  7  0.842017
  8  13.4181
  9  1.17686e-05
  10  63.9038
  11  4.9428
  12  1.07526
  13  0.0146142
  14  2.35211e-05
  15  32.3479
  16  9.0805
  17  0.412296
  18  5.76285
  19  0.24525
  20  0.110655
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  2.053e+01  1.342e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.761e-01  1.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.148e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.24e-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) = 12277.3435186
delta logL = 0.390984961883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12277.3386114
delta logL = 0.395892096738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8089       1.0000          .0000       10.000    
     3 'Normalizat'    1.1024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   12277.34     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.768        15.381        .11211E-03    .33992E-03
   2  Index         2.8089        .73489        .62993E-02    .10873E-03
   3  Normalizat    1.1024        .24243        .38973E-03    .24428E-03
   4  Prefactor     .98922        .11097        .19064E-03    .62395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.768
  Index      = 2.8089
  Normalizat = 1.10238
  Prefactor  = 0.989219
 **********
 **   18 **HESSE 
 **********

 FCN=   12277.34     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.768        12.543        .44843E-05   -1.4993    
   2  Index         2.8089        .59922        .25197E-03   -.45362    
   3  Normalizat    1.1024        .24117        .15589E-04   -.89675    
   4  Prefactor     .98922        .11067        .38128E-04   -.93090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55139e-10
Minuit parameter uncertainties:
  1  12.5457
  2  0.601008
  3  0.241413
  4  0.110693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226186': 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) = 12277.3386114
delta logL = 0.395892112892

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.277e+01  1.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.809e+00  6.010e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.892e-01  1.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.102e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.80
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.81 +/- 0.60
Photon Flux (Free Index): 8.02e-08 +/- 5.25e-08
Energy Flux (Free Index): 1.78e-05 +/- 9.83e-06

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/226186/cmap_HighResolution_248400001_248659201_4FGL_J2216.9+2421_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='1.78e-05', photon_flux_error='3.19e-08', dlogl='3.96e-01', energy_flux='1.89e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-09-28 07:30:58.429798', photon_index_error2='0.60', photon_index2='2.81', ts='4.94', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.83e-06', EG='1.15', time_epoch_completed='1632839458.43', return_code='0', job_id='226186', GAL2='0.99', EG2='1.10', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.25e-08', ts2='5.80', photon_index='2.28' WHERE bin_id='35' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:30:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 226186: <4FGL_J2216.9+2421_daily_bin35> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin35> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:16:01 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:16:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:16:03 2021
Terminated at Tue Sep 28 07:30:59 2021
Results reported at Tue Sep 28 07:30:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin35 334.238 24.3575 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2216.9+2421 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   876.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

