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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1703
RA = 9.234, Dec = 18.5424
tmin = 680745601, tmax = 681004801
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='302351', job_status='RUN', time_executed='2022-08-01 00:07:03.346440', time_epoch_executed='1659337623.35' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302351

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302351/ft1_4FGL_J0036.9+1832_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302351/ft2_4FGL_J0036.9+1832_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302351/ft1_4FGL_J0036.9+1832_daily_bin1703.fits outfile=/scratch/kocevski/302351/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1703.fits ra=9.234 dec=18.5424 rad=12.0 tmin=680745601.0 tmax=681004801.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.03
user 2.78
sys 0.19

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

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

Number of photons that the gtmktime cut: 795

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302351/ft1_filtered_4FGL_J0036.9+1832_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/302351/ft2_4FGL_J0036.9+1832_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/302351/ltcube_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.fits outfile=/scratch/kocevski/302351/expmap_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.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/302351/ltcube_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.fits
.....................!
real 192.61
user 187.25
sys 4.49

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/302351/ft1_filtered_4FGL_J0036.9+1832_daily_bin1703.fits scfile=/scratch/kocevski/302351/ft2_4FGL_J0036.9+1832_daily_bin1703.fits outfile=/scratch/kocevski/302351/cmap_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302351/ft1_filtered_4FGL_J0036.9+1832_daily_bin1703.fits scfile=/scratch/kocevski/302351/ft2_4FGL_J0036.9+1832_daily_bin1703.fits outfile=/scratch/kocevski/302351/cmap_HighResolution_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.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.57
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302351/ft1_filtered_4FGL_J0036.9+1832_daily_bin1703.fits', '/scratch/kocevski/302351/ft2_4FGL_J0036.9+1832_daily_bin1703.fits', expMap='/scratch/kocevski/302351/expmap_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.fits', expCube='/scratch/kocevski/302351/ltcube_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302351/Model_4FGL_J0036.9+1832_daily_bin1703.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/302351/ft1_filtered_4FGL_J0036.9+1832_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/302351/ft2_4FGL_J0036.9+1832_daily_bin1703.fits
Exposure map: /scratch/kocevski/302351/expmap_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.fits
Exposure cube: /scratch/kocevski/302351/ltcube_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302351/Model_4FGL_J0036.9+1832_daily_bin1703.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) = 8927.62971748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13107E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .34640E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7287       1.0000         .10000E-03   10000.    
    14 'norm      '    .52210       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.826       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81803       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1712       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=   8927.561     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2030 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79840       -.93097E-07** at limit **
   2  Prefactor     7.9128        8.7219       -.33889E-06   -.77627E-04
   3  Prefactor     .10000E-03    4.5259       -.14780E-06** at limit **
   4  Prefactor     .10000E-03    14.897        .39548E-06** at limit **
   5  Prefactor     .10000E-03    1.3572       -.26022E-07** at limit **
   6  norm          3.0649        10.212       -.15540E-05   -.16119E-03
   7  Prefactor     .10000E-03    6.9039       -.98615E-07** at limit **
   8  Prefactor     .10000E-03    14.434        .57896E-06** at limit **
   9  norm          .10000E-03    3.4416        .60493E-06** at limit **
  10  Prefactor     5.7638        4.0376        .64517E-06   -.71351E-04
  11  Prefactor     1.3356        15.956       -.29107E-05   -.43869E-03
  12  Prefactor     .10000E-03    13.549        .69627E-06** at limit **
  13  Prefactor     9.7205        20.093       -.12472E-04    .24292E-03
  14  norm          .52223        .36531        .19350E-06    .13365E-03
  15  Prefactor     16.825        10.334       -.31057E-06    .56143E-05
  16  Prefactor     .10000E-03    12.719       -.12061E-05** at limit **
  17  Prefactor     .10000E-03    2.5474        .17230E-06** at limit **
  18  Prefactor     .10000E-03    2.0746        .47395E-07** at limit **
  19  Normalizat    .81800        .16431        .73517E-06   -.13635E-04
  20  Prefactor     1.1712        .11501        .25393E-06    .21999E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.91276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.06487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.76376
  Prefactor  = 1.3356
  Prefactor  = 0.0001
  Prefactor  = 9.72049
  norm       = 0.522228
  Prefactor  = 16.8253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.817997
  Prefactor  = 1.17123
 **********
 **   18 **HESSE 
 **********

 FCN=   8927.561     FROM HESSE     STATUS=OK           293 CALLS     2323 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .80943        .82371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9128        8.7030        .14255E-03   -1.5145    
   3  Prefactor     .10000E-03    4.5466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8805        .20939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0649        10.289        .23156E-03   -1.5358    
   7  Prefactor     .10000E-03    6.9146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.0879        .33622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7638        4.0387        .15435E-03   -1.5228    
  11  Prefactor     1.3356        17.039        .37807E-03   -1.5477    
  12  Prefactor     .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7205        19.508        .12848E-03   -1.5084    
  14  norm          .52223        .37228        .45199E-04   -1.5563    
  15  Prefactor     16.825        10.336        .97640E-04   -1.4887    
  16  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6214        .29455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0822        .13290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81800        .18742        .30836E-03   -.99405    
  20  Prefactor     1.1712        .13292        .18740E-03   -.87221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74177e-09
