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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1709
RA = 158.173, Dec = 37.6234
tmin = 682300801, tmax = 682560001
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='94588', job_status='RUN', time_executed='2022-09-16 15:27:34.378924', time_epoch_executed='1663367254.38' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94588/ft1_4FGL_J1032.6+3737_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94588/ft1_4FGL_J1032.6+3737_daily_bin1709.fits outfile=/scratch/kocevski/94588/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1709.fits ra=158.173 dec=37.6234 rad=12.0 tmin=682300801.0 tmax=682560001.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.15
user 3.51
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.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/94588/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.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.31
sys 0.16

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/94588/ltcube_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.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/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits
.....................!
real 15.30
user 14.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/94588/ltcube_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.fits outfile=/scratch/kocevski/94588/expmap_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.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/94588/ltcube_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.fits
.....................!
real 193.03
user 187.07
sys 5.25

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

Setting source of interest to:
4FGL J1032.6+3737 @ 158.173 37.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits scfile=/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits outfile=/scratch/kocevski/94588/cmap_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.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=158.173 yref=37.6234 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits scfile=/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits outfile=/scratch/kocevski/94588/cmap_HighResolution_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.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=158.173 yref=37.6234 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94588/Model_4FGL_J1032.6+3737_daily_bin1709.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/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits.....................!
real 53.26
user 51.89
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits', '/scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits', expMap='/scratch/kocevski/94588/expmap_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.fits', expCube='/scratch/kocevski/94588/ltcube_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94588/Model_4FGL_J1032.6+3737_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1032.6+3737'

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.905e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94588/ft1_filtered_4FGL_J1032.6+3737_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/94588/ft2_4FGL_J1032.6+3737_daily_bin1709.fits
Exposure map: /scratch/kocevski/94588/expmap_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.fits
Exposure cube: /scratch/kocevski/94588/ltcube_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94588/Model_4FGL_J1032.6+3737_daily_bin1709.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) = 6118.41761745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34389E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    33.880       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.449       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.6293       1.0000          .0000       .10000E+07
     5 'norm      '    .29080E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13848E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.9698       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.4653       1.0000          .0000       .10000E+07
     9 'norm      '    1.4130       1.0000          .0000       .10000E+07
    10 'Prefactor '    46.584       1.0000          .0000       .10000E+07
    11 'Prefactor '    .31917E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .24221       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10517       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.1702       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.482       1.0000          .0000       .10000E+07
    16 'norm      '    1.5522       1.0000          .0000       .10000E+07
    17 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    18 'Prefactor '    .95885E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    37.350       1.0000          .0000       .10000E+07
    20 'norm      '    4.2032       1.0000          .0000       .10000E+07
    21 'Prefactor '    .25496E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .39050E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .10449E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6118.305     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2213 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12340E-06    20.585        .12275E-05** at limit **
   2  Prefactor     32.833        4.3388        .12182E-06   -.56709E-02
   3  Prefactor     10.050        4.3116       -.86448E-07    .60237E-02
   4  Prefactor     5.7396        7.8546        .41781E-07    .97339E-03
   5  norm          .20114E-04    31.068        .15949E-05** at limit **
   6  Prefactor      .0000        .78093        .27085E-06** at limit **
   7  Prefactor     5.9615        3.6086       -.88614E-07   -.17147E-03
   8  Prefactor     1.4631        2.7429       -.13840E-06   -.21880E-03
   9  norm          1.5953        11.536       -.54287E-06    .29847E-03
  10  Prefactor     48.491        67.824        .14659E-05   -.25325E-01
  11  Prefactor     .11109E-05    10.456       -.15518E-06** at limit **
  12  Prefactor     .25155        18.087        .15238E-05    .36208E-03
  13  Prefactor     .16210E-05    101.85        .14473E-05** at limit **
  14  Prefactor     .10124E-03    474.33       -.35097E-05** at limit **
  15  Prefactor     15.426        12.661       -.16265E-07    .97160E-03
  16  norm          1.5478        .41322        .15158E-09   -.18567E-02
  17  Prefactor      .0000        1.1087        .28847E-06** at limit **
  18  Prefactor     .12415E-04    37.405       -.10701E-05** at limit **
  19  Prefactor     38.038        21.501       -.45961E-06   -.13095    
  20  norm          4.5643        14.543        .12829E-05    .32513E-01
  21  Prefactor      .0000        .84552        .19272E-06** at limit **
  22  Prefactor     .90572E-06    10.506       -.28197E-06** at limit **
  23  norm           .0000        .76504        .21244E-06** at limit **
  24  Normalizat    1.0817        .20583        .12866E-05    .68009E-04
  25  Prefactor     1.0422        .24433        .39045E-05    .54723E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23401e-07
  Prefactor  = 32.8331
  Prefactor  = 10.0498
  Prefactor  = 5.73961
  norm       = 2.0114e-05
  Prefactor  = 0
  Prefactor  = 5.96147
  Prefactor  = 1.46306
  norm       = 1.59533
  Prefactor  = 48.4905
  Prefactor  = 1.11089e-06
  Prefactor  = 0.251546
  Prefactor  = 1.62098e-06
  Prefactor  = 0.000101241
  Prefactor  = 15.4258
  norm       = 1.54782
  Prefactor  = 0
  Prefactor  = 1.24147e-05
  Prefactor  = 38.0377
  norm       = 4.56429
  Prefactor  = 0
  Prefactor  = 9.0572e-07
  norm       = 0
  Normalizat = 1.08174
  Prefactor  = 1.04223
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.305     FROM HESSE     STATUS=OK           485 CALLS     2698 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12340E-06    21.562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.833        23.842        .17182E-03   -1.5593    
   3  Prefactor     10.050        26.489        .30972E-03   -1.5645    
   4  Prefactor     5.7396        7.8614        .42316E-03   -1.5660    
   5  norm          .20114E-04    44.207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .77893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9615        3.6139        .41073E-03   -1.5659    
   8  Prefactor     1.4631        2.7909        .88802E-03   -1.5684    
   9  norm          1.5953        11.796        .91071E-03   -1.5683    
  10  Prefactor     48.491        69.163        .14653E-03   -1.5569    
  11  Prefactor     .11109E-05    11.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25155        2.4206        .71924E-02   -1.5698    
  13  Prefactor     .16210E-05    99.587        .13792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10124E-03    535.55        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.426        12.665        .25429E-03   -1.5629    
  16  norm          1.5478        .41383        .53423E-03   -1.5683    
  17  Prefactor      .0000        1.1082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12415E-04    45.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.038        23.748        .16365E-03   -1.5585    
  20  norm          4.5643        14.981        .49131E-03   -1.5665    
  21  Prefactor      .0000        .84498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .90572E-06    11.127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .76491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0817        .17787        .38814E-01   -.90340    
  25  Prefactor     1.0422        .20977        .66821E-01   -.91335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50811e-06
