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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin731
RA = 159.429, Dec = 57.192
tmin = 428803201, tmax = 429062401
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='19332', job_status='RUN', time_executed='2021-09-02 05:46:36.383339', time_epoch_executed='1630586796.38' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19332/ft1_4FGL_J1037.7+5711_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19332/ft1_4FGL_J1037.7+5711_daily_bin731.fits outfile=/scratch/kocevski/19332/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin731.fits ra=159.429 dec=57.192 rad=12.0 tmin=428803201.0 tmax=429062401.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.45
user 5.15
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.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/19332/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.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.45
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/19332/ltcube_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.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/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits
.....................!
real 12.15
user 11.79
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/19332/ltcube_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.fits outfile=/scratch/kocevski/19332/expmap_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.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/19332/ltcube_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.fits
.....................!
real 154.89
user 150.73
sys 3.13

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/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.fits scfile=/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits outfile=/scratch/kocevski/19332/cmap_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.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.48
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.fits scfile=/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits outfile=/scratch/kocevski/19332/cmap_HighResolution_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.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.50
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/19332/ft2_4FGL_J1037.7+5711_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19332/Model_4FGL_J1037.7+5711_daily_bin731.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/19332/ft1_filtered_4FGL_J1037.7+5711_daily_bin731.fits.....................!
real 41.63
user 40.44
sys 0.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5798       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4951       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .94817       1.0000         .10000E-03   10000.    
    10 'norm      '    11.998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3677       1.0000         .10000E-03   10000.    
    12 'norm      '    .37800       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6821       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9895       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.130       1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    104.26       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    19.183       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1490       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .56529       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=   5087.423     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     5285 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19942        .44846        .15974E-06    .37785E-03
   2  Prefactor     5.5798        3.7321        .45120E-06    .57678E-03
   3  Prefactor     8.3998        18.399       -.43546E-06   -.23022E-05
   4  Prefactor     .10000E-03    3.9971       -.43592E-06** at limit **
   5  Prefactor     .10000E-03    7.1913        .53858E-06** at limit **
   6  Prefactor     4.4951        6.9093       -.66331E-06   -.23965E-04
   7  norm          .10000E-03    2.0391       -.12284E-07** at limit **
   8  Prefactor     .10000E-03    6.5918       -.83927E-06** at limit **
   9  norm          .94817        .45203       -.20797E-07   -.22537E-03
  10  norm          11.998        14.943        .40661E-07   -.20773E-03
  11  Prefactor     5.3674        5.4827        .27693E-05   -.20285E-02
  12  norm          .37804        .37393        .22120E-07    .16710E-03
  13  norm          3.4118        2.8623       -.15948E-06   -.84586E-04
  14  Prefactor     1.6812        39.216        .70600E-06   -.37456E-04
  15  norm          .10000E-03    5.3654       -.48677E-07** at limit **
  16  Prefactor     .10000E-03    8.5671       -.79602E-06** at limit **
  17  norm          7.9895        2.6143        .42193E-07    .68967E-04
  18  norm          .10000E-03    .42588        .18710E-08** at limit **
  19  Prefactor     47.070        285.69       -.24965E-04   -.80708E-04
  20  Prefactor     76.065        78.560       -.36661E-06    .15444E-04
  21  Prefactor     .10000E-03    42.820       -.18420E-06** at limit **
  22  norm          1.9726        1.7873       -.21217E-07   -.84289E-04
  23  Prefactor     10.655        57.539        .14982E-04    .20693E-03
  24  Prefactor     .10000E-03    8.2510        .21127E-06** at limit **
  25  Prefactor     104.26        114.55       -.11908E-05   -.27114E-04
  26  norm          .10000E-03    26.293        .26427E-06** at limit **
  27  Prefactor     .10000E-03    7.3250        .81570E-06** at limit **
  28  Prefactor     .10000E-03    7.2157        .32916E-06** at limit **
  29  norm          .10000E-03    4.2023        .51619E-06** at limit **
  30  norm          .10000E-03    3.2092        .50445E-07** at limit **
  31  Prefactor     19.183        13.120        .54063E-07   -.28011E-04
  32  Normalizat    1.1489        .17404       -.16183E-05    .35490E-05
  33  Prefactor     .56531        .19865        .14963E-05   -.10945E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.199417
  Prefactor  = 5.57982
  Prefactor  = 8.39983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49515
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.948171
  norm       = 11.9981
  Prefactor  = 5.36741
  norm       = 0.378041
  norm       = 3.41183
  Prefactor  = 1.68122
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.98951
  norm       = 0.0001
  Prefactor  = 47.0703
  Prefactor  = 76.065
  Prefactor  = 0.0001
  norm       = 1.97261
  Prefactor  = 10.6547
  Prefactor  = 0.0001
  Prefactor  = 104.259
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1832
  Normalizat = 1.14894
  Prefactor  = 0.565314
 **********
 **   18 **HESSE 
 **********

 FCN=   5087.423     FROM HESSE     STATUS=OK           691 CALLS     5976 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19942        .36115        .69318E-03   -1.5619    
   2  Prefactor     5.5798        3.7305        .10513E-03   -1.5235    
   3  Prefactor     8.3998        18.335        .13832E-03   -1.5128    
   4  Prefactor     .10000E-03    4.0060        .13935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4951        6.8990        .18990E-03   -1.5284    
   7  norm          .10000E-03    2.0394        .99473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6121        .17910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94817        .45088        .31844E-04   -1.5513    
  10  norm          11.998        14.941        .57824E-03   -1.5015    
  11  Prefactor     5.3674        6.2664        .86729E-03   -1.5245    
  12  norm          .37804        .37838        .41779E-04   -1.5585    
  13  norm          3.4118        2.8575        .10620E-03   -1.5339    
  14  Prefactor     1.6812        39.324        .32476E-03   -1.5449    
  15  norm          .10000E-03    5.3690        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9895        2.6167        .63527E-04   -1.5143    
  18  norm          .10000E-03    .42851        .45449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.070        304.03        .58407E-04   -1.4335    
  20  Prefactor     76.065        78.680        .46040E-04   -1.3961    
  21  Prefactor     .10000E-03    42.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9726        1.7862        .88119E-04   -1.5427    
  23  Prefactor     10.655        62.002        .12285E-03   -1.5055    
  24  Prefactor     .10000E-03    8.2622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     104.26        114.68        .39380E-04   -1.3662    
  26  norm          .10000E-03    26.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.5436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.2229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.2095        .14292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    3.2306        .12466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     19.183        13.113        .91446E-04   -1.4832    
  32  Normalizat    1.1489        .19868        .19870E-03   -.88196    
  33  Prefactor     .56531        .22409        .31993E-03   -1.0907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0335e-09
