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 3 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7622
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1724
RA = 334.238, Dec = 24.3575
tmin = 686188801, tmax = 686448001
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='707851', job_status='RUN', time_executed='2022-10-03 01:17:56.386566', time_epoch_executed='1664785076.39' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707851/ft1_4FGL_J2216.9+2421_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707851/ft1_4FGL_J2216.9+2421_daily_bin1724.fits outfile=/scratch/kocevski/707851/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1724.fits ra=334.238 dec=24.3575 rad=12.0 tmin=686188801.0 tmax=686448001.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 4.61
user 4.34
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.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/707851/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1724.fits evtable="EVENTS" outfile="/scratch/kocevski/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.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.54
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 909

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707851/ltcube_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.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/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits
.....................!
real 14.60
user 14.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707851/ltcube_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.fits outfile=/scratch/kocevski/707851/expmap_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.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/707851/ltcube_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.fits
.....................!
real 192.24
user 186.65
sys 5.24

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_8years/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/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.fits scfile=/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits outfile=/scratch/kocevski/707851/cmap_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.fits scfile=/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits outfile=/scratch/kocevski/707851/cmap_HighResolution_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.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.58
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.fits', '/scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits', expMap='/scratch/kocevski/707851/expmap_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.fits', expCube='/scratch/kocevski/707851/ltcube_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707851/Model_4FGL_J2216.9+2421_daily_bin1724.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  0.000e+00  1.000e+06 ( 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/707851/ft1_filtered_4FGL_J2216.9+2421_daily_bin1724.fits
Spacecraft file(s): /scratch/kocevski/707851/ft2_4FGL_J2216.9+2421_daily_bin1724.fits
Exposure map: /scratch/kocevski/707851/expmap_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.fits
Exposure cube: /scratch/kocevski/707851/ltcube_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707851/Model_4FGL_J2216.9+2421_daily_bin1724.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) = 9427.70723278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72088       1.0000          .0000       .10000E+07
     2 'norm      '    .19357E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19355E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    61.908       1.0000          .0000       .10000E+07
     5 'norm      '    .92548E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.166       1.0000          .0000       .10000E+07
     7 'norm      '    .17443E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    14.216       1.0000          .0000       .10000E+07
     9 'norm      '    3.5979       1.0000          .0000       .10000E+07
    10 'Prefactor '    .96378E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .32419E-07   1.0000          .0000       .10000E+07
    12 'norm      '    .18796E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .37461E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    16.524       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0598       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5352       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .75803       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9427.641     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1271 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31481E-05    111.02       -.19740E-06** at limit **
   2  norm           .0000        .76936       -.22436E-07** at limit **
   3  Prefactor     .62561E-07    7.0071        .43596E-08** at limit **
   4  Prefactor     62.281        4.9892        .13842E-08    .66791E-01
   5  norm          .61001E-06    20.128       -.37325E-07** at limit **
   6  Prefactor     16.546        9.9112        .11527E-07   -.11076    
   7  norm          .27756E-09    1.0700       -.10364E-07** at limit **
   8  Prefactor     14.234        2.0600        .30517E-09    .14718E-01
   9  norm          3.5990        5.0661       -.20011E-07    .27695E-03
  10  Prefactor     .59008E-07    5.2859       -.46375E-07** at limit **
  11  norm          .55511E-10    .41207        .19564E-08** at limit **
  12  norm           .0000        1.1495       -.44765E-07** at limit **
  13  Prefactor     .57288E-07    28.633        .13387E-06** at limit **
  14  Prefactor     16.618        15.347       -.16666E-07    .42508E-01
  15  Prefactor     6.0593        .57225       -.19729E-08    .51653E-04
  16  Normalizat    1.5347        .25511       -.95640E-06    .25351E-03
  17  Prefactor     .75828        .11130        .24265E-05    .54582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14815e-06
  norm       = 0
  Prefactor  = 6.25611e-08
  Prefactor  = 62.2809
  norm       = 6.10012e-07
  Prefactor  = 16.5455
  norm       = 2.77556e-10
  Prefactor  = 14.2345
  norm       = 3.59904
  Prefactor  = 5.90084e-08
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 5.72875e-08
  Prefactor  = 16.6181
  Prefactor  = 6.05925
  Normalizat = 1.53469
  Prefactor  = 0.758276
 **********
 **   18 **HESSE 
 **********

 FCN=   9427.641     FROM HESSE     STATUS=OK           263 CALLS     1534 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31481E-05    115.54        .59029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .77635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62561E-07    7.0710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     62.281        32.682        .12710E-03   -1.5550    
   5  norm          .61001E-06    .32095        .30075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.546        29.438        .24147E-03   -1.5627    
   7  norm          .27756E-09    1.0448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.234        13.743        .26539E-03   -1.5633    
   9  norm          3.5990        5.0760        .53247E-03   -1.5670    
  10  Prefactor     .59008E-07    5.3810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    .41436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.1464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57288E-07    29.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.618        15.666        .24612E-03   -1.5626    
  15  Prefactor     6.0593        .57669        .40776E-02   -1.5216    
  16  Normalizat    1.5347        .21993        .77345E-01   -.76808    
  17  Prefactor     .75828        .95453E-01    .43168E-01   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19106e-07
