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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin811
RA = 334.238, Dec = 24.3575
tmin = 449539201, tmax = 449798401
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='229955', job_status='RUN', time_executed='2021-09-28 07:32:43.106423', time_epoch_executed='1632839563.11' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229955/ft1_4FGL_J2216.9+2421_daily_bin811.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229955/ft2_4FGL_J2216.9+2421_daily_bin811.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229955/ft1_4FGL_J2216.9+2421_daily_bin811.fits outfile=/scratch/kocevski/229955/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin811.fits ra=334.238 dec=24.3575 rad=12.0 tmin=449539201.0 tmax=449798401.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.63
user 5.36
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229955/ft1_filtered_4FGL_J2216.9+2421_daily_bin811.fits" evtable="EVENTS" scfile=/scratch/kocevski/229955/ft2_4FGL_J2216.9+2421_daily_bin811.fits sctable="SC_DATA" outfile=/scratch/kocevski/229955/ltcube_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.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/229955/ft2_4FGL_J2216.9+2421_daily_bin811.fits
.....................!
real 12.03
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229955/ft1_filtered_4FGL_J2216.9+2421_daily_bin811.fits evtable="EVENTS" scfile=/scratch/kocevski/229955/ft2_4FGL_J2216.9+2421_daily_bin811.fits sctable="SC_DATA" expcube=/scratch/kocevski/229955/ltcube_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.fits outfile=/scratch/kocevski/229955/expmap_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.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/229955/ltcube_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.fits
.....................!
real 189.60
user 184.87
sys 4.36

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/229955/ft1_filtered_4FGL_J2216.9+2421_daily_bin811.fits scfile=/scratch/kocevski/229955/ft2_4FGL_J2216.9+2421_daily_bin811.fits outfile=/scratch/kocevski/229955/cmap_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.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/229955/ft1_filtered_4FGL_J2216.9+2421_daily_bin811.fits scfile=/scratch/kocevski/229955/ft2_4FGL_J2216.9+2421_daily_bin811.fits outfile=/scratch/kocevski/229955/cmap_HighResolution_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13232E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.022       1.0000         .10000E-03   10000.    
     5 'norm      '    .87256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .99113E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8636       1.0000         .10000E-03   10000.    
     9 'norm      '    16.523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0301       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5156       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93533       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82091       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=   4684.218     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1810 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.460        .32940E-06** at limit **
   2  norm          3.8869        3.4514        .36769E-06   -.79413E-04
   3  Prefactor     9.2937        8.9920       -.12813E-06   -.22991E-04
   4  Prefactor     18.984        40.154       -.45017E-05   -.18765E-03
   5  norm          .87541        1.8772        .45891E-06   -.29002E-04
   6  Prefactor     .10000E-03    18.232       -.71036E-07** at limit **
   7  norm          .10009        .72436        .26084E-06   -.50161E-03
   8  Prefactor     4.8608        18.172        .62332E-05   -.42205E-04
   9  norm          16.522        8.9166        .51310E-07   -.54754E-04
  10  Prefactor     .10000E-03    53.508       -.42317E-06** at limit **
  11  Prefactor     .10000E-03    25.161       -.26513E-07** at limit **
  12  norm          1.5057        2.0425        .10440E-06   -.35300E-04
  13  Prefactor     .10000E-03    21.879       -.21599E-06** at limit **
  14  norm          3.2990        3.2208        .94183E-08   -.14293E-04
  15  Prefactor     .10000E-03    24.089        .37509E-06** at limit **
  16  Prefactor     .10000E-03    6.9951        .32624E-07** at limit **
  17  Prefactor     3.0300        .70013       -.49842E-08   -.80808E-04
  18  Prefactor     6.4915        17.506        .29099E-06    .44182E-05
  19  Normalizat    .93545        .31065        .64037E-06   -.10219E-03
  20  Prefactor     .82074        .12662       -.70979E-06   -.94024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.88687
  Prefactor  = 9.29366
  Prefactor  = 18.9836
  norm       = 0.875415
  Prefactor  = 0.0001
  norm       = 0.100095
  Prefactor  = 4.86076
  norm       = 16.5219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50566
  Prefactor  = 0.0001
  norm       = 3.29903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03002
  Prefactor  = 6.49146
  Normalizat = 0.93545
  Prefactor  = 0.820741
 **********
 **   18 **HESSE 
 **********

 FCN=   4684.218     FROM HESSE     STATUS=OK           295 CALLS     2105 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8869        3.4501        .10349E-03   -1.5314    
   3  Prefactor     9.2937        8.9625        .13145E-03   -1.5098    
   4  Prefactor     18.984        42.426        .91831E-04   -1.4836    
   5  norm          .87541        1.8469        .12381E-03   -1.5521    
   6  Prefactor     .10000E-03    18.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10009        2.5325        .10536E-02   -1.5645    
   8  Prefactor     4.8608        18.532        .91199E-03   -1.5267    
   9  norm          16.522        8.9000        .98531E-04   -1.4895    
  10  Prefactor     .10000E-03    53.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5057        2.0196        .10916E-03   -1.5463    
  13  Prefactor     .10000E-03    21.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2990        3.2187        .11799E-03   -1.5345    
  15  Prefactor     .10000E-03    24.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9977        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0300        .70149        .26531E-04   -1.5360    
  18  Prefactor     6.4915        17.493        .15722E-03   -1.5198    
  19  Normalizat    .93545        .35923        .38654E-03   -.95225    
  20  Prefactor     .82074        .14796        .17573E-03   -.98968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98311e-10
