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 211 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 = 7622
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1724
RA = 9.4695, Dec = 12.6527
tmin = 686188801, tmax = 686448001
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='684612', job_status='RUN', time_executed='2022-10-03 00:09:37.845298', time_epoch_executed='1664780977.85' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684612

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684612/ft1_4FGL_J0037.8+1239_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684612/ft1_4FGL_J0037.8+1239_daily_bin1724.fits outfile=/scratch/kocevski/684612/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1724.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=686188801.0 tmax=686448001.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.61
user 4.34
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.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/684612/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1724.fits evtable="EVENTS" outfile="/scratch/kocevski/684612/ft1_filtered_4FGL_J0037.8+1239_daily_bin1724.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.58
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684612/ft1_filtered_4FGL_J0037.8+1239_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/684612/ltcube_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.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/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.fits
.....................!
real 14.86
user 14.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684612/ft1_filtered_4FGL_J0037.8+1239_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/684612/ltcube_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.fits outfile=/scratch/kocevski/684612/expmap_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.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/684612/ltcube_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.fits
.....................!
real 191.86
user 185.86
sys 5.47

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/684612/ft1_filtered_4FGL_J0037.8+1239_daily_bin1724.fits scfile=/scratch/kocevski/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.fits outfile=/scratch/kocevski/684612/cmap_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684612/ft1_filtered_4FGL_J0037.8+1239_daily_bin1724.fits scfile=/scratch/kocevski/684612/ft2_4FGL_J0037.8+1239_daily_bin1724.fits outfile=/scratch/kocevski/684612/cmap_HighResolution_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9539       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15453E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .62765E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.466       1.0000          .0000       .10000E+07
     5 'Prefactor '    .66648       1.0000          .0000       .10000E+07
     6 'norm      '    17.803       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10471E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .13561E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .95157E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .42171E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5509       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19491E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .12514E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33751E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    521.86       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.1068       1.0000          .0000       .10000E+07
    17 'Normalizat'    .84776       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3160       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=   6566.244     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1960 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9535        2.4227        .23376E-07    .32681E-01
   2  Prefactor      .0000        3.9156       -.11552E-06** at limit **
   3  norm           .0000        2.3621        .10013E-06** at limit **
   4  Prefactor     16.449        1.4809        .42065E-08   -.19107E-02
   5  Prefactor     .67149        5.2108        .17510E-06   -.26381E-02
   6  norm          17.795        4.2447       -.14855E-08   -.77138E-01
   7  Prefactor     .10714E-07    8.7781       -.12875E-06** at limit **
   8  Prefactor     .79625E-06    12.545       -.29069E-06** at limit **
   9  norm           .0000        3.3848       -.26127E-07** at limit **
  10  Prefactor     .11091E-05    15.125        .80077E-07** at limit **
  11  Prefactor     2.5980        6.5800        .88412E-07    .64896E-04
  12  Prefactor     .57732E-08    8.3884        .91587E-07** at limit **
  13  norm          .10669E-06    45.793        .71765E-06** at limit **
  14  Prefactor     .11102E-09    25.047       -.20992E-06** at limit **
  15  Prefactor     521.95        11.286        .13351E-07   -.85866    
  16  Prefactor     5.0774        8.3851       -.68762E-07   -.53031E-02
  17  Normalizat    .84784        .23550       -.46090E-05   -.29362E-03
  18  Prefactor     1.3159        .17779       -.67663E-06   -.42976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.95353
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.4487
  Prefactor  = 0.671493
  norm       = 17.7945
  Prefactor  = 1.07137e-08
  Prefactor  = 7.96252e-07
  norm       = 0
  Prefactor  = 1.10906e-06
  Prefactor  = 2.59801
  Prefactor  = 5.77316e-09
  norm       = 1.06692e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 521.953
  Prefactor  = 5.0774
  Normalizat = 0.847842
  Prefactor  = 1.31585
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.244     FROM HESSE     STATUS=OK           280 CALLS     2240 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9535        8.5014        .31736E-03   -1.5645    
   2  Prefactor      .0000        3.9133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        2.3610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.449        14.154        .24655E-03   -1.5627    
   5  Prefactor     .67149        5.2871        .63472E-03   -1.5692    
   6  norm          17.795        12.454        .23710E-03   -1.5624    
   7  Prefactor     .10714E-07    9.0284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .79625E-06    13.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        3.4050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11091E-05    15.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5980        6.6051        .63903E-03   -1.5676    
  12  Prefactor     .57732E-08    8.4974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10669E-06    45.407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11102E-09    24.960        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     521.95        177.23        .43786E-04   -1.5251    
  16  Prefactor     5.0774        8.6709        .44467E-03   -1.5663    
  17  Normalizat    .84784        .20738        .75575E-01   -.98318    
  18  Prefactor     1.3159        .15294        .46647E-01   -.82837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49592e-05
