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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 17318
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0037.8+1239_weekly_bin297
RA = 9.4695, Dec = 12.6527
tmin = 418608001, tmax = 419212801
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='911639', job_status='RUN', time_executed='2021-07-03 07:03:44.926838', time_epoch_executed='1625321024.93' WHERE source_name='4FGL J0037.8+1239' and cadence='weekly' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911639

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911639/ft1_4FGL_J0037.8+1239_weekly_bin297.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911639/ft1_4FGL_J0037.8+1239_weekly_bin297.fits outfile=/scratch/kocevski/911639/ft1_filteredMKT_4FGL_J0037.8+1239_weekly_bin297.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=418608001.0 tmax=419212801.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 12.98
user 11.38
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.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/911639/ft1_filteredMKT_4FGL_J0037.8+1239_weekly_bin297.fits evtable="EVENTS" outfile="/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.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.57
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/911639/ltcube_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.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/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits
.....................!
real 27.65
user 27.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/911639/ltcube_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.fits outfile=/scratch/kocevski/911639/expmap_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.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/911639/ltcube_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.fits
.....................!
real 190.88
user 185.75
sys 4.78

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0037.8+1239 @ 9.4695 12.6527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits scfile=/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits outfile=/scratch/kocevski/911639/cmap_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.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.4695 yref=12.6527 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.59
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits scfile=/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits outfile=/scratch/kocevski/911639/cmap_HighResolution_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.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.4695 yref=12.6527 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.61
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911639/Model_4FGL_J0037.8+1239_weekly_bin297.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/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits.....................!
real 105.99
user 103.96
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits', '/scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits', expMap='/scratch/kocevski/911639/expmap_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.fits', expCube='/scratch/kocevski/911639/ltcube_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/911639/Model_4FGL_J0037.8+1239_weekly_bin297.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0037.8+1239'

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  4.891e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/911639/ft1_filtered_4FGL_J0037.8+1239_weekly_bin297.fits
Spacecraft file(s): /scratch/kocevski/911639/ft2_4FGL_J0037.8+1239_weekly_bin297.fits
Exposure map: /scratch/kocevski/911639/expmap_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.fits
Exposure cube: /scratch/kocevski/911639/ltcube_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/911639/Model_4FGL_J0037.8+1239_weekly_bin297.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) = 10268.1607088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22693E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91657E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39908E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21626E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21343       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6753       1.0000         .10000E-03   10000.    
    14 'norm      '    31.246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5633       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90540       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10268.12     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     1746 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2841        .13287E-07** at limit **
   2  Prefactor     .10000E-03    9.9919       -.20849E-07** at limit **
   3  norm          1.0606        2.1056       -.58798E-06   -.18646E-02
   4  Prefactor     .10000E-03    19.024        .56311E-07** at limit **
   5  Prefactor     .10000E-03    3.4507        .11401E-07** at limit **
   6  Prefactor     .21966E-01    1.3298       -.37023E-06    .42787E-04
   7  norm          8.8523        8.7343        .10417E-05   -.72367E-04
   8  Prefactor     .10086E-03    15.133        .26923E-05** at limit **
   9  Prefactor     .10011E-03    8.8826       -.54796E-06** at limit **
  10  norm          3.3919        3.3590        .11187E-06    .35558E-03
  11  Prefactor     .25890        4.0732       -.92037E-06   -.78546E-04
  12  Prefactor     .10000E-03    7.9486       -.32839E-07** at limit **
  13  Prefactor     5.6760        2.2607        .32646E-07    .75399E-04
  14  norm          31.247        16.112        .61485E-06    .14542E-04
  15  Prefactor     .10000E-03    21.736       -.42992E-08** at limit **
  16  Prefactor     33.707        46.450       -.97856E-05    .17558E-05
  17  Prefactor     5.5648        6.8101       -.16293E-06   -.46543E-04
  18  Normalizat    .90514        .16784        .43182E-06    .25949E-04
  19  Prefactor     1.2942        .12139       -.17055E-07    .15868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.06061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0219665
  norm       = 8.85232
  Prefactor  = 0.000100861
  Prefactor  = 0.000100108
  norm       = 3.39193
  Prefactor  = 0.258898
  Prefactor  = 0.0001
  Prefactor  = 5.67602
  norm       = 31.2471
  Prefactor  = 0.0001
  Prefactor  = 33.7071
  Prefactor  = 5.56477
  Normalizat = 0.905136
  Prefactor  = 1.29422
 **********
 **   18 **HESSE 
 **********

 FCN=   10268.12     FROM HESSE     STATUS=OK           292 CALLS     2038 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.250        .48533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0606        1.8169        .21970E-02   -1.5502    
   4  Prefactor     .10000E-03    19.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .21966E-01    3.6606        .36634E-01   -1.5678    
   7  norm          8.8523        8.6728        .13473E-03   -1.5113    
   8  Prefactor     .10086E-03    100.65        .71247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-03    9.3933        .87792E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3919        3.3757        .18084E-03   -1.5340    
  11  Prefactor     .25890        31.112        .37656E-02   -1.5606    
  12  Prefactor     .10000E-03    8.0329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6760        2.2617        .93131E-04   -1.5231    
  14  norm          31.247        16.084        .71681E-04   -1.4589    
  15  Prefactor     .10000E-03    21.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.707        44.444        .68965E-04   -1.4546    
  17  Prefactor     5.5648        6.8103        .17033E-03   -1.5236    
  18  Normalizat    .90514        .19415        .33134E-03   -.96280    
  19  Prefactor     1.2942        .14273        .20764E-03   -.83479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8202e-08
