/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 133 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 = 7475
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin51
RA = 334.238, Dec = 24.3575
tmin = 252547201, tmax = 252806401
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='226209', job_status='RUN', time_executed='2021-09-28 07:18:29.167596', time_epoch_executed='1632838709.17' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226209/ft1_4FGL_J2216.9+2421_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226209/ft2_4FGL_J2216.9+2421_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226209/ft1_4FGL_J2216.9+2421_daily_bin51.fits outfile=/scratch/kocevski/226209/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin51.fits ra=334.238 dec=24.3575 rad=12.0 tmin=252547201.0 tmax=252806401.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 1.88
user 1.20
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226209/ft1_filtered_4FGL_J2216.9+2421_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/226209/ft2_4FGL_J2216.9+2421_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/226209/ltcube_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.fits outfile=/scratch/kocevski/226209/expmap_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.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/226209/ltcube_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.fits
.....................!
real 194.00
user 187.13
sys 5.23

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/226209/ft1_filtered_4FGL_J2216.9+2421_daily_bin51.fits scfile=/scratch/kocevski/226209/ft2_4FGL_J2216.9+2421_daily_bin51.fits outfile=/scratch/kocevski/226209/cmap_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226209/ft1_filtered_4FGL_J2216.9+2421_daily_bin51.fits scfile=/scratch/kocevski/226209/ft2_4FGL_J2216.9+2421_daily_bin51.fits outfile=/scratch/kocevski/226209/cmap_HighResolution_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.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/226209/ft1_filtered_4FGL_J2216.9+2421_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/226209/ft2_4FGL_J2216.9+2421_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226209/Model_4FGL_J2216.9+2421_daily_bin51.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/226209/ft1_filtered_4FGL_J2216.9+2421_daily_bin51.fits....................!
real 146.07
user 144.17
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.687       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.539       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2586       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6376       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .32176E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86339E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .26518E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17778E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .57891       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1704       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=   9165.852     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1921 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.04       -.82913E-07** at limit **
   2  norm          4.3373        2.8338       -.27576E-06   -.39846E-03
   3  Prefactor     .10000E-03    1.8802       -.40314E-07** at limit **
   4  Prefactor     14.689        35.648        .36463E-05   -.12918E-05
   5  norm          1.0990        .72673       -.44584E-08   -.63135E-04
   6  Prefactor     63.526        49.728       -.10079E-04    .55649E-06
   7  norm          1.2584        .84972        .35105E-07   -.25475E-03
   8  Prefactor     9.6382        11.297       -.49799E-06   -.31278E-04
   9  norm          1.7741        2.9077       -.30091E-06   -.55326E-03
  10  Prefactor     .10000E-03    35.011        .26019E-06** at limit **
  11  Prefactor     .10000E-03    2.3607       -.78951E-08** at limit **
  12  norm          .31825E-01    .36167       -.26618E-06   -.40881E-04
  13  Prefactor     .10000E-03    8.5401        .10492E-07** at limit **
  14  norm          .10000E-03    .66306       -.27500E-07** at limit **
  15  Prefactor     .10003E-03    18.604        .52391E-06** at limit **
  16  Prefactor     .10000E-03    3.3896        .56018E-07** at limit **
  17  Prefactor     1.7914        .29577       -.50854E-08   -.41231E-03
  18  Prefactor     .10000E-03    13.711       -.20125E-06** at limit **
  19  Normalizat    .57858        .22380        .12767E-06    .34782E-05
  20  Prefactor     1.1705        .10668        .13877E-06    .66817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.3373
  Prefactor  = 0.0001
  Prefactor  = 14.6892
  norm       = 1.09896
  Prefactor  = 63.5257
  norm       = 1.25838
  Prefactor  = 9.63816
  norm       = 1.77411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0318252
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 1.79143
  Prefactor  = 0.0001
  Normalizat = 0.578579
  Prefactor  = 1.17054
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.852     FROM HESSE     STATUS=OK           307 CALLS     2228 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3373        2.8281        .11484E-03   -1.5291    
   3  Prefactor     .10000E-03    1.8824        .12820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.689        35.471        .10451E-03   -1.4941    
   5  norm          1.0990        .73096        .63868E-04   -1.5498    
   6  Prefactor     63.526        49.364        .50343E-04   -1.4112    
   7  norm          1.2584        .84556        .69296E-04   -1.5484    
   8  Prefactor     9.6382        11.294        .12908E-03   -1.5087    
   9  norm          1.7741        2.9042        .20461E-03   -1.5442    
  10  Prefactor     .10000E-03    35.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3630        .14364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .31825E-01    2.4417        .11024E-02   -1.5672    
  13  Prefactor     .10000E-03    61.315        .54156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.035        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    123.50        .78745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3985        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7914        .28987        .20031E-04   -1.5440    
  18  Prefactor     .10000E-03    14.285        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .57858        .23778        .46402E-03   -1.0890    
  20  Prefactor     1.1705        .11566        .16519E-03   -.87243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25427e-08
