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


Performing analysis on: 4FGL_J2216.9+2421_daily_bin1771
RA = 334.238, Dec = 24.3575
tmin = 698371201, tmax = 698630401
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='570919', job_status='RUN', time_executed='2023-02-21 02:21:26.933129', time_epoch_executed='1676974886.93' WHERE source_name='4FGL J2216.9+2421' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570919/ft1_4FGL_J2216.9+2421_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570919/ft2_4FGL_J2216.9+2421_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570919/ft1_4FGL_J2216.9+2421_daily_bin1771.fits outfile=/scratch/kocevski/570919/ft1_filteredMKT_4FGL_J2216.9+2421_daily_bin1771.fits ra=334.238 dec=24.3575 rad=12.0 tmin=698371201.0 tmax=698630401.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.08
user 2.88
sys 0.19

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

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

Number of photons that the gtmktime cut: 1224

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570919/ft1_filtered_4FGL_J2216.9+2421_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/570919/ft2_4FGL_J2216.9+2421_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/570919/ltcube_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.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/570919/ft2_4FGL_J2216.9+2421_daily_bin1771.fits
.....................!
real 12.57
user 12.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570919/ft1_filtered_4FGL_J2216.9+2421_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/570919/ft2_4FGL_J2216.9+2421_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/570919/ltcube_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.fits outfile=/scratch/kocevski/570919/expmap_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.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/570919/ltcube_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.fits
.....................!
real 190.13
user 185.64
sys 4.11

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/570919/ft1_filtered_4FGL_J2216.9+2421_daily_bin1771.fits scfile=/scratch/kocevski/570919/ft2_4FGL_J2216.9+2421_daily_bin1771.fits outfile=/scratch/kocevski/570919/cmap_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/570919/ft1_filtered_4FGL_J2216.9+2421_daily_bin1771.fits scfile=/scratch/kocevski/570919/ft2_4FGL_J2216.9+2421_daily_bin1771.fits outfile=/scratch/kocevski/570919/cmap_HighResolution_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89904E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .49405E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35655E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18355E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .69809       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4071       1.0000          .0000       .10000E+07
     7 'norm      '    .54767       1.0000          .0000       .10000E+07
     8 'Prefactor '    .41583E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .10181E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.5909       1.0000          .0000       .10000E+07
    11 'norm      '    1.2508       1.0000          .0000       .10000E+07
    12 'norm      '    1.9699       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.4090       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13378E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9723       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93273       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=   13138.70     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      979 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        32.992       -.91824E-07** at limit **
   2  norm           .0000        1.5302        .50960E-07** at limit **
   3  Prefactor     .55511E-10    3.6323        .24649E-06** at limit **
   4  Prefactor     .11102E-09    17.240       -.23638E-06** at limit **
   5  norm          .69801        .45969       -.21242E-07   -.35227E-02
   6  Prefactor     .11794E-05    159.69        .22471E-05** at limit **
   7  norm          .54770        .61975        .34893E-07    .38646E-02
   8  Prefactor     .58624E-01    547.34       -.82485E-05** at limit **
   9  norm           .0000        4.3299        .48928E-07** at limit **
  10  Prefactor     2.5930        7.0826       -.90262E-07    .22985E-03
  11  norm          1.2498        .73007       -.33231E-08   -.63215E-03
  12  norm          1.9689        1.2475       -.12524E-06   -.88760E-02
  13  Prefactor     2.2174        3.5706        .33179E-06    .41047E-01
  14  Prefactor      .0000        6.3910        .10049E-07** at limit **
  15  Prefactor     1.9726        .31518       -.18407E-06   -.23492E-02
  16  Normalizat    1.1816        .21364        .87316E-05    .23731E-03
  17  Prefactor     .93283        .95471E-01   -.25324E-05    .29846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 0.698011
  Prefactor  = 1.17939e-06
  norm       = 0.5477
  Prefactor  = 0.0586241
  norm       = 0
  Prefactor  = 2.59297
  norm       = 1.2498
  norm       = 1.96893
  Prefactor  = 2.21741
  Prefactor  = 0
  Prefactor  = 1.97261
  Normalizat = 1.18156
  Prefactor  = 0.932834
 **********
 **   18 **HESSE 
 **********

 FCN=   13138.70     FROM HESSE     STATUS=OK           265 CALLS     1244 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        33.205        .14209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.5178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.6537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    17.284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .69801        .46415        .60863E-03   -1.5691    
   6  Prefactor     .11794E-05    164.85        .91342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .54770        .63531        .74052E-03   -1.5693    
   8  Prefactor     .58624E-01    12.392        .78025E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        4.3358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5930        7.1119        .63366E-03   -1.5676    
  11  norm          1.2498        .74114        .99948E-03   -1.5686    
  12  norm          1.9689        1.2566        .73851E-03   -1.5680    
  13  Prefactor     2.2174        73.917        .65933E-03   -1.5678    
  14  Prefactor      .0000        6.3706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9726        .32314        .56388E-02   -1.5427    
  16  Normalizat    1.1816        .17912        .79762E-01   -.87175    
  17  Prefactor     .93283        .79421E-01    .45421E-01   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17524e-07