Minuit parameter uncertainties:
  1  0.0381438
  2  8.86158e-06
  3  0.00132995
  4  32.6824
  5  0.000884944
  6  29.4384
  7  3.48993e-05
  8  13.7434
  9  5.07603
  10  0.00112685
  11  7.12378e-06
  12  1.47204e-06
  13  0.00257909
  14  15.6658
  15  0.576686
  16  0.220064
  17  0.0954736
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.423e+01  1.374e+01  0.000e+00  1.000e+06 ( 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:  7.583e-01  9.547e-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.535e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.27e-05

TS (Fixed Index): 1.94
Ra Dec: 334.238 24.358
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707851/likelihoodResults_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.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) = 9427.63162959
delta logL = 0.00969353184337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9427.62858643
delta logL = 0.0127366875167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.382       1.0000          .0000       .10000E+07
     2 'Index     '    2.1362       1.0000          .0000       10.000    
     3 'Normalizat'    1.5420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75636       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=   9427.629     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.382        16.366        .10204E-04    .12121E-02
   2  Index         2.1361        .91028        .11537E-01    .26287E-04
   3  Normalizat    1.5420        .25529        .34160E-03   -.51918E-04
   4  Prefactor     .75637        .11184        .20616E-03   -.97386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3817
  Index      = 2.13612
  Normalizat = 1.54199
  Prefactor  = 0.756367
 **********
 **   18 **HESSE 
 **********

 FCN=   9427.629     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.382        16.022        .40818E-06   -1.5630    
   2  Index         2.1361        .89026        .46148E-03   -.60989    
   3  Normalizat    1.5420        .25508        .13664E-04   -.76605    
   4  Prefactor     .75637        .11185        .82464E-05   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94173e-11
Minuit parameter uncertainties:
  1  16.0223
  2  0.89741
  3  0.255293
  4  0.111887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707851': 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) = 9427.62858642
delta logL = 0.0127366980887

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.538e+01  1.602e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.136e+00  8.974e-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:  7.564e-01  1.119e-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.542e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.14 +/- 0.90
Photon Flux (Free Index): 2.85e-08 +/- 4.19e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.77e-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/707851/cmap_HighResolution_686188801_686448001_4FGL_J2216.9+2421_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='1.45e-05', photon_flux_error='3.26e-08', dlogl='1.27e-02', energy_flux='1.31e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2022-10-03 01:29:20.125998', photon_index_error2='0.90', photon_index2='2.14', ts='1.94', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.77e-05', EG='1.53', time_epoch_completed='1664785760.13', return_code='0', job_id='707851', GAL2='0.76', EG2='1.54', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.19e-08', ts2='1.96', photon_index='2.28' WHERE bin_id='1724' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:29:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 707851: <4FGL_J2216.9+2421_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:40 2022
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:17:43 2022
Terminated at Mon Oct  3 01:29:20 2022
Results reported at Mon Oct  3 01:29:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1724 334.238 24.3575 686188801 686448001 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 :                                   686.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            820 sec.

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

