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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1001
RA = 334.238, Dec = 24.3575
tmin = 498787201, tmax = 499046401
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='230250', job_status='RUN', time_executed='2021-09-28 07:34:39.383797', time_epoch_executed='1632839679.38' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230250/ft1_4FGL_J2216.9+2421_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230250/ft1_4FGL_J2216.9+2421_daily_bin1001.fits outfile=/scratch/kocevski/230250/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1001.fits ra=334.238 dec=24.3575 rad=12.0 tmin=498787201.0 tmax=499046401.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.04
user 4.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.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/230250/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.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/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/230250/ltcube_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.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/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits
.....................!
real 11.75
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/230250/ltcube_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.fits outfile=/scratch/kocevski/230250/expmap_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.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/230250/ltcube_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.fits
.....................!
real 189.46
user 185.07
sys 4.07

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/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits scfile=/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits outfile=/scratch/kocevski/230250/cmap_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits scfile=/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits outfile=/scratch/kocevski/230250/cmap_HighResolution_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230250/Model_4FGL_J2216.9+2421_daily_bin1001.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/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits.....................!
real 144.22
user 142.83
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits', '/scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits', expMap='/scratch/kocevski/230250/expmap_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.fits', expCube='/scratch/kocevski/230250/ltcube_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230250/Model_4FGL_J2216.9+2421_daily_bin1001.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/230250/ft1_filtered_4FGL_J2216.9+2421_daily_bin1001.fits
Spacecraft file(s): /scratch/kocevski/230250/ft2_4FGL_J2216.9+2421_daily_bin1001.fits
Exposure map: /scratch/kocevski/230250/expmap_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.fits
Exposure cube: /scratch/kocevski/230250/ltcube_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230250/Model_4FGL_J2216.9+2421_daily_bin1001.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) = 8808.45519302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.636       1.0000         .10000E-03   10000.    
     2 'norm      '    15.193       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.997       1.0000         .10000E-03   10000.    
     5 'norm      '    .36367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5477       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.715       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4324       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.192       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6198       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3254       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85522       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=   8808.452     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2124 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.572        101.03       -.10888E-05   -.77744E-04
   2  norm          15.194        4.2821        .62314E-07    .46721E-04
   3  Prefactor     3.2416        3.8059       -.23347E-08    .58950E-04
   4  Prefactor     19.987        31.647       -.14220E-06   -.50269E-04
   5  norm          .36390        .53784        .51143E-07    .42087E-03
   6  Prefactor     .10000E-03    21.661       -.22438E-07** at limit **
   7  norm          .10000E-03    .54895        .84229E-09** at limit **
   8  Prefactor     9.5482        9.2038       -.72049E-06    .35406E-04
   9  norm          .10000E-03    1.8144        .24832E-07** at limit **
  10  Prefactor     .10000E-03    24.713        .16042E-07** at limit **
  11  Prefactor     26.719        15.448        .69620E-07    .17538E-04
  12  norm          1.4320        .91192        .12487E-07   -.29648E-05
  13  Prefactor     .10000E-03    20.997        .15194E-07** at limit **
  14  norm          .10000E-03    .71730       -.96142E-07** at limit **
  15  Prefactor     15.190        36.713       -.24848E-07   -.71936E-05
  16  Prefactor     6.4036        9.6478        .28897E-05   -.77934E-04
  17  Prefactor     3.4391        .48016       -.78634E-08   -.46436E-04
  18  Prefactor     4.6214        8.3733        .87685E-07    .30640E-05
  19  Normalizat    1.3251        .24509       -.10561E-05    .23410E-04
  20  Prefactor     .85530        .10590        .38059E-06   -.80689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.5723
  norm       = 15.1937
  Prefactor  = 3.24161
  Prefactor  = 19.9874
  norm       = 0.363905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.54818
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7188
  norm       = 1.432
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.19
  Prefactor  = 6.40364
  Prefactor  = 3.43911
  Prefactor  = 4.62141
  Normalizat = 1.32509
  Prefactor  = 0.855296
 **********
 **   18 **HESSE 
 **********

 FCN=   8808.452     FROM HESSE     STATUS=OK           301 CALLS     2425 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.572        101.09        .23085E-03   -1.3967    
   2  norm          15.194        4.2762        .94553E-04   -1.4928    
   3  Prefactor     3.2416        3.8027        .19306E-03   -1.5348    
   4  Prefactor     19.987        31.570        .89568E-04   -1.4814    
   5  norm          .36390        .42481        .80986E-03   -1.5587    
   6  Prefactor     .10000E-03    21.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0087        .13236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5482        9.2057        .64847E-03   -1.5090    
   9  norm          .10000E-03    1.8199        .12344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.719        15.544        .77507E-04   -1.4674    
  12  norm          1.4320        .90587        .69188E-04   -1.5469    
  13  Prefactor     .10000E-03    21.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .72629        .77753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.190        36.850        .10276E-03   -1.4928    
  16  Prefactor     6.4036        9.6485        .79307E-03   -1.5202    
  17  Prefactor     3.4391        .48321        .22901E-04   -1.5337    
  18  Prefactor     4.6214        8.3597        .18726E-03   -1.5278    
  19  Normalizat    1.3251        .28908        .36921E-03   -.82821    
  20  Prefactor     .85530        .12562        .19907E-03   -.97721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55003e-10
