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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1748
RA = 334.238, Dec = 24.3575
tmin = 692409601, tmax = 692668801
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='898161', job_status='RUN', time_executed='2022-12-14 01:21:16.565361', time_epoch_executed='1671009676.57' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898161/ft1_4FGL_J2216.9+2421_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898161/ft2_4FGL_J2216.9+2421_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898161/ft1_4FGL_J2216.9+2421_daily_bin1748.fits outfile=/scratch/kocevski/898161/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1748.fits ra=334.238 dec=24.3575 rad=12.0 tmin=692409601.0 tmax=692668801.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 3.56
user 3.34
sys 0.21

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

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

Number of photons that the gtmktime cut: 901

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/898161/ft2_4FGL_J2216.9+2421_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/898161/ltcube_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.fits outfile=/scratch/kocevski/898161/expmap_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.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/898161/ltcube_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.fits
.....................!
real 190.09
user 185.08
sys 4.71

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/898161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1748.fits scfile=/scratch/kocevski/898161/ft2_4FGL_J2216.9+2421_daily_bin1748.fits outfile=/scratch/kocevski/898161/cmap_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898161/ft1_filtered_4FGL_J2216.9+2421_daily_bin1748.fits scfile=/scratch/kocevski/898161/ft2_4FGL_J2216.9+2421_daily_bin1748.fits outfile=/scratch/kocevski/898161/cmap_HighResolution_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26285E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.8266       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6719       1.0000          .0000       .10000E+07
     4 'Prefactor '    .35580E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .71387E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .29419E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .20245       1.0000          .0000       .10000E+07
     8 'Prefactor '    .54438E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .40224E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.2620       1.0000          .0000       .10000E+07
    11 'norm      '    1.3824       1.0000          .0000       .10000E+07
    12 'norm      '    3.0104       1.0000          .0000       .10000E+07
    13 'Prefactor '    22.711       1.0000          .0000       .10000E+07
    14 'Prefactor '    .58753E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.6731       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93038       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=   9349.474     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      990 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    122.39       -.74576E-06** at limit **
   2  norm          1.8272        1.7813       -.48454E-08    .24521E-03
   3  Prefactor     4.6881        7.0004        .38841E-06    .14646E-03
   4  Prefactor      .0000        11.147       -.29885E-06** at limit **
   5  norm           .0000        .26249       -.27787E-07** at limit **
   6  Prefactor      .0000        36.462       -.65889E-06** at limit **
   7  norm          .20301        .67204       -.40110E-07** at limit **
   8  Prefactor      .0000        5.2826        .75778E-07** at limit **
   9  norm          .35444E-01    34.329       -.15136E-05** at limit **
  10  Prefactor     4.4657        11.175        .14653E-06   -.45816E-03
  11  norm          1.3830        .99505        .41403E-07    .22010E-03
  12  norm          3.0093        1.5617        .25002E-07   -.60013E-03
  13  Prefactor     23.071        23.103       -.24291E-06    .56579E-03
  14  Prefactor      .0000        3.8346        .15695E-07** at limit **
  15  Prefactor     1.6723        .31580        .10941E-06   -.59134E-03
  16  Normalizat    1.1641        .25068       -.52166E-05   -.44704E-05
  17  Prefactor     .93056        .11485       -.21607E-06    .94328E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 1.82718
  Prefactor  = 4.68807
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0.203006
  Prefactor  = 0
  norm       = 0.0354436
  Prefactor  = 4.46569
  norm       = 1.38302
  norm       = 3.0093
  Prefactor  = 23.0706
  Prefactor  = 0
  Prefactor  = 1.67226
  Normalizat = 1.16413
  Prefactor  = 0.930555
 **********
 **   18 **HESSE 
 **********

 FCN=   9349.474     FROM HESSE     STATUS=OK           267 CALLS     1257 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    121.24        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8272        1.7849        .77209E-03   -1.5681    
   3  Prefactor     4.6881        7.0292        .46535E-03   -1.5665    
   4  Prefactor      .0000        11.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .26055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        36.663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20301        .51838        .30668E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.2735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .35444E-01    1.6560        .63855E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4657        11.141        .48780E-03   -1.5666    
  11  norm          1.3830        1.0061        .92513E-03   -1.5684    
  12  norm          3.0093        1.5594        .58471E-03   -1.5673    
  13  Prefactor     23.071        23.063        .20989E-03   -1.5612    
  14  Prefactor      .0000        3.8399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6723        .31475        .50872E-02   -1.5449    
  16  Normalizat    1.1641        .20962        .77620E-01   -.87719    
  17  Prefactor     .93056        .95114E-01    .45391E-01   -.95081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90961e-08
Minuit parameter uncertainties:
  1  0.000221187
  2  1.78494
  3  7.02917
  4  1.90775e-05
  5  3.77506e-07
  6  2.16639e-05
  7  0.518378
  8  1.66054e-05
  9  0.484537
  10  11.1413
  11  1.00606
  12  1.55937
  13  23.0629
  14  5.628e-07
  15  0.31475
  16  0.209775
  17  0.0951306
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  0.000e+00  1.661e-05  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:  9.306e-01  9.513e-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.164e+00  2.098e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898161/likelihoodResults_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.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) = 9349.47898377
delta logL = -0.00465150973105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9349.47433233
delta logL = -7.01656972524e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31497E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.4947       1.0000          .0000       10.000    
     3 'Normalizat'    1.1641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9349.474     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      266 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    .92498E-01    .42118E-03** at limit **
   2  Index         .59042        5.2234        .50000       -.39108E-09
   3  Normalizat    1.1641        .15985E-02    .77620E-01   -.41652E-03
   4  Prefactor     .93055        .75644E-03    .45394E-01   -.93302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 0.59042
  Normalizat = 1.16413
  Prefactor  = 0.930554
 **********
 **   18 **HESSE 
 **********

 FCN=   9349.474     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      291 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    .46229        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59042        8.4999        .50000       -1.0799    
   3  Normalizat    1.1641        .35679E-02    .34357E-03   -.87719    
   4  Prefactor     .93055        .16907E-02    .17872E-03   -.95081    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.5252e-10
Minuit parameter uncertainties:
  1  1.50934e-05
  2  49100.2
  3  0.00356785
  4  0.00169074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898161': 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): 102
logL (Free Index) = 9349.47433226
delta logL = -2.12821760215e-10

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  1.110e-10  1.509e-05  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  5.904e-01  4.910e+04  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.306e-01  1.691e-03  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.164e+00  3.568e-03  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/898161/cmap_HighResolution_692409601_692668801_4FGL_J2216.9+2421_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2022-12-14 01:31:44.964363', job_id='898161', GAL2='0.93', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1671010304.96', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-2.13e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1748' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:31:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 898161: <4FGL_J2216.9+2421_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 01:20:23 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:20:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:20:25 2022
Terminated at Wed Dec 14 01:31:45 2022
Results reported at Wed Dec 14 01:31:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1748 334.238 24.3575 692409601 692668801 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 :                                   631.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             385.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