Minuit parameter uncertainties:
  1  0.000351078
  2  3.45023
  3  8.96377
  4  42.4939
  5  1.84706
  6  6.87291e-06
  7  1.0065
  8  18.5543
  9  8.90073
  10  0.000103639
  11  4.91612e-05
  12  2.01972
  13  3.65761e-05
  14  3.21886
  15  5.14281e-05
  16  2.24803e-07
  17  0.701487
  18  17.5069
  19  0.36016
  20  0.148033
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  4.861e+00  1.855e+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.207e-01  1.480e-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:  9.355e-01  3.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229955/likelihoodResults_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.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) = 4683.86376791
delta logL = 0.354666032877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4683.86321036
delta logL = 0.3552235828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.789       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4318       1.0000          .0000       10.000    
     3 'Normalizat'    .94900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81286       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=   4683.863     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      298 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.775        24.090        .10080E-03    .33160E-04
   2  Index         1.4315        .69788        .10419E-01    .39423E-04
   3  Normalizat    .94855        .33617        .38396E-03    .79288E-03
   4  Prefactor     .81292        .14546        .17634E-03    .14479E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.775
  Index      = 1.43153
  Normalizat = 0.948547
  Prefactor  = 0.812918
 **********
 **   18 **HESSE 
 **********

 FCN=   4683.863     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.775        24.380        .40318E-05   -1.4913    
   2  Index         1.4315        .70642        .41678E-03   -.79476    
   3  Normalizat    .94855        .33639        .76792E-04   -.94775    
   4  Prefactor     .81292        .14556        .35268E-04   -.99254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13141e-09
Minuit parameter uncertainties:
  1  24.3956
  2  0.711295
  3  0.337146
  4  0.145625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229955': 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) = 4683.86320793
delta logL = 0.355226009976

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.578e+01  2.440e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.432e+00  7.113e-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:  8.129e-01  1.456e-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:  9.485e-01  3.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 334.238 24.358

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/229955/cmap_HighResolution_449539201_449798401_4FGL_J2216.9+2421_daily_bin811.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-28 07:41:41.157998', job_id='229955', GAL2='0.81', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1632840101.16', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.55e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='811' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:41:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 229955: <4FGL_J2216.9+2421_daily_bin811> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin811> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 07:30:36 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:30:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:30:38 2021
Terminated at Tue Sep 28 07:41:41 2021
Results reported at Tue Sep 28 07:41:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin811 334.238 24.3575 449539201 449798401 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 :                                   536.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             238.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

