/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 26 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.7+5711_daily_bin15
RA = 159.429, Dec = 57.192
tmin = 243216001, tmax = 243475201
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='15067', job_status='RUN', time_executed='2021-09-02 05:32:36.970725', time_epoch_executed='1630585956.97' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15067

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15067/ft1_4FGL_J1037.7+5711_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15067/ft1_4FGL_J1037.7+5711_daily_bin15.fits outfile=/scratch/kocevski/15067/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin15.fits ra=159.429 dec=57.192 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.38
user 1.18
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.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/15067/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/15067/ltcube_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.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/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits
.....................!
real 13.23
user 12.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/15067/ltcube_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.fits outfile=/scratch/kocevski/15067/expmap_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.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/15067/ltcube_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.fits
.....................!
real 192.18
user 187.46
sys 4.30

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

Setting source of interest to:
4FGL J1037.7+5711 @ 159.429 57.192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits scfile=/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits outfile=/scratch/kocevski/15067/cmap_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.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=159.429 yref=57.192 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits scfile=/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits outfile=/scratch/kocevski/15067/cmap_HighResolution_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.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=159.429 yref=57.192 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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15067/Model_4FGL_J1037.7+5711_daily_bin15.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/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits.....................!
real 59.08
user 56.17
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits', '/scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits', expMap='/scratch/kocevski/15067/expmap_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.fits', expCube='/scratch/kocevski/15067/ltcube_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15067/Model_4FGL_J1037.7+5711_daily_bin15.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7+5711'

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.718e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/15067/ft1_filtered_4FGL_J1037.7+5711_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/15067/ft2_4FGL_J1037.7+5711_daily_bin15.fits
Exposure map: /scratch/kocevski/15067/expmap_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.fits
Exposure cube: /scratch/kocevski/15067/ltcube_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15067/Model_4FGL_J1037.7+5711_daily_bin15.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) = 6132.17312774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11204E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0817       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3361       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5726       1.0000         .10000E-03   10000.    
    10 'norm      '    10.689       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8122       1.0000         .10000E-03   10000.    
    12 'norm      '    .64713       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.828       1.0000         .10000E-03   10000.    
    15 'norm      '    11.398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8375       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3463       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8747       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9035       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.0519       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9563       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    5.2733       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0053       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .69973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6132.123     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     3928 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26277        .12176E-07** at limit **
   2  Prefactor     .10000E-03    1.5949        .54337E-07** at limit **
   3  Prefactor     .10000E-03    7.4877        .23090E-06** at limit **
   4  Prefactor     .34171        15.882        .55732E-05   -.67346E-03
   5  Prefactor     .10000E-03    7.4085       -.10143E-06** at limit **
   6  Prefactor     1.0810        4.5715        .45844E-06    .11668E-03
   7  norm          .10000E-03    3.2592        .96492E-07** at limit **
   8  Prefactor     9.3469        27.081       -.85959E-06   -.49566E-04
   9  norm          1.5726        .52991        .13146E-08    .24950E-05
  10  norm          10.689        12.608        .21789E-06    .29711E-04
  11  Prefactor     2.8127        4.2256        .42757E-06    .23729E-03
  12  norm          .64714        .51652        .23357E-07   -.10252E-03
  13  norm          4.4459        2.4514       -.23115E-08   -.14970E-04
  14  Prefactor     21.811        25.639        .79224E-06    .50892E-04
  15  norm          11.399        14.988        .20417E-06    .85098E-05
  16  Prefactor     9.8401        19.986        .23210E-05    .22324E-03
  17  norm          5.3462        3.0600       -.30918E-06   -.19895E-04
  18  norm          1.8750        1.2048       -.10273E-07   -.22072E-04
  19  Prefactor     .10000E-03    51.812        .59609E-06** at limit **
  20  Prefactor     .10000E-03    50.318        .25607E-05** at limit **
  21  Prefactor     .10000E-03    105.35        .46011E-05** at limit **
  22  norm          1.9035        1.4722        .13501E-07    .35764E-04
  23  Prefactor     .10001E-03    59.694       -.86482E-05** at limit **
  24  Prefactor     .10000E-03    4.4037       -.78996E-08** at limit **
  25  Prefactor     .10000E-03    25.770       -.31657E-06** at limit **
  26  norm          .10000E-03    12.212        .45255E-07** at limit **
  27  Prefactor     8.0527        7.2177        .38936E-07    .79608E-04
  28  Prefactor     2.9542        19.937        .49257E-06    .32525E-04
  29  norm          .10000E-03    7.8619        .98439E-07** at limit **
  30  norm          5.2713        4.4908        .14262E-05    .15348E-02
  31  Prefactor     .10000E-03    4.2069        .19484E-06** at limit **
  32  Normalizat    1.0054        .14813       -.36327E-06    .65282E-05
  33  Prefactor     .69966        .16811       -.38522E-06   -.56724E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.341713
  Prefactor  = 0.0001
  Prefactor  = 1.08105
  norm       = 0.0001
  Prefactor  = 9.34691
  norm       = 1.57263
  norm       = 10.6889
  Prefactor  = 2.81269
  norm       = 0.647137
  norm       = 4.44589
  Prefactor  = 21.8114
  norm       = 11.3993
  Prefactor  = 9.84008
  norm       = 5.34621
  norm       = 1.87496
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.90348
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.05266
  Prefactor  = 2.95422
  norm       = 0.0001
  norm       = 5.27129
  Prefactor  = 0.0001
  Normalizat = 1.00537
  Prefactor  = 0.699664
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.123     FROM HESSE     STATUS=OK           707 CALLS     4635 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .35295        .77820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4602        .18971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .34171        56.556        .36986E-02   -1.5591    
   5  Prefactor     .10000E-03    7.5821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0810        4.4243        .31061E-03   -1.5500    
   7  norm          .10000E-03    3.2621        .13799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3469        27.094        .13116E-03   -1.5096    
   9  norm          1.5726        .52977        .31429E-04   -1.5457    
  10  norm          10.689        12.588        .12255E-03   -1.5054    
  11  Prefactor     2.8127        4.1799        .18304E-03   -1.5373    
  12  norm          .64714        .50020        .48198E-03   -1.5547    
  13  norm          4.4459        2.4494        .87895E-04   -1.5286    
  14  Prefactor     21.811        25.694        .85731E-04   -1.4774    
  15  norm          11.399        14.980        .11866E-03   -1.5033    
  16  Prefactor     9.8401        20.465        .63880E-03   -1.5080    
  17  norm          5.3462        3.1188        .76147E-04   -1.5245    
  18  norm          1.8750        1.2056        .66916E-04   -1.5434    
  19  Prefactor     .10000E-03    51.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    105.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9035        1.4734        .81219E-04   -1.5432    
  23  Prefactor     .10001E-03    60.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.4056        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.0527        7.2409        .14130E-03   -1.5140    
  28  Prefactor     2.9542        19.838        .23619E-03   -1.5364    
  29  norm          .10000E-03    7.9105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          5.2713        4.6399        .75795E-03   -1.5249    
  31  Prefactor     .10000E-03    4.2490        .15691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0054        .17546        .20703E-03   -.92851    
  33  Prefactor     .69966        .19861        .28852E-03   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03153e-08
