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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin748
RA = 159.429, Dec = 57.192
tmin = 433209601, tmax = 433468801
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='19358', job_status='RUN', time_executed='2021-09-02 05:46:40.336955', time_epoch_executed='1630586800.34' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19358/ft1_4FGL_J1037.7+5711_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19358/ft1_4FGL_J1037.7+5711_daily_bin748.fits outfile=/scratch/kocevski/19358/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin748.fits ra=159.429 dec=57.192 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.17
user 5.88
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19358/ft1_filtered_4FGL_J1037.7+5711_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/19358/ltcube_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.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/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits
.....................!
real 17.43
user 17.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19358/ft1_filtered_4FGL_J1037.7+5711_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/19358/ltcube_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.fits outfile=/scratch/kocevski/19358/expmap_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.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/19358/ltcube_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.fits
.....................!
real 191.71
user 186.47
sys 4.27

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/19358/ft1_filtered_4FGL_J1037.7+5711_daily_bin748.fits scfile=/scratch/kocevski/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits outfile=/scratch/kocevski/19358/cmap_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19358/ft1_filtered_4FGL_J1037.7+5711_daily_bin748.fits scfile=/scratch/kocevski/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits outfile=/scratch/kocevski/19358/cmap_HighResolution_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19358/ft1_filtered_4FGL_J1037.7+5711_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/19358/ft2_4FGL_J1037.7+5711_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19358/Model_4FGL_J1037.7+5711_daily_bin748.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/19358/ft1_filtered_4FGL_J1037.7+5711_daily_bin748.fits.....................!
real 56.17
user 53.25
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70169       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40621       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11665E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6242       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0527       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .28335       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6822       1.0000         .10000E-03   10000.    
    17 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5078       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7172       1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.950       1.0000         .10000E-03   10000.    
    29 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.7384       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .60536       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2119       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=   5534.658     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4612 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70136        .71898       -.14850E-07   -.34568E-03
   2  Prefactor     .40726        2.3712       -.32664E-06   -.26810E-04
   3  Prefactor     .10000E-03    12.377       -.51229E-05** at limit **
   4  Prefactor     .10000E-03    18.601        .53713E-05** at limit **
   5  Prefactor     9.1961        7.2144        .16686E-07   -.29286E-03
   6  Prefactor     1.6277        1.9320        .57006E-06   -.23518E-02
   7  norm          .10000E-03    4.7242       -.20245E-05** at limit **
   8  Prefactor     .10000E-03    11.413        .21864E-05** at limit **
   9  norm          2.0527        .57921        .22011E-08   -.65750E-04
  10  norm          .10000E-03    6.5110       -.55834E-05** at limit **
  11  Prefactor     .10000E-03    4.3850        .22746E-05** at limit **
  12  norm          .28335        .51710        .36557E-07   -.20570E-03
  13  norm          8.4715        3.4680       -.14540E-07   -.39288E-04
  14  Prefactor     .10000E-03    8.9099        .16570E-05** at limit **
  15  norm          .10000E-03    4.2382       -.11500E-05** at limit **
  16  Prefactor     4.6718        13.257       -.41892E-06   -.22402E-04
  17  norm          .10000E-03    .80012        .23347E-07** at limit **
  18  norm          1.1091        .88597        .48541E-08    .24995E-04
  19  Prefactor     .10000E-03    42.028       -.97639E-07** at limit **
  20  Prefactor     .10000E-03    49.390        .20865E-04** at limit **
  21  Prefactor     .10000E-03    94.620       -.36164E-04** at limit **
  22  norm          2.3089        1.8336        .35419E-07    .20729E-03
  23  Prefactor     .10000E-03    23.192        .21344E-06** at limit **
  24  Prefactor     1.5026        37.675       -.33000E-07   -.13202E-04
  25  Prefactor     .10000E-03    77.287        .20919E-04** at limit **
  26  norm          .10000E-03    34.669       -.16694E-04** at limit **
  27  Prefactor     5.7168        5.3706        .19089E-07   -.35057E-03
  28  Prefactor     48.949        30.958       -.64652E-06   -.25503E-04
  29  norm          .10000E-03    4.0417        .24715E-06** at limit **
  30  norm          1.7374        5.3694       -.14091E-06   -.23117E-03
  31  Prefactor     .10000E-03    6.2177        .53705E-05** at limit **
  32  Normalizat    .60541        .15000        .14332E-06   -.91477E-04
  33  Prefactor     1.2119        .18158       -.60298E-07   -.69853E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.701361
  Prefactor  = 0.407256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19608
  Prefactor  = 1.62774
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.05272
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.283354
  norm       = 8.47152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.67178
  norm       = 0.0001
  norm       = 1.10907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30894
  Prefactor  = 0.0001
  Prefactor  = 1.50265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.7168
  Prefactor  = 48.9486
  norm       = 0.0001
  norm       = 1.73743
  Prefactor  = 0.0001
  Normalizat = 0.605412
  Prefactor  = 1.21192
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.658     FROM HESSE     STATUS=OK           697 CALLS     5309 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70136        .68711        .59539E-03   -1.5540    
   2  Prefactor     .40726        4.7919        .21008E-02   -1.5580    
   3  Prefactor     .10000E-03    12.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1961        7.1169        .13211E-03   -1.5101    
   6  Prefactor     1.6277        6.0977        .15341E-02   -1.5453    
   7  norm          .10000E-03    4.7980        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0527        .58060        .28980E-04   -1.5421    
  10  norm          .10000E-03    6.5353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5235        .30374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .28335        .49053        .67544E-03   -1.5602    
  13  norm          8.4715        3.4678        .85488E-04   -1.5126    
  14  Prefactor     .10000E-03    8.9170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2400        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6718        13.190        .18598E-03   -1.5276    
  17  norm          .10000E-03    .80379        .64520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1091        .90106        .60953E-04   -1.5497    
  19  Prefactor     .10000E-03    42.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    49.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    94.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3089        1.8224        .84764E-04   -1.5404    
  23  Prefactor     .10000E-03    23.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5026        37.284        .34844E-03   -1.5463    
  25  Prefactor     .10000E-03    77.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    34.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.7168        5.3777        .79951E-03   -1.5230    
  28  Prefactor     48.949        30.863        .57315E-04   -1.4308    
  29  norm          .10000E-03    4.0430        .14607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.7374        5.3382        .28397E-03   -1.5444    
  31  Prefactor     .10000E-03    6.2403        .18094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .60541        .17151        .25258E-03   -1.0775    
  33  Prefactor     1.2119        .20707        .23220E-03   -.85965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00345e-08