Minuit parameter uncertainties:
  1  0.000540824
  2  6.08309e-06
  3  1.81704
  4  1.61629e-06
  5  1.90615e-06
  6  0.565881
  7  8.67402
  8  0.0186545
  9  0.00201311
  10  3.37592
  11  5.67813
  12  8.84064e-06
  13  2.26174
  14  16.0862
  15  6.14252e-07
  16  44.4877
  17  6.81129
  18  0.194301
  19  0.142775
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.001e-04  2.013e-03  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.294e+00  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.051e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.470 12.653
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/911639/likelihoodResults_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.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) = 10268.1187416
delta logL = -5.49384621991e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10268.1187416
delta logL = -5.49273481738e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10268.12     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      238 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    .20539        .90715E-01** at limit **
   2  Index         2.1926        8.8689        .50000        .94842E-06
   3  Normalizat    .90514        .67352E-03    .74870E-01    .21285E-03
   4  Prefactor     1.2942        .49653E-03    .46972E-01    .33446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100033
  Index      = 2.1926
  Normalizat = 0.905136
  Prefactor  = 1.29422
 **********
 **   18 **HESSE 
 **********

 FCN=   10268.12     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      279 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    .21237        .89230E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1926        8.8786        .50000       -.59617    
   3  Normalizat    .90514        .67636E-03    .33134E-03   -.96280    
   4  Prefactor     1.2942        .49949E-03    .20764E-03   -.83479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.02751e-12
Minuit parameter uncertainties:
  1  0.000166315
  2  16.4437
  3  0.00067636
  4  0.000499489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911639': 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) = 10268.1186866
delta logL = 9.17134457268e-09

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.000e-04  1.663e-04  1.000e-04  1.000e+04 ( 1.000e-13)
161        Index:  2.193e+00  1.644e+01  0.000e+00  1.000e+01 (-1.000e+00)
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.294e+00  4.995e-04  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.051e-01  6.764e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.470 12.653

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/911639/cmap_HighResolution_418608001_419212801_4FGL_J0037.8+1239_weekly_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-07-03 07:17:17.830327', job_id='911639', GAL2='1.29', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1625321837.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='9.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='297' AND source_name='4FGL J0037.8+1239' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 07:17:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 911639: <4FGL_J0037.8+1239_weekly_bin297> in cluster <slac> Done

Job <4FGL_J0037.8+1239_weekly_bin297> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  3 07:01:06 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 07:01:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 07:01:39 2021
Terminated at Sat Jul  3 07:17:19 2021
Results reported at Sat Jul  3 07:17:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_weekly_bin297 9.4695 12.6527 418608001 419212801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0037.8+1239 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            973 sec.

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

