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


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1728
RA = 9.4695, Dec = 12.6527
tmin = 687225601, tmax = 687484801
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='304060', job_status='RUN', time_executed='2022-10-15 00:38:55.187433', time_epoch_executed='1665819535.19' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304060/ft1_4FGL_J0037.8+1239_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304060/ft1_4FGL_J0037.8+1239_daily_bin1728.fits outfile=/scratch/kocevski/304060/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1728.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=687225601.0 tmax=687484801.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 2.73
user 2.52
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.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/304060/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 2

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304060/ltcube_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.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/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits
.....................!
real 12.83
user 12.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304060/ltcube_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.fits outfile=/scratch/kocevski/304060/expmap_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.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/304060/ltcube_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.fits
.....................!
real 191.41
user 185.90
sys 5.14

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
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0037.8+1239 @ 9.4695 12.6527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits scfile=/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits outfile=/scratch/kocevski/304060/cmap_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.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=9.4695 yref=12.6527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits scfile=/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits outfile=/scratch/kocevski/304060/cmap_HighResolution_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.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=9.4695 yref=12.6527 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304060/Model_4FGL_J0037.8+1239_daily_bin1728.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits..!
real 13.58
user 12.28
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits', '/scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits', expMap='/scratch/kocevski/304060/expmap_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.fits', expCube='/scratch/kocevski/304060/ltcube_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304060/Model_4FGL_J0037.8+1239_daily_bin1728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0037.8+1239'

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  4.891e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/304060/ft1_filtered_4FGL_J0037.8+1239_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/304060/ft2_4FGL_J0037.8+1239_daily_bin1728.fits
Exposure map: /scratch/kocevski/304060/expmap_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.fits
Exposure cube: /scratch/kocevski/304060/ltcube_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304060/Model_4FGL_J0037.8+1239_daily_bin1728.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 27.4897841888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 27.145748953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15941E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16256E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .15075E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    158.00       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4798       1.0000          .0000       .10000E+07
     6 'norm      '    3.0383       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3891       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.8907       1.0000          .0000       .10000E+07
     9 'norm      '    3.3102       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.9152       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9004       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18208E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .91567E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.6861       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34173E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.5539       1.0000          .0000       .10000E+07
    17 'Normalizat'    .13488       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .23003       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27.13243     FROM MIGRAD    STATUS=CONVERGED    158 CALLS      315 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10292E-05    240.50        .42118E-03** at limit **
   2  Prefactor     .57706E-03    490.83        .42118E-03** at limit **
   3  norm          .14544E-07    96.636        .42118E-03** at limit **
   4  Prefactor     159.22        249.36        .79563E-04   -.20054    
   5  Prefactor     1.4798        1.0730         .0000         .0000    
   6  norm          3.0383        1.0142         .0000         .0000    
   7  Prefactor     4.3891        1.0066         .0000         .0000    
   8  Prefactor     4.8907        1.0053         .0000         .0000    
   9  norm          3.3102        1.0119         .0000         .0000    
  10  Prefactor     1.9152        1.0389         .0000         .0000    
  11  Prefactor     3.9004        1.0085         .0000         .0000    
  12  Prefactor     .49960E-09    .44347E-01    .23938E-05** at limit **
  13  norm          .51232        .30146       -.14084E-04    .54229E-01
  14  Prefactor     4.6861        1.0058         .0000         .0000    
  15  Prefactor     .45006E-02    .44347E-01   -.38986E-04** at limit **
  16  Prefactor     5.5539        1.0041         .0000         .0000    
  17  Normalizat    .10000E-01    .28798        .16854E-02** at limit **
  18  Prefactor     .32295        .61839        .17772E-03   -.23533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02918e-06
  Prefactor  = 0.000577063
  norm       = 1.45439e-08
  Prefactor  = 159.224
  Prefactor  = 1.47982
  norm       = 3.03825
  Prefactor  = 4.38914
  Prefactor  = 4.89072
  norm       = 3.31018
  Prefactor  = 1.91516
  Prefactor  = 3.90045
  Prefactor  = 4.996e-10
  norm       = 0.512324
  Prefactor  = 4.68613
  Prefactor  = 0.00450058
  Prefactor  = 5.55386
  Normalizat = 0.01
  Prefactor  = 0.322947
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27.13243     FROM HESSE     STATUS=FAILED        19 CALLS      334 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10292E-05    240.50        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .57706E-03    490.83        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .14544E-07    96.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     159.22        249.36        .79563E-04   -1.5456    
   5  Prefactor     63035.        63034.         .0000       -1.5684    
   6  norm          3.0383        1.0142         .0000       -1.5673    
   7  Prefactor     4.3891        1.0066         .0000       -1.5666    
   8  Prefactor     4.8907        1.0053         .0000       -1.5664    
   9  norm          3.3102        1.0119         .0000       -1.5672    
  10  Prefactor     1.9152        1.0389         .0000       -1.5680    
  11  Prefactor     3.9004        1.0085         .0000       -1.5668    
  12  Prefactor     .49960E-09    .44347E-01    .23938E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .51232        .30146       -.14084E-04   -1.5694    
  14  Prefactor     4.6861        1.0058         .0000       -1.5665    
  15  Prefactor     .45006E-02    .44347E-01   -.38986E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5539        1.0041         .0000       -1.5661    
  17  Normalizat    .10000E-01    .28798        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .32295        .61839        .17772E-03   -1.2094    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.93688e-10
Minuit parameter uncertainties:
  1  0.0314664
  2  1.06449
  3  0.00237012
  4  249.377
  5  1.073
  6  1.01423
  7  1.00664
  8  1.00532
  9  1.01189
  10  1.03895
  11  1.00846
  12  9.30018e-06
  13  0.301465
  14  1.00581
  15  0.0282552
  16  1.00411
  17  7.23867e-06
  18  0.631749
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 27.1324304222

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  4.891e+00  1.005e+00  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  3.229e-01  6.317e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.000e-02  7.239e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 1000000.0 is not large enough
delta logLike = -3.5527136788e-15

TS (Fixed Index): 0.00
Ra Dec: 9.470 12.653
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.63e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304060/likelihoodResults_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.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): 101
logL (Free Index) = 27.1389605396
delta logL = -0.00653011741407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 27.1389605396
delta logL = -0.00653011741407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.2158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27.13896     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.2158        1.0146        .24679         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.21579
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27.13896     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .54265        1.7575        .24679       -.59058    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304060': 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): 101
logL (Free Index) = 27.1389605396
delta logL = -0.00653011741407

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  4.891e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13) fixed
161        Index:  2.216e+00  1.025e+00  0.000e+00  1.000e+01 (-1.000e+00)
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  3.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.756e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 9.470 12.653

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/304060/cmap_HighResolution_687225601_687484801_4FGL_J0037.8+1239_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.63e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2022-10-15 00:44:04.114408', job_id='304060', GAL2='0.32', fit_tolerance='1e-08', EG2='0.02', EG='0.01', time_epoch_completed='1665819844.11', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.32', dlogl='-6.53e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1728' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:44:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 304060: <4FGL_J0037.8+1239_daily_bin1728> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:35:22 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:35:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:35:23 2022
Terminated at Sat Oct 15 00:44:04 2022
Results reported at Sat Oct 15 00:44:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1728 9.4695 12.6527 687225601 687484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0037.8+1239 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   311.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             170.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            522 sec.

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

