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


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1754
RA = 9.4695, Dec = 12.6527
tmin = 693964801, tmax = 694224001
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='624405', job_status='RUN', time_executed='2023-01-01 00:08:04.329922', time_epoch_executed='1672560484.33' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624405/ft1_4FGL_J0037.8+1239_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624405/ft1_4FGL_J0037.8+1239_daily_bin1754.fits outfile=/scratch/kocevski/624405/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1754.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=693964801.0 tmax=694224001.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.03
user 3.72
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.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/624405/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.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.55
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 840

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/624405/ltcube_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.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/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits
.....................!
real 16.75
user 16.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/624405/ltcube_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.fits outfile=/scratch/kocevski/624405/expmap_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.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/624405/ltcube_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.fits
.....................!
real 193.08
user 186.94
sys 5.52

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/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits scfile=/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits outfile=/scratch/kocevski/624405/cmap_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits scfile=/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits outfile=/scratch/kocevski/624405/cmap_HighResolution_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624405/Model_4FGL_J0037.8+1239_daily_bin1754.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/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits....................!
real 101.26
user 99.06
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits', '/scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits', expMap='/scratch/kocevski/624405/expmap_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.fits', expCube='/scratch/kocevski/624405/ltcube_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/624405/Model_4FGL_J0037.8+1239_daily_bin1754.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/624405/ft1_filtered_4FGL_J0037.8+1239_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/624405/ft2_4FGL_J0037.8+1239_daily_bin1754.fits
Exposure map: /scratch/kocevski/624405/expmap_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.fits
Exposure cube: /scratch/kocevski/624405/ltcube_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/624405/Model_4FGL_J0037.8+1239_daily_bin1754.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) = 9235.05560543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.201       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.6038       1.0000          .0000       .10000E+07
     3 'norm      '    .92881E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11544E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.4073       1.0000          .0000       .10000E+07
     6 'norm      '    .93050       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13523E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.5420       1.0000          .0000       .10000E+07
     9 'norm      '    .10290E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.9518       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.925       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.1761       1.0000          .0000       .10000E+07
    13 'norm      '    .91866E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .27714E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    335.23       1.0000          .0000       .10000E+07
    16 'Prefactor '    .82839E-06   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1261       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9235.039     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1421 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.174        12.361       -.82255E-07   -.20787E-04
   2  Prefactor     4.5914        6.3892        .90010E-07   -.33586E-03
   3  norm           .0000        2.0673       -.11012E-06** at limit **
   4  Prefactor     .22204E-09    10.462        .21011E-07** at limit **
   5  Prefactor     2.4046        2.7387        .33262E-07   -.31539E-03
   6  norm          .83534        1.7687        .92604E-07   -.10224E-01
   7  Prefactor     .55511E-10    20.052       -.31863E-06** at limit **
   8  Prefactor     2.4726        17.455        .11174E-05    .21891E-03
   9  norm           .0000        2.3850        .69703E-07** at limit **
  10  Prefactor     4.9401        4.1587       -.61095E-07    .15563E-03
  11  Prefactor     12.960        9.0790       -.37080E-07    .12096E-03
  12  Prefactor     7.1796        2.8459       -.47812E-07    .16527E-02
  13  norm          .18874E-08    10.665        .20169E-08** at limit **
  14  Prefactor     .94369E-09    18.023        .31243E-07** at limit **
  15  Prefactor     333.01        123.16        .13305E-06    .19043E-03
  16  Prefactor     .12212E-08    12.151       -.23204E-06** at limit **
  17  Normalizat    1.1269        .19939       -.10042E-05   -.21624E-04
  18  Prefactor     1.0005        .14002        .73981E-06   -.38080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1736
  Prefactor  = 4.59141
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 2.40456
  norm       = 0.835342
  Prefactor  = 5.55112e-11
  Prefactor  = 2.47256
  norm       = 0
  Prefactor  = 4.94015
  Prefactor  = 12.9601
  Prefactor  = 7.17959
  norm       = 1.88738e-09
  Prefactor  = 9.4369e-10
  Prefactor  = 333.006
  Prefactor  = 1.22125e-09
  Normalizat = 1.12695
  Prefactor  = 1.00053
 **********
 **   18 **HESSE 
 **********

 FCN=   9235.039     FROM HESSE     STATUS=OK           282 CALLS     1703 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.174        12.371        .21229E-03   -1.5614    
   2  Prefactor     4.5914        6.4070        .46887E-03   -1.5665    
   3  norm           .0000        2.0541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22204E-09    10.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4046        2.7526        .65959E-03   -1.5677    
   6  norm          .83534        17.276        .43674E-03   -1.5690    
   7  Prefactor     .55511E-10    20.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4726        18.110        .64025E-03   -1.5677    
   9  norm           .0000        2.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9401        4.1762        .45172E-03   -1.5664    
  11  Prefactor     12.960        9.0797        .27837E-03   -1.5636    
  12  Prefactor     7.1796        2.8423        .37421E-03   -1.5654    
  13  norm          .18874E-08    10.832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .94369E-09    18.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     333.01        122.68        .54627E-04   -1.5343    
  16  Prefactor     .12212E-08    12.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1269        .17098        .66333E-01   -.88891    
  18  Prefactor     1.0005        .12030        .45579E-01   -.92712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4857e-08