Minuit parameter uncertainties:
  1  2.07741e-06
  2  5.32082e-06
  3  1.2031e-05
  4  8.79945
  5  4.01337e-05
  6  4.37433
  7  1.02837e-05
  8  27.1298
  9  0.529774
  10  12.5914
  11  4.18033
  12  0.500205
  13  2.44949
  14  25.7071
  15  14.985
  16  20.4795
  17  3.11885
  18  1.20565
  19  8.3545e-05
  20  0.00035507
  21  0.000919543
  22  1.47342
  23  0.00127774
  24  9.73056e-07
  25  3.15996e-05
  26  3.08699e-06
  27  7.2417
  28  15.3179
  29  4.19431e-06
  30  4.64026
  31  8.96024e-06
  32  0.175557
  33  0.198816
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.875e+00  1.206e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  6.997e-01  1.988e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.005e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.54e-05

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): 0
logL (Free Index) = 6132.11555294
delta logL = 0.00713297728453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6132.11525314
delta logL = 0.00743278309619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8500       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8219       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+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=   6132.115     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8500        1.2165        .66060E-04   -.57618E-03
   2  alpha         1.8219        .52599        .12830E-01   -.42933E-04
   3  Normalizat    1.0037        .16213        .20716E-03    .46481E-04
   4  Prefactor     .70066        .19165        .28833E-03    .20898E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85004
  alpha      = 1.82186
  Normalizat = 1.00375
  Prefactor  = 0.700663
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.115     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8500        1.2088        .26424E-05   -1.5436    
   2  alpha         1.8219        .52268        .51320E-03   -.27470    
   3  Normalizat    1.0037        .16222        .82866E-05   -.92905    
   4  Prefactor     .70066        .19178        .11533E-04   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1394e-10
Minuit parameter uncertainties:
  1  1.20886
  2  0.526879
  3  0.162305
  4  0.191962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15067': 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) = 6132.11525313
delta logL = 0.0074327834418

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.850e+00  1.209e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.822e+00  5.269e-01  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  7.007e-01  1.920e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  1.004e+00  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.54
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.82 +/- 0.53
Photon Flux (Free Index): 2.22e-08 +/- 1.90e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.03e-05

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/15067/cmap_HighResolution_243216001_243475201_4FGL_J1037.7+5711_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='2.20e-05', photon_flux_error='1.33e-08', dlogl='7.43e-03', energy_flux='2.39e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-02 05:47:23.460483', photon_index_error2='0.53', photon_index2='1.82', ts='8.53', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.01', time_epoch_completed='1630586843.46', return_code='0', job_id='15067', GAL2='0.70', EG2='1.00', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='1.90e-08', ts2='8.54', photon_index='1.76' WHERE bin_id='15' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 15067: <4FGL_J1037.7+5711_daily_bin15> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin15> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:58 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:32:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:32:00 2021
Terminated at Thu Sep  2 05:47:24 2021
Results reported at Thu Sep  2 05:47:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin15 159.429 57.192 243216001 243475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7+5711 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   882.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

