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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1702
RA = 9.234, Dec = 18.5424
tmin = 680486401, tmax = 680745601
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='232906', job_status='RUN', time_executed='2022-07-29 00:08:06.387811', time_epoch_executed='1659078486.39' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232906/ft1_4FGL_J0036.9+1832_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232906/ft2_4FGL_J0036.9+1832_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232906/ft1_4FGL_J0036.9+1832_daily_bin1702.fits outfile=/scratch/kocevski/232906/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1702.fits ra=9.234 dec=18.5424 rad=12.0 tmin=680486401.0 tmax=680745601.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.02
user 2.76
sys 0.21

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

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

Number of photons that the gtmktime cut: 749

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232906/ft1_filtered_4FGL_J0036.9+1832_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/232906/ft2_4FGL_J0036.9+1832_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/232906/ltcube_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.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/232906/ft2_4FGL_J0036.9+1832_daily_bin1702.fits
.....................!
real 16.31
user 15.81
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232906/ft1_filtered_4FGL_J0036.9+1832_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/232906/ft2_4FGL_J0036.9+1832_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/232906/ltcube_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.fits outfile=/scratch/kocevski/232906/expmap_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.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/232906/ltcube_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.fits
.....................!
real 193.89
user 186.50
sys 6.26

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/232906/ft1_filtered_4FGL_J0036.9+1832_daily_bin1702.fits scfile=/scratch/kocevski/232906/ft2_4FGL_J0036.9+1832_daily_bin1702.fits outfile=/scratch/kocevski/232906/cmap_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.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.68
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.614       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.2302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.238       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .53146E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.824       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89906       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=   8364.084     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2058 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .99833        .80582E-08** at limit **
   2  Prefactor     6.4986        6.7535        .26780E-06    .36418E-04
   3  Prefactor     .10000E-03    2.7265       -.44109E-07** at limit **
   4  Prefactor     18.614        25.381       -.41185E-06   -.29063E-04
   5  Prefactor     .10000E-03    2.0343        .25551E-06** at limit **
   6  norm          9.2301        8.3319        .20734E-06   -.33919E-03
   7  Prefactor     .10000E-03    12.608       -.35622E-05** at limit **
   8  Prefactor     13.238        10.843       -.12843E-07   -.99782E-05
   9  norm          .10000E-03    3.4749       -.77701E-07** at limit **
  10  Prefactor     5.2551        4.0202       -.53588E-07   -.26691E-04
  11  Prefactor     .10000E-03    6.6028       -.55312E-07** at limit **
  12  Prefactor     .10000E-03    24.707       -.83707E-06** at limit **
  13  Prefactor     .10000E-03    13.343        .37190E-05** at limit **
  14  norm          .53152E-01    .23592        .11331E-06   -.14769E-02
  15  Prefactor     6.1225        6.7954        .89259E-06   -.84437E-03
  16  Prefactor     40.823        35.452       -.36372E-06   -.27836E-04
  17  Prefactor     .10000E-03    2.2654       -.10642E-06** at limit **
  18  Prefactor     .10000E-03    1.2932        .25832E-06** at limit **
  19  Normalizat    1.2104        .16664       -.26487E-06   -.29261E-04
  20  Prefactor     .89905        .11439        .25348E-07   -.41421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.49863
  Prefactor  = 0.0001
  Prefactor  = 18.6137
  Prefactor  = 0.0001
  norm       = 9.23013
  Prefactor  = 0.000100001
  Prefactor  = 13.2377
  norm       = 0.0001
  Prefactor  = 5.25506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0531525
  Prefactor  = 6.12247
  Prefactor  = 40.8234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21042
  Prefactor  = 0.899052
 **********
 **   18 **HESSE 
 **********

 FCN=   8364.084     FROM HESSE     STATUS=OK           297 CALLS     2355 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.7243        .17470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4986        6.6982        .15744E-03   -1.5198    
   3  Prefactor     .10000E-03    2.7457        .14746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.614        25.422        .92833E-04   -1.4845    
   5  Prefactor     .10000E-03    2.1153        .25463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.2301        8.5336        .65958E-03   -1.5100    
   7  Prefactor     .10000E-03    13.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.238        10.838        .11009E-03   -1.4980    
   9  norm          .10000E-03    3.5366        .16649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2551        4.0197        .15514E-03   -1.5249    
  11  Prefactor     .10000E-03    6.7755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .53152E-01    .50967        .85992E-03   -1.5662    
  15  Prefactor     6.1225        9.3961        .81123E-03   -1.5213    
  16  Prefactor     40.823        34.379        .62737E-04   -1.4429    
  17  Prefactor     .10000E-03    4.6658        .25866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.2964        .10165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2104        .19801        .26432E-03   -.86282    
  20  Prefactor     .89905        .13616        .20755E-03   -.96174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52618e-09
Minuit parameter uncertainties:
  1  2.02894e-05
  2  6.69899
  3  2.16771e-06
  4  25.4369
  5  7.20356e-06
  6  8.53475
  7  0.000255718
  8  10.8396
  9  2.45427e-06
  10  4.01986
  11  1.36805e-06
  12  8.30395e-05
  13  0.000279985
  14  0.328878
  15  9.39834
  16  34.3961
  17  3.57211e-05
  18  5.98229e-06
  19  0.198134
  20  0.136215
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  2.557e-04  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.991e-01  1.362e-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.210e+00  1.981e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232906/likelihoodResults_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.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) = 8364.08428536
delta logL = -0.000365670533938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8364.08391974
delta logL = -5.62849891139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    1.2103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89910       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=   8364.084     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    230.77        .18142E-02** at limit **
   2  Index         2.3129        8.7185        .50000        .61580E-05
   3  Normalizat    1.2104        .18142E-01    .26432E-03    .98927E-05
   4  Prefactor     .89905        .12550E-01    .20755E-03    .11831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100928
  Index      = 2.31293
  Normalizat = 1.21042
  Prefactor  = 0.899052
 **********
 **   18 **HESSE 
 **********

 FCN=   8364.084     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    938.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3129        8.5258        .50000       -.56737    
   3  Normalizat    1.2104        .39742E-01    .10573E-04   -.86282    
   4  Prefactor     .89905        .27490E-01    .83020E-05   -.96174    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25515e-08
Minuit parameter uncertainties:
  1  0.0599914
  2  1498.97
  3  0.0397427
  4  0.0274903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232906': 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) = 8364.08391959
delta logL = 9.30285750655e-08

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.009e-04  5.999e-02  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.313e+00  1.499e+03  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.991e-01  2.749e-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.210e+00  3.974e-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/232906/cmap_HighResolution_680486401_680745601_4FGL_J0036.9+1832_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2022-07-29 00:19:32.263531', job_id='232906', GAL2='0.90', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1659079172.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1702' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 00:19:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 232906: <4FGL_J0036.9+1832_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:07 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:06:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:06:24 2022
Terminated at Fri Jul 29 00:19:33 2022
Results reported at Fri Jul 29 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_bin1702 9.234 18.5424 680486401 680745601 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            866 sec.

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

