/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 41 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin52
RA = 334.238, Dec = 24.3575
tmin = 252806401, tmax = 253065601
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='226211', job_status='RUN', time_executed='2021-09-28 07:17:06.854469', time_epoch_executed='1632838626.85' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226211/ft1_4FGL_J2216.9+2421_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226211/ft2_4FGL_J2216.9+2421_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226211/ft1_4FGL_J2216.9+2421_daily_bin52.fits outfile=/scratch/kocevski/226211/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin52.fits ra=334.238 dec=24.3575 rad=12.0 tmin=252806401.0 tmax=253065601.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.42
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226211/ft2_4FGL_J2216.9+2421_daily_bin52.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/226211/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/226211/ft1_filtered_4FGL_J2216.9+2421_daily_bin52.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226211/ft1_filtered_4FGL_J2216.9+2421_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/226211/ft2_4FGL_J2216.9+2421_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/226211/ltcube_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.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/226211/ft2_4FGL_J2216.9+2421_daily_bin52.fits
.....................!
real 15.45
user 15.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226211/ft1_filtered_4FGL_J2216.9+2421_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/226211/ft2_4FGL_J2216.9+2421_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/226211/ltcube_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.fits outfile=/scratch/kocevski/226211/expmap_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.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/226211/ltcube_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.fits
.....................!
real 190.71
user 185.51
sys 4.87

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/226211/ft1_filtered_4FGL_J2216.9+2421_daily_bin52.fits scfile=/scratch/kocevski/226211/ft2_4FGL_J2216.9+2421_daily_bin52.fits outfile=/scratch/kocevski/226211/cmap_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.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/226211/ft1_filtered_4FGL_J2216.9+2421_daily_bin52.fits scfile=/scratch/kocevski/226211/ft2_4FGL_J2216.9+2421_daily_bin52.fits outfile=/scratch/kocevski/226211/cmap_HighResolution_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0439       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.224       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85876E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .38732       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.615       1.0000         .10000E-03   10000.    
    14 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.431       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6580       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5957       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77489       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0141       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=   10352.66     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2168 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.477        .66234E-06** at limit **
   2  norm          5.0435        2.2786       -.12502E-07   -.16114E-02
   3  Prefactor     .10000E-03    4.6241       -.26934E-06** at limit **
   4  Prefactor     41.235        32.233        .45438E-06    .53436E-04
   5  norm          3.0936        .97419        .78815E-08    .23307E-04
   6  Prefactor     .10000E-03    207.48       -.47479E-05** at limit **
   7  norm          1.0029        .70968        .45107E-07    .15424E-03
   8  Prefactor     .10265E-03    13.100        .32775E-05** at limit **
   9  norm          .10000E-03    3.5200        .77865E-07** at limit **
  10  Prefactor     .10001E-03    75.257       -.58928E-05** at limit **
  11  Prefactor     .10000E-03    5.8923       -.43417E-06** at limit **
  12  norm          .38701        .81248        .33348E-06    .10240E-04
  13  Prefactor     30.640        21.343       -.31727E-05   -.60691E-03
  14  norm          .10000E-03    .51500       -.61237E-07** at limit **
  15  Prefactor     19.431        19.142       -.46862E-07    .16200E-04
  16  Prefactor     5.6521        6.9970        .19018E-06   -.64795E-03
  17  Prefactor     2.5163        .32551        .29194E-09    .17013E-03
  18  Prefactor     6.6201        9.5166        .13701E-06   -.56654E-03
  19  Normalizat    .77455        .20767        .32748E-06   -.21872E-03
  20  Prefactor     1.0142        .95151E-01    .83115E-07   -.33420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.04348
  Prefactor  = 0.0001
  Prefactor  = 41.2353
  norm       = 3.09364
  Prefactor  = 0.000100005
  norm       = 1.00289
  Prefactor  = 0.000102645
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.387008
  Prefactor  = 30.6397
  norm       = 0.0001
  Prefactor  = 19.4313
  Prefactor  = 5.65214
  Prefactor  = 2.51627
  Prefactor  = 6.6201
  Normalizat = 0.774554
  Prefactor  = 1.01424
 **********
 **   18 **HESSE 
 **********

 FCN=   10352.66     FROM HESSE     STATUS=OK           305 CALLS     2473 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0435        2.5654        .52671E-03   -1.5259    
   3  Prefactor     .10000E-03    4.6725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.235        32.418        .62433E-04   -1.4423    
   5  norm          3.0936        .97486        .54189E-04   -1.5356    
   6  Prefactor     .10000E-03    213.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0029        .68403        .69438E-03   -1.5508    
   8  Prefactor     .10265E-03    12.123        .91310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.6105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    75.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .38701        .79542        .12215E-03   -1.5584    
  13  Prefactor     30.640        21.587        .72414E-04   -1.4600    
  14  norm          .10000E-03    .85276        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.431        19.162        .45431E-03   -1.4826    
  16  Prefactor     5.6521        7.9560        .84439E-03   -1.5232    
  17  Prefactor     2.5163        .32612        .19968E-04   -1.5391    
  18  Prefactor     6.6201        11.221        .78128E-03   -1.5193    
  19  Normalizat    .77455        .23631        .41431E-03   -1.0102    
  20  Prefactor     1.0142        .10951        .17653E-03   -.92256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96204e-09
