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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin768
RA = 159.429, Dec = 57.192
tmin = 438393601, tmax = 438652801
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='19389', job_status='RUN', time_executed='2021-09-02 05:50:13.402204', time_epoch_executed='1630587013.4' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19389/ft1_4FGL_J1037.7+5711_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19389/ft2_4FGL_J1037.7+5711_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19389/ft1_4FGL_J1037.7+5711_daily_bin768.fits outfile=/scratch/kocevski/19389/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin768.fits ra=159.429 dec=57.192 rad=12.0 tmin=438393601.0 tmax=438652801.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.45
user 6.10
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19389/ft1_filtered_4FGL_J1037.7+5711_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/19389/ft2_4FGL_J1037.7+5711_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/19389/ltcube_438393601_438652801_4FGL_J1037.7+5711_daily_bin768.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/19389/ft2_4FGL_J1037.7+5711_daily_bin768.fits
.....................!
real 17.64
user 17.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19389/ft1_filtered_4FGL_J1037.7+5711_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/19389/ft2_4FGL_J1037.7+5711_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/19389/ltcube_438393601_438652801_4FGL_J1037.7+5711_daily_bin768.fits outfile=/scratch/kocevski/19389/expmap_438393601_438652801_4FGL_J1037.7+5711_daily_bin768.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/19389/ltcube_438393601_438652801_4FGL_J1037.7+5711_daily_bin768.fits
.....................!
real 192.82
user 186.91
sys 4.59

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/19389/ft1_filtered_4FGL_J1037.7+5711_daily_bin768.fits scfile=/scratch/kocevski/19389/ft2_4FGL_J1037.7+5711_daily_bin768.fits outfile=/scratch/kocevski/19389/cmap_438393601_438652801_4FGL_J1037.7+5711_daily_bin768.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.56
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19389/ft1_filtered_4FGL_J1037.7+5711_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/19389/ft2_4FGL_J1037.7+5711_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19389/Model_4FGL_J1037.7+5711_daily_bin768.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/19389/ft1_filtered_4FGL_J1037.7+5711_daily_bin768.fits.....................!
real 42.15
user 40.79
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15286E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.255       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4262       1.0000         .10000E-03   10000.    
    10 'norm      '    7.6089       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3231       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.344       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.347       1.0000         .10000E-03   10000.    
    17 'norm      '    15.949       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .51660E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10727E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.292       1.0000         .10000E-03   10000.    
    25 'Prefactor '    63.969       1.0000         .10000E-03   10000.    
    26 'norm      '    10.594       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    75.927       1.0000         .10000E-03   10000.    
    29 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    4.0281       1.0000         .10000E-03   10000.    
    31 'Prefactor '    14.642       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67298       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=   3545.484     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4622 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45249        .47300        .78062E-07    .62062E-04
   2  Prefactor     .10000E-03    395.77       -.24005E-04** at limit **
   3  Prefactor     .10000E-03    15.791       -.10264E-08** at limit **
   4  Prefactor     .10000E-03    5.9159       -.61466E-07** at limit **
   5  Prefactor     .10000E-03    4.1242        .63094E-06** at limit **
   6  Prefactor     .10000E-03    2.8744        .21463E-06** at limit **
   7  norm          .10000E-03    4.2007        .54603E-06** at limit **
   8  Prefactor     23.250        33.072       -.46170E-06   -.33347E-05
   9  norm          2.4261        .85297        .27573E-07   -.19877E-04
  10  norm          7.6081        11.759       -.25809E-06    .51526E-05
  11  Prefactor     .10000E-03    2.7615        .23364E-06** at limit **
  12  norm          1.3231        .92724        .15394E-06    .88326E-05
  13  norm          2.5750        2.3919        .15636E-06    .39343E-05
  14  Prefactor     42.345        53.722       -.68536E-06    .13040E-05
  15  norm          .10000E-03    23.654       -.27325E-06** at limit **
  16  Prefactor     50.320        69.389        .37705E-05   -.85934E-05
  17  norm          15.950        9.0706       -.75502E-06    .64732E-04
  18  norm          1.6107        1.5725        .17054E-06   -.59101E-04
  19  Prefactor     .10000E-03    509.13       -.85094E-05** at limit **
  20  Prefactor     .10000E-03    44.563        .15448E-05** at limit **
  21  Prefactor     .10000E-03    98.483        .26715E-05** at limit **
  22  norm          .10000E-03    13.537        .70877E-05** at limit **
  23  Prefactor     .10000E-03    47.085        .40420E-05** at limit **
  24  Prefactor     20.251        53.529       -.10155E-04    .15976E-05
  25  Prefactor     63.622        187.43       -.12873E-04   -.10776E-05
  26  norm          10.699        125.61        .23266E-04    .87702E-05
  27  Prefactor     .10000E-03    5.8360        .18004E-06** at limit **
  28  Prefactor     75.945        71.769        .20007E-05    .32112E-05
  29  norm          .10000E-03    22.728       -.24804E-06** at limit **
  30  norm          4.0293        9.7668       -.12183E-05    .35997E-06
  31  Prefactor     14.638        20.328        .46958E-06   -.23673E-05
  32  Normalizat    1.2272        .28144       -.16039E-05    .20895E-04
  33  Prefactor     .67275        .29412       -.46857E-05    .11765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.452489
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.25
  norm       = 2.42614
  norm       = 7.60814
  Prefactor  = 0.0001
  norm       = 1.3231
  norm       = 2.57503
  Prefactor  = 42.3446
  norm       = 0.0001
  Prefactor  = 50.3204
  norm       = 15.9505
  norm       = 1.61071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2508
  Prefactor  = 63.6221
  norm       = 10.6987
  Prefactor  = 0.0001
  Prefactor  = 75.9452
  norm       = 0.0001
  norm       = 4.02928
  Prefactor  = 14.6377
  Normalizat = 1.22721
  Prefactor  = 0.672752
 **********
 **   18 **HESSE 
 **********

 FCN=   3545.484     FROM HESSE     STATUS=OK           707 CALLS     5329 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45249        .47349        .40485E-04   -1.5573    
   2  Prefactor     .10000E-03    9.9410        .27882E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9407        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1781        .11829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8945        .98602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2042        .11917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.250        33.052        .83062E-04   -1.4743    
   9  norm          2.4261        .85411        .30418E-04   -1.5396    
  10  norm          7.6081        11.757        .14538E-03   -1.5156    
  11  Prefactor     .10000E-03    2.7886        .96755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3231        .91846        .44818E-04   -1.5478    
  13  norm          2.5750        2.4015        .86171E-04   -1.5387    
  14  Prefactor     42.345        53.823        .61605E-04   -1.4406    
  15  norm          .10000E-03    23.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.320        70.169        .56518E-04   -1.4288    
  17  norm          15.950        9.1660        .87826E-04   -1.4909    
  18  norm          1.6107        1.5908        .71628E-04   -1.5454    
  19  Prefactor     .10000E-03    509.27        .21141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    98.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.514        .19425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.251        53.791        .88915E-04   -1.4808    
  25  Prefactor     63.622        188.04        .25087E-03   -1.4111    
  26  norm          10.699        125.25        .12310E-03   -1.5054    
  27  Prefactor     .10000E-03    5.8523        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     75.945        71.783        .46082E-04   -1.3963    
  29  norm          .10000E-03    22.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          4.0293        9.7527        .20092E-03   -1.5306    
  31  Prefactor     14.638        20.337        .10467E-03   -1.4943    
  32  Normalizat    1.2272        .29012        .22906E-03   -.85766    
  33  Prefactor     .67275        .29490        .33335E-03   -1.0460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3191e-11
