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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1179
RA = 334.238, Dec = 24.3575
tmin = 544924801, tmax = 545184001
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='231494', job_status='RUN', time_executed='2021-09-28 07:39:25.333915', time_epoch_executed='1632839965.33' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231494/ft1_4FGL_J2216.9+2421_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231494/ft1_4FGL_J2216.9+2421_daily_bin1179.fits outfile=/scratch/kocevski/231494/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1179.fits ra=334.238 dec=24.3575 rad=12.0 tmin=544924801.0 tmax=545184001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.23
user 4.00
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.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/231494/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.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/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/231494/ltcube_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.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/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/231494/ltcube_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.fits outfile=/scratch/kocevski/231494/expmap_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.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/231494/ltcube_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.fits
.....................!
real 190.85
user 185.59
sys 4.91

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/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.fits scfile=/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits outfile=/scratch/kocevski/231494/cmap_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.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.99
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.fits scfile=/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits outfile=/scratch/kocevski/231494/cmap_HighResolution_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.fits', '/scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits', expMap='/scratch/kocevski/231494/expmap_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.fits', expCube='/scratch/kocevski/231494/ltcube_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231494/Model_4FGL_J2216.9+2421_daily_bin1179.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/231494/ft1_filtered_4FGL_J2216.9+2421_daily_bin1179.fits
Spacecraft file(s): /scratch/kocevski/231494/ft2_4FGL_J2216.9+2421_daily_bin1179.fits
Exposure map: /scratch/kocevski/231494/expmap_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.fits
Exposure cube: /scratch/kocevski/231494/ltcube_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231494/Model_4FGL_J2216.9+2421_daily_bin1179.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 366.386562504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 364.080528332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7339       1.0000         .10000E-03   10000.    
     2 'norm      '    9.4143       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35324       1.0000         .10000E-03   10000.    
     4 'Prefactor '    155.23       1.0000         .10000E-03   10000.    
     5 'norm      '    .22980E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    264.32       1.0000         .10000E-03   10000.    
     7 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36058E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20201E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5464       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32451       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46392E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3293       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10200E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .60211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   364.0734     FROM MIGRAD    STATUS=CONVERGED    187 CALLS      601 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    555.75        .17921E-04** at limit **
   2  norm          9.5479        12.580        .24843E-05   -.10200E-03
   3  Prefactor     .10000E-03    201.33        .39337E-05** at limit **
   4  Prefactor     151.68        153.80        .16694E-05    .11573E-02
   5  norm          .10000E-03    72.251       -.40662E-05** at limit **
   6  Prefactor     269.87        137.72       -.32696E-05   -.82359E-02
   7  norm          .10000E-03    1.8691        .33296E-06** at limit **
   8  Prefactor     .10000E-03    122.30        .27840E-05** at limit **
   9  norm          .10000E-03    10.894       -.22100E-05** at limit **
  10  Prefactor     .22486E-02    6294.5        .43941E-04** at limit **
  11  Prefactor     .10000E-03    49.249       -.66272E-07** at limit **
  12  norm          2.2384        1.0274         .0000         .0000    
  13  Prefactor     1.5464        1.0652         .0000         .0000    
  14  norm          .10000E-03    13.284       -.18876E-05** at limit **
  15  Prefactor     .10000E-03    75.148        .36719E-05** at limit **
  16  Prefactor     .10000E-03    104.24        .27113E-05** at limit **
  17  Prefactor     .10000E-03    .52541       -.10544E-06** at limit **
  18  Prefactor     .10005E-03    1365.9        .82952E-05** at limit **
  19  Normalizat    .10000E-01    6.6530        .15163E-04** at limit **
  20  Prefactor     .60200        .24230        .39604E-04    .36735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  norm       = 9.54793
  Prefactor  = 0.000100001
  Prefactor  = 151.678
  norm       = 0.000100001
  Prefactor  = 269.875
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.00224861
  Prefactor  = 0.0001
  norm       = 2.23845
  Prefactor  = 1.5464
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Normalizat = 0.01
  Prefactor  = 0.602
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   364.0734     FROM HESSE     STATUS=FAILED        53 CALLS      654 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    558.59        .79686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.5479        9.6472        .32653E-02   -1.5090    
   3  Prefactor     .10000E-03    201.54        .10656E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     151.68        131.76        .80893E-03   -1.3239    
   5  norm          .10000E-03    72.330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     269.87        295.93        .62338E-03   -1.2407    
   7  norm          .10000E-03    1.8520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    122.36        .92018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22486E-02    6569.3        .42595E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.308        .91236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          565.20        562.85         .0000       -1.5409    
  13  Prefactor     1.5464        1.0652         .0000       -1.5459    
  14  norm          .10000E-03    .20571       -.18876E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .27731        .36719E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21402        .27113E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571       -.10544E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10005E-03    .11282        .82952E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25510        .15163E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .60200        .94992        .39604E-04   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.56356e-10
Minuit parameter uncertainties:
  1  0.00502867
  2  9.64879
  3  0.000860359
  4  132.019
  5  0.000635498
  6  297.6
  7  4.73251e-06
  8  0.00054697
  9  8.06332e-05
  10  5.50865
  11  7.6804e-05
  12  1.02742
  13  1.06517
  14  8.47095e-06
  15  1.31803e-05
  16  2.20357e-05
  17  5.51612e-07
  18  0.000156175
  19  1.81013e-05
  20  0.977182
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 364.073354873

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  5.470e-04  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:  6.020e-01  9.772e-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.000e-02  1.810e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.74e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231494/likelihoodResults_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.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) = 364.073394776
delta logL = -3.99028971287e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 364.073356734
delta logL = -1.86166693084e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18132E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7115       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60201       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=   364.0734     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      278 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10640E-03    99.271        .16511E-01** at limit **
   2  Index         2.5857        5.7389        .50000        .32024E-05
   3  Normalizat    .10000E-01    .83303E-02    .12782E-01** at limit **
   4  Prefactor     .60200        .96242E-02    .15884E-03    .59651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106402
  Index      = 2.58569
  Normalizat = 0.01
  Prefactor  = 0.602
 **********
 **   18 **HESSE 
 **********

 FCN=   364.0734     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10640E-03    853.07        .17521E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5857        8.2997        .50000       -.50392    
   3  Normalizat    .10000E-01    .75139E-01    .25564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60200        .28838E-01    .31767E-04   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53887e-09
Minuit parameter uncertainties:
  1  0.149989
  2  1148.9
  3  8.37544e-07
  4  0.0288385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231494': 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) = 364.073355068
delta logL = -1.95575466932e-07

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.064e-04  1.500e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.586e+00  1.149e+03  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:  6.020e-01  2.884e-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:  1.000e-02  8.375e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/231494/cmap_HighResolution_544924801_545184001_4FGL_J2216.9+2421_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-01', job_status='DONE', photon_flux_upper_limit='1.74e-06', time_completed='2021-09-28 07:44:53.194507', job_id='231494', GAL2='0.60', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632840293.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.60', dlogl='-1.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1179' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:44:53 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1179 334.238 24.3575 544924801 545184001 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 :                                   326.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            563 sec.

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

