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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin1446
RA = 159.429, Dec = 57.192
tmin = 614131201, tmax = 614390401
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='23877', job_status='RUN', time_executed='2021-09-02 06:01:35.653453', time_epoch_executed='1630587695.65' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23877

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23877/ft1_4FGL_J1037.7+5711_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23877/ft1_4FGL_J1037.7+5711_daily_bin1446.fits outfile=/scratch/kocevski/23877/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1446.fits ra=159.429 dec=57.192 rad=12.0 tmin=614131201.0 tmax=614390401.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.62
user 4.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23877/ft1_filtered_4FGL_J1037.7+5711_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/23877/ltcube_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.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/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits
.....................!
real 13.06
user 12.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23877/ft1_filtered_4FGL_J1037.7+5711_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/23877/ltcube_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.fits outfile=/scratch/kocevski/23877/expmap_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.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/23877/ltcube_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.fits
.....................!
real 190.43
user 185.45
sys 4.51

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/23877/ft1_filtered_4FGL_J1037.7+5711_daily_bin1446.fits scfile=/scratch/kocevski/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits outfile=/scratch/kocevski/23877/cmap_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=159.429 yref=57.192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/23877/ft1_filtered_4FGL_J1037.7+5711_daily_bin1446.fits scfile=/scratch/kocevski/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits outfile=/scratch/kocevski/23877/cmap_HighResolution_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23877/ft1_filtered_4FGL_J1037.7+5711_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/23877/ft2_4FGL_J1037.7+5711_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23877/Model_4FGL_J1037.7+5711_daily_bin1446.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/23877/ft1_filtered_4FGL_J1037.7+5711_daily_bin1446.fits.....................!
real 60.52
user 59.09
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.956       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .94192       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7672       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5732       1.0000         .10000E-03   10000.    
    10 'norm      '    .86993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50885E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0313       1.0000         .10000E-03   10000.    
    13 'norm      '    9.4741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16915       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.465       1.0000         .10000E-03   10000.    
    17 'norm      '    .49155E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26325E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    99.420       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4699       1.0000         .10000E-03   10000.    
    23 'Prefactor '    77.917       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2917       1.0000         .10000E-03   10000.    
    26 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0456       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12201       1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.4273       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1341       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6157.567     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     3928 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4384        .79206       -.11658E-06   -.23902E-03
   2  Prefactor     .10000E-03    1.0813        .60273E-06** at limit **
   3  Prefactor     12.958        1.0193       -.29414E-07    .97901E-03
   4  Prefactor     .10000E-03    3.0328        .28347E-06** at limit **
   5  Prefactor     .10000E-03    3.8951        .51307E-06** at limit **
   6  Prefactor     .10000E-03    1.6947       -.49525E-06** at limit **
   7  norm          .94893        12.418       -.52581E-06   -.41653E-03
   8  Prefactor     8.7488        4.0811       -.30304E-07   -.29373E-02
   9  norm          1.5736        .56663        .93668E-07    .77742E-03
  10  norm          .87102        1.2065       -.16203E-07    .29743E-03
  11  Prefactor     .18344E-02    4.3838       -.95744E-06** at limit **
  12  norm          2.0312        .80505       -.75785E-07   -.10564E-03
  13  norm          9.4748        3.5869        .38352E-07   -.23655E-04
  14  Prefactor     .13411E-03    793.67       -.12628E-04** at limit **
  15  norm          .10000E-03    8.5035        .22568E-05** at limit **
  16  Prefactor     36.492        18.864       -.29895E-07   -.62346E-02
  17  norm          .10000E-03    13.433       -.48060E-05** at limit **
  18  norm          2.6362        1.5556        .15617E-06    .27745E-03
  19  Prefactor     .39833E-03    24.256       -.17355E-05** at limit **
  20  Prefactor     99.368        4.3252       -.10106E-06    .11317E-01
  21  Prefactor     .10000E-03    41.497        .45536E-05** at limit **
  22  norm          1.4699        1.3934        .47393E-07    .80185E-04
  23  Prefactor     77.938        1.8374        .38672E-07   -.19910E-03
  24  Prefactor     14.565        5.8918       -.28209E-07   -.79039E-03
  25  Prefactor     1.1192        35.855       -.28236E-05    .22260E-02
  26  norm          .10000E-03    19.778       -.29516E-05** at limit **
  27  Prefactor     7.0503        1.1068       -.64761E-07    .25974E-02
  28  Prefactor     .71996E-01    31.956       -.25691E-05    .45159E-03
  29  norm          .10000E-03    6.4747       -.50619E-06** at limit **
  30  norm          .10000E-03    3.8302       -.40132E-06** at limit **
  31  Prefactor     3.4230        1.5957        .29236E-06   -.34373E-02
  32  Normalizat    1.1338        .20044        .37081E-05    .26613E-03
  33  Prefactor     .84801        .23326       -.26521E-05    .12133E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43844
  Prefactor  = 0.0001
  Prefactor  = 12.9583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.948926
  Prefactor  = 8.74882
  norm       = 1.57355
  norm       = 0.871018
  Prefactor  = 0.00183444
  norm       = 2.03116
  norm       = 9.4748
  Prefactor  = 0.000134108
  norm       = 0.0001
  Prefactor  = 36.4924
  norm       = 0.000100004
  norm       = 2.6362
  Prefactor  = 0.000398328
  Prefactor  = 99.3682
  Prefactor  = 0.0001
  norm       = 1.46989
  Prefactor  = 77.9381
  Prefactor  = 14.5652
  Prefactor  = 1.1192
  norm       = 0.0001
  Prefactor  = 7.05035
  Prefactor  = 0.0719959
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.42299
  Normalizat = 1.13379
  Prefactor  = 0.848006
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.567     FROM HESSE     STATUS=OK           793 CALLS     4721 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4384        .79670        .89953E-02   -1.5468    
   2  Prefactor     .10000E-03    1.0683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.958        13.991        .27821E-02   -1.4988    
   4  Prefactor     .10000E-03    3.0320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6912        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .94893        21.079        .12959E-01   -1.5513    
   8  Prefactor     8.7488        30.972        .33843E-02   -1.5116    
   9  norm          1.5736        .56977        .77591E-02   -1.5457    
  10  norm          .87102        17.207        .12698E-01   -1.5521    
  11  Prefactor     .18344E-02    2.6058        .69880E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0312        .80866        .72562E-02   -1.5423    
  13  norm          9.4748        3.6082        .32550E-02   -1.5092    
  14  Prefactor     .13411E-03    28.770        .12555       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.492        23.278        .16592E-02   -1.4499    
  17  norm          .10000E-03    1.4720        .55151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6362        1.5589        .62788E-02   -1.5383    
  19  Prefactor     .39833E-03    465.84        .99829E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     99.368        118.88        .10079E-02   -1.3711    
  21  Prefactor     .10000E-03    41.675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4699        1.4101        .88621E-02   -1.5465    
  23  Prefactor     77.938        66.313        .11373E-02   -1.3940    
  24  Prefactor     14.565        21.154        .26244E-02   -1.4944    
  25  Prefactor     1.1192        1481.5        .97389E-02   -1.5496    
  26  norm          .10000E-03    19.820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.0503        6.6774        .37783E-02   -1.5177    
  28  Prefactor     .71996E-01    16.250        .11625       -1.5654    
  29  norm          .10000E-03    6.4484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    3.8073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.4230        7.8107        .54623E-02   -1.5338    
  32  Normalizat    1.1338        .18540        .36755E-01   -.88674    
  33  Prefactor     .84801        .20516        .70164E-01   -.97982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35922e-05
