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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1016
RA = 334.238, Dec = 24.3575
tmin = 502675201, tmax = 502934401
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='230269', job_status='RUN', time_executed='2021-09-28 07:32:45.564694', time_epoch_executed='1632839565.56' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230269/ft1_4FGL_J2216.9+2421_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230269/ft2_4FGL_J2216.9+2421_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230269/ft1_4FGL_J2216.9+2421_daily_bin1016.fits outfile=/scratch/kocevski/230269/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1016.fits ra=334.238 dec=24.3575 rad=12.0 tmin=502675201.0 tmax=502934401.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 3.60
user 3.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230269/ft1_filtered_4FGL_J2216.9+2421_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/230269/ft2_4FGL_J2216.9+2421_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/230269/ltcube_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.fits outfile=/scratch/kocevski/230269/expmap_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.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/230269/ltcube_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.fits
.....................!
real 190.44
user 185.27
sys 4.84

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/230269/ft1_filtered_4FGL_J2216.9+2421_daily_bin1016.fits scfile=/scratch/kocevski/230269/ft2_4FGL_J2216.9+2421_daily_bin1016.fits outfile=/scratch/kocevski/230269/cmap_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230269/ft1_filtered_4FGL_J2216.9+2421_daily_bin1016.fits scfile=/scratch/kocevski/230269/ft2_4FGL_J2216.9+2421_daily_bin1016.fits outfile=/scratch/kocevski/230269/cmap_HighResolution_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.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/230269/ft1_filtered_4FGL_J2216.9+2421_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/230269/ft2_4FGL_J2216.9+2421_daily_bin1016.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230269/Model_4FGL_J2216.9+2421_daily_bin1016.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/230269/ft1_filtered_4FGL_J2216.9+2421_daily_bin1016.fits.....................!
real 170.35
user 168.79
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5470       1.0000         .10000E-03   10000.    
     2 'norm      '    11.503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .93571E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    89.008       1.0000         .10000E-03   10000.    
     7 'norm      '    .99659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12512E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37294E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4271       1.0000         .10000E-03   10000.    
    14 'norm      '    .11143E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6438       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11645E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0038       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0907       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=   11083.33     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2167 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9336        291.04       -.35751E-05   -.13751E-04
   2  norm          11.502        3.4905        .92712E-07    .71741E-03
   3  Prefactor     .10000E-03    3.9895       -.49642E-07** at limit **
   4  Prefactor     .10000E-03    33.705       -.30170E-06** at limit **
   5  norm          .94066E-01    .59764        .94320E-06    .18681E-02
   6  Prefactor     88.970        54.315       -.13648E-05   -.19936E-03
   7  norm          .99762        1.2166       -.50536E-06   -.37952E-03
   8  Prefactor     .10000E-03    13.855       -.29631E-06** at limit **
   9  norm          18.142        7.6411        .83430E-07    .47215E-03
  10  Prefactor     .10000E-03    84.132       -.66038E-06** at limit **
  11  Prefactor     .10060E-03    63.758       -.17304E-04** at limit **
  12  norm          6.3128        1.5491        .42967E-09    .39586E-03
  13  Prefactor     2.4311        19.400       -.10644E-05    .34569E-05
  14  norm          .10001E-03    1.6621       -.21458E-05** at limit **
  15  Prefactor     .10000E-03    23.542        .18610E-07** at limit **
  16  Prefactor     26.593        17.348       -.12975E-05   -.14918E-03
  17  Prefactor     2.6437        .41223       -.23974E-07   -.55009E-03
  18  Prefactor     .10000E-03    15.271        .90800E-06** at limit **
  19  Normalizat    1.0037        .25999        .19014E-05    .39488E-03
  20  Prefactor     1.0906        .11118       -.36993E-06    .35343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.93358
  norm       = 11.5021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0940665
  Prefactor  = 88.9695
  norm       = 0.997625
  Prefactor  = 0.0001
  norm       = 18.1418
  Prefactor  = 0.0001
  Prefactor  = 0.0001006
  norm       = 6.31277
  Prefactor  = 2.43107
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 26.5932
  Prefactor  = 2.64369
  Prefactor  = 0.0001
  Normalizat = 1.00368
  Prefactor  = 1.09055
 **********
 **   18 **HESSE 
 **********

 FCN=   11083.33     FROM HESSE     STATUS=OK           301 CALLS     2468 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9336        290.09        .17058E-03   -1.5221    
   2  norm          11.502        3.4894        .10311E-03   -1.5030    
   3  Prefactor     .10000E-03    4.0183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .94066E-01    1.1613        .14061E-02   -1.5647    
   6  Prefactor     88.970        54.352        .21294E-03   -1.3819    
   7  norm          .99762        1.2042        .12154E-03   -1.5508    
   8  Prefactor     .10000E-03    13.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.142        7.6381        .94026E-04   -1.4856    
  10  Prefactor     .10000E-03    84.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10060E-03    11.689        .89260E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3128        1.5477        .61689E-04   -1.5205    
  13  Prefactor     2.4311        19.311        .26269E-03   -1.5396    
  14  norm          .10001E-03    2.9752        .20528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.593        17.272        .77667E-04   -1.4676    
  17  Prefactor     2.6437        .41298        .25402E-04   -1.5383    
  18  Prefactor     .10000E-03    15.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0037        .29541        .47144E-03   -.92907    
  20  Prefactor     1.0906        .12553        .20224E-03   -.89769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89844e-09
Minuit parameter uncertainties:
  1  83.4077
  2  3.48947
  3  1.36531e-05
  4  0.000161546
  5  0.660687
  6  54.3827
  7  1.2042
  8  1.32016e-05
  9  7.63851
  10  0.000338156
  11  0.00529791
  12  1.54767
  13  13.7094
  14  0.000270618
  15  1.55259e-05
  16  17.275
  17  0.412978
  18  1.08046e-05
  19  0.295895
  20  0.125562
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.320e-05  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.091e+00  1.256e-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.004e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/230269/likelihoodResults_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.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) = 11083.3335827
delta logL = -0.000341582312103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11083.3332412
delta logL = -1.96323526325e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2731       1.0000          .0000       10.000    
     3 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0906       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=   11083.33     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10068E-03    185.13        .18142E-02** at limit **
   2  Index         2.2295        5.2011        .50000        .60547E-05
   3  Normalizat    1.0037        .22333E-01    .47143E-03    .76686E-05
   4  Prefactor     1.0906        .10021E-01    .20224E-03    .15717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100679
  Index      = 2.2295
  Normalizat = 1.00367
  Prefactor  = 1.09056
 **********
 **   18 **HESSE 
 **********

 FCN=   11083.33     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10068E-03    791.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2295        6.5012        .50000       -.58728    
   3  Normalizat    1.0037        .49192E-01    .18857E-04   -.92908    
   4  Prefactor     1.0906        .22070E-01    .40448E-04   -.89769    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.91192e-09
Minuit parameter uncertainties:
  1  0.0470062
  2  1148.06
  3  0.0491946
  4  0.0220701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230269': 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) = 11083.3332411
delta logL = 6.20566424914e-08

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.007e-04  4.701e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.229e+00  1.148e+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:  1.091e+00  2.207e-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.004e+00  4.919e-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/230269/cmap_HighResolution_502675201_502934401_4FGL_J2216.9+2421_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-28 07:47:28.480420', job_id='230269', GAL2='1.09', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632840448.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1016' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:47:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 230269: <4FGL_J2216.9+2421_daily_bin1016> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1016 334.238 24.3575 502675201 502934401 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 :                                   879.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

