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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin928
RA = 159.429, Dec = 57.192
tmin = 479865601, tmax = 480124801
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='19674', job_status='RUN', time_executed='2021-09-02 05:47:11.135817', time_epoch_executed='1630586831.14' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19674/ft1_4FGL_J1037.7+5711_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19674/ft1_4FGL_J1037.7+5711_daily_bin928.fits outfile=/scratch/kocevski/19674/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin928.fits ra=159.429 dec=57.192 rad=12.0 tmin=479865601.0 tmax=480124801.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 2.85
user 2.65
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19674/ft1_filtered_4FGL_J1037.7+5711_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/19674/ltcube_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.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/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits
.....................!
real 11.61
user 11.27
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19674/ft1_filtered_4FGL_J1037.7+5711_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/19674/ltcube_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.fits outfile=/scratch/kocevski/19674/expmap_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.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/19674/ltcube_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.fits
.....................!
real 150.40
user 145.96
sys 4.09

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/19674/ft1_filtered_4FGL_J1037.7+5711_daily_bin928.fits scfile=/scratch/kocevski/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits outfile=/scratch/kocevski/19674/cmap_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19674/ft1_filtered_4FGL_J1037.7+5711_daily_bin928.fits scfile=/scratch/kocevski/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits outfile=/scratch/kocevski/19674/cmap_HighResolution_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19674/ft1_filtered_4FGL_J1037.7+5711_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/19674/ft2_4FGL_J1037.7+5711_daily_bin928.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19674/Model_4FGL_J1037.7+5711_daily_bin928.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/19674/ft1_filtered_4FGL_J1037.7+5711_daily_bin928.fits.....................!
real 47.73
user 46.61
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32261E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13152E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12155E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42488E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5212       1.0000         .10000E-03   10000.    
    10 'norm      '    20.077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2889       1.0000         .10000E-03   10000.    
    12 'norm      '    .37457E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8074       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.883       1.0000         .10000E-03   10000.    
    15 'norm      '    .11156E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    93.196       1.0000         .10000E-03   10000.    
    17 'norm      '    10.606       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14874E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    106.62       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .61936E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0077       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18267E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.387       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .69726E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .22203E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3541       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.5886       1.0000         .10000E-03   10000.    
    29 'norm      '    15.132       1.0000         .10000E-03   10000.    
    30 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.9527       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .99504       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77267       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6182.181     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     3270 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1368        1.2191       -.15553E-06    .69593E-03
   2  Prefactor     7.3850        4.2484        .57132E-07   -.41766E-03
   3  Prefactor     .10000E-03    7.7205       -.75326E-07** at limit **
   4  Prefactor     .10001E-03    6.7001       -.11392E-05** at limit **
   5  Prefactor     4.2206        3.8496        .46420E-05    .95965E-03
   6  Prefactor     .10000E-03    5.8370       -.24585E-07** at limit **
   7  norm          .10000E-03    2.8724       -.20553E-07** at limit **
   8  Prefactor     .10000E-03    9.3616        .29151E-05** at limit **
   9  norm          1.5208        .57576        .12506E-06   -.14464E-03
  10  norm          19.996        13.882        .52122E-05    .38046E-03
  11  Prefactor     5.3182        5.1962       -.22094E-06    .43508E-03
  12  norm          .38017E-01    2.0355       -.13224E-05   -.47224E-03
  13  norm          5.8086        2.6419       -.19320E-07    .10252E-02
  14  Prefactor     18.137        11.441       -.90743E-05    .76172E-02
  15  norm          .10010E-03    22.554        .51343E-06** at limit **
  16  Prefactor     93.643        30.621       -.41827E-06   -.51932E-02
  17  norm          10.600        4.3358        .61116E-07   -.75762E-03
  18  norm          1.0979        1.0254        .76744E-07   -.13965E-03
  19  Prefactor     .10512E-03    12.102        .28496E-04** at limit **
  20  Prefactor     112.15        88.346        .82119E-06   -.38487E-03
  21  Prefactor     .10015E-03    31.954        .12662E-04** at limit **
  22  norm          1.0088        1.0565        .91652E-07    .33179E-03
  23  Prefactor     .10003E-03    15.442        .90855E-05** at limit **
  24  Prefactor     30.119        19.871       -.29862E-05    .16374E-02
  25  Prefactor     .10108E-03    11.992       -.44000E-04** at limit **
  26  norm          .10000E-03    13.332       -.31924E-05** at limit **
  27  Prefactor     2.3744        4.3410       -.46427E-07    .69372E-05
  28  Prefactor     8.6680        5.0605        .23878E-05   -.94058E-03
  29  norm          15.177        10.592        .16131E-04   -.35087E-03
  30  norm          .10000E-03    7.4703        .43132E-06** at limit **
  31  Prefactor     5.9031        7.7891        .18656E-05    .10450E-02
  32  Normalizat    .99307        .19244       -.13612E-06    .17325E-03
  33  Prefactor     .77327        .22010       -.19652E-05    .16964E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13677
  Prefactor  = 7.38498
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 4.22056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5208
  norm       = 19.9963
  Prefactor  = 5.3182
  norm       = 0.0380165
  norm       = 5.80857
  Prefactor  = 18.1372
  norm       = 0.000100096
  Prefactor  = 93.6425
  norm       = 10.5998
  norm       = 1.09792
  Prefactor  = 0.000105118
  Prefactor  = 112.149
  Prefactor  = 0.000100151
  norm       = 1.00877
  Prefactor  = 0.000100031
  Prefactor  = 30.119
  Prefactor  = 0.000101084
  norm       = 0.0001
  Prefactor  = 2.37443
  Prefactor  = 8.66798
  norm       = 15.1769
  norm       = 0.0001
  Prefactor  = 5.90312
  Normalizat = 0.993071
  Prefactor  = 0.773273
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.181     FROM HESSE     STATUS=OK           775 CALLS     4045 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1368        1.3051        .70551E-02   -1.5416    
   2  Prefactor     7.3850        4.2584        .36939E-02   -1.5164    
   3  Prefactor     .10000E-03    7.7016        .10679E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    6.7114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2206        10.354        .48990E-02   -1.5297    
   6  Prefactor     .10000E-03    5.7407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3598        .10618E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5208        .58580        .80002E-02   -1.5461    
  10  norm          19.996        14.222        .22347E-02   -1.4813    
  11  Prefactor     5.3182        5.2091        .43692E-02   -1.5247    
  12  norm          .38017E-01    .35792        .25079E-01   -1.5669    
  13  norm          5.8086        2.6408        .41664E-02   -1.5226    
  14  Prefactor     18.137        38.357        .23678E-02   -1.4856    
  15  norm          .10010E-03    26.599        .10344E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     93.643        32.348        .10407E-02   -1.3770    
  17  norm          10.600        4.4048        .30757E-02   -1.5057    
  18  norm          1.0979        1.0141        .11358E-01   -1.5498    
  19  Prefactor     .10512E-03    107.35        .10239E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     112.15        87.904        .97367E-03   -1.3586    
  21  Prefactor     .10015E-03    35.916        .10524E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0088        1.0247        .13297E-01   -1.5507    
  23  Prefactor     .10003E-03    15.679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.119        20.931        .18171E-02   -1.4610    
  25  Prefactor     .10108E-03    22.465        .10491E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    13.344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.3744        4.4202        .66786E-02   -1.5400    
  28  Prefactor     8.6680        26.467        .34195E-02   -1.5119    
  29  norm          15.177        13.517        .25741E-02   -1.4929    
  30  norm          .10000E-03    7.2760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.9031        7.9540        .41146E-02   -1.5222    
  32  Normalizat    .99307        .16838        .46105E-01   -.93263    
  33  Prefactor     .77327        .19019        .70057E-01   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42622e-07
