/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 5 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 = 7449
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1037.7+5711_daily_bin727
RA = 159.429, Dec = 57.192
tmin = 427766401, tmax = 428025601
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='19326', job_status='RUN', time_executed='2021-09-02 05:46:42.157514', time_epoch_executed='1630586802.16' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19326/ft1_4FGL_J1037.7+5711_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19326/ft1_4FGL_J1037.7+5711_daily_bin727.fits outfile=/scratch/kocevski/19326/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin727.fits ra=159.429 dec=57.192 rad=12.0 tmin=427766401.0 tmax=428025601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.51
user 5.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.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/19326/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin727.fits evtable="EVENTS" outfile="/scratch/kocevski/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/19326/ltcube_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.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/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits
.....................!
real 16.07
user 15.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/19326/ltcube_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.fits outfile=/scratch/kocevski/19326/expmap_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.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/19326/ltcube_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.fits
.....................!
real 191.76
user 186.14
sys 4.35

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/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits scfile=/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits outfile=/scratch/kocevski/19326/cmap_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits scfile=/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits outfile=/scratch/kocevski/19326/cmap_HighResolution_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19326/Model_4FGL_J1037.7+5711_daily_bin727.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/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits....................!
real 41.58
user 39.98
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits', '/scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits', expMap='/scratch/kocevski/19326/expmap_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.fits', expCube='/scratch/kocevski/19326/ltcube_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19326/Model_4FGL_J1037.7+5711_daily_bin727.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/19326/ft1_filtered_4FGL_J1037.7+5711_daily_bin727.fits
Spacecraft file(s): /scratch/kocevski/19326/ft2_4FGL_J1037.7+5711_daily_bin727.fits
Exposure map: /scratch/kocevski/19326/expmap_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.fits
Exposure cube: /scratch/kocevski/19326/ltcube_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19326/Model_4FGL_J1037.7+5711_daily_bin727.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) = 3728.87393229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4165       1.0000         .10000E-03   10000.    
     7 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .76939       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6106       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .89403       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8749       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18889E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.869       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10934E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14078E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.2094       1.0000         .10000E-03   10000.    
    29 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10526E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    8.4962       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86932       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0423       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=   3728.813     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     3935 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96633        1.0901       -.48992E-07   -.16187E-03
   2  Prefactor     1.7205        5.4824       -.90649E-06   -.48367E-03
   3  Prefactor     .10000E-03    8.4084       -.24422E-05** at limit **
   4  Prefactor     .10000E-03    8.0250        .35844E-05** at limit **
   5  Prefactor     .10000E-03    7.2094       -.13974E-05** at limit **
   6  Prefactor     3.4077        10.623       -.50730E-06   -.21525E-03
   7  norm          .10000E-03    4.5934        .44659E-07** at limit **
   8  Prefactor     .81710        32.746       -.50810E-05    .23891E-03
   9  norm          1.6106        .74768        .31772E-07    .81446E-03
  10  norm          .10000E-03    15.688       -.15319E-05** at limit **
  11  Prefactor     .10000E-03    7.8862        .33311E-05** at limit **
  12  norm          .89421        .78497       -.31920E-07    .91711E-05
  13  norm          1.8742        2.8652       -.20204E-06   -.34383E-03
  14  Prefactor     .10000E-03    22.487        .20865E-05** at limit **
  15  norm          .10000E-03    7.8073       -.50059E-05** at limit **
  16  Prefactor     .10034E-03    13.380       -.97854E-06** at limit **
  17  norm          .10000E-03    1.5873        .90893E-08** at limit **
  18  norm          .10000E-03    1.3944       -.37506E-07** at limit **
  19  Prefactor     .10000E-03    86.884        .23166E-04** at limit **
  20  Prefactor     34.862        54.537       -.55933E-05    .26091E-05
  21  Prefactor     .10000E-03    76.944       -.16808E-04** at limit **
  22  norm          .10000E-03    1.1521       -.70160E-08** at limit **
  23  Prefactor     .10000E-03    16.161        .25415E-05** at limit **
  24  Prefactor     .10000E-03    36.141        .84867E-05** at limit **
  25  Prefactor     .10000E-03    38.861       -.99803E-05** at limit **
  26  norm          .10000E-03    37.186        .90531E-06** at limit **
  27  Prefactor     .10001E-03    7.0444       -.14274E-05** at limit **
  28  Prefactor     6.1981        36.614        .99237E-06    .15498E-04
  29  norm          .10000E-03    5.3488        .14576E-08** at limit **
  30  norm          .10000E-03    7.0264        .20765E-05** at limit **
  31  Prefactor     8.5033        9.4830       -.12374E-05   -.10432E-02
  32  Normalizat    .86921        .19569        .10421E-05    .28552E-03
  33  Prefactor     1.0423        .23797        .74641E-07    .20641E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.966328
  Prefactor  = 1.72049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40765
  norm       = 0.0001
  Prefactor  = 0.817104
  norm       = 1.61064
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.894208
  norm       = 1.87417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100339
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8622
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 6.19815
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.50331
  Normalizat = 0.869213
  Prefactor  = 1.04228
 **********
 **   18 **HESSE 
 **********

 FCN=   3728.813     FROM HESSE     STATUS=OK           691 CALLS     4626 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96633        1.0466        .64180E-03   -1.5511    
   2  Prefactor     1.7205        5.3781        .22299E-03   -1.5446    
   3  Prefactor     .10000E-03    8.3952        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0096        .16869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2627        .15990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4077        10.326        .21886E-03   -1.5339    
   7  norm          .10000E-03    4.5970        .12780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .81710        244.96        .65196E-02   -1.5527    
   9  norm          1.6106        .74578        .34170E-04   -1.5454    
  10  norm          .10000E-03    15.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9990        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .89421        .77814        .48239E-04   -1.5519    
  13  norm          1.8742        2.8444        .12382E-03   -1.5434    
  14  Prefactor     .10000E-03    22.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7648        .16618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10034E-03    186.99        .42306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6212        .14941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2457        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    85.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.862        54.508        .67865E-04   -1.4526    
  21  Prefactor     .10000E-03    76.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1663        .63986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    38.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    37.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    20.073        .30361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.1981        35.662        .16110E-03   -1.5210    
  29  norm          .10000E-03    5.3499        .13793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    7.2398        .31454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     8.5033        9.6878        .68764E-03   -1.5125    
  32  Normalizat    .86921        .22394        .21948E-03   -.97551    
  33  Prefactor     1.0423        .27721        .25211E-03   -.91333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00681e-08
