/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 232 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1606
RA = 334.238, Dec = 24.3575
tmin = 655603201, tmax = 655862401
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='482892', job_status='RUN', time_executed='2021-12-08 08:30:52.740177', time_epoch_executed='1638981052.74' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482892/ft1_4FGL_J2216.9+2421_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482892/ft1_4FGL_J2216.9+2421_daily_bin1606.fits outfile=/scratch/kocevski/482892/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1606.fits ra=334.238 dec=24.3575 rad=12.0 tmin=655603201.0 tmax=655862401.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.31
user 4.05
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.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/482892/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1606.fits evtable="EVENTS" outfile="/scratch/kocevski/482892/ft1_filtered_4FGL_J2216.9+2421_daily_bin1606.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482892/ft1_filtered_4FGL_J2216.9+2421_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/482892/ltcube_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.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/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.fits
.....................!
real 14.37
user 13.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482892/ft1_filtered_4FGL_J2216.9+2421_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/482892/ltcube_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.fits outfile=/scratch/kocevski/482892/expmap_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.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/482892/ltcube_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.fits
.....................!
real 191.74
user 185.92
sys 4.71

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/482892/ft1_filtered_4FGL_J2216.9+2421_daily_bin1606.fits scfile=/scratch/kocevski/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.fits outfile=/scratch/kocevski/482892/cmap_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482892/ft1_filtered_4FGL_J2216.9+2421_daily_bin1606.fits scfile=/scratch/kocevski/482892/ft2_4FGL_J2216.9+2421_daily_bin1606.fits outfile=/scratch/kocevski/482892/cmap_HighResolution_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.343       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3065       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .40590       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.666       1.0000         .10000E-03   10000.    
     9 'norm      '    .12664E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0877       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7490       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.512       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .91943       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80727       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=   6016.366     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2105 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.309        106.34       -.90735E-05   -.11987E-04
   2  norm          .10000E-03    1.0016        .33922E-06** at limit **
   3  Prefactor     8.3066        6.6116        .25839E-06   -.18161E-04
   4  Prefactor     .10000E-03    12.666       -.93106E-07** at limit **
   5  norm          .40592        .40111        .63469E-07    .53207E-03
   6  Prefactor     .10000E-03    92.481       -.17797E-04** at limit **
   7  norm          .10000E-03    .52347        .21655E-06** at limit **
   8  Prefactor     48.658        24.545        .22982E-04   -.17709E-04
   9  norm          .10008E-03    3.8086        .67868E-06** at limit **
  10  Prefactor     60.601        111.03       -.15803E-04   -.99865E-05
  11  Prefactor     8.0844        12.230       -.60709E-05   -.17151E-03
  12  norm          2.7488        1.4539        .16610E-06   -.21570E-03
  13  Prefactor     .10000E-03    18.640        .10109E-06** at limit **
  14  norm          .10000E-03    .82042       -.13896E-06** at limit **
  15  Prefactor     .10000E-03    10.807       -.22227E-06** at limit **
  16  Prefactor     32.506        16.326        .62423E-05   -.20496E-04
  17  Prefactor     .91934        .29222       -.11761E-07   -.61093E-03
  18  Prefactor     .10000E-03    9.1930       -.23997E-06** at limit **
  19  Normalizat    1.0516        .24772       -.80566E-05    .90724E-05
  20  Prefactor     .80698        .10846        .82250E-06   -.53468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.3087
  norm       = 0.0001
  Prefactor  = 8.30659
  Prefactor  = 0.0001
  norm       = 0.405921
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.6584
  norm       = 0.000100079
  Prefactor  = 60.6011
  Prefactor  = 8.08444
  norm       = 2.74883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5058
  Prefactor  = 0.919343
  Prefactor  = 0.0001
  Normalizat = 1.05163
  Prefactor  = 0.806975
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.366     FROM HESSE     STATUS=OK           303 CALLS     2408 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.309        106.19        .49647E-04   -1.4090    
   2  norm          .10000E-03    2.4374        .15065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3066        6.6124        .13910E-03   -1.5131    
   4  Prefactor     .10000E-03    12.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .40592        .41817        .47493E-03   -1.5581    
   6  Prefactor     .10000E-03    92.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .90963        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.658        24.549        .57482E-04   -1.4312    
   9  norm          .10008E-03    3.8438        .48729E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.601        111.11        .51298E-04   -1.4149    
  11  Prefactor     8.0844        12.294        .14098E-03   -1.5139    
  12  norm          2.7488        1.4521        .64575E-04   -1.5376    
  13  Prefactor     .10000E-03    18.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .82614        .68555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.506        16.337        .70274E-04   -1.4567    
  17  Prefactor     .91934        .29188        .22864E-04   -1.5516    
  18  Prefactor     .10000E-03    9.3053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0516        .29684        .33255E-03   -.91320    
  20  Prefactor     .80698        .13086        .17215E-03   -.99472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02457e-09
