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


Performing analysis on: 4FGL_J0036.9+1832_daily_bin1668
RA = 9.234, Dec = 18.5424
tmin = 671673601, tmax = 671932801
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='553072', job_status='RUN', time_executed='2022-04-18 00:09:03.534231', time_epoch_executed='1650265743.53' WHERE source_name='4FGL J0036.9+1832' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553072/ft1_4FGL_J0036.9+1832_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553072/ft2_4FGL_J0036.9+1832_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553072/ft1_4FGL_J0036.9+1832_daily_bin1668.fits outfile=/scratch/kocevski/553072/ft1_filteredMKT_4FGL_J0036.9+1832_daily_bin1668.fits ra=9.234 dec=18.5424 rad=12.0 tmin=671673601.0 tmax=671932801.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.61
user 3.33
sys 0.21

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

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

Number of photons that the gtmktime cut: 656

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553072/ft1_filtered_4FGL_J0036.9+1832_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/553072/ft2_4FGL_J0036.9+1832_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/553072/ltcube_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.fits outfile=/scratch/kocevski/553072/expmap_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.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/553072/ltcube_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.fits
.....................!
real 194.89
user 187.34
sys 4.74

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/553072/ft1_filtered_4FGL_J0036.9+1832_daily_bin1668.fits scfile=/scratch/kocevski/553072/ft2_4FGL_J0036.9+1832_daily_bin1668.fits outfile=/scratch/kocevski/553072/cmap_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553072/ft1_filtered_4FGL_J0036.9+1832_daily_bin1668.fits scfile=/scratch/kocevski/553072/ft2_4FGL_J0036.9+1832_daily_bin1668.fits outfile=/scratch/kocevski/553072/cmap_HighResolution_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40480E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0350       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2195       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11599       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8627       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5580       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.075       1.0000         .10000E-03   10000.    
    14 'norm      '    .63786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99638       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1480       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=   7473.732     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1475 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10553E-03    5.1006       -.13972E-04** at limit **
   2  Prefactor     5.0347        5.0381        .42445E-05    .15027E-02
   3  Prefactor     2.2198        1.2381        .13239E-05    .87232E-03
   4  Prefactor     .10076E-03    333.09        .43959E-04** at limit **
   5  Prefactor     2.8625        2.3601       -.17109E-05   -.86362E-04
   6  norm          .10000E-03    6.0624        .85111E-05** at limit **
   7  Prefactor     .10000E-03    8.0009        .60835E-05** at limit **
   8  Prefactor     .10010E-03    21.655       -.86596E-05** at limit **
   9  norm          .10000E-03    13.709       -.13592E-04** at limit **
  10  Prefactor     4.5602        6.7455       -.23875E-04   -.37739E-02
  11  Prefactor     .10000E-03    7.4282        .17571E-05** at limit **
  12  Prefactor     .10133E-03    114.02        .95372E-04** at limit **
  13  Prefactor     9.9741        5.5061        .27164E-05   -.94047E-04
  14  norm          .63920        .58585       -.13751E-05    .21478E-03
  15  Prefactor     26.460        1.0142        .13526E-06   -.37565E-04
  16  Prefactor     .10011E-03    66.786       -.76914E-04** at limit **
  17  Prefactor     7.5020        1.7256        .16910E-05    .62662E-02
  18  Prefactor     .10000E-03    3.3658       -.86866E-05** at limit **
  19  Normalizat    .99634        .22344       -.97624E-06   -.83475E-04
  20  Prefactor     1.1480        .15444        .25948E-05   -.17403E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010553
  Prefactor  = 5.03475
  Prefactor  = 2.21979
  Prefactor  = 0.000100765
  Prefactor  = 2.86255
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100103
  norm       = 0.0001
  Prefactor  = 4.5602
  Prefactor  = 0.0001
  Prefactor  = 0.000101328
  Prefactor  = 9.9741
  norm       = 0.6392
  Prefactor  = 26.4603
  Prefactor  = 0.000100106
  Prefactor  = 7.50197
  Prefactor  = 0.0001
  Normalizat = 0.996338
  Prefactor  = 1.14797
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.732     FROM HESSE     STATUS=OK           345 CALLS     1820 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10553E-03    1.1795        .61782E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0347        5.2524        .44801E-02   -1.5259    
   3  Prefactor     2.2198        6.8039        .69008E-02   -1.5410    
   4  Prefactor     .10076E-03    23.224        .14953       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8625        2.3656        .60066E-02   -1.5370    
   6  norm          .10000E-03    6.0353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    21.795        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.448        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5602        7.1819        .47139E-02   -1.5281    
  11  Prefactor     .10000E-03    7.3670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10133E-03    117.66        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9741        37.498        .31561E-02   -1.5076    
  14  norm          .63920        .64918        .11821E-01   -1.5548    
  15  Prefactor     26.460        17.554        .19468E-02   -1.4679    
  16  Prefactor     .10011E-03    67.017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5020        5.5446        .36610E-02   -1.5160    
  18  Prefactor     .10000E-03    3.3324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99634        .19635        .70537E-01   -.93153    
  20  Prefactor     1.1480        .13336        .35995E-01   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68686e-08
