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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1716
RA = 334.238, Dec = 24.3575
tmin = 684115201, tmax = 684374401
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='242167', job_status='RUN', time_executed='2022-09-16 23:46:43.974609', time_epoch_executed='1663397203.97' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242167/ft1_4FGL_J2216.9+2421_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242167/ft2_4FGL_J2216.9+2421_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242167/ft1_4FGL_J2216.9+2421_daily_bin1716.fits outfile=/scratch/kocevski/242167/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1716.fits ra=334.238 dec=24.3575 rad=12.0 tmin=684115201.0 tmax=684374401.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.22
user 3.95
sys 0.23

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

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

Number of photons that the gtmktime cut: 783

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242167/ft1_filtered_4FGL_J2216.9+2421_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/242167/ft2_4FGL_J2216.9+2421_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/242167/ltcube_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.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/242167/ft2_4FGL_J2216.9+2421_daily_bin1716.fits
.....................!
real 15.38
user 14.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242167/ft1_filtered_4FGL_J2216.9+2421_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/242167/ft2_4FGL_J2216.9+2421_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/242167/ltcube_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.fits outfile=/scratch/kocevski/242167/expmap_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.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/242167/ltcube_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.fits
.....................!
real 192.69
user 186.68
sys 5.26

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/242167/ft1_filtered_4FGL_J2216.9+2421_daily_bin1716.fits scfile=/scratch/kocevski/242167/ft2_4FGL_J2216.9+2421_daily_bin1716.fits outfile=/scratch/kocevski/242167/cmap_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242167/ft1_filtered_4FGL_J2216.9+2421_daily_bin1716.fits scfile=/scratch/kocevski/242167/ft2_4FGL_J2216.9+2421_daily_bin1716.fits outfile=/scratch/kocevski/242167/cmap_HighResolution_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.769       1.0000          .0000       .10000E+07
     2 'norm      '    .13878E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7530       1.0000          .0000       .10000E+07
     4 'Prefactor '    .64507E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .22214       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4013       1.0000          .0000       .10000E+07
     7 'norm      '    .23377       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.215       1.0000          .0000       .10000E+07
     9 'norm      '    .99254E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .33853E-05   1.0000          .0000       .10000E+07
    11 'norm      '    1.9217       1.0000          .0000       .10000E+07
    12 'norm      '    1.3742       1.0000          .0000       .10000E+07
    13 'Prefactor '    17.044       1.0000          .0000       .10000E+07
    14 'Prefactor '    19.275       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.5922       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .66593       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0592       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=   8522.441     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     1192 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.514        10.084       -.20719E-06    .36034    
   2  norm           .0000        .77976       -.33205E-07** at limit **
   3  Prefactor     2.7606        5.5087        .64917E-08    .13579E-03
   4  Prefactor     .23093E-07    43.950       -.53606E-06** at limit **
   5  norm          .22326        .58414        .17875E-07** at limit **
   6  Prefactor     4.7668        121.53        .53939E-05    .17320E-01
   7  norm          .23375        .55547        .16024E-07** at limit **
   8  Prefactor     37.769        23.081       -.36347E-06    .22012E-01
   9  norm           .0000        1.7225        .13527E-07** at limit **
  10  Prefactor      .0000        2.6937        .62304E-08** at limit **
  11  norm          1.9236        1.2164       -.28575E-08    .31007E-03
  12  norm          1.3728        1.3890       -.14320E-07   -.13304E-03
  13  Prefactor     16.974        17.683       -.40291E-06    .18753E-01
  14  Prefactor     19.423        13.872       -.20886E-07    .19315E-02
  15  Prefactor     2.5925        .40725        .17822E-07    .48273E-04
  16  Normalizat    .66420        .26231        .23248E-05    .20869E-04
  17  Prefactor     1.0592        .12036       -.64631E-06    .52987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.5137
  norm       = 0
  Prefactor  = 2.76059
  Prefactor  = 2.30926e-08
  norm       = 0.223264
  Prefactor  = 4.76676
  norm       = 0.233747
  Prefactor  = 37.7694
  norm       = 0
  Prefactor  = 0
  norm       = 1.92362
  norm       = 1.37275
  Prefactor  = 16.9743
  Prefactor  = 19.4233
  Prefactor  = 2.59249
  Normalizat = 0.664201
  Prefactor  = 1.05917
 **********
 **   18 **HESSE 
 **********

 FCN=   8522.441     FROM HESSE     STATUS=OK           259 CALLS     1451 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.514        103.91        .10798E-03   -1.5523    
   2  norm           .0000        .77906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7606        5.5309        .61326E-03   -1.5675    
   4  Prefactor     .23093E-07    43.866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22326        .60132        .11394E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7668        122.16        .54832E-03   -1.5664    
   7  norm          .23375        .55720        .11203E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.769        23.055        .16394E-03   -1.5585    
   9  norm           .0000        1.7201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9236        1.2242        .74925E-03   -1.5680    
  12  norm          1.3728        1.4140        .92913E-03   -1.5685    
  13  Prefactor     16.974        17.655        .24233E-03   -1.5626    
  14  Prefactor     19.423        13.925        .22785E-03   -1.5620    
  15  Prefactor     2.5925        .40691        .50431E-02   -1.5386    
  16  Normalizat    .66420        .23591        .10117       -1.0532    
  17  Prefactor     1.0592        .10656        .39399E-01   -.90782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65253e-05
