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 235 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1702
RA = 9.4695, Dec = 12.6527
tmin = 680486401, tmax = 680745601
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='232908', job_status='RUN', time_executed='2022-07-29 00:10:42.518718', time_epoch_executed='1659078642.52' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232908/ft1_4FGL_J0037.8+1239_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232908/ft1_4FGL_J0037.8+1239_daily_bin1702.fits outfile=/scratch/kocevski/232908/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1702.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=680486401.0 tmax=680745601.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.00
user 2.75
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.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/232908/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.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.52
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 684

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/232908/ltcube_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.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/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits
.....................!
real 17.42
user 17.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/232908/ltcube_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.fits outfile=/scratch/kocevski/232908/expmap_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.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/232908/ltcube_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.fits
.....................!
real 194.95
user 188.16
sys 5.74

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/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.fits scfile=/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits outfile=/scratch/kocevski/232908/cmap_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.fits scfile=/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits outfile=/scratch/kocevski/232908/cmap_HighResolution_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.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.58
user 0.39
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.fits', '/scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits', expMap='/scratch/kocevski/232908/expmap_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.fits', expCube='/scratch/kocevski/232908/ltcube_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232908/Model_4FGL_J0037.8+1239_daily_bin1702.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  1.000e-04  1.000e+04 ( 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/232908/ft1_filtered_4FGL_J0037.8+1239_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/232908/ft2_4FGL_J0037.8+1239_daily_bin1702.fits
Exposure map: /scratch/kocevski/232908/expmap_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.fits
Exposure cube: /scratch/kocevski/232908/ltcube_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232908/Model_4FGL_J0037.8+1239_daily_bin1702.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) = 7627.5096686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11513E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.345       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7008       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80171E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6313       1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    303.27       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5021       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87311       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.

 FCN=   7627.473     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1922 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6615        6.7996        .73317E-07   -.26916E-04
   2  Prefactor     .10000E-03    2.9701       -.14475E-07** at limit **
   3  norm          5.7961        4.6489       -.22588E-08    .10289E-04
   4  Prefactor     18.693        26.034       -.87350E-06   -.12273E-03
   5  Prefactor     .10000E-03    14.350       -.16868E-05** at limit **
   6  Prefactor     .10000E-03    1.7782        .11864E-06** at limit **
   7  norm          10.326        8.9345        .58144E-07   -.14919E-04
   8  Prefactor     .10000E-03    20.483        .14199E-05** at limit **
   9  Prefactor     15.345        11.745        .49811E-07    .44100E-05
  10  norm          .10000E-03    4.0512        .26694E-07** at limit **
  11  Prefactor     5.7005        4.2484        .10122E-06    .15041E-03
  12  Prefactor     .10000E-03    4.4322       -.36031E-06** at limit **
  13  Prefactor     4.6324        2.6859        .63997E-06   -.69164E-03
  14  norm          .10000E-03    12.506        .89157E-06** at limit **
  15  Prefactor     .10000E-03    33.273       -.75027E-06** at limit **
  16  Prefactor     303.25        119.87       -.15049E-05   -.12832E-03
  17  Prefactor     9.5014        10.363        .13566E-05   -.21510E-03
  18  Normalizat    1.0862        .17377       -.10473E-06    .24938E-05
  19  Prefactor     .87362        .12146       -.31370E-06    .17368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66145
  Prefactor  = 0.0001
  norm       = 5.79614
  Prefactor  = 18.6933
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.3261
  Prefactor  = 0.000100001
  Prefactor  = 15.3447
  norm       = 0.0001
  Prefactor  = 5.70055
  Prefactor  = 0.000100001
  Prefactor  = 4.63239
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 303.253
  Prefactor  = 9.50135
  Normalizat = 1.08615
  Prefactor  = 0.87362
 **********
 **   18 **HESSE 
 **********

 FCN=   7627.473     FROM HESSE     STATUS=OK           270 CALLS     2192 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6615        6.7944        .15548E-03   -1.5192    
   2  Prefactor     .10000E-03    2.9945        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7961        4.6448        .16233E-03   -1.5226    
   4  Prefactor     18.693        26.372        .92622E-04   -1.4843    
   5  Prefactor     .10000E-03    15.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6590        .22408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.326        8.9358        .12468E-03   -1.5065    
   8  Prefactor     .10000E-03    21.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.345        11.742        .10225E-03   -1.4924    
  10  norm          .10000E-03    4.1415        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7005        4.2523        .15001E-03   -1.5230    
  12  Prefactor     .10000E-03    11.611        .35403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6324        2.7336        .53304E-03   -1.5277    
  14  norm          .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     303.25        122.09        .11663E-03   -1.2207    
  17  Prefactor     9.5014        10.517        .65003E-03   -1.5091    
  18  Normalizat    1.0862        .20272        .27451E-03   -.90198    
  19  Prefactor     .87362        .14183        .21604E-03   -.97069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72117e-10