Minuit parameter uncertainties:
  1  2.35458e-05
  2  5.88493e-06
  3  2.08275e-05
  4  9.52684e-05
  5  0.464145
  6  0.0278877
  7  0.635314
  8  1.70465
  9  6.97044e-06
  10  7.11189
  11  0.74114
  12  1.25662
  13  25.6054
  14  1.78998e-05
  15  0.323142
  16  0.179213
  17  0.0794305
Done.

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

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.862e-02  1.705e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.328e-01  7.943e-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.182e+00  1.792e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/570919/likelihoodResults_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.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) = 13138.6980433
delta logL = 5.72372300667e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13138.6980427
delta logL = 1.14382601168e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58624E-01   1.0000          .0000       .10000E+07
     2 'Index     '    2.2850       1.0000          .0000       10.000    
     3 'Normalizat'    1.1816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93284       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=   13138.69     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      282 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52829        2.7985        .80101E-02    .61135E-02
   2  Index         3.1125        .35498        .50000       -.16959E-05
   3  Normalizat    1.1740        .67540E-02    .79988E-01   -.61489E-03
   4  Prefactor     .93451        .30664E-02    .45422E-01   -.33611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.528286
  Index      = 3.11248
  Normalizat = 1.17404
  Prefactor  = 0.934514
 **********
 **   18 **HESSE 
 **********

 FCN=   13138.69     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      313 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52829        1228.1        .25180E-03   -1.5693    
   2  Index         3.1125        8.1835        .57758E-02   -.38710    
   3  Normalizat    1.1740        .10918        .35409E-03   -.87409    
   4  Prefactor     .93451        .51937E-01    .17703E-03   -.94945    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.43932e-06
Minuit parameter uncertainties:
  1  50.9522
  2  46.9862
  3  0.109198
  4  0.0519398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570919': 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) = 13138.6891348
delta logL = 0.00890906231143

Extracting fit parameters...

4FGL J2216.9+2421
   Spectrum: PowerLaw
286    Prefactor:  5.283e-01  5.095e+01  0.000e+00  1.000e+06 ( 1.000e-13)
287        Index:  3.112e+00  4.699e+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:  9.345e-01  5.194e-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.174e+00  1.092e-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/570919/cmap_HighResolution_698371201_698630401_4FGL_J2216.9+2421_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2023-02-21 02:34:01.626068', job_id='570919', GAL2='0.93', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1676975641.63', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.91e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1771' AND source_name='4FGL J2216.9+2421' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:34:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 570919: <4FGL_J2216.9+2421_daily_bin1771> in cluster <slac> Done

Job <4FGL_J2216.9+2421_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 02:20:17 2023
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:20:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:20:19 2023
Terminated at Tue Feb 21 02:34:02 2023
Results reported at Tue Feb 21 02:34:02 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2216.9+2421_daily_bin1771 334.238 24.3575 698371201 698630401 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 :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

