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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1679
RA = 9.234, Dec = 18.5424
tmin = 674524801, tmax = 674784001
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='424616', job_status='RUN', time_executed='2022-05-21 00:10:08.217231', time_epoch_executed='1653117008.22' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424616/ft1_4FGL_J0036.9+1832_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424616/ft1_4FGL_J0036.9+1832_daily_bin1679.fits outfile=/scratch/kocevski/424616/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1679.fits ra=9.234 dec=18.5424 rad=12.0 tmin=674524801.0 tmax=674784001.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.61
user 3.38
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.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/424616/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1679.fits evtable="EVENTS" outfile="/scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 610

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424616/ltcube_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.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/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits
.....................!
real 14.34
user 13.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424616/ltcube_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.fits outfile=/scratch/kocevski/424616/expmap_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.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/424616/ltcube_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.fits
.....................!
real 191.48
user 185.93
sys 5.01

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

Setting source of interest to:
4FGL J0036.9+1832 @ 9.234 18.5424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits scfile=/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits outfile=/scratch/kocevski/424616/cmap_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.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.234 yref=18.5424 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/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits scfile=/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits outfile=/scratch/kocevski/424616/cmap_HighResolution_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.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.234 yref=18.5424 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424616/Model_4FGL_J0036.9+1832_daily_bin1679.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/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits.....................!
real 72.40
user 71.01
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits', '/scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits', expMap='/scratch/kocevski/424616/expmap_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.fits', expCube='/scratch/kocevski/424616/ltcube_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424616/Model_4FGL_J0036.9+1832_daily_bin1679.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0036.9+1832'

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  4.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/424616/ft1_filtered_4FGL_J0036.9+1832_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424616/ft2_4FGL_J0036.9+1832_daily_bin1679.fits
Exposure map: /scratch/kocevski/424616/expmap_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424616/ltcube_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424616/Model_4FGL_J0036.9+1832_daily_bin1679.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) = 6826.77187715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .56434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30951E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81966       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6826.766     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2007 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57395        2.4622        .77946E-06   -.31930E-03
   2  Prefactor     32.152        13.028       -.20269E-06   -.18517E-03
   3  Prefactor     .10000E-03    2.9493        .14897E-08** at limit **
   4  Prefactor     .10000E-03    21.529        .89922E-07** at limit **
   5  Prefactor     .10000E-03    1.9925        .75903E-08** at limit **
   6  norm          .10000E-03    4.6709        .31244E-08** at limit **
   7  Prefactor     45.268        28.448       -.32375E-07   -.16817E-04
   8  Prefactor     .10000E-03    13.237       -.39053E-06** at limit **
   9  norm          .10000E-03    2.1938       -.46784E-07** at limit **
  10  Prefactor     10.285        6.0386       -.25415E-07   -.16039E-04
  11  Prefactor     8.2371        10.021        .20596E-05   -.46325E-04
  12  Prefactor     .10000E-03    24.675        .29158E-06** at limit **
  13  Prefactor     .10000E-03    30.976       -.24444E-06** at limit **
  14  norm          .56420        .43374       -.21751E-07    .53590E-04
  15  Prefactor     .10000E-03    11.876        .38715E-06** at limit **
  16  Prefactor     .10000E-03    104.62       -.40569E-05** at limit **
  17  Prefactor     .10000E-03    2.3272       -.23236E-06** at limit **
  18  Prefactor     .10000E-03    4.0010        .21502E-07** at limit **
  19  Normalizat    1.1389        .18356       -.59206E-06   -.11052E-03
  20  Prefactor     .81967        .12122       -.35589E-06   -.13741E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.573951
  Prefactor  = 32.1517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.2683
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2848
  Prefactor  = 8.23711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.564204
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13886
  Prefactor  = 0.819675
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.766     FROM HESSE     STATUS=OK           285 CALLS     2292 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57395        4.0712        .22427E-02   -1.5556    
   2  Prefactor     32.152        12.880        .70664E-04   -1.4573    
   3  Prefactor     .10000E-03    2.9544        .13855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0384        .22747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6811        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.268        28.497        .59590E-04   -1.4361    
   8  Prefactor     .10000E-03    13.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1962        .11954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.285        6.0376        .12495E-03   -1.5066    
  11  Prefactor     8.2371        10.103        .69848E-03   -1.5134    
  12  Prefactor     .10000E-03    24.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .56420        .43210        .46169E-04   -1.5558    
  15  Prefactor     .10000E-03    12.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    109.08        .42753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3551        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0975        .16138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1389        .21758        .26376E-03   -.88514    
  20  Prefactor     .81967        .14409        .20702E-03   -.99007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54652e-08
