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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin654
RA = 159.429, Dec = 57.192
tmin = 408844801, tmax = 409104001
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='18353', job_status='RUN', time_executed='2021-09-02 05:45:51.253686', time_epoch_executed='1630586751.25' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18353

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18353/ft1_4FGL_J1037.7+5711_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18353/ft2_4FGL_J1037.7+5711_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18353/ft1_4FGL_J1037.7+5711_daily_bin654.fits outfile=/scratch/kocevski/18353/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin654.fits ra=159.429 dec=57.192 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.41
user 4.13
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18353/ft2_4FGL_J1037.7+5711_daily_bin654.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/18353/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/18353/ft1_filtered_4FGL_J1037.7+5711_daily_bin654.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18353/ft1_filtered_4FGL_J1037.7+5711_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/18353/ft2_4FGL_J1037.7+5711_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/18353/ltcube_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.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/18353/ft2_4FGL_J1037.7+5711_daily_bin654.fits
.....................!
real 14.69
user 14.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18353/ft1_filtered_4FGL_J1037.7+5711_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/18353/ft2_4FGL_J1037.7+5711_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/18353/ltcube_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.fits outfile=/scratch/kocevski/18353/expmap_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.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/18353/ltcube_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.fits
.....................!
real 191.77
user 186.09
sys 4.98

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/18353/ft1_filtered_4FGL_J1037.7+5711_daily_bin654.fits scfile=/scratch/kocevski/18353/ft2_4FGL_J1037.7+5711_daily_bin654.fits outfile=/scratch/kocevski/18353/cmap_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18353/ft1_filtered_4FGL_J1037.7+5711_daily_bin654.fits scfile=/scratch/kocevski/18353/ft2_4FGL_J1037.7+5711_daily_bin654.fits outfile=/scratch/kocevski/18353/cmap_HighResolution_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .61995       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.129       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    226.95       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3027       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.085       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0085       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1408       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    44.989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24862E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13538E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    451.95       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.779       1.0000         .10000E-03   10000.    
    25 'Prefactor '    392.72       1.0000         .10000E-03   10000.    
    26 'norm      '    .48687E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    33.913       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .76487       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71536       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=   662.8691     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     5430 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6517        4.6656        .19983E-05    .43394E-03
   2  Prefactor     .62415        32.325        .98946E-05   -.18399E-03
   3  Prefactor     .10000E-03    30.066        .39510E-07** at limit **
   4  Prefactor     .10000E-03    30.192       -.58318E-07** at limit **
   5  Prefactor     .10000E-03    38.716       -.92672E-06** at limit **
   6  Prefactor     12.161        26.241        .14704E-05    .14187E-04
   7  norm          .10000E-03    25.008        .26243E-06** at limit **
   8  Prefactor     227.00        159.26        .25921E-05    .21964E-04
   9  norm          2.3027        1.8866        .11067E-06    .21088E-03
  10  norm          .10000E-03    17.347        .31820E-07** at limit **
  11  Prefactor     17.082        24.378        .25903E-05    .62964E-04
  12  norm          4.0085        3.7167       -.88833E-07    .15341E-03
  13  norm          8.1405        8.1443       -.87906E-07    .28388E-04
  14  Prefactor     .10000E-03    59.582        .52830E-06** at limit **
  15  norm          45.116        78.803        .10233E-05    .11060E-03
  16  Prefactor     .10000E-03    93.378       -.10635E-05** at limit **
  17  norm          .10000E-03    5.0084       -.24815E-06** at limit **
  18  norm          11.567        10.791        .88437E-06    .62770E-04
  19  Prefactor     .10001E-03    660.67       -.34089E-05** at limit **
  20  Prefactor     83.936        868.05        .43615E-04    .35563E-04
  21  Prefactor     .10001E-03    402.06        .28360E-05** at limit **
  22  norm          .10000E-03    5.2672        .74776E-06** at limit **
  23  Prefactor     452.41        349.81        .11995E-04    .12879E-03
  24  Prefactor     38.780        94.411        .24514E-05    .27851E-04
  25  Prefactor     392.75        507.12       -.11475E-04    .18170E-04
  26  norm          .10000E-03    419.92       -.12837E-06** at limit **
  27  Prefactor     .10000E-03    10.042        .57090E-06** at limit **
  28  Prefactor     .10000E-03    45.207        .30495E-06** at limit **
  29  norm          .10000E-03    67.381       -.47735E-06** at limit **
  30  norm          33.910        24.503        .22257E-06   -.12872E-03
  31  Prefactor     .10000E-03    77.805        .32826E-06** at limit **
  32  Normalizat    .76540        .70861       -.63093E-04    .10051E-03
  33  Prefactor     .71449        .74747        .68716E-04    .54242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.65171
  Prefactor  = 0.624149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.1613
  norm       = 0.0001
  Prefactor  = 226.999
  norm       = 2.30272
  norm       = 0.0001
  Prefactor  = 17.0817
  norm       = 4.00854
  norm       = 8.14054
  Prefactor  = 0.0001
  norm       = 45.1162
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.5666
  Prefactor  = 0.000100014
  Prefactor  = 83.9361
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 452.413
  Prefactor  = 38.7802
  Prefactor  = 392.746
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.9097
  Prefactor  = 0.0001
  Normalizat = 0.765403
  Prefactor  = 0.714492
 **********
 **   18 **HESSE 
 **********

 FCN=   662.8691     FROM HESSE     STATUS=OK           681 CALLS     6111 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6517        4.6620        .28887E-03   -1.5326    
   2  Prefactor     .62415        57.008        .24795E-02   -1.5550    
   3  Prefactor     .10000E-03    30.066        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.193        .13827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.793        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.161        26.312        .11502E-03   -1.5010    
   7  norm          .10000E-03    25.008        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     227.00        159.28        .13429E-03   -1.2683    
   9  norm          2.3027        1.8910        .31160E-04   -1.5404    
  10  norm          .10000E-03    17.347        .10479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.082        24.396        .96896E-04   -1.4881    
  12  norm          4.0085        3.7175        .44284E-04   -1.5308    
  13  norm          8.1405        8.1472        .71584E-04   -1.5137    
  14  Prefactor     .10000E-03    59.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          45.116        79.028        .29887E-03   -1.4364    
  16  Prefactor     .10000E-03    93.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0174        .56278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.567        10.784        .77969E-04   -1.5028    
  19  Prefactor     .10001E-03    661.25        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     83.936        868.51        .22004E-03   -1.3873    
  21  Prefactor     .10001E-03    402.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.2760        .57768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     452.41        351.17        .96278E-04   -1.1421    
  24  Prefactor     38.780        94.413        .64364E-04   -1.4462    
  25  Prefactor     392.75        507.54        .10296E-03   -1.1718    
  26  norm          .10000E-03    420.25        .21171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.048        .79739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    45.222        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    67.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          33.910        24.468        .68811E-04   -1.4543    
  31  Prefactor     .10000E-03    78.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .76540        .70991        .27448E-03   -1.0137    
  33  Prefactor     .71449        .75163        .32953E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72382e-09
