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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin829
RA = 159.429, Dec = 57.192
tmin = 454204801, tmax = 454464001
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='19483', job_status='RUN', time_executed='2021-09-02 05:48:34.711296', time_epoch_executed='1630586914.71' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19483/ft1_4FGL_J1037.7+5711_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19483/ft1_4FGL_J1037.7+5711_daily_bin829.fits outfile=/scratch/kocevski/19483/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin829.fits ra=159.429 dec=57.192 rad=12.0 tmin=454204801.0 tmax=454464001.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 3.03
user 2.80
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19483/ft1_filtered_4FGL_J1037.7+5711_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/19483/ltcube_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.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/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits
.....................!
real 13.22
user 12.82
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19483/ft1_filtered_4FGL_J1037.7+5711_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/19483/ltcube_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.fits outfile=/scratch/kocevski/19483/expmap_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.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/19483/ltcube_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.fits
.....................!
real 158.24
user 153.63
sys 3.41

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/19483/ft1_filtered_4FGL_J1037.7+5711_daily_bin829.fits scfile=/scratch/kocevski/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits outfile=/scratch/kocevski/19483/cmap_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.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.47
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19483/ft1_filtered_4FGL_J1037.7+5711_daily_bin829.fits scfile=/scratch/kocevski/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits outfile=/scratch/kocevski/19483/cmap_HighResolution_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.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 1.08
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19483/ft1_filtered_4FGL_J1037.7+5711_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/19483/ft2_4FGL_J1037.7+5711_daily_bin829.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19483/Model_4FGL_J1037.7+5711_daily_bin829.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/19483/ft1_filtered_4FGL_J1037.7+5711_daily_bin829.fits.....................!
real 55.64
user 54.31
sys 0.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.728       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.923       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82685       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9362       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8845       1.0000         .10000E-03   10000.    
    13 'norm      '    14.575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33828E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1327       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7933       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    90.774       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5082       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.305       1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.667       1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11268E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    4.3156       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.0418       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98143       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=   7144.969     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4585 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26572        .18309E-06** at limit **
   2  Prefactor     .10000E-03    3.3242        .28207E-06** at limit **
   3  Prefactor     30.729        21.823       -.23996E-07   -.20064E-04
   4  Prefactor     .10000E-03    6.9880        .18951E-06** at limit **
   5  Prefactor     .10000E-03    4.3569        .32576E-06** at limit **
   6  Prefactor     19.926        10.142       -.10063E-06   -.81747E-04
   7  norm          .10000E-03    2.7942        .53484E-07** at limit **
   8  Prefactor     .10000E-03    22.430        .33402E-06** at limit **
   9  norm          .82685        .41015       -.10909E-07   -.29230E-03
  10  norm          .10000E-03    5.3920        .71761E-07** at limit **
  11  Prefactor     5.9365        6.4402        .20247E-06    .78463E-04
  12  norm          1.8846        .68120        .58998E-08   -.36113E-03
  13  norm          14.576        4.2711       -.15797E-07   -.52323E-04
  14  Prefactor     .10000E-03    6.2443        .24567E-07** at limit **
  15  norm          .10000E-03    5.6552        .63436E-07** at limit **
  16  Prefactor     .10000E-03    7.0319       -.15227E-06** at limit **
  17  norm          1.1327        1.3746       -.62668E-07   -.10734E-03
  18  norm          1.7931        1.0568        .35653E-08    .16116E-03
  19  Prefactor     .10000E-03    79.109        .19903E-06** at limit **
  20  Prefactor     .10000E-03    24.194       -.19361E-06** at limit **
  21  Prefactor     90.688        90.455        .16784E-05    .92901E-04
  22  norm          .10000E-03    1.2384       -.17207E-05** at limit **
  23  Prefactor     2.4657        212.15       -.27414E-05   -.16403E-04
  24  Prefactor     18.280        19.209        .11502E-05    .30593E-03
  25  Prefactor     65.675        71.450       -.16158E-06   -.95075E-05
  26  norm          .10000E-03    17.777       -.97244E-08** at limit **
  27  Prefactor     .10002E-03    4.7511        .14520E-05** at limit **
  28  Prefactor     .10000E-03    8.3222        .63017E-07** at limit **
  29  norm          .10000E-03    5.2015        .22273E-07** at limit **
  30  norm          4.3157        4.4154        .34839E-06    .19589E-03
  31  Prefactor     6.0419        6.3498       -.16503E-06   -.51726E-04
  32  Normalizat    1.0559        .16571        .76318E-06   -.15337E-03
  33  Prefactor     .98153        .18768       -.16099E-05   -.16082E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9261
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.826848
  norm       = 0.0001
  Prefactor  = 5.93648
  norm       = 1.88461
  norm       = 14.5757
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13272
  norm       = 1.79315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.688
  norm       = 0.0001
  Prefactor  = 2.46572
  Prefactor  = 18.2804
  Prefactor  = 65.6747
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.31575
  Prefactor  = 6.04189
  Normalizat = 1.05589
  Prefactor  = 0.98153
 **********
 **   18 **HESSE 
 **********

 FCN=   7144.969     FROM HESSE     STATUS=OK           697 CALLS     5282 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .42714        .83980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4601        .30038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.729        21.816        .72281E-04   -1.4599    
   4  Prefactor     .10000E-03    7.0352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4224        .17237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.926        10.110        .89732E-04   -1.4815    
   7  norm          .10000E-03    2.7988        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82685        .41197        .36832E-04   -1.5526    
  10  norm          .10000E-03    5.3995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9365        6.4276        .16481E-03   -1.5221    
  12  norm          1.8846        .68004        .40191E-04   -1.5433    
  13  norm          14.576        4.2696        .91056E-04   -1.4944    
  14  Prefactor     .10000E-03    6.2466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.435        .41193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1327        1.3074        .10177E-03   -1.5495    
  18  norm          1.7931        1.0566        .31230E-04   -1.5440    
  19  Prefactor     .10000E-03    79.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     90.688        91.503        .21088E-03   -1.3800    
  22  norm          .10000E-03    1.3575        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4657        215.76        .25801E-03   -1.5394    
  24  Prefactor     18.280        19.664        .93613E-04   -1.4853    
  25  Prefactor     65.675        71.443        .24763E-03   -1.4085    
  26  norm          .10000E-03    17.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    16.175        .31493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    5.2222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          4.3157        4.4215        .16629E-03   -1.5292    
  31  Prefactor     6.0419        6.3440        .16335E-03   -1.5216    
  32  Normalizat    1.0559        .18612        .23417E-03   -.91181    
  33  Prefactor     .98153        .21309        .28973E-03   -.93348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66243e-09