Minuit parameter uncertainties:
  1  3.05727
  2  12.8814
  3  5.39875e-07
  4  3.67467e-05
  5  1.23918e-06
  6  1.45473e-06
  7  28.506
  8  8.48756e-05
  9  3.39054e-06
  10  6.03797
  11  10.105
  12  0.000122317
  13  7.00267e-05
  14  0.432097
  15  8.1863e-05
  16  0.00121311
  17  4.77221e-06
  18  2.52818e-06
  19  0.217749
  20  0.144156
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  4.527e+01  2.851e+01  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.385e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.197e-01  1.442e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.139e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.91
Ra Dec: 9.234 18.542
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.46e-05

TS (Fixed Index): 3.91
Ra Dec: 9.234 18.542
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424616/likelihoodResults_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.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) = 6826.13556887
delta logL = 0.630036611475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6826.13379223
delta logL = 0.631813249801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.194       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0019       1.0000          .0000       10.000    
     3 'Normalizat'    1.0926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   6826.134     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.201        28.894        .79807E-04   -.27208E-04
   2  Index         3.0020        .68125        .46315E-02    .57459E-03
   3  Normalizat    1.0926        .21902        .26839E-03    .92873E-03
   4  Prefactor     .84039        .14603        .20467E-03    .13118E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2007
  Index      = 3.00202
  Normalizat = 1.09257
  Prefactor  = 0.840391
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.134     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.201        25.698        .31923E-05   -1.4704    
   2  Index         3.0020        .60577        .92630E-03   -.41108    
   3  Normalizat    1.0926        .21894        .53677E-04   -.89991    
   4  Prefactor     .84039        .14593        .40934E-04   -.98256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19289e-09
Minuit parameter uncertainties:
  1  25.7095
  2  0.607549
  3  0.219125
  4  0.145995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424616': 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) = 6826.13379185
delta logL = 0.631813637648

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  2.520e+01  2.571e+01  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  3.002e+00  6.075e-01  0.000e+00  1.000e+01 (-1.000e+00)
142        Scale:  9.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  8.404e-01  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.093e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 9.234 18.542
Photon Index (Free Index): 3.00 +/- 0.61
Photon Flux (Free Index): 1.07e-07 +/- 6.15e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/424616/cmap_HighResolution_674524801_674784001_4FGL_J0036.9+1832_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='2.13e-05', photon_flux_error='4.36e-08', dlogl='6.32e-01', energy_flux='2.32e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2022-05-21 00:20:12.211290', photon_index_error2='0.61', photon_index2='3.00', ts='3.91', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.17e-05', EG='1.14', time_epoch_completed='1653117612.21', return_code='0', job_id='424616', GAL2='0.84', EG2='1.09', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.15e-08', ts2='5.27', photon_index='2.39' WHERE bin_id='1679' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:20:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 424616: <4FGL_J0036.9+1832_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:04:56 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:06:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:06:30 2022
Terminated at Sat May 21 00:20:13 2022
Results reported at Sat May 21 00:20:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1679 9.234 18.5424 674524801 674784001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0036.9+1832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   606.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            917 sec.

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

