aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 4 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 = 17229
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0036.9+1832_weekly_bin545
RA = 9.234, Dec = 18.5424
tmin = 568598401, tmax = 569203201
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='904826', job_status='RUN', time_executed='2021-07-03 06:35:33.410377', time_epoch_executed='1625319333.41' WHERE source_name='4FGL J0036.9+1832' and cadence='weekly' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904826

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904826/ft1_4FGL_J0036.9+1832_weekly_bin545.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904826/ft1_4FGL_J0036.9+1832_weekly_bin545.fits outfile=/scratch/kocevski/904826/ft1_filteredMKT_4FGL_J0036.9+1832_weekly_bin545.fits ra=9.234 dec=18.5424 rad=12.0 tmin=568598401.0 tmax=569203201.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 6.11
user 5.81
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.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/904826/ft1_filteredMKT_4FGL_J0036.9+1832_weekly_bin545.fits evtable="EVENTS" outfile="/scratch/kocevski/904826/ft1_filtered_4FGL_J0036.9+1832_weekly_bin545.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904826/ft1_filtered_4FGL_J0036.9+1832_weekly_bin545.fits" evtable="EVENTS" scfile=/scratch/kocevski/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.fits sctable="SC_DATA" outfile=/scratch/kocevski/904826/ltcube_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.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/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.fits
.....................!
real 21.73
user 21.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904826/ft1_filtered_4FGL_J0036.9+1832_weekly_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/904826/ltcube_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.fits outfile=/scratch/kocevski/904826/expmap_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.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/904826/ltcube_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.fits
.....................!
real 154.90
user 147.69
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/904826/ft1_filtered_4FGL_J0036.9+1832_weekly_bin545.fits scfile=/scratch/kocevski/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.fits outfile=/scratch/kocevski/904826/cmap_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.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.49
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904826/ft1_filtered_4FGL_J0036.9+1832_weekly_bin545.fits scfile=/scratch/kocevski/904826/ft2_4FGL_J0036.9+1832_weekly_bin545.fits outfile=/scratch/kocevski/904826/cmap_HighResolution_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.004       1.0000         .10000E-03   10000.    
     6 'norm      '    9.1454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27747E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7396       1.0000         .10000E-03   10000.    
     9 'norm      '    6.2214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .66118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25841E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1289       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99565       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=   15786.71     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1790 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0338        1.4615       -.12959E-07   -.26856E-03
   2  Prefactor     6.3865        5.2451        .31883E-07   -.26864E-03
   3  Prefactor     .10000E-03    4.9723        .45448E-07** at limit **
   4  Prefactor     .10000E-03    20.083        .93155E-05** at limit **
   5  Prefactor     12.004        3.0046        .42729E-07    .19055E-03
   6  norm          9.1455        5.1715       -.15098E-07    .19553E-03
   7  Prefactor     .10000E-03    38.192       -.15271E-04** at limit **
   8  Prefactor     1.7341        2.0547        .33044E-06   -.15862E-02
   9  norm          6.2209        4.2083       -.11991E-05    .29690E-04
  10  Prefactor     .66137        2.5379       -.10688E-06   -.31241E-03
  11  Prefactor     .10000E-03    6.5635       -.51476E-06** at limit **
  12  Prefactor     .10000E-03    15.331       -.12398E-04** at limit **
  13  Prefactor     .10000E-03    19.170        .58623E-05** at limit **
  14  norm          1.3146        .39890       -.49984E-07   -.65375E-03
  15  Prefactor     11.298        7.4298       -.32005E-07    .65647E-04
  16  Prefactor     .10000E-03    10.386        .29964E-05** at limit **
  17  Prefactor     .10000E-03    1.2284        .48128E-07** at limit **
  18  Prefactor     .10000E-03    1.7663       -.30929E-07** at limit **
  19  Normalizat    1.1289        .12464        .35273E-06    .18509E-03
  20  Prefactor     .99562        .86576E-01   -.22240E-08    .27522E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03384
  Prefactor  = 6.38645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.004
  norm       = 9.14546
  Prefactor  = 0.000100001
  Prefactor  = 1.73413
  norm       = 6.22089
  Prefactor  = 0.661374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31464
  Prefactor  = 11.2978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12893
  Prefactor  = 0.995618
 **********
 **   18 **HESSE 
 **********

 FCN=   15786.71     FROM HESSE     STATUS=OK           299 CALLS     2089 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0338        1.2321        .16735E-02   -1.5505    
   2  Prefactor     6.3865        5.1836        .79410E-03   -1.5202    
   3  Prefactor     .10000E-03    5.0549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.004        3.0145        .51861E-03   -1.5015    
   6  norm          9.1455        5.1831        .66265E-03   -1.5103    
   7  Prefactor     .10000E-03    38.994        .39823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7341        6.1097        .15906E-02   -1.5445    
   9  norm          6.2209        4.2082        .16094E-03   -1.5209    
  10  Prefactor     .66137        2.5259        .37759E-03   -1.5545    
  11  Prefactor     .10000E-03    6.7881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3146        .39840        .42044E-04   -1.5479    
  15  Prefactor     11.298        7.4308        .11915E-03   -1.5036    
  16  Prefactor     .10000E-03    10.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5670        .26965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9474        .32392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1289        .14645        .27805E-03   -.88828    
  20  Prefactor     .99562        .10250        .20763E-03   -.92876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2864e-08