Minuit parameter uncertainties:
  1  6.79517
  2  1.66266e-06
  3  4.64513
  4  26.3882
  5  0.000301022
  6  1.30864e-06
  7  8.937
  8  0.000294042
  9  11.7434
  10  4.85004e-06
  11  4.25255
  12  0.000239279
  13  2.73367
  14  0.000152114
  15  0.000219121
  16  122.189
  17  10.5192
  18  0.202867
  19  0.141887
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.534e+01  1.174e+01  1.000e-04  1.000e+04 ( 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:  8.736e-01  1.419e-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.086e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 9.470 12.653
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.26e-05

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): 0
logL (Free Index) = 7627.10637783
delta logL = 0.366796288919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7627.10451149
delta logL = 0.368662634012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.653       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6873       1.0000          .0000       10.000    
     3 'Normalizat'    1.1021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86968       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=   7627.105     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.649        14.810        .95327E-04    .85724E-04
   2  Index         1.6867        .57449        .10606E-01    .77579E-04
   3  Normalizat    1.1021        .19619        .27275E-03    .10064E-02
   4  Prefactor     .86970        .14091        .21650E-03    .10899E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6493
  Index      = 1.68669
  Normalizat = 1.10208
  Prefactor  = 0.8697
 **********
 **   18 **HESSE 
 **********

 FCN=   7627.105     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.649        14.974        .19065E-04   -1.4867    
   2  Index         1.6867        .58087        .42424E-03   -.72437    
   3  Normalizat    1.1021        .19631        .54550E-04   -.89685    
   4  Prefactor     .86970        .14102        .43301E-04   -.97208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13413e-09
Minuit parameter uncertainties:
  1  14.9769
  2  0.583221
  3  0.196443
  4  0.14108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232908': 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) = 7627.10451086
delta logL = 0.368663263403

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.765e+01  1.498e+01  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  1.687e+00  5.832e-01  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:  8.697e-01  1.411e-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.102e+00  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.31
Ra Dec: 9.470 12.653
Photon Index (Free Index): 1.69 +/- 0.58
Photon Flux (Free Index): 1.95e-08 +/- 2.42e-08
Energy Flux (Free Index): 3.33e-05 +/- 4.14e-05

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/232908/cmap_HighResolution_680486401_680745601_4FGL_J0037.8+1239_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='3.33e-05', photon_flux_error='2.89e-08', dlogl='3.69e-01', energy_flux='1.65e-05', photon_flux2='1.95e-08', job_status='DONE', time_completed='2022-07-29 00:20:30.320178', photon_index_error2='0.58', photon_index2='1.69', ts='4.56', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='4.14e-05', EG='1.09', time_epoch_completed='1659079230.32', return_code='0', job_id='232908', GAL2='0.87', EG2='1.10', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.42e-08', ts2='5.31', photon_index='2.22' WHERE bin_id='1702' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 00:20:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 232908: <4FGL_J0037.8+1239_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:07 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:06:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:06:24 2022
Terminated at Fri Jul 29 00:20:31 2022
Results reported at Fri Jul 29 00:20:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1702 9.4695 12.6527 680486401 680745601 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 :                                   586.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            924 sec.

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

