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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1686
RA = 9.234, Dec = 18.5424
tmin = 676339201, tmax = 676598401
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='508648', job_status='RUN', time_executed='2022-06-11 00:07:52.059290', time_epoch_executed='1654931272.06' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508648/ft1_4FGL_J0036.9+1832_daily_bin1686.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508648/ft1_4FGL_J0036.9+1832_daily_bin1686.fits outfile=/scratch/kocevski/508648/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1686.fits ra=9.234 dec=18.5424 rad=12.0 tmin=676339201.0 tmax=676598401.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 2.84
user 2.61
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.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/508648/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1686.fits evtable="EVENTS" outfile="/scratch/kocevski/508648/ft1_filtered_4FGL_J0036.9+1832_daily_bin1686.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.57
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 905

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508648/ft1_filtered_4FGL_J0036.9+1832_daily_bin1686.fits" evtable="EVENTS" scfile=/scratch/kocevski/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.fits sctable="SC_DATA" outfile=/scratch/kocevski/508648/ltcube_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.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/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.fits
.....................!
real 16.20
user 15.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508648/ft1_filtered_4FGL_J0036.9+1832_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.fits sctable="SC_DATA" expcube=/scratch/kocevski/508648/ltcube_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.fits outfile=/scratch/kocevski/508648/expmap_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.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/508648/ltcube_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.fits
.....................!
real 191.70
user 186.32
sys 4.70

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/508648/ft1_filtered_4FGL_J0036.9+1832_daily_bin1686.fits scfile=/scratch/kocevski/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.fits outfile=/scratch/kocevski/508648/cmap_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508648/ft1_filtered_4FGL_J0036.9+1832_daily_bin1686.fits scfile=/scratch/kocevski/508648/ft2_4FGL_J0036.9+1832_daily_bin1686.fits outfile=/scratch/kocevski/508648/cmap_HighResolution_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0369       1.0000         .10000E-03   10000.    
     6 'norm      '    6.4563       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7189       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1223       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .67995       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2595       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=   9954.226     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2346 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0251       -.54005E-07** at limit **
   2  Prefactor     .10000E-03    4.1031       -.55370E-07** at limit **
   3  Prefactor     17.649        9.1221       -.97208E-07   -.73152E-04
   4  Prefactor     .10000E-03    29.039       -.32350E-05** at limit **
   5  Prefactor     5.0367        3.0004        .13954E-05   -.74732E-04
   6  norm          6.4560        6.2836        .12287E-06    .17869E-04
   7  Prefactor     10.856        20.402       -.23691E-05   -.14051E-03
   8  Prefactor     .10000E-03    2.4062       -.62257E-07** at limit **
   9  norm          .10000E-03    1.7533       -.26111E-07** at limit **
  10  Prefactor     4.7185        3.8143        .16207E-05   -.62468E-04
  11  Prefactor     6.5836        7.6625       -.76177E-07   -.85833E-04
  12  Prefactor     .10000E-03    28.062        .26852E-05** at limit **
  13  Prefactor     2.1224        199.29        .75097E-05   -.96299E-05
  14  norm          1.0652        .67395       -.45273E-07   -.11257E-02
  15  Prefactor     17.850        10.225        .45535E-06    .16744E-03
  16  Prefactor     24.748        44.658        .39151E-05    .13425E-03
  17  Prefactor     .10000E-03    4.8436        .61212E-05** at limit **
  18  Prefactor     .10000E-03    1.4830       -.14875E-07** at limit **
  19  Normalizat    .67994        .16226       -.30835E-06   -.16086E-03
  20  Prefactor     1.2596        .11433       -.78682E-06   -.20897E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6492
  Prefactor  = 0.000100002
  Prefactor  = 5.03668
  norm       = 6.45603
  Prefactor  = 10.8557
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.71847
  Prefactor  = 6.58363
  Prefactor  = 0.000100002
  Prefactor  = 2.12244
  norm       = 1.06525
  Prefactor  = 17.8505
  Prefactor  = 24.7481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.679939
  Prefactor  = 1.25958
 **********
 **   18 **HESSE 
 **********

 FCN=   9954.226     FROM HESSE     STATUS=OK           291 CALLS     2637 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0558        .19703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.649        9.1121        .95336E-04   -1.4867    
   4  Prefactor     .10000E-03    29.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0367        3.0193        .62505E-03   -1.5259    
   6  norm          6.4560        6.2834        .15795E-03   -1.5200    
   7  Prefactor     10.856        20.415        .12156E-03   -1.5049    
   8  Prefactor     .10000E-03    2.4111        .15114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7545        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7185        3.8340        .85399E-03   -1.5273    
  11  Prefactor     6.5836        7.6576        .15641E-03   -1.5195    
  12  Prefactor     .10000E-03    28.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1224        185.29        .28308E-03   -1.5417    
  14  norm          1.0652        .64513        .55477E-04   -1.5502    
  15  Prefactor     17.850        10.236        .94778E-04   -1.4863    
  16  Prefactor     24.748        44.763        .80603E-04   -1.4713    
  17  Prefactor     .10000E-03    4.7508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4917        .11865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .67994        .18082        .34067E-03   -1.0469    
  20  Prefactor     1.2596        .12825        .18738E-03   -.84517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73168e-10