Minuit parameter uncertainties:
  1  0.00326229
  2  23.8426
  3  26.4895
  4  7.86141
  5  0.0596384
  6  1.11558e-06
  7  3.61392
  8  2.79085
  9  8.67594
  10  69.164
  11  0.00705352
  12  1.56064
  13  0.0254112
  14  0.465745
  15  12.6646
  16  0.413828
  17  2.82237e-06
  18  0.0475847
  19  23.7479
  20  14.9809
  21  8.59701e-07
  22  0.00634938
  23  8.71933e-07
  24  0.177972
  25  0.209939
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.111e-06  7.054e-03  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.042e+00  2.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.082e+00  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94588/likelihoodResults_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.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): 0
logL (Free Index) = 6118.34748942
delta logL = -0.0426883654172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6118.30480104
delta logL = 1.30694388645e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12990E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .35402       1.0000          .0000       10.000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6118.305     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .87076E-01    .18730E-02** at limit **
   2  Index         4.1797        1.8104        .77363E-04     .0000    
   3  Normalizat    1.0817        1.1695       -.36661E-06   -.12050E-04
   4  Prefactor     1.0422        1.2009       -.18421E-05   -.67846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.17969
  Normalizat = 1.08175
  Prefactor  = 1.04223
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6118.305     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .87076E-01    .18730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8763        2.3607        .77363E-04   -.16481    
   3  Normalizat    1.0817        1.1695       -.36661E-06   -.90340    
   4  Prefactor     1.0422        1.2009       -.18421E-05   -.91335    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.81631e-11
Minuit parameter uncertainties:
  1  1.09789e-06
  2  1.85378
  3  1.19941
  4  1.23414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94588': 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) = 6118.304801
delta logL = 4.95956555824e-08

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  1.098e-06  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  4.180e+00  1.854e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.042e+00  1.234e+00  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.082e+00  1.199e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.173 37.623

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/94588/cmap_HighResolution_682300801_682560001_4FGL_J1032.6+3737_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2022-09-16 15:39:00.460726', job_id='94588', GAL2='1.04', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1663367940.46', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.96e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1709' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:39:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 94588: <4FGL_J1032.6+3737_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:25:15 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:25:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:25:28 2022
Terminated at Fri Sep 16 15:39:01 2022
Results reported at Fri Sep 16 15:39:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1709 158.173 37.6234 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1032.6+3737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            826 sec.

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

