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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1670
RA = 9.234, Dec = 18.5424
tmin = 672192001, tmax = 672451201
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='862079', job_status='RUN', time_executed='2022-04-24 00:12:34.242175', time_epoch_executed='1650784354.24' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862079/ft1_4FGL_J0036.9+1832_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862079/ft1_4FGL_J0036.9+1832_daily_bin1670.fits outfile=/scratch/kocevski/862079/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1670.fits ra=9.234 dec=18.5424 rad=12.0 tmin=672192001.0 tmax=672451201.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 5.22
user 4.88
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.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/862079/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/862079/ft1_filtered_4FGL_J0036.9+1832_daily_bin1670.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862079/ft1_filtered_4FGL_J0036.9+1832_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/862079/ltcube_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.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/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.fits
.....................!
real 12.79
user 12.28
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862079/ft1_filtered_4FGL_J0036.9+1832_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/862079/ltcube_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.fits outfile=/scratch/kocevski/862079/expmap_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.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/862079/ltcube_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.fits
.....................!
real 190.37
user 185.14
sys 4.79

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/862079/ft1_filtered_4FGL_J0036.9+1832_daily_bin1670.fits scfile=/scratch/kocevski/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.fits outfile=/scratch/kocevski/862079/cmap_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862079/ft1_filtered_4FGL_J0036.9+1832_daily_bin1670.fits scfile=/scratch/kocevski/862079/ft2_4FGL_J0036.9+1832_daily_bin1670.fits outfile=/scratch/kocevski/862079/cmap_HighResolution_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8385       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8445       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27680E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9863       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    133.03       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3027       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4934       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .30964       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4564       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=   6258.455     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2355 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3419        1.5941       -.12077E-06   -.45791E-04
   2  Prefactor     2.8430        7.6223       -.47470E-06    .24034E-03
   3  Prefactor     .10000E-03    2.4381       -.35219E-07** at limit **
   4  Prefactor     7.9319        74.717       -.28914E-05   -.30731E-04
   5  Prefactor     5.8444        3.6069       -.35504E-06   -.60076E-04
   6  norm          .10000E-03    3.2375       -.15114E-07** at limit **
   7  Prefactor     .10508E-03    47.139       -.15299E-04** at limit **
   8  Prefactor     .10000E-03    9.4946        .21781E-06** at limit **
   9  norm          .10000E-03    2.6848       -.48826E-08** at limit **
  10  Prefactor     1.9846        7.1391       -.17207E-05    .35795E-03
  11  Prefactor     1.6744        32.126        .14824E-05    .18448E-03
  12  Prefactor     133.02        75.424       -.14057E-05   -.18497E-04
  13  Prefactor     1.3064        95.343        .48544E-05    .50572E-04
  14  norm          2.4936        .87970       -.10359E-06   -.23960E-02
  15  Prefactor     .50957        44.773        .19505E-04    .43356E-04
  16  Prefactor     .10000E-03    15.738       -.17893E-06** at limit **
  17  Prefactor     .10000E-03    1.9931       -.52052E-07** at limit **
  18  Prefactor     .10000E-03    2.0131       -.46779E-07** at limit **
  19  Normalizat    .30941        .23638        .10710E-04    .15705E-03
  20  Prefactor     1.4564        .16733       -.30112E-05   -.15010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34186
  Prefactor  = 2.84303
  Prefactor  = 0.0001
  Prefactor  = 7.93189
  Prefactor  = 5.84437
  norm       = 0.0001
  Prefactor  = 0.00010508
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.98465
  Prefactor  = 1.67441
  Prefactor  = 133.025
  Prefactor  = 1.30643
  norm       = 2.4936
  Prefactor  = 0.509573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.309414
  Prefactor  = 1.45645
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.455     FROM HESSE     STATUS=OK           303 CALLS     2658 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3419        1.5820        .10528E-03   -1.5476    
   2  Prefactor     2.8430        7.6027        .24136E-03   -1.5371    
   3  Prefactor     .10000E-03    2.4427        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.9319        75.002        .14242E-03   -1.5145    
   5  Prefactor     5.8444        3.6027        .11193E-03   -1.5224    
   6  norm          .10000E-03    3.2393        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10508E-03    29.242        .10799       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6859        .12659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9846        7.0877        .29402E-03   -1.5426    
  11  Prefactor     1.6744        33.037        .32751E-03   -1.5449    
  12  Prefactor     133.02        74.838        .34914E-04   -1.3396    
  13  Prefactor     1.3064        98.370        .38697E-03   -1.5479    
  14  norm          2.4936        .87771        .41199E-04   -1.5392    
  15  Prefactor     .50957        46.545        .40952E-02   -1.5565    
  16  Prefactor     .10000E-03    15.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0073        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0178        .10962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .30941        .23543        .49686E-03   -1.2228    
  20  Prefactor     1.4564        .16553        .17547E-03   -.78767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49179e-09