Minuit parameter uncertainties:
  1  2.68479e-06
  2  3.74907e-06
  3  9.11277
  4  0.000501726
  5  3.01939
  6  6.28406
  7  20.4281
  8  1.8133e-06
  9  4.68607e-07
  10  3.8342
  11  7.65876
  12  0.000506641
  13  39.789
  14  0.645136
  15  10.2367
  16  44.8233
  17  9.54854e-05
  18  1.40262e-06
  19  0.180979
  20  0.128285
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.086e+01  2.043e+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:  1.260e+00  1.283e-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:  6.799e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/508648/likelihoodResults_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.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) = 9953.94490886
delta logL = 0.280974926996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9953.9437325
delta logL = 0.282151283467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3714       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1863       1.0000          .0000       10.000    
     3 'Normalizat'    .65431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2702       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9953.944     FROM MIGRAD    STATUS=FAILED       100 CALLS      321 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3635        123.40        .79507E-03    .23760E-03
   2  Index         3.1890        6.5575        .87487E-02    .70725E-03
   3  Normalizat    .65420        .18453        .34677E-03    .20608E-03
   4  Prefactor     1.2701        .13470        .18667E-03    .45411E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9953.944     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      417 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3635        123.40        .26204E-03   -1.5203    
   2  Index         3.1890        6.5575        .11226E-02   -.37062    
   3  Normalizat    .65420        .18453        .27537E-03   -1.0573    
   4  Prefactor     1.2701        .13470        .19237E-03   -.84200    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9953.944     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      448 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3635        15.283        .15901E-03   -.47044E-04
   2  Index         3.1890        1.2859        .17497E-02    .69132E-05
   3  Normalizat    .65420        .18007        .13871E-04    .96385E-04
   4  Prefactor     1.2701        .12914        .37335E-04    .21474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.36346
  Index      = 3.18904
  Normalizat = 0.654204
  Prefactor  = 1.27011
 **********
 **   18 **HESSE 
 **********

 FCN=   9953.944     FROM HESSE     STATUS=OK            23 CALLS      471 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3635        13.974        .63605E-05   -1.5203    
   2  Index         3.1890        1.1776        .69990E-04   -.37062    
   3  Normalizat    .65420        .18007        .27742E-05   -1.0573    
   4  Prefactor     1.2701        .12909        .74669E-05   -.84200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5623e-11
Minuit parameter uncertainties:
  1  13.9812
  2  1.19047
  3  0.180231
  4  0.129122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508648': 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) = 9953.9437231
delta logL = 0.282160688686

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  6.363e+00  1.398e+01  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  3.189e+00  1.190e+00  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.270e+00  1.291e-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:  6.542e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/508648/cmap_HighResolution_676339201_676598401_4FGL_J0036.9+1832_daily_bin1686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2022-06-11 00:21:00.378071', job_id='508648', GAL2='1.27', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1654932060.38', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.82e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1686' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jun 11 00:21:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 508648: <4FGL_J0036.9+1832_daily_bin1686> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jun 11 00:04:45 2022
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:05:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:05:05 2022
Terminated at Sat Jun 11 00:21:01 2022
Results reported at Sat Jun 11 00:21:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1686 9.234 18.5424 676339201 676598401 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 :                                   790.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            976 sec.

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