Minuit parameter uncertainties:
  1  9.9456e-08
  2  8.70439
  3  1.60727e-06
  4  1.7163e-05
  5  1.02769e-05
  6  10.2947
  7  2.37639e-06
  8  5.83573e-05
  9  0.000124783
  10  4.03885
  11  9.54385
  12  2.60346e-05
  13  19.5204
  14  0.372279
  15  10.3367
  16  6.09464e-05
  17  2.42939e-05
  18  2.10363e-06
  19  0.187571
  20  0.132953
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  2.376e-06  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:  1.171e+00  1.330e-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:  8.180e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.234 18.542
Photon Flux Upper Limit: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302351/likelihoodResults_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.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) = 8927.56145407
delta logL = -0.000688804979291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8927.56076593
delta logL = -6.69413566357e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3832       1.0000          .0000       10.000    
     3 'Normalizat'    .81796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1712       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8927.561     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    506.85        .18142E-02** at limit **
   2  Index         2.3211        6.3352        .50000        .13846E-05
   3  Normalizat    .81800        .38388E-01    .30836E-03   -.52279E-04
   4  Prefactor     1.1712        .27565E-01    .18740E-03   -.87890E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8927.561     FROM SIMPLEX   STATUS=UNCHANGED    163 CALLS      402 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    506.85        .52751E-03** at limit **
   2  Index         2.3211        6.3352        .14259E-04    .13846E-05
   3  Normalizat    .81800        .38388E-01    .67447E-06   -.52279E-04
   4  Prefactor     1.1712        .27565E-01    .66776E-07   -.87890E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8927.561     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      445 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.882        .36285E-03** at limit **
   2  Index         2.2503        5.3682        .50000       -.33333E-07
   3  Normalizat    .81800        .18365        .12334E-04    .83322E-04
   4  Prefactor     1.1712        .13204        .37481E-04    .13552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25026
  Normalizat = 0.817997
  Prefactor  = 1.17123
 **********
 **   18 **HESSE 
 **********

 FCN=   8927.561     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1844        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2503        8.7289        .50000       -.58230    
   3  Normalizat    .81800        .18361        .24669E-05   -.99405    
   4  Prefactor     1.1712        .13203        .74961E-05   -.87221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77296e-11
Minuit parameter uncertainties:
  1  1.64268e-05
  2  330.676
  3  0.183745
  4  0.132066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302351': 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) = 8927.56076522
delta logL = 4.23096935265e-08

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  1.643e-05  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.250e+00  3.307e+02  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:  1.171e+00  1.321e-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:  8.180e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.234 18.542

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/302351/cmap_HighResolution_680745601_681004801_4FGL_J0036.9+1832_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2022-08-01 00:18:58.326503', job_id='302351', GAL2='1.17', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1659338338.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1703' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 00:18:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 302351: <4FGL_J0036.9+1832_daily_bin1703> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1703> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug  1 00:04:59 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 00:05:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 00:05:34 2022
Terminated at Mon Aug  1 00:18:59 2022
Results reported at Mon Aug  1 00:18:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1703 9.234 18.5424 680745601 681004801 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 :                                   712.11 sec.
    Max Memory :                                 1008 MB
    Average Memory :                             320.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            840 sec.

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