Minuit parameter uncertainties:
  1  1.58205
  2  7.60531
  3  3.83985e-06
  4  48.8617
  5  3.60286
  6  3.09336e-06
  7  0.0243875
  8  0.00012135
  9  2.03294e-05
  10  7.09067
  11  14.8842
  12  74.8912
  13  22.7107
  14  0.877719
  15  9.74711
  16  5.23149e-05
  17  1.38593e-05
  18  1.61466e-06
  19  0.236191
  20  0.16559
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.051e-04  2.439e-02  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.456e+00  1.656e-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:  3.094e-01  2.362e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862079/likelihoodResults_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.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) = 6258.45463732
delta logL = -8.78502123669e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6258.45463732
delta logL = -8.78274204297e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3853       1.0000          .0000       10.000    
     3 'Normalizat'    .30940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6258.446     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      325 TOTAL
                     EDM=   .75E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49467        36.537       -.84514E-05   -.22305E-05
   2  Index         3.8053        6.5385        .24748E-04   -.19583E-05
   3  Normalizat    .29882        .23779        .10623E-04    .15179E-04
   4  Prefactor     1.4605        .16700       -.28833E-05    .46273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.494671
  Index      = 3.80534
  Normalizat = 0.298815
  Prefactor  = 1.46048
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.446     FROM HESSE     STATUS=NOT POSDEF    49 CALLS      374 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49467        5.6461        .58779E-01   -1.5567    
   2  Index         3.8053        .63158        .50000       -.24127    
   3  Normalizat    .29882        .87321E-02    .11418       -1.2291    
   4  Prefactor     1.4605        .63881E-02    .30325E-01   -.78653    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68885e-10
Minuit parameter uncertainties:
  1  3.34249
  2  0.63338
  3  0.00873215
  4  0.00638812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862079': 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) = 6258.44582591
delta logL = 0.00880262422288

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  4.947e-01  3.342e+00  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  3.805e+00  6.334e-01  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.460e+00  6.388e-03  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:  2.988e-01  8.732e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/862079/cmap_HighResolution_672192001_672451201_4FGL_J0036.9+1832_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2022-04-24 00:22:39.709776', job_id='862079', GAL2='1.46', fit_tolerance='1e-08', EG2='0.30', EG='0.31', time_epoch_completed='1650784959.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='8.80e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1670' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 00:22:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 862179: <4FGL_J0036.9+1832_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1670> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:19 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:11:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:11:13 2022
Terminated at Sun Apr 24 00:22:01 2022
Results reported at Sun Apr 24 00:22:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1670 9.234 18.5424 672192001 672451201 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 :                                   617.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            822 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 862079: <4FGL_J0036.9+1832_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1670> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:15 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:10:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:10:45 2022
Terminated at Sun Apr 24 00:22:40 2022
Results reported at Sun Apr 24 00:22:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1670 9.234 18.5424 672192001 672451201 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 :                                   603.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            865 sec.

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