Minuit parameter uncertainties:
  1  4.66247
  2  11.9408
  3  9.0759e-06
  4  8.27319e-06
  5  0.000333711
  6  26.3375
  7  3.4852e-05
  8  159.583
  9  1.89109
  10  1.22635e-06
  11  24.4101
  12  3.71776
  13  8.14826
  14  0.000255226
  15  79.212
  16  0.000376087
  17  7.94202e-07
  18  10.7862
  19  0.00618538
  20  550.617
  21  0.00322225
  22  6.486e-05
  23  352.865
  24  94.7804
  25  513.501
  26  0.000595214
  27  7.05305e-05
  28  0.000245617
  29  0.000241311
  30  24.4751
  31  6.50088e-05
  32  0.71875
  33  0.762726
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.157e+01  1.079e+01  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:  7.145e-01  7.627e-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:  7.654e-01  7.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 1.47e-04 +/- 1.37e-04

TS (Fixed Index): 2.38
Ra Dec: 159.429 57.192
Photon Flux Upper Limit: 4.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18353/likelihoodResults_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.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) = 661.905367877
delta logL = 0.963734355764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 661.897371406
delta logL = 0.971730827013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5827       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4181       1.0000          .0000       5.0000    
     3 'Normalizat'    .38666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0517       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.

 FCN=   661.8974     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5514        26.853        .43916E-02   -.20953E-03
   2  alpha         3.4279        4.1730        .72021E-01   -.16093E-04
   3  Normalizat    .38467        .28833        .84123E-01   -.55914E-05
   4  Prefactor     1.0544        .33550        .62797E-01   -.74555E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.55144
  alpha      = 3.42791
  Normalizat = 0.384666
  Prefactor  = 1.05443
 **********
 **   18 **HESSE 
 **********

 FCN=   661.8974     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5514        15.017        .19453E-04   -1.5459    
   2  alpha         3.4279        3.9522        .31697E-03    .38026    
   3  Normalizat    .38467        .71691        .37272E-03   -1.1810    
   4  Prefactor     1.0544        .86967        .27770E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69335e-10
Minuit parameter uncertainties:
  1  9.6564
  2  2.99925
  3  0.735153
  4  0.881733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18353': 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) = 661.8973621
delta logL = 0.971740132462

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.551e+00  9.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  3.428e+00  2.999e+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.054e+00  8.817e-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:  3.847e-01  7.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 159.429 57.192
Photon Index (Free Index): 3.43 +/- 3.00
Photon Flux (Free Index): 3.90e-07 +/- 2.93e-07
Energy Flux (Free Index): 7.10e-05 +/- 6.39e-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/18353/cmap_HighResolution_408844801_409104001_4FGL_J1037.7+5711_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-04', comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='7.10e-05', photon_flux_error='1.19e-07', dlogl='9.72e-01', energy_flux='1.47e-04', photon_flux2='3.90e-07', job_status='DONE', time_completed='2021-09-02 05:53:27.969076', photon_index_error2='3.00', photon_index2='3.43', ts='2.38', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='4.44e-07', energy_flux_error2='6.39e-05', EG='0.77', time_epoch_completed='1630587207.97', return_code='0', job_id='18353', GAL2='1.05', EG2='0.38', return_code2='0', energy_flux_error='1.37e-04', photon_flux_error2='2.93e-07', ts2='4.69', photon_index='1.76' WHERE bin_id='654' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:53:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 18353: <4FGL_J1037.7+5711_daily_bin654> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 05:42:34 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:42:36 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:42:36 2021
Terminated at Thu Sep  2 05:53:28 2021
Results reported at Thu Sep  2 05:53:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin654 159.429 57.192 408844801 409104001 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 :                                   455.13 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             285.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

