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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1684
RA = 9.234, Dec = 18.5424
tmin = 675820801, tmax = 676080001
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='180877', job_status='RUN', time_executed='2022-06-05 00:08:56.448255', time_epoch_executed='1654412936.45' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180877/ft1_4FGL_J0036.9+1832_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180877/ft1_4FGL_J0036.9+1832_daily_bin1684.fits outfile=/scratch/kocevski/180877/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1684.fits ra=9.234 dec=18.5424 rad=12.0 tmin=675820801.0 tmax=676080001.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.56
user 4.25
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.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/180877/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/180877/ft1_filtered_4FGL_J0036.9+1832_daily_bin1684.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.35
sys 0.15

Number of photons that the gtmktime cut: 654

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180877/ft1_filtered_4FGL_J0036.9+1832_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/180877/ltcube_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.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/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.fits
.....................!
real 14.32
user 13.84
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180877/ft1_filtered_4FGL_J0036.9+1832_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/180877/ltcube_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.fits outfile=/scratch/kocevski/180877/expmap_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.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/180877/ltcube_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.fits
.....................!
real 191.02
user 186.42
sys 4.20

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/180877/ft1_filtered_4FGL_J0036.9+1832_daily_bin1684.fits scfile=/scratch/kocevski/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.fits outfile=/scratch/kocevski/180877/cmap_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.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.61
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180877/ft1_filtered_4FGL_J0036.9+1832_daily_bin1684.fits scfile=/scratch/kocevski/180877/ft2_4FGL_J0036.9+1832_daily_bin1684.fits outfile=/scratch/kocevski/180877/cmap_HighResolution_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11221E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47864E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8922       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7920       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2655       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80454       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=   7331.238     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2107 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5201        .21801E-07** at limit **
   2  Prefactor     .10000E-03    9.2251       -.26002E-08** at limit **
   3  Prefactor     .10000E-03    2.4973        .22863E-08** at limit **
   4  Prefactor     30.458        35.736       -.40449E-07    .48378E-04
   5  Prefactor     .49446E-01    1.6279       -.23221E-07    .39659E-04
   6  norm          .10000E-03    3.3609        .95180E-09** at limit **
   7  Prefactor     .10000E-03    5.5588        .26100E-08** at limit **
   8  Prefactor     4.8925        5.4304       -.61591E-08    .21273E-03
   9  norm          .10000E-03    4.0357        .44593E-08** at limit **
  10  Prefactor     .93422        3.1412       -.13768E-06   -.91063E-04
  11  Prefactor     10.003        11.861       -.99389E-07    .54567E-03
  12  Prefactor     .10000E-03    18.813        .64376E-08** at limit **
  13  Prefactor     .10000E-03    46.582        .71893E-07** at limit **
  14  norm          .42188        .64005       -.33310E-07   -.19632E-03
  15  Prefactor     17.693        12.019       -.38817E-08   -.12423E-03
  16  Prefactor     .10000E-03    62.838       -.68415E-07** at limit **
  17  Prefactor     13.335        7.1194        .10192E-06   -.28170E-02
  18  Prefactor     4.7905        2.3902       -.53131E-06   -.61022E-03
  19  Normalizat    1.2654        .18164        .76946E-07    .54484E-04
  20  Prefactor     .80456        .12027        .40758E-07    .86837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4576
  Prefactor  = 0.0494462
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89255
  norm       = 0.0001
  Prefactor  = 0.934224
  Prefactor  = 10.0029
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.421883
  Prefactor  = 17.6932
  Prefactor  = 0.0001
  Prefactor  = 13.3349
  Prefactor  = 4.79055
  Normalizat = 1.26538
  Prefactor  = 0.804559
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.238     FROM HESSE     STATUS=OK           293 CALLS     2400 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6484        .20294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5000        .13213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.458        35.751        .72600E-04   -1.4604    
   5  Prefactor     .49446E-01    59.574        .20643E-02   -1.5664    
   6  norm          .10000E-03    3.3777        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8925        5.4293        .18185E-03   -1.5266    
   9  norm          .10000E-03    4.0551        .16789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .93422        3.1434        .27571E-03   -1.5515    
  11  Prefactor     10.003        11.861        .12667E-03   -1.5075    
  12  Prefactor     .10000E-03    18.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42188        .62275        .79227E-04   -1.5578    
  15  Prefactor     17.693        12.040        .95221E-04   -1.4866    
  16  Prefactor     .10000E-03    62.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.335        7.0453        .10968E-03   -1.4977    
  18  Prefactor     4.7905        6.6213        .91893E-03   -1.5270    
  19  Normalizat    1.2654        .21631        .25847E-03   -.84606    
  20  Prefactor     .80456        .14306        .21314E-03   -.99560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87321e-09
Minuit parameter uncertainties:
  1  1.48063e-07
  2  8.76145e-06
  3  2.95866e-06
  4  35.7763
  5  3.43255
  6  3.16039e-06
  7  6.57542e-06
  8  5.42982
  9  3.55517e-06
  10  3.14392
  11  11.8637
  12  3.60878e-05
  13  0.000522764
  14  0.622757
  15  12.0418
  16  0.000299142
  17  7.04576
  18  6.62236
  19  0.21646
  20  0.143125
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  6.575e-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:  8.046e-01  1.431e-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.265e+00  2.165e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180877/likelihoodResults_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7331.2393351
delta logL = -0.000853863813063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7331.23848118
delta logL = 5.81840140512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3704       1.0000          .0000       10.000    
     3 'Normalizat'    1.2654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80454       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=   7331.238     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.253        .18142E-01** at limit **
   2  Index         1.9064        9.0463        .50000       -.35779E-06
   3  Normalizat    1.2654        .78892E-02    .25847E-03    .66945E-04
   4  Prefactor     .80456        .53449E-02    .21314E-03    .84917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90637
  Normalizat = 1.26538
  Prefactor  = 0.804559
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.238     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      286 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    173.72        .21322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9064        5.5785        .50000       -.66712    
   3  Normalizat    1.2654        .24373E-01    .10339E-04   -.84606    
   4  Prefactor     .80456        .16513E-01    .85255E-05   -.99560    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.69739e-09
Minuit parameter uncertainties:
  1  4.44775e-05
  2  791.15
  3  0.0243729
  4  0.0165126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180877': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7331.23847994
delta logL = 1.30426360556e-06

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  4.448e-05  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  1.906e+00  7.911e+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:  8.046e-01  1.651e-02  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.265e+00  2.437e-02  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/180877/cmap_HighResolution_675820801_676080001_4FGL_J0036.9+1832_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.59e-08', time_completed='2022-06-05 00:19:32.834044', job_id='180877', GAL2='0.80', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1654413572.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1684' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:19:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 180877: <4FGL_J0036.9+1832_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:39 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:05:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:05:17 2022
Terminated at Sun Jun  5 00:19:33 2022
Results reported at Sun Jun  5 00:19:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1684 9.234 18.5424 675820801 676080001 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 :                                   637.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            894 sec.

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