Minuit parameter uncertainties:
  1  103.91
  2  5.39469e-07
  3  5.53093
  4  0.00201306
  5  0.601322
  6  48.2623
  7  0.557196
  8  23.0547
  9  1.43336e-07
  10  1.05754e-06
  11  1.22423
  12  1.41396
  13  17.6553
  14  13.9254
  15  0.406906
  16  0.236271
  17  0.106582
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.777e+01  2.305e+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:  1.059e+00  1.066e-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:  6.642e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 334.238 24.358
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 8.97e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 2.13e-05

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

Saving results to:
/scratch/kocevski/242167/likelihoodResults_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.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) = 8522.42947097
delta logL = 0.01163520107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8522.4128519
delta logL = 0.0282542713976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.879       1.0000          .0000       .10000E+07
     2 'Index     '    2.4218       1.0000          .0000       10.000    
     3 'Normalizat'    .65062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0642       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=   8522.413     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      258 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.859        39.158        .70855E-05   -.18516E-02
   2  Index         2.4220        .72369        .59513E-02   -.14494E-03
   3  Normalizat    .65058        .26494        .45281E-03    .11946E-03
   4  Prefactor     1.0642        .12198        .16809E-03   -.13113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.8586
  Index      = 2.42201
  Normalizat = 0.65058
  Prefactor  = 1.06418
 **********
 **   18 **HESSE 
 **********

 FCN=   8522.413     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.859        33.273        .28342E-06   -1.5595    
   2  Index         2.4220        .61473        .23805E-03   -.54171    
   3  Normalizat    .65058        .26323        .18112E-04   -1.0588    
   4  Prefactor     1.0642        .12121        .33617E-04   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56002e-10
Minuit parameter uncertainties:
  1  33.2728
  2  0.616858
  3  0.26374
  4  0.121242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242167': 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) = 8522.41285164
delta logL = 0.0282545251848

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  3.186e+01  3.327e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  2.422e+00  6.169e-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.064e+00  1.212e-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:  6.506e-01  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 334.238 24.358
Photon Index (Free Index): 2.42 +/- 0.62
Photon Flux (Free Index): 9.65e-08 +/- 6.33e-08
Energy Flux (Free Index): 3.07e-05 +/- 2.46e-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/242167/cmap_HighResolution_684115201_684374401_4FGL_J2216.9+2421_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', photon_flux='8.97e-08', energy_flux2='3.07e-05', photon_flux_error='5.47e-08', dlogl='2.83e-02', energy_flux='3.48e-05', photon_flux2='9.65e-08', job_status='DONE', time_completed='2022-09-16 23:57:06.567783', photon_index_error2='0.62', photon_index2='2.42', ts='3.68', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='2.46e-05', EG='0.66', time_epoch_completed='1663397826.57', return_code='0', job_id='242167', GAL2='1.06', EG2='0.65', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='6.33e-08', ts2='3.74', photon_index='2.28' WHERE bin_id='1716' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:57:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 242167: <4FGL_J2216.9+2421_daily_bin1716> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1716> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:45:25 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:46:14 2022
Terminated at Fri Sep 16 23:57:07 2022
Results reported at Fri Sep 16 23:57:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1716 334.238 24.3575 684115201 684374401 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 :                                   624.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             399.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            702 sec.

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