Minuit parameter uncertainties:
  1  1.04665
  2  5.37966
  3  3.67721e-06
  4  2.69943e-06
  5  1.58789e-05
  6  10.3309
  7  7.05011e-06
  8  28.4119
  9  0.745783
  10  6.39045e-06
  11  9.25998e-06
  12  0.778153
  13  2.84457
  14  3.08826e-06
  15  4.97098e-08
  16  0.0159823
  17  2.3918e-06
  18  5.01604e-06
  19  1.03842e-05
  20  54.586
  21  7.25873e-06
  22  1.05893e-06
  23  1.83655e-07
  24  4.3085e-05
  25  1.54299e-06
  26  5.0253e-06
  27  0.000836141
  28  29.7613
  29  4.23838e-07
  30  3.22084e-05
  31  9.68957
  32  0.224176
  33  0.277593
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.000e-04  5.016e-06  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:  1.042e+00  2.776e-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:  8.692e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.429 57.192
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19326/likelihoodResults_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.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) = 3728.81556867
delta logL = -0.00212391953301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3728.81344345
delta logL = 1.29954014483e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8082       1.0000          .0000       5.0000    
     3 'Normalizat'    .86916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0424       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=   3728.643     FROM MIGRAD    STATUS=CONVERGED    189 CALLS      381 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42668E-02    .83516E-02    .14224E-02    .20270E-02
   2  alpha         4.8373        3.2293        .50000        .53014E-04
   3  Normalizat    .82668        .25080        .21948E-03   -.12621E-03
   4  Prefactor     1.0768        .29056        .25211E-03   -.73120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00426678
  alpha      = 4.8373
  Normalizat = 0.826676
  Prefactor  = 1.0768
 **********
 **   18 **HESSE 
 **********

 FCN=   3728.643     FROM HESSE     STATUS=OK            29 CALLS      410 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42668E-02    .14917E-01    .70508E-05   -1.5721    
   2  alpha         4.8373        3.3707        .77594E-01    1.9336    
   3  Normalizat    .82668        .22911        .87790E-05   -.99087    
   4  Prefactor     1.0768        .27843        .10084E-04   -.90212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87372e-10
Minuit parameter uncertainties:
  1  0.0149165
  2  1.50181
  3  0.229379
  4  0.278804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19326': 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) = 3728.64287861
delta logL = 0.170566135928

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  4.267e-03  1.492e-02  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  4.837e+00  1.502e+00  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:  1.077e+00  2.788e-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:  8.267e-01  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.429 57.192

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/19326/cmap_HighResolution_427766401_428025601_4FGL_J1037.7+5711_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-05', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-02 06:00:16.751543', job_id='19326', GAL2='1.08', fit_tolerance='1e-08', EG2='0.83', EG='0.87', time_epoch_completed='1630587616.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.71e-01', ts2='0.38', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='727' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:00:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 19326: <4FGL_J1037.7+5711_daily_bin727> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 05:46:25 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:46:27 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:46:27 2021
Terminated at Thu Sep  2 06:00:17 2021
Results reported at Thu Sep  2 06:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin727 159.429 57.192 427766401 428025601 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 :                                   805.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