Minuit parameter uncertainties:
  1  0.473497
  2  0.000293013
  3  1.14736e-05
  4  3.69167e-06
  5  2.51494e-06
  6  1.3922e-06
  7  1.71682e-06
  8  33.0778
  9  0.854114
  10  11.7607
  11  2.74218e-06
  12  0.918474
  13  2.40164
  14  53.8844
  15  1.40146e-05
  16  70.2843
  17  9.16682
  18  1.59084
  19  1.74989e-06
  20  1.52611e-05
  21  9.36261e-06
  22  2.03094e-05
  23  2.49733e-05
  24  53.9199
  25  189.841
  26  73.4058
  27  8.77586e-07
  28  71.8646
  29  3.63124e-05
  30  9.75658
  31  20.3465
  32  0.2905
  33  0.295581
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.611e+00  1.591e+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:  6.728e-01  2.956e-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.227e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.77
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.78e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 2.03e-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) = 3545.30153319
delta logL = 0.182558178037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3545.2764342
delta logL = 0.207657161733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2465       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1902       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66673       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=   3545.276     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2502        1.1894        .14383E-01   -.22548E-03
   2  alpha         1.1916        .60990        .40271       -.19960E-04
   3  Normalizat    1.2369        .21943        .51652E-01    .29024E-05
   4  Prefactor     .66693        .24427        .75604E-01    .18205E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2502
  alpha      = 1.19156
  Normalizat = 1.23686
  Prefactor  = 0.666932
 **********
 **   18 **HESSE 
 **********

 FCN=   3545.276     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2502        1.4853        .61324E-03   -1.5484    
   2  alpha         1.1916        .75592        .16716E-01   -.55081    
   3  Normalizat    1.2369        .25042        .22836E-03   -.85471    
   4  Prefactor     .66693        .27837        .33470E-03   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61441e-10
Minuit parameter uncertainties:
  1  1.48538
  2  0.772759
  3  0.250662
  4  0.278951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19389': 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) = 3545.27643075
delta logL = 0.207660616838

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.250e+00  1.485e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.192e+00  7.728e-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:  6.669e-01  2.790e-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.237e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.18
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.19 +/- 0.77
Photon Flux (Free Index): 8.95e-09 +/- 1.11e-08
Energy Flux (Free Index): 4.84e-05 +/- 8.22e-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/19389/cmap_HighResolution_438393601_438652801_4FGL_J1037.7+5711_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-08', energy_flux2='4.84e-05', photon_flux_error='1.75e-08', dlogl='2.08e-01', energy_flux='2.05e-05', photon_flux2='8.95e-09', job_status='DONE', time_completed='2021-09-02 06:02:47.377369', photon_index_error2='0.77', photon_index2='1.19', ts='7.77', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='8.22e-05', EG='1.23', time_epoch_completed='1630587767.38', return_code='0', job_id='19389', GAL2='0.67', EG2='1.24', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='1.11e-08', ts2='8.18', photon_index='1.76' WHERE bin_id='768' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:02:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 19389: <4FGL_J1037.7+5711_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin768 159.429 57.192 438393601 438652801 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 :                                   750.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

