aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 190 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 = 7682
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1707
RA = 334.238, Dec = 24.3575
tmin = 681782401, tmax = 682041601
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='551476', job_status='RUN', time_executed='2022-08-13 00:38:38.774162', time_epoch_executed='1660376318.77' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551476/ft1_4FGL_J2216.9+2421_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551476/ft2_4FGL_J2216.9+2421_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551476/ft1_4FGL_J2216.9+2421_daily_bin1707.fits outfile=/scratch/kocevski/551476/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1707.fits ra=334.238 dec=24.3575 rad=12.0 tmin=681782401.0 tmax=682041601.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.42
user 5.13
sys 0.27

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

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

Number of photons that the gtmktime cut: 715

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551476/ft1_filtered_4FGL_J2216.9+2421_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551476/ft2_4FGL_J2216.9+2421_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551476/ltcube_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.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/551476/ft2_4FGL_J2216.9+2421_daily_bin1707.fits
.....................!
real 11.90
user 11.49
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551476/ft1_filtered_4FGL_J2216.9+2421_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551476/ft2_4FGL_J2216.9+2421_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551476/ltcube_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.fits outfile=/scratch/kocevski/551476/expmap_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.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/551476/ltcube_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.fits
.....................!
real 190.80
user 184.53
sys 5.91

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/551476/ft1_filtered_4FGL_J2216.9+2421_daily_bin1707.fits scfile=/scratch/kocevski/551476/ft2_4FGL_J2216.9+2421_daily_bin1707.fits outfile=/scratch/kocevski/551476/cmap_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551476/ft1_filtered_4FGL_J2216.9+2421_daily_bin1707.fits scfile=/scratch/kocevski/551476/ft2_4FGL_J2216.9+2421_daily_bin1707.fits outfile=/scratch/kocevski/551476/cmap_HighResolution_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.187       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7773       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1025       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.600       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.235       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82273       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93023       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=   7815.659     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1815 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.688       -.38150E-06** at limit **
   2  norm          .10000E-03    1.4287        .10099E-06** at limit **
   3  Prefactor     .10000E-03    14.981        .25851E-05** at limit **
   4  Prefactor     .10000E-03    8.8014        .55282E-07** at limit **
   5  norm          1.2131        .98822        .15638E-06   -.27870E-03
   6  Prefactor     77.163        55.140       -.21556E-05   -.28467E-03
   7  norm          .10000E-03    .37572       -.35341E-08** at limit **
   8  Prefactor     .10000E-03    4.5953       -.42407E-07** at limit **
   9  norm          1.7772        2.8218        .15087E-06   -.24402E-04
  10  Prefactor     10.178        138.52       -.19272E-05   -.23598E-04
  11  Prefactor     .10000E-03    3.5362        .24744E-08** at limit **
  12  norm          3.3900        1.4103       -.24714E-06   -.19014E-03
  13  Prefactor     4.1028        29.277        .10805E-04   -.10696E-03
  14  norm          .10000E-03    .85592        .47673E-07** at limit **
  15  Prefactor     .10000E-03    14.253       -.17112E-05** at limit **
  16  Prefactor     43.602        16.337       -.32386E-07    .22030E-04
  17  Prefactor     .93964        .28677       -.35055E-08    .35332E-04
  18  Prefactor     11.234        12.047        .91106E-06   -.93896E-04
  19  Normalizat    .82272        .21840       -.45845E-06   -.81623E-04
  20  Prefactor     .93024        .97409E-01   -.52486E-07   -.18798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.21308
  Prefactor  = 77.163
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77718
  Prefactor  = 10.178
  Prefactor  = 0.0001
  norm       = 3.38998
  Prefactor  = 4.10277
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 43.6017
  Prefactor  = 0.939643
  Prefactor  = 11.234
  Normalizat = 0.822721
  Prefactor  = 0.930237
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.659     FROM HESSE     STATUS=OK           293 CALLS     2108 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.5204        .20378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2131        .97396        .74475E-04   -1.5488    
   6  Prefactor     77.163        57.007        .22853E-03   -1.3949    
   7  norm          .10000E-03    .38982        .10569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7772        2.7963        .18203E-03   -1.5441    
  10  Prefactor     10.178        139.38        .12554E-03   -1.5070    
  11  Prefactor     .10000E-03    3.5410        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3900        1.4098        .61114E-04   -1.5340    
  13  Prefactor     4.1028        30.347        .99518E-03   -1.5303    
  14  norm          .10000E-03    2.1680        .15811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.602        16.206        .60715E-04   -1.4386    
  17  Prefactor     .93964        .28590        .25126E-04   -1.5514    
  18  Prefactor     11.234        12.072        .59762E-03   -1.5037    
  19  Normalizat    .82272        .25075        .38419E-03   -.99231    
  20  Prefactor     .93024        .11328        .16791E-03   -.95092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23159e-10
Minuit parameter uncertainties:
  1  0.000120885
  2  6.17851e-06
  3  0.000287974
  4  1.82024e-05
  5  0.973972
  6  57.0475
  7  8.18959e-07
  8  1.42008e-06
  9  2.79652
  10  75.5424
  11  1.66132e-06
  12  1.40979
  13  22.3322
  14  8.5545e-06
  15  0.00032938
  16  16.2073
  17  0.285897
  18  12.0744
  19  0.251105
  20  0.113311
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.420e-06  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:  9.302e-01  1.133e-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:  8.227e-01  2.511e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551476/likelihoodResults_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.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) = 7815.66042546
delta logL = -0.00103458387366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7815.65939084
delta logL = 3.48536559613e-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.2756       1.0000          .0000       10.000    
     3 'Normalizat'    .82272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93024       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=   7815.659     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5683        .18142E-02** at limit **
   2  Index         2.2667        6.0836        .50000        .16030E-04
   3  Normalizat    .82272        .23806        .38418E-03   -.17459E-05
   4  Prefactor     .93024        .11112        .16791E-03   -.18958E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.26672
  Normalizat = 0.822721
  Prefactor  = 0.930237
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.659     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2667        6.1331        .50000       -.57836    
   3  Normalizat    .82272        .23823        .15367E-04   -.99231    
   4  Prefactor     .93024        .11120        .67162E-05   -.95092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84379e-10
Minuit parameter uncertainties:
  1  0.000149873
  2  4.21633
  3  0.23853
  4  0.111224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551476': 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) = 7815.65939081
delta logL = 6.90361048328e-08

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.499e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.267e+00  4.216e+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:  9.302e-01  1.112e-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:  8.227e-01  2.385e-01  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/551476/cmap_HighResolution_681782401_682041601_4FGL_J2216.9+2421_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2022-08-13 00:50:06.065439', job_id='551476', GAL2='0.93', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1660377006.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1707' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:50:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 551476: <4FGL_J2216.9+2421_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:19 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:20 2022
Terminated at Sat Aug 13 00:50:06 2022
Results reported at Sat Aug 13 00:50:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1707 334.238 24.3575 681782401 682041601 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 :                                   688.69 sec.
    Max Memory :                                 633 MB
    Average Memory :                             267.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

