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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin869
RA = 334.238, Dec = 24.3575
tmin = 464572801, tmax = 464832001
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='230050', job_status='RUN', time_executed='2021-09-28 07:32:02.791902', time_epoch_executed='1632839522.79' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230050/ft1_4FGL_J2216.9+2421_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230050/ft2_4FGL_J2216.9+2421_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230050/ft1_4FGL_J2216.9+2421_daily_bin869.fits outfile=/scratch/kocevski/230050/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin869.fits ra=334.238 dec=24.3575 rad=12.0 tmin=464572801.0 tmax=464832001.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 7.71
user 3.12
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230050/ft1_filtered_4FGL_J2216.9+2421_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/230050/ft2_4FGL_J2216.9+2421_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/230050/ltcube_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.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/230050/ft2_4FGL_J2216.9+2421_daily_bin869.fits
.....................!
real 12.31
user 11.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230050/ft1_filtered_4FGL_J2216.9+2421_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/230050/ft2_4FGL_J2216.9+2421_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/230050/ltcube_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.fits outfile=/scratch/kocevski/230050/expmap_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.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/230050/ltcube_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.fits
.....................!
real 191.40
user 185.67
sys 5.32

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/230050/ft1_filtered_4FGL_J2216.9+2421_daily_bin869.fits scfile=/scratch/kocevski/230050/ft2_4FGL_J2216.9+2421_daily_bin869.fits outfile=/scratch/kocevski/230050/cmap_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230050/ft1_filtered_4FGL_J2216.9+2421_daily_bin869.fits scfile=/scratch/kocevski/230050/ft2_4FGL_J2216.9+2421_daily_bin869.fits outfile=/scratch/kocevski/230050/cmap_HighResolution_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.3638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.285       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2300       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .63165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.6540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13699E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0939       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2959       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82824       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=   10099.39     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2046 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    140.86        .90712E-02** at limit **
   2  norm          7.3636        3.5763        .36951E-02    .32490E-03
   3  Prefactor     11.131        8.2625        .30022E-02    .20710E-03
   4  Prefactor     50.279        36.285        .14138E-02    .13331E-02
   5  norm          1.2302        .74560        .10139E-01    .55158E-03
   6  Prefactor     .10000E-03    10.264        .90712E-02** at limit **
   7  norm          .63129        .92490        .22690E-01    .14841E-02
   8  Prefactor     .10000E-03    5.9259        .90712E-02** at limit **
   9  norm          4.6527        4.2611        .46638E-02    .15625E-03
  10  Prefactor     .10000E-03    44.058        .90712E-02** at limit **
  11  Prefactor     .10000E-03    21.205        .90712E-02** at limit **
  12  norm          .10000E-03    .43558        .90712E-02** at limit **
  13  Prefactor     .10000E-03    11.675        .90712E-02** at limit **
  14  norm          .10000E-03    .70518        .90712E-02** at limit **
  15  Prefactor     7.7064        38.986        .36114E-02   -.31889E-04
  16  Prefactor     .10000E-03    8.0927        .90712E-02** at limit **
  17  Prefactor     8.0938        .65080        .35232E-02    .18026E-03
  18  Prefactor     .10000E-03    4.6274        .90712E-02** at limit **
  19  Normalizat    1.2958        .21927        .83566E-01    .21259E-04
  20  Prefactor     .82820        .98438E-01    .44084E-01    .15693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.36362
  Prefactor  = 11.1311
  Prefactor  = 50.2785
  norm       = 1.23018
  Prefactor  = 0.0001
  norm       = 0.631286
  Prefactor  = 0.0001
  norm       = 4.65273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.70642
  Prefactor  = 0.0001
  Prefactor  = 8.09379
  Prefactor  = 0.0001
  Normalizat = 1.29579
  Prefactor  = 0.8282
 **********
 **   18 **HESSE 
 **********

 FCN=   10099.39     FROM HESSE     STATUS=OK           291 CALLS     2337 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    140.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3636        3.5721        .11804E-03   -1.5165    
   3  Prefactor     11.131        8.2692        .12009E-03   -1.5041    
   4  Prefactor     50.279        36.162        .56553E-04   -1.4289    
   5  norm          1.2302        .73297        .64690E-04   -1.5486    
   6  Prefactor     .10000E-03    10.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63129        .78922        .11082E-02   -1.5549    
   8  Prefactor     .10000E-03    5.9430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.6527        4.2555        .18655E-03   -1.5277    
  10  Prefactor     .10000E-03    44.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .44880        .12930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .71991        .82399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7064        39.106        .14446E-03   -1.5153    
  16  Prefactor     .10000E-03    8.1456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0938        .65339        .21675E-04   -1.5139    
  18  Prefactor     .10000E-03    4.6421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2958        .25829        .36997E-03   -.83692    
  20  Prefactor     .82820        .11694        .20418E-03   -.98697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68345e-09
Minuit parameter uncertainties:
  1  0.000530711
  2  3.5722
  3  8.27
  4  36.1774
  5  0.732975
  6  1.0337e-06
  7  0.789236
  8  5.21008e-07
  9  4.25573
  10  1.61506e-05
  11  1.00573e-05
  12  4.87375e-08
  13  6.57773e-07
  14  1.27509e-07
  15  34.7557
  16  1.44829e-06
  17  0.653389
  18  5.60251e-08
  19  0.258543
  20  0.116974
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  5.210e-07  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.282e-01  1.170e-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.296e+00  2.585e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230050/likelihoodResults_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.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) = 10099.3899905
delta logL = -0.000801484349722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10099.3891888
delta logL = 1.7779711925e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2523       1.0000          .0000       10.000    
     3 'Normalizat'    1.2957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82821       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=   10099.39     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10377E-03    4.7715        .18142E-01** at limit **
   2  Index         2.1542        5.8484        .50000        .33248E-04
   3  Normalizat    1.2958        .46930E-02    .36997E-03   -.22124E-05
   4  Prefactor     .82820        .21368E-02    .20418E-03   -.40089E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103774
  Index      = 2.15416
  Normalizat = 1.29579
  Prefactor  = 0.8282
 **********
 **   18 **HESSE 
 **********

 FCN=   10099.39     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10377E-03    49.136        .25710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1542        6.1655        .50000       -.60549    
   3  Normalizat    1.2958        .15080E-01    .14799E-04   -.83692    
   4  Prefactor     .82820        .68660E-02    .81673E-05   -.98697    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79951e-09
Minuit parameter uncertainties:
  1  0.0272591
  2  242.48
  3  0.0150797
  4  0.00686604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230050': 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) = 10099.389188
delta logL = 9.40966856433e-07

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.038e-04  2.726e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.154e+00  2.425e+02  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.282e-01  6.866e-03  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.296e+00  1.508e-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/230050/cmap_HighResolution_464572801_464832001_4FGL_J2216.9+2421_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-28 07:46:17.556566', job_id='230050', GAL2='0.83', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632840377.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='869' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 230050: <4FGL_J2216.9+2421_daily_bin869> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin869 334.238 24.3575 464572801 464832001 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 :                                   848.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