Minuit parameter uncertainties:
  1  1.92996e-05
  2  2.82822
  3  1.18031e-07
  4  35.5219
  5  0.730965
  6  49.3958
  7  0.845565
  8  11.2965
  9  2.90442
  10  8.82134e-06
  11  2.0559e-06
  12  0.556671
  13  0.000523239
  14  0.000125746
  15  0.00357713
  16  6.1674e-08
  17  0.289874
  18  3.51282e-07
  19  0.238203
  20  0.115686
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  9.638e+00  1.130e+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.171e+00  1.157e-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.786e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 8.89e-06 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/226209/likelihoodResults_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.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) = 9165.78169664
delta logL = 0.0699053772441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9165.77863122
delta logL = 0.0729707962309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.069       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9536       1.0000          .0000       10.000    
     3 'Normalizat'    .58748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1673       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=   9165.779     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      265 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.069        499.65        .27700E-02    .37933E-03
   2  Index         1.9535        5.6712        .26063        .27444E-04
   3  Normalizat    .58763        .99675E-01    .10390        .52500E-04
   4  Prefactor     1.1673        .35046E-01    .35453E-01   -.92006E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0688
  Index      = 1.95353
  Normalizat = 0.587631
  Prefactor  = 1.16727
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.779     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.069        15.921        .11080E-03   -1.4985    
   2  Index         1.9535        .78433        .11749E-01   -.65517    
   3  Normalizat    .58763        .23271        .46055E-03   -1.0851    
   4  Prefactor     1.1673        .11527        .16538E-03   -.87345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62712e-10
Minuit parameter uncertainties:
  1  15.9262
  2  0.789542
  3  0.233094
  4  0.115298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226209': 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) = 9165.77863098
delta logL = 0.0729710335509

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.307e+01  1.593e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.954e+00  7.895e-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:  1.167e+00  1.153e-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.876e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 334.238 24.358
Photon Index (Free Index): 1.95 +/- 0.79
Photon Flux (Free Index): 1.82e-08 +/- 2.38e-08
Energy Flux (Free Index): 1.42e-05 +/- 2.52e-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/226209/cmap_HighResolution_252547201_252806401_4FGL_J2216.9+2421_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='1.42e-05', photon_flux_error='2.68e-08', dlogl='7.30e-02', energy_flux='8.89e-06', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-28 07:31:19.080195', photon_index_error2='0.79', photon_index2='1.95', ts='1.07', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.95e-08', energy_flux_error2='2.52e-05', EG='0.58', time_epoch_completed='1632839479.08', return_code='0', job_id='226209', GAL2='1.17', EG2='0.59', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.38e-08', ts2='1.21', photon_index='2.28' WHERE bin_id='51' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:31:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 226209: <4FGL_J2216.9+2421_daily_bin51> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin51 334.238 24.3575 252547201 252806401 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 :                                   760.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