Minuit parameter uncertainties:
  1  1.23217
  2  5.18392
  3  4.79952e-06
  4  1.26899e-05
  5  3.01453
  6  5.18338
  7  0.000376931
  8  6.11187
  9  4.20844
  10  2.52634
  11  1.71465e-05
  12  3.34221e-05
  13  8.17233e-06
  14  0.3984
  15  7.43138
  16  3.47284e-06
  17  1.95746e-05
  18  1.78309e-05
  19  0.146507
  20  0.102522
Done.

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

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  3.769e-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:  9.956e-01  1.025e-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.129e+00  1.465e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904826/likelihoodResults_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.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) = 15786.7138167
delta logL = -0.000121427876365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15786.7138167
delta logL = -0.00012142459309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3853       1.0000          .0000       10.000    
     3 'Normalizat'    1.1289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99562       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   15786.71     FROM MIGRAD    STATUS=FAILED       100 CALLS      249 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10789E-03    7283.1        .36285E-02** at limit **
   2  Index         2.1841        8.7904        .50000        .39711E-05
   3  Normalizat    1.1289        .36283E-01    .27805E-03   -.56834E-04
   4  Prefactor     .99562        .25734E-01    .20763E-03    .68334E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15786.71     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      403 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10789E-03    7283.1        .10909E-02** at limit **
   2  Index         2.1841        8.7904        .32239E-04    .39711E-05
   3  Normalizat    1.1289        .36283E-01    .24026E-06   -.56834E-04
   4  Prefactor     .99562        .25734E-01    .13603E-06    .68334E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15786.71     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      444 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    645.37        .72570E-02** at limit **
   2  Index         2.1039        5.8715        .50000       -.34879E-07
   3  Normalizat    1.1289        .10987E-01    .11122E-04    .19217E-04
   4  Prefactor     .99562        .78027E-02    .83052E-05    .16317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10389
  Normalizat = 1.12893
  Prefactor  = 0.995618
 **********
 **   18 **HESSE 
 **********

 FCN=   15786.71     FROM HESSE     STATUS=OK            29 CALLS      473 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.536        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1039        5.3078        .50000       -.61777    
   3  Normalizat    1.1289        .14351        .22244E-05   -.88828    
   4  Prefactor     .99562        .10192        .16610E-05   -.92876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7775e-11
Minuit parameter uncertainties:
  1  0.000183779
  2  204.287
  3  0.143559
  4  0.101936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904826': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15786.7136949
delta logL = 4.18705894845e-07

Extracting fit parameters...

4FGL J0036.9+1832
   Spectrum: PowerLaw
140    Prefactor:  1.000e-04  1.838e-04  1.000e-04  1.000e+04 ( 1.000e-13)
141        Index:  2.104e+00  2.043e+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:  9.956e-01  1.019e-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.129e+00  1.436e-01  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/904826/cmap_HighResolution_568598401_569203201_4FGL_J0036.9+1832_weekly_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-07-03 06:49:41.958662', job_id='904826', GAL2='1.00', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1625320181.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='545' AND source_name='4FGL J0036.9+1832' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 06:49:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 904826: <4FGL_J0036.9+1832_weekly_bin545> in cluster <slac> Done

Job <4FGL_J0036.9+1832_weekly_bin545> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Jul  3 06:35:20 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 06:35:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 06:35:21 2021
Terminated at Sat Jul  3 06:49:42 2021
Results reported at Sat Jul  3 06:49:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0036.9+1832_weekly_bin545 9.234 18.5424 568598401 569203201 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 :                                   842.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