Minuit parameter uncertainties:
  1  106.504
  2  3.32891e-05
  3  6.613
  4  4.62131e-05
  5  0.418174
  6  0.000209999
  7  1.17321e-05
  8  24.5545
  9  0.00110128
  10  111.491
  11  12.2978
  12  1.45209
  13  4.08616e-05
  14  1.22336e-05
  15  2.228e-06
  16  16.3388
  17  0.291884
  18  8.89586e-06
  19  0.297308
  20  0.130913
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.070e-01  1.309e-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.052e+00  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.02
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 4.49e-05 +/- 2.26e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6015.83633247
delta logL = 0.529386670652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6015.8209828
delta logL = 0.544736338113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.755       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7426       1.0000          .0000       10.000    
     3 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78920       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=   6015.821     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.766        41.181        .28426E-03   -.33377E-03
   2  Index         1.7431        .64147        .82468E-02   -.10730E-03
   3  Normalizat    1.1289        .28890        .32275E-03   -.11616E-02
   4  Prefactor     .78926        .12929        .17409E-03   -.19079E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.7662
  Index      = 1.74309
  Normalizat = 1.12895
  Prefactor  = 0.78926
 **********
 **   18 **HESSE 
 **********

 FCN=   6015.821     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.766        42.674        .56852E-04   -1.4296    
   2  Index         1.7431        .66400        .32987E-03   -.70940    
   3  Normalizat    1.1289        .28960        .64550E-04   -.88828    
   4  Prefactor     .78926        .12940        .34817E-04   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64603e-09
Minuit parameter uncertainties:
  1  42.6997
  2  0.667441
  3  0.290011
  4  0.129453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482892': 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) = 6015.82097045
delta logL = 0.544748690862

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.977e+01  4.270e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.743e+00  6.674e-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:  7.893e-01  1.295e-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.129e+00  2.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.95
Ra Dec: 334.238 24.358
Photon Index (Free Index): 1.74 +/- 0.67
Photon Flux (Free Index): 5.24e-08 +/- 7.91e-08
Energy Flux (Free Index): 7.46e-05 +/- 7.18e-05

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/482892/cmap_HighResolution_655603201_655862401_4FGL_J2216.9+2421_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='7.46e-05', photon_flux_error='5.83e-08', dlogl='5.45e-01', energy_flux='4.49e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-12-08 08:40:43.174564', photon_index_error2='0.67', photon_index2='1.74', ts='12.02', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='7.18e-05', EG='1.05', time_epoch_completed='1638981643.17', return_code='0', job_id='482892', GAL2='0.79', EG2='1.13', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='7.91e-08', ts2='12.95', photon_index='2.28' WHERE bin_id='1606' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:40:43 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 482892: <4FGL_J2216.9+2421_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1606> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 08:25:24 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:26:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:26:55 2021
Terminated at Wed Dec  8 08:40:43 2021
Results reported at Wed Dec  8 08:40:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1606 334.238 24.3575 655603201 655862401 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            919 sec.

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