Minuit parameter uncertainties:
  1  101.318
  2  4.27633
  3  3.80294
  4  31.5959
  5  0.42481
  6  1.54698e-05
  7  1.33581e-05
  8  9.20703
  9  2.5094e-07
  10  8.19177e-07
  11  15.5459
  12  0.905878
  13  1.00713e-05
  14  4.48967e-06
  15  36.9056
  16  9.65085
  17  0.483207
  18  8.36185
  19  0.289437
  20  0.125666
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  9.548e+00  9.207e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.553e-01  1.257e-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.325e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.26
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 8.80e-06 +/- 8.49e-06

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) = 8805.25080901
delta logL = 3.20133193548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8804.95751092
delta logL = 3.49463002428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1355       1.0000         .10000E-03   10000.    
     2 'Index     '    .56242       1.0000          .0000       10.000    
     3 'Normalizat'    1.3404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85323       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.

 FCN=   8804.958     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1339        2.3925        .70522E-02   -.49790E-03
   2  Index         .56160        .38207        .28370       -.39576E-04
   3  Normalizat    1.3404        .23303        .82976E-01   -.51800E-04
   4  Prefactor     .85327        .10410        .44406E-01   -.11253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13389
  Index      = 0.561599
  Normalizat = 1.34041
  Prefactor  = 0.853275
 **********
 **   18 **HESSE 
 **********

 FCN=   8804.958     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1339        4.5800        .13254E-03   -1.5416    
   2  Index         .56160        .66750        .13489E-01   -1.0923    
   3  Normalizat    1.3404        .27658        .36735E-03   -.82368    
   4  Prefactor     .85327        .12376        .19926E-03   -.97793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36279e-09
Minuit parameter uncertainties:
  1  4.58072
  2  0.677226
  3  0.276889
  4  0.123797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230250': 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) = 8804.95750878
delta logL = 3.49463216312

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  2.134e+00  4.581e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  5.616e-01  6.772e-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:  8.533e-01  1.238e-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.340e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.24
Ra Dec: 334.238 24.358
Photon Index (Free Index): 0.56 +/- 0.68
Photon Flux (Free Index): 3.91e-09 +/- 3.99e-09
Energy Flux (Free Index): 1.25e-04 +/- 1.46e-04

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/230250/cmap_HighResolution_498787201_499046401_4FGL_J2216.9+2421_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='1.25e-04', photon_flux_error='2.19e-08', dlogl='3.49e+00', energy_flux='8.80e-06', photon_flux2='3.91e-09', job_status='DONE', time_completed='2021-09-28 07:46:30.732314', photon_index_error2='0.68', photon_index2='0.56', ts='9.26', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.46e-04', EG='1.33', time_epoch_completed='1632840390.73', return_code='0', job_id='230250', GAL2='0.85', EG2='1.34', return_code2='0', energy_flux_error='8.49e-06', photon_flux_error2='3.99e-09', ts2='16.24', photon_index='2.28' WHERE bin_id='1001' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:46:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 230250: <4FGL_J2216.9+2421_daily_bin1001> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1001> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 07:31:01 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:31: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:31:03 2021
Terminated at Tue Sep 28 07:46:31 2021
Results reported at Tue Sep 28 07:46:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1001 334.238 24.3575 498787201 499046401 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 :                                   708.00 sec.
    Max Memory :                                 1237 MB
    Average Memory :                             286.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