Minuit parameter uncertainties:
  1  1.30511
  2  4.25861
  3  5.34584e-05
  4  0.000383018
  5  10.3584
  6  6.13725e-05
  7  4.48302e-06
  8  1.21016e-05
  9  0.5858
  10  14.2241
  11  5.20954
  12  0.232991
  13  2.64081
  14  38.409
  15  0.00319536
  16  32.3545
  17  4.40491
  18  1.01416
  19  0.0469619
  20  88.006
  21  0.00465453
  22  1.02468
  23  0.00138449
  24  20.9362
  25  0.00987355
  26  0.000134366
  27  4.42084
  28  26.5023
  29  13.5199
  30  5.79343e-05
  31  7.9554
  32  0.168473
  33  0.190349
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.098e+00  1.014e+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:  7.733e-01  1.903e-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:  9.931e-01  1.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.29e-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) = 6182.1315588
delta logL = 0.0497759601367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6182.13074238
delta logL = 0.0505923797928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0606       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5143       1.0000          .0000       5.0000    
     3 'Normalizat'    .99542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77238       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=   6182.131     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0606        54.560        .11896E-01   -.89658E-03
   2  alpha         1.5143        4.2112        .46177       -.48558E-04
   3  Normalizat    .99541        .22426        .46109E-01    .27398E-04
   4  Prefactor     .77239        .19706        .70102E-01    .63483E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06059
  alpha      = 1.51432
  Normalizat = 0.995406
  Prefactor  = 0.772389
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.131     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0606        1.0434        .74025E-04   -1.5502    
   2  alpha         1.5143        .73204        .20302E-01   -.40527    
   3  Normalizat    .99541        .17682        .23280E-03   -.93184    
   4  Prefactor     .77239        .21070        .31019E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31014e-10
Minuit parameter uncertainties:
  1  1.04341
  2  0.74503
  3  0.176928
  4  0.210915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19674': 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) = 6182.13074238
delta logL = 0.0505923824376

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.061e+00  1.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
417        alpha:  1.514e+00  7.450e-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:  7.724e-01  2.109e-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:  9.954e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.51 +/- 0.75
Photon Flux (Free Index): 8.98e-09 +/- 1.17e-08
Energy Flux (Free Index): 1.97e-05 +/- 2.99e-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/19674/cmap_HighResolution_479865601_480124801_4FGL_J1037.7+5711_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='1.97e-05', photon_flux_error='1.12e-08', dlogl='5.06e-02', energy_flux='1.40e-05', photon_flux2='8.98e-09', job_status='DONE', time_completed='2021-09-02 05:58:39.927598', photon_index_error2='0.75', photon_index2='1.51', ts='4.52', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='0.99', time_epoch_completed='1630587519.93', return_code='0', job_id='19674', GAL2='0.77', EG2='1.00', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='1.17e-08', ts2='4.62', photon_index='1.76' WHERE bin_id='928' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:58:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 19674: <4FGL_J1037.7+5711_daily_bin928> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin928> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 05:46:51 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:46:52 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:52 2021
Terminated at Thu Sep  2 05:58:40 2021
Results reported at Thu Sep  2 05:58:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin928 159.429 57.192 479865601 480124801 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 :                                   683.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             339.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