Minuit parameter uncertainties:
  1  0.00510771
  2  5.25286
  3  6.80624
  4  0.00843128
  5  2.36571
  6  1.33504e-05
  7  6.97682e-08
  8  0.0030026
  9  0.000110215
  10  7.18329
  11  3.09729e-05
  12  0.0250457
  13  37.5871
  14  0.649186
  15  17.5569
  16  0.00532772
  17  5.54502
  18  1.16757e-05
  19  0.196496
  20  0.133404
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  6.977e-08  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.148e+00  1.334e-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:  9.963e-01  1.965e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/553072/likelihoodResults_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.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) = 7473.7321392
delta logL = -0.000594362621086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7473.73154505
delta logL = -2.05041033041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3679       1.0000          .0000       10.000    
     3 'Normalizat'    .99641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1479       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=   7473.732     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10202E-03    129.57        .18142E-02** at limit **
   2  Index         2.2831        5.4160        .50000        .13853E-04
   3  Normalizat    .99634        .19487E-01    .31206E-03    .17779E-04
   4  Prefactor     1.1480        .13471E-01    .20135E-03    .23488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102021
  Index      = 2.28312
  Normalizat = 0.996338
  Prefactor  = 1.14797
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.732     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10202E-03    517.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2831        7.8827        .50000       -.57445    
   3  Normalizat    .99634        .41504E-01    .12482E-04   -.93153    
   4  Prefactor     1.1480        .28690E-01    .40270E-04   -.87948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12855e-08
Minuit parameter uncertainties:
  1  0.0652352
  2  1128.89
  3  0.0415057
  4  0.0286907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553072': 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) = 7473.73154457
delta logL = 2.68322764896e-07

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.020e-04  6.524e-02  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.283e+00  1.129e+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:  1.148e+00  2.869e-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:  9.963e-01  4.151e-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/553072/cmap_HighResolution_671673601_671932801_4FGL_J0036.9+1832_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2022-04-18 00:19:05.899320', job_id='553072', GAL2='1.15', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1650266345.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1668' AND source_name='4FGL J0036.9+1832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 00:19:05 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 553062: <4FGL_J0036.9+1832_daily_bin1668> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:05:37 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 00:07:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 00:07:58 2022
Terminated at Mon Apr 18 00:18:49 2022
Results reported at Mon Apr 18 00:18:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1668 9.234 18.5424 671673601 671932801 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 :                                   600.43 sec.
    Max Memory :                                 617 MB
    Average Memory :                             281.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            792 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 553072: <4FGL_J0036.9+1832_daily_bin1668> in cluster <slac> Done

Job <4FGL_J0036.9+1832_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:05:38 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 00:08:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 00:08:13 2022
Terminated at Mon Apr 18 00:19:06 2022
Results reported at Mon Apr 18 00:19:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_daily_bin1668 9.234 18.5424 671673601 671932801 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 :                                   599.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            808 sec.

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