Minuit parameter uncertainties:
  1  12.3707
  2  6.40699
  3  3.92945e-06
  4  9.77222e-05
  5  2.75258
  6  7.59775
  7  6.37331e-05
  8  13.3832
  9  4.27344e-06
  10  4.17622
  11  9.07973
  12  2.84233
  13  0.000284965
  14  0.000258028
  15  122.68
  16  0.000242113
  17  0.171061
  18  0.120333
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  2.473e+00  1.338e+01  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:  1.001e+00  1.203e-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.127e+00  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 9.470 12.653
Photon Flux Upper Limit: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624405/likelihoodResults_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.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) = 9234.92081651
delta logL = 0.118290923665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9234.9152753
delta logL = 0.123832133337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1294       1.0000          .0000       .10000E+07
     2 'Index     '    3.0149       1.0000          .0000       10.000    
     3 'Normalizat'    1.1102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0043       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9234.915     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1271        33.818        .25627E-04    .65922E-03
   2  Index         3.0159        3.3312        .84645E-02    .23741E-04
   3  Normalizat    1.1104        .19871        .29541E-03    .12084E-04
   4  Prefactor     1.0043        .14252        .22187E-03    .76861E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.12712
  Index      = 3.0159
  Normalizat = 1.11038
  Prefactor  = 1.00425
 **********
 **   18 **HESSE 
 **********

 FCN=   9234.915     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1271        7.7148        .10251E-05   -1.5679    
   2  Index         3.0159        1.6545        .33858E-03   -.40805    
   3  Normalizat    1.1104        .19580        .11817E-04   -.89419    
   4  Prefactor     1.0043        .13914        .88747E-05   -.92588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16809e-12
Minuit parameter uncertainties:
  1  7.71488
  2  1.69263
  3  0.195932
  4  0.139191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624405': 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) = 9234.91527461
delta logL = 0.123832818697

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  2.127e+00  7.715e+00  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  3.016e+00  1.693e+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:  1.004e+00  1.392e-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.110e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/624405/cmap_HighResolution_693964801_694224001_4FGL_J0037.8+1239_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2023-01-01 00:18:56.852665', job_id='624405', GAL2='1.00', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1672561136.85', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.24e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1754' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 00:18:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 624405: <4FGL_J0037.8+1239_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1754> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan  1 00:04:37 2023
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 00:07:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 00:07:12 2023
Terminated at Sun Jan  1 00:18:57 2023
Results reported at Sun Jan  1 00:18:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1754 9.4695 12.6527 693964801 694224001 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 :                                   650.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             343.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            860 sec.

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