Minuit parameter uncertainties:
  1  0.796706
  2  6.85512e-06
  3  13.994
  4  6.42777e-06
  5  9.88651e-06
  6  6.69559e-06
  7  8.94798
  8  31.0287
  9  0.569775
  10  7.74481
  11  0.134462
  12  0.808669
  13  3.60829
  14  0.0626813
  15  0.000126891
  16  23.2839
  17  0.000155066
  18  1.55894
  19  0.751492
  20  119.166
  21  4.06895e-05
  22  1.41011
  23  66.3763
  24  21.1646
  25  83.5979
  26  0.000140404
  27  6.67811
  28  2.16238
  29  2.108e-05
  30  3.80349e-06
  31  7.81298
  32  0.185504
  33  0.205341
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  8.480e-01  2.053e-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.134e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.93
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.99e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.41738869
delta logL = 0.14917416352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.41459823
delta logL = 0.151964630619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3789       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85208       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=   6157.415     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3787        33.839        .66401E-02    .63029E-04
   2  alpha         1.9987        3.3381        .27699        .39955E-04
   3  Normalizat    1.1264        .10438        .37017E-01    .46280E-05
   4  Prefactor     .85201        .96136E-01    .70000E-01    .21427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.37869
  alpha      = 1.99872
  Normalizat = 1.12643
  Prefactor  = 0.852011
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.415     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3787        1.5570        .67315E-04   -1.5399    
   2  alpha         1.9987        .44968        .10837E-01   -.20188    
   3  Normalizat    1.1264        .19301        .23189E-03   -.88908    
   4  Prefactor     .85201        .22747        .30971E-03   -.97839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89718e-12
Minuit parameter uncertainties:
  1  1.557
  2  0.452247
  3  0.193133
  4  0.227721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23877': 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) = 6157.41459766
delta logL = 0.151965198653

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  2.379e+00  1.557e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.999e+00  4.522e-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:  8.520e-01  2.277e-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.126e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.22
Ra Dec: 159.429 57.192
Photon Index (Free Index): 2.00 +/- 0.45
Photon Flux (Free Index): 3.69e-08 +/- 2.53e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.92e-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/23877/cmap_HighResolution_614131201_614390401_4FGL_J1037.7+5711_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='2.48e-05', photon_flux_error='1.72e-08', dlogl='1.52e-01', energy_flux='3.36e-05', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-09-02 06:17:15.773650', photon_index_error2='0.45', photon_index2='2.00', ts='8.93', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='1.13', time_epoch_completed='1630588635.77', return_code='0', job_id='23877', GAL2='0.85', EG2='1.13', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='2.53e-08', ts2='9.22', photon_index='1.76' WHERE bin_id='1446' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:17:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 23877: <4FGL_J1037.7+5711_daily_bin1446> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin1446> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 06:01:23 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:01:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 06:01:24 2021
Terminated at Thu Sep  2 06:17:16 2021
Results reported at Thu Sep  2 06:17:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin1446 159.429 57.192 614131201 614390401 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 :                                   928.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