Minuit parameter uncertainties:
  1  1.02144e-06
  2  1.96569e-05
  3  21.8219
  4  1.93749e-05
  5  2.42835e-05
  6  10.1113
  7  3.59956e-06
  8  4.7335e-05
  9  0.411971
  10  5.21103e-06
  11  6.42839
  12  0.680038
  13  4.26969
  14  4.15623e-06
  15  5.06785e-06
  16  0.000228722
  17  1.30744
  18  1.05657
  19  8.60096e-05
  20  1.96348e-05
  21  91.6454
  22  9.10182e-06
  23  46.3023
  24  19.6705
  25  71.5364
  26  1.01127e-05
  27  0.00114262
  28  3.54831e-07
  29  2.76597e-06
  30  4.42181
  31  6.34468
  32  0.186232
  33  0.213271
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.793e+00  1.057e+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:  9.815e-01  2.133e-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.056e+00  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.08
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.35e-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) = 7143.96890559
delta logL = 0.999663285808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7143.95822636
delta logL = 1.01034251702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6441       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97673       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=   7143.958     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6480        .99189        .82361E-02   -.88358E-04
   2  alpha         1.1685        .33248        .31011       -.88650E-05
   3  Normalizat    1.0641        .15029        .39684E-01    .10453E-04
   4  Prefactor     .97697        .18094        .65695E-01    .24384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64798
  alpha      = 1.16849
  Normalizat = 1.06413
  Prefactor  = 0.976971
 **********
 **   18 **HESSE 
 **********

 FCN=   7143.958     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6480        1.1225        .63762E-04   -1.5451    
   2  alpha         1.1685        .39361        .13017E-01   -.56167    
   3  Normalizat    1.0641        .17400        .23336E-03   -.90912    
   4  Prefactor     .97697        .20932        .29056E-03   -.93501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43213e-11
Minuit parameter uncertainties:
  1  1.12254
  2  0.395912
  3  0.174091
  4  0.209489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19483': 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) = 7143.95821938
delta logL = 1.01034949281

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.648e+00  1.123e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.168e+00  3.959e-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:  9.770e-01  2.095e-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.064e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.10
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.17 +/- 0.40
Photon Flux (Free Index): 1.18e-08 +/- 8.15e-09
Energy Flux (Free Index): 6.77e-05 +/- 6.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/19483/cmap_HighResolution_454204801_454464001_4FGL_J1037.7+5711_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='6.77e-05', photon_flux_error='1.16e-08', dlogl='1.01e+00', energy_flux='2.28e-05', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-09-02 06:03:03.021911', photon_index_error2='0.40', photon_index2='1.17', ts='14.08', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.43e-05', EG='1.06', time_epoch_completed='1630587783.02', return_code='0', job_id='19483', GAL2='0.98', EG2='1.06', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='8.15e-09', ts2='16.10', photon_index='1.76' WHERE bin_id='829' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:03:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 19483: <4FGL_J1037.7+5711_daily_bin829> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin829 159.429 57.192 454204801 454464001 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 :                                   861.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