Minuit parameter uncertainties:
  1  8.50139
  2  1.57109e-05
  3  1.3415e-05
  4  14.1545
  5  3.76841
  6  12.4539
  7  0.000621959
  8  0.00643729
  9  8.85958e-06
  10  0.00824729
  11  6.60515
  12  0.000442775
  13  0.00440204
  14  9.59271e-05
  15  177.235
  16  8.67095
  17  0.207576
  18  0.152995
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  7.963e-07  6.437e-03  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.316e+00  1.530e-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:  8.478e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/684612/likelihoodResults_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.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) = 6566.28146749
delta logL = -0.0375757158445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6565.05095285
delta logL = 1.1929389272

Fit tolerance = 1e-08

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

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

 FCN=   6565.051     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26272        2.6096        .65103E-03    .16424E-01
   2  Index         4.5803        2.0585        .10730        .18158E-03
   3  Normalizat    .73215        .50032E-01    .80818E-01    .28861E-04
   4  Prefactor     1.3605        .37567E-01    .45974E-01   -.48045E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.262718
  Index      = 4.58028
  Normalizat = 0.732154
  Prefactor  = 1.36052
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.051     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      282 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26272        6.6058        .29549E-04   -1.5698    
   2  Index         4.5803        3.7508        .38949E-02   -.84043E-01
   3  Normalizat    .73215        .19052        .35784E-03   -1.0264    
   4  Prefactor     1.3605        .14117        .20322E-03   -.81525    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8907e-08
Minuit parameter uncertainties:
  1  2.63474
  2  4.24665
  3  0.190689
  4  0.141214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684612': 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) = 6565.05094639
delta logL = 1.192945386

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  2.627e-01  2.635e+00  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  4.580e+00  4.247e+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.361e+00  1.412e-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:  7.322e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 9.470 12.653
Photon Index (Free Index): 4.58 +/- 4.25
Photon Flux (Free Index): 9.68e-08 +/- 7.31e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.36e-05

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/684612/cmap_HighResolution_686188801_686448001_4FGL_J0037.8+1239_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='1.19e+00', photon_flux2='9.68e-08', job_status='DONE', time_completed='2022-10-03 00:19:36.179572', photon_index_error2='4.25', photon_index2='4.58', ts='-0.00', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='1.36e-05', EG='0.85', time_epoch_completed='1664781576.18', return_code='0', job_id='684612', GAL2='1.36', EG2='0.73', return_code2='102', photon_flux_error2='7.31e-08', ts2='2.58', photon_index='2.22' WHERE bin_id='1724' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 00:19:36 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 684661: <4FGL_J0037.8+1239_daily_bin1724> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1724> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Oct  3 00:05:20 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 00:06:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 00:06:59 2022
Terminated at Mon Oct  3 00:17:25 2022
Results reported at Mon Oct  3 00:17:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1724 9.4695 12.6527 686188801 686448001 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 :                                   606.23 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             403.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3406 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            725 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 684612: <4FGL_J0037.8+1239_daily_bin1724> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1724> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Oct  3 00:05:18 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 00:05:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 00:05:59 2022
Terminated at Mon Oct  3 00:19:37 2022
Results reported at Mon Oct  3 00:19:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1724 9.4695 12.6527 686188801 686448001 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 :                                   600.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            859 sec.

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