Minuit parameter uncertainties:
  1  0.361159
  2  3.73062
  3  18.3473
  4  3.13362e-05
  5  4.98257e-05
  6  6.90025
  7  7.52779e-07
  8  7.62153e-05
  9  0.450885
  10  14.9454
  11  6.26712
  12  0.378378
  13  2.85765
  14  16.2736
  15  2.57808e-06
  16  7.91708e-05
  17  2.61679
  18  1.14993e-07
  19  241.066
  20  78.7882
  21  6.79865e-05
  22  1.78622
  23  51.4853
  24  1.73974e-05
  25  114.927
  26  4.79046e-05
  27  5.90689e-05
  28  3.09677e-05
  29  3.73659e-05
  30  4.42725e-06
  31  13.1153
  32  0.198808
  33  0.224442
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.000e-04  1.150e-07  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:  5.653e-01  2.244e-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.149e+00  1.988e-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: 2.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19332/likelihoodResults_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.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): 0
logL (Free Index) = 5087.42287864
delta logL = -2.1917925551e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5087.4228569
delta logL = -1.75826244231e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7572       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56542       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=   5087.423     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      231 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49285        .45449E-03** at limit **
   2  alpha         1.7527        2.5061        .17489        .18725E-05
   3  Normalizat    1.1489        .18705        .19870E-03    .28264E-04
   4  Prefactor     .56532        .21839        .31993E-03    .13503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.75272
  Normalizat = 1.14894
  Prefactor  = 0.565316
 **********
 **   18 **HESSE 
 **********

 FCN=   5087.423     FROM HESSE     STATUS=OK            27 CALLS      258 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .42894        .90899E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7527        4.1191        .69955E-01   -.30355    
   3  Normalizat    1.1489        .18718        .79480E-05   -.88196    
   4  Prefactor     .56532        .21855        .12797E-04   -1.0907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30868e-09
Minuit parameter uncertainties:
  1  4.68582e-05
  2  85.6708
  3  0.187288
  4  0.218873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19332': 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) = 5087.42285672
delta logL = 4.34829416918e-09

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.000e-04  4.686e-05  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.753e+00  8.567e+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:  5.653e-01  2.189e-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.149e+00  1.873e-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/19332/cmap_HighResolution_428803201_429062401_4FGL_J1037.7+5711_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='2.58e-08', time_completed='2021-09-02 06:01:14.261630', job_id='19332', GAL2='0.57', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630587674.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.35e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='731' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 19332: <4FGL_J1037.7+5711_daily_bin731> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin731> 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) <bullet0095>, 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:01:15 2021
Results reported at Thu Sep  2 06:01:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin731 159.429 57.192 428803201 429062401 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 :                                   870.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             306.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

