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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1680
RA = 9.234, Dec = 18.5424
tmin = 674784001, tmax = 675043201
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='580260', job_status='RUN', time_executed='2022-05-24 00:09:19.602883', time_epoch_executed='1653376159.6' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580260/ft1_4FGL_J0036.9+1832_daily_bin1680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580260/ft2_4FGL_J0036.9+1832_daily_bin1680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580260/ft1_4FGL_J0036.9+1832_daily_bin1680.fits outfile=/scratch/kocevski/580260/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1680.fits ra=9.234 dec=18.5424 rad=12.0 tmin=674784001.0 tmax=675043201.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.59
user 3.31
sys 0.23

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

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

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580260/ft1_filtered_4FGL_J0036.9+1832_daily_bin1680.fits" evtable="EVENTS" scfile=/scratch/kocevski/580260/ft2_4FGL_J0036.9+1832_daily_bin1680.fits sctable="SC_DATA" outfile=/scratch/kocevski/580260/ltcube_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.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/580260/ft2_4FGL_J0036.9+1832_daily_bin1680.fits
.....................!
real 14.46
user 14.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580260/ft1_filtered_4FGL_J0036.9+1832_daily_bin1680.fits evtable="EVENTS" scfile=/scratch/kocevski/580260/ft2_4FGL_J0036.9+1832_daily_bin1680.fits sctable="SC_DATA" expcube=/scratch/kocevski/580260/ltcube_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.fits outfile=/scratch/kocevski/580260/expmap_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.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/580260/ltcube_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.fits
.....................!
real 191.44
user 186.03
sys 4.97

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/580260/ft1_filtered_4FGL_J0036.9+1832_daily_bin1680.fits scfile=/scratch/kocevski/580260/ft2_4FGL_J0036.9+1832_daily_bin1680.fits outfile=/scratch/kocevski/580260/cmap_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580260/ft1_filtered_4FGL_J0036.9+1832_daily_bin1680.fits scfile=/scratch/kocevski/580260/ft2_4FGL_J0036.9+1832_daily_bin1680.fits outfile=/scratch/kocevski/580260/cmap_HighResolution_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6231       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 '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24196E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8969       1.0000         .10000E-03   10000.    
    14 'norm      '    .29973       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.433       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7714       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1085       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0172       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=   7597.712     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2054 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0950        3.0973        .19111E-05    .97679E-04
   2  Prefactor     10.896        10.185       -.29428E-06   -.12102E-03
   3  Prefactor     .10000E-03    3.9411        .44177E-07** at limit **
   4  Prefactor     .10000E-03    63.213        .58377E-06** at limit **
   5  Prefactor     7.6234        3.5449        .32620E-06   -.64161E-04
   6  norm          .10000E-03    6.5947        .37332E-07** at limit **
   7  Prefactor     .10000E-03    8.7557        .76884E-07** at limit **
   8  Prefactor     .10000E-03    6.2318        .10610E-06** at limit **
   9  norm          .10000E-03    8.0795        .13309E-06** at limit **
  10  Prefactor     8.0125        8.4941       -.39561E-06   -.67850E-05
  11  Prefactor     .10000E-03    6.4563        .18079E-06** at limit **
  12  Prefactor     .10000E-03    718.98       -.31387E-04** at limit **
  13  Prefactor     4.8999        62.914        .84798E-06   -.10482E-04
  14  norm          .30019        .43511        .19137E-06    .96532E-03
  15  Prefactor     19.428        15.353       -.27828E-05    .42551E-04
  16  Prefactor     .10000E-03    38.358        .14267E-06** at limit **
  17  Prefactor     .10000E-03    5.7486        .15328E-06** at limit **
  18  Prefactor     4.7712        6.4291        .35230E-06   -.50923E-04
  19  Normalizat    1.1085        .18570       -.21954E-05   -.12998E-03
  20  Prefactor     1.0172        .12462       -.78509E-06   -.24001E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09501
  Prefactor  = 10.8965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.62337
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.01252
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.89993
  norm       = 0.30019
  Prefactor  = 19.4282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77124
  Normalizat = 1.10852
  Prefactor  = 1.01721
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.712     FROM HESSE     STATUS=OK           297 CALLS     2351 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0950        3.0968        .23580E-03   -1.5499    
   2  Prefactor     10.896        10.093        .12138E-03   -1.5048    
   3  Prefactor     .10000E-03    3.9567        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6234        3.5478        .53790E-03   -1.5156    
   6  norm          .10000E-03    6.6802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.4287        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0125        8.4792        .14162E-03   -1.5142    
  11  Prefactor     .10000E-03    6.4985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    716.16        .40100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8999        59.316        .18176E-03   -1.5265    
  14  norm          .30019        .38804        .63860E-03   -1.5598    
  15  Prefactor     19.428        15.185        .90856E-04   -1.4826    
  16  Prefactor     .10000E-03    38.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9729        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7712        6.4152        .18419E-03   -1.5271    
  19  Normalizat    1.1085        .21629        .28934E-03   -.89479    
  20  Prefactor     1.0172        .14604        .20573E-03   -.92158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70601e-10
Minuit parameter uncertainties:
  1  3.09724
  2  10.0946
  3  2.76595e-06
  4  0.000266958
  5  3.5479
  6  9.64225e-06
  7  1.63474e-05
  8  3.22175e-05
  9  2.25073e-05
  10  8.48043
  11  2.37459e-05
  12  0.00298393
  13  34.1384
  14  0.388043
  15  15.1878
  16  1.19953e-05
  17  1.24913e-05
  18  6.41617
  19  0.216464
  20  0.146099
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  1.635e-05  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.017e+00  1.461e-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.109e+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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580260/likelihoodResults_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.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) = 7597.71227973
delta logL = -0.000542935924386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7597.7117369
delta logL = -1.07675987238e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3667       1.0000          .0000       10.000    
     3 'Normalizat'    1.1086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0172       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=   7597.712     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10259E-03    11.758        .18142E-01** at limit **
   2  Index         2.2732        5.6166        .50000        .14303E-04
   3  Normalizat    1.1085        .53005E-02    .28934E-03    .27465E-04
   4  Prefactor     1.0172        .36486E-02    .20573E-03    .32770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102588
  Index      = 2.27322
  Normalizat = 1.10852
  Prefactor  = 1.01721
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.712     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10259E-03    100.77        .26141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2732        5.1627        .50000       -.57681    
   3  Normalizat    1.1085        .15642E-01    .11574E-04   -.89479    
   4  Prefactor     1.0172        .10767E-01    .82291E-05   -.92158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.22169e-09
Minuit parameter uncertainties:
  1  0.0323506
  2  481.991
  3  0.0156421
  4  0.0107674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580260': 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) = 7597.7117365
delta logL = 2.94446181215e-07

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.026e-04  3.235e-02  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.273e+00  4.820e+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.017e+00  1.077e-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.109e+00  1.564e-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/580260/cmap_HighResolution_674784001_675043201_4FGL_J0036.9+1832_daily_bin1680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2022-05-24 00:20:00.763015', job_id='580260', GAL2='1.02', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1653376800.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1680' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May 24 00:20:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 580260: <4FGL_J0036.9+1832_daily_bin1680> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1680> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 00:04:57 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 00:07:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 00:07:59 2022
Terminated at Tue May 24 00:20:01 2022
Results reported at Tue May 24 00:20:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1680 9.234 18.5424 674784001 675043201 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            904 sec.

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