Minuit parameter uncertainties:
  1  0.000109871
  2  2.56545
  3  1.73719e-05
  4  32.4315
  5  0.974866
  6  0.00201894
  7  0.684038
  8  0.011328
  9  1.89565e-06
  10  0.00139246
  11  3.842e-05
  12  0.79544
  13  21.5925
  14  1.18971e-06
  15  19.1685
  16  7.95754
  17  0.326125
  18  11.2243
  19  0.236622
  20  0.109537
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.026e-04  1.133e-02  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:  1.014e+00  1.095e-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:  7.746e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226211/likelihoodResults_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.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) = 10352.6607495
delta logL = -3.80746278097e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10352.6607493
delta logL = -3.79147313652e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96262E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2847       1.0000          .0000       10.000    
     3 'Normalizat'    .77443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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=   10352.46     FROM MIGRAD    STATUS=CONVERGED    184 CALLS      358 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16201E-01    .34389E-03** at limit **
   2  Index         7.5029        8.6426        .93519E-02    .37668E-04
   3  Normalizat    .73852        .69033E-01    .42378E-03   -.79837E-04
   4  Prefactor     1.0258        .33297E-01    .17566E-03   -.12069E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.5029
  Normalizat = 0.738519
  Prefactor  = 1.02584
 **********
 **   18 **HESSE 
 **********

 FCN=   10352.46     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      393 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16252E-01    .35234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5029        8.6648        .37408E-03    .52427    
   3  Normalizat    .73852        .70796E-01    .16951E-04   -1.0239    
   4  Prefactor     1.0258        .34243E-01    .35132E-04   -.91873    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.23706e-10
Minuit parameter uncertainties:
  1  1.21876e-07
  2  7.92563
  3  0.0708049
  4  0.0342439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226211': 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) = 10352.45774
delta logL = 0.202971398758

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.219e-07  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  7.503e+00  7.926e+00  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:  1.026e+00  3.424e-02  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:  7.385e-01  7.080e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.238 24.358

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/226211/cmap_HighResolution_252806401_253065601_4FGL_J2216.9+2421_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-28 07:31:33.494353', job_id='226211', GAL2='1.03', fit_tolerance='1e-08', EG2='0.74', EG='0.77', time_epoch_completed='1632839493.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.03e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='52' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:31:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 226211: <4FGL_J2216.9+2421_daily_bin52> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin52> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:16:04 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:16:06 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:06 2021
Terminated at Tue Sep 28 07:31:34 2021
Results reported at Tue Sep 28 07:31:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin52 334.238 24.3575 252806401 253065601 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 :                                   861.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