Minuit parameter uncertainties:
  1  0.687118
  2  2.79389
  3  7.11411e-06
  4  5.05166e-05
  5  7.11756
  6  6.10004
  7  1.54999e-06
  8  7.90092e-06
  9  0.580604
  10  1.07466e-05
  11  8.33842e-06
  12  0.490534
  13  3.46786
  14  3.92896e-06
  15  2.30136e-06
  16  13.1982
  17  1.2565e-06
  18  0.901075
  19  1.00497e-06
  20  0.000133801
  21  0.000324881
  22  1.82249
  23  1.33336e-06
  24  14.9799
  25  0.000156231
  26  9.71358e-05
  27  5.37814
  28  30.8726
  29  9.67717e-07
  30  5.33961
  31  8.77166e-06
  32  0.171664
  33  0.207209
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.109e+00  9.011e-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:  1.212e+00  2.072e-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:  6.054e-01  1.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.30
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 9.93e-09
Energy Flux (Fixed Index): 1.41e-05 +/- 1.15e-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) = 5534.1105365
delta logL = 0.547768266826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5534.10237995
delta logL = 0.555924816265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99823       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1706       1.0000          .0000       5.0000    
     3 'Normalizat'    .60913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2111       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=   5534.102     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99769        .80621        .13159E-01   -.23829E-03
   2  alpha         1.1698        .44228        .36829       -.20232E-04
   3  Normalizat    .60948        .13869        .41064E-01    .60982E-04
   4  Prefactor     1.2106        .17590        .52550E-01    .11817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.997691
  alpha      = 1.16979
  Normalizat = 0.609483
  Prefactor  = 1.21062
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.102     FROM HESSE     STATUS=OK            35 CALLS      237 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99769        .94035        .58356E-03   -1.5508    
   2  alpha         1.1698        .53187        .15211E-01   -.56106    
   3  Normalizat    .60948        .15671        .25179E-03   -1.0758    
   4  Prefactor     1.2106        .19889        .23233E-03   -.86005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61873e-10
Minuit parameter uncertainties:
  1  0.940359
  2  0.537633
  3  0.156828
  4  0.19901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19358': 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) = 5534.10237572
delta logL = 0.555929041022

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  9.977e-01  9.404e-01  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.170e+00  5.376e-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:  1.211e+00  1.990e-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:  6.095e-01  1.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.17 +/- 0.54
Photon Flux (Free Index): 7.13e-09 +/- 6.83e-09
Energy Flux (Free Index): 4.09e-05 +/- 5.24e-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/19358/cmap_HighResolution_433209601_433468801_4FGL_J1037.7+5711_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='4.09e-05', photon_flux_error='9.93e-09', dlogl='5.56e-01', energy_flux='1.41e-05', photon_flux2='7.13e-09', job_status='DONE', time_completed='2021-09-02 06:02:35.196423', photon_index_error2='0.54', photon_index2='1.17', ts='9.30', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='5.24e-05', EG='0.61', time_epoch_completed='1630587755.2', return_code='0', job_id='19358', GAL2='1.21', EG2='0.61', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.83e-09', ts2='10.41', photon_index='1.76' WHERE bin_id='748' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:02:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 19358: <4FGL_J1037.7+5711_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin748 159.429 57.192 433209601 433468801 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 :                                   948.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             354.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            971 sec.

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

