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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1294
RA = 334.238, Dec = 24.3575
tmin = 574732801, tmax = 574992001
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='231670', job_status='RUN', time_executed='2021-09-28 07:38:35.148325', time_epoch_executed='1632839915.15' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231670/ft1_4FGL_J2216.9+2421_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231670/ft2_4FGL_J2216.9+2421_daily_bin1294.fits


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

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

Done.
real 5.48
user 5.07
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231670/ft2_4FGL_J2216.9+2421_daily_bin1294.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/231670/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1294.fits evtable="EVENTS" outfile="/scratch/kocevski/231670/ft1_filtered_4FGL_J2216.9+2421_daily_bin1294.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/231670/ft1_filtered_4FGL_J2216.9+2421_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/231670/ft2_4FGL_J2216.9+2421_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/231670/ltcube_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.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/231670/ft2_4FGL_J2216.9+2421_daily_bin1294.fits
.....................!
real 11.45
user 11.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231670/ft1_filtered_4FGL_J2216.9+2421_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/231670/ft2_4FGL_J2216.9+2421_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/231670/ltcube_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.fits outfile=/scratch/kocevski/231670/expmap_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.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/231670/ltcube_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.fits
.....................!
real 194.67
user 185.04
sys 4.96

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/231670/ft1_filtered_4FGL_J2216.9+2421_daily_bin1294.fits scfile=/scratch/kocevski/231670/ft2_4FGL_J2216.9+2421_daily_bin1294.fits outfile=/scratch/kocevski/231670/cmap_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.680       1.0000         .10000E-03   10000.    
     2 'norm      '    .69535       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10291E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.705       1.0000         .10000E-03   10000.    
     9 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4404       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9642       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.492       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5965       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.638       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62356       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1488       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=   7777.332     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2051 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.468        98.991       -.24458E-03   -.17706E-04
   2  norm          .69706        2.2208        .40265E-05   -.91360E-04
   3  Prefactor     .10000E-03    2.3944       -.10896E-06** at limit **
   4  Prefactor     .10000E-03    17.866        .29925E-06** at limit **
   5  norm          .10000E-03    .26183       -.22733E-06** at limit **
   6  Prefactor     .10000E-03    19.978        .11055E-05** at limit **
   7  norm          .10000E-03    .37549       -.97489E-07** at limit **
   8  Prefactor     25.696        21.164       -.16875E-05    .63964E-04
   9  norm          .10000E-03    10.148       -.17247E-06** at limit **
  10  Prefactor     .10000E-03    90.275        .40253E-04** at limit **
  11  Prefactor     1.4307        37.336       -.11864E-04   -.21501E-03
  12  norm          2.5892        1.4561        .58220E-06   -.34993E-03
  13  Prefactor     8.8734        25.004       -.26266E-04   -.14634E-04
  14  norm          .10000E-03    .66209        .30910E-09** at limit **
  15  Prefactor     .10000E-03    55.344       -.11306E-04** at limit **
  16  Prefactor     64.491        20.151       -.60822E-06    .80946E-04
  17  Prefactor     1.5964        .37561       -.57137E-07    .13399E-02
  18  Prefactor     16.607        18.588       -.20094E-06    .89736E-05
  19  Normalizat    .62430        .28494        .43938E-05    .14934E-03
  20  Prefactor     1.1486        .12252        .34355E-05   -.33944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.4676
  norm       = 0.697063
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.6961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.43074
  norm       = 2.58917
  Prefactor  = 8.8734
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.4906
  Prefactor  = 1.59641
  Prefactor  = 16.6073
  Normalizat = 0.6243
  Prefactor  = 1.14858
 **********
 **   18 **HESSE 
 **********

 FCN=   7777.332     FROM HESSE     STATUS=OK           293 CALLS     2344 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.468        98.879        .25546E-03   -1.4138    
   2  norm          .69706        2.1992        .22173E-03   -1.5541    
   3  Prefactor     .10000E-03    2.3993        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .35325        .87552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .51901        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.696        21.069        .79012E-04   -1.4694    
   9  norm          .10000E-03    10.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4307        36.854        .35946E-03   -1.5469    
  12  norm          2.5892        1.4492        .72713E-04   -1.5386    
  13  Prefactor     8.8734        24.990        .13387E-03   -1.5112    
  14  norm          .10000E-03    .66419        .70023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     64.491        20.106        .49972E-04   -1.4100    
  17  Prefactor     1.5964        .37470        .25208E-04   -1.5455    
  18  Prefactor     16.607        18.537        .98191E-04   -1.4893    
  19  Normalizat    .62430        .30285        .48472E-03   -1.0696    
  20  Prefactor     1.1486        .13390        .16991E-03   -.87929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69884e-09
Minuit parameter uncertainties:
  1  99.1452
  2  2.19946
  3  1.34404e-05
  4  0.000442465
  5  1.35387e-05
  6  1.6682e-05
  7  7.37025e-06
  8  21.0751
  9  6.55582e-05
  10  0.000293501
  11  14.5323
  12  1.44919
  13  25.0195
  14  3.01336e-07
  15  0.000101398
  16  20.1076
  17  0.374704
  18  18.5437
  19  0.303662
  20  0.13394
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  2.570e+01  2.108e+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:  1.149e+00  1.339e-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:  6.243e-01  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.11e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.94e-05

TS (Fixed Index): 2.07
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231670/likelihoodResults_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.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): 0
logL (Free Index) = 7776.00474792
delta logL = 1.32685030783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7775.95830784
delta logL = 1.37329038305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7807       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6644       1.0000          .0000       10.000    
     3 'Normalizat'    .50311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1880       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=   7775.958     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      294 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7783        53.453        .88056E-04   -.61249E-03
   2  Index         3.6648        3.2782        .38950E-02   -.13710E-03
   3  Normalizat    .50294        .28081        .53668E-03    .40765E-03
   4  Prefactor     1.1881        .12994        .16736E-03    .10749E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77834
  Index      = 3.66477
  Normalizat = 0.502942
  Prefactor  = 1.18814
 **********
 **   18 **HESSE 
 **********

 FCN=   7775.958     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7783        9.2836        .35222E-05   -1.5319    
   2  Index         3.6648        1.1651        .15580E-03   -.27033    
   3  Normalizat    .50294        .29564        .21467E-04   -1.1228    
   4  Prefactor     1.1881        .13528        .33471E-04   -.86697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06895e-09
Minuit parameter uncertainties:
  1  9.28711
  2  1.17675
  3  0.296573
  4  0.135323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231670': 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) = 7775.95830753
delta logL = 1.37329070104

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.778e+00  9.287e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.665e+00  1.177e+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.188e+00  1.353e-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:  5.029e-01  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 334.238 24.358
Photon Index (Free Index): 3.66 +/- 1.18
Photon Flux (Free Index): 1.38e-07 +/- 7.75e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.26e-05

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/231670/cmap_HighResolution_574732801_574992001_4FGL_J2216.9+2421_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.11e-08', energy_flux2='2.20e-05', photon_flux_error='5.00e-08', dlogl='1.37e+00', energy_flux='2.37e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-28 07:50:29.560141', photon_index_error2='1.18', photon_index2='3.66', ts='2.07', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.26e-05', EG='0.62', time_epoch_completed='1632840629.56', return_code='0', job_id='231670', GAL2='1.19', EG2='0.50', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='7.75e-08', ts2='5.18', photon_index='2.28' WHERE bin_id='1294' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 231670: <4FGL_J2216.9+2421_daily_bin1294> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1294 334.238 24.3575 574732801 574992001 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 :                                   706.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

