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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1338
RA = 159.427, Dec = -28.3816
tmin = 586137601, tmax = 586396801
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='31514', job_status='RUN', time_executed='2021-09-02 06:31:01.720604', time_epoch_executed='1630589461.72' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31514

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31514/ft1_4FGL_J1037.7-2822_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31514/ft1_4FGL_J1037.7-2822_daily_bin1338.fits outfile=/scratch/kocevski/31514/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1338.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=586137601.0 tmax=586396801.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 4.61
user 4.35
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.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/31514/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/31514/ltcube_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.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/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits
.....................!
real 10.99
user 10.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/31514/ltcube_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.fits outfile=/scratch/kocevski/31514/expmap_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.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/31514/ltcube_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.fits
.....................!
real 190.74
user 185.77
sys 4.45

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.7-2822 @ 159.427 -28.3816

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits scfile=/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits outfile=/scratch/kocevski/31514/cmap_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.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.427 yref=-28.3816 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits scfile=/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits outfile=/scratch/kocevski/31514/cmap_HighResolution_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.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.427 yref=-28.3816 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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31514/Model_4FGL_J1037.7-2822_daily_bin1338.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/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits.....................!
real 71.36
user 69.91
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits', '/scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits', expMap='/scratch/kocevski/31514/expmap_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.fits', expCube='/scratch/kocevski/31514/ltcube_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31514/Model_4FGL_J1037.7-2822_daily_bin1338.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7-2822'

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31514/ft1_filtered_4FGL_J1037.7-2822_daily_bin1338.fits
Spacecraft file(s): /scratch/kocevski/31514/ft2_4FGL_J1037.7-2822_daily_bin1338.fits
Exposure map: /scratch/kocevski/31514/expmap_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.fits
Exposure cube: /scratch/kocevski/31514/ltcube_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31514/Model_4FGL_J1037.7-2822_daily_bin1338.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) = 7238.80776521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    13.585       1.0000         .10000E-03   10000.    
     3 'norm      '    .96177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1470       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7731       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98298       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7238.806     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2024 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5477        .18334E-07** at limit **
   2  norm          13.585        2.4016        .47399E-09   -.43382E-04
   3  norm          .95618        7.8363        .40412E-06   -.12573E-03
   4  Prefactor     17.353        21.832        .22442E-07   -.11089E-04
   5  Prefactor     .10000E-03    4.9628       -.36321E-06** at limit **
   6  norm          .10000E-03    5.1106       -.20658E-06** at limit **
   7  norm          3.1458        7.5982        .35444E-06   -.84865E-04
   8  Prefactor     .86498        6.7854        .29769E-05   -.25336E-03
   9  Prefactor     .10000E-03    11.659       -.95789E-06** at limit **
  10  Prefactor     .10000E-03    13.730        .26238E-05** at limit **
  11  norm          1.7107        2.1868        .96366E-07   -.98748E-04
  12  Prefactor     .10000E-03    4.5603        .18405E-06** at limit **
  13  Prefactor     2.7732        3.6014       -.22833E-06   -.70073E-03
  14  Prefactor     .10000E-03    6.5560        .12233E-05** at limit **
  15  Prefactor     13.203        5.8488        .42791E-06   -.41955E-03
  16  Prefactor     .10000E-03    8.0075       -.12581E-05** at limit **
  17  Prefactor     .10000E-03    20.018       -.15906E-05** at limit **
  18  Prefactor     .10000E-03    3.4836        .33158E-07** at limit **
  19  Normalizat    .98298        .20594       -.12822E-06   -.91152E-04
  20  Prefactor     .88677        .10393       -.37119E-06   -.70545E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.5848
  norm       = 0.956176
  Prefactor  = 17.3529
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.14577
  Prefactor  = 0.864978
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.71066
  Prefactor  = 0.0001
  Prefactor  = 2.77316
  Prefactor  = 0.0001
  Prefactor  = 13.2029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.98298
  Prefactor  = 0.886774
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.806     FROM HESSE     STATUS=OK           291 CALLS     2315 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5479        .13263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.585        2.4051        .53435E-04   -1.4971    
   3  norm          .95618        22.659        .44652E-02   -1.5512    
   4  Prefactor     17.353        21.828        .96145E-04   -1.4875    
   5  Prefactor     .10000E-03    4.9769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1458        7.5545        .22850E-03   -1.5353    
   8  Prefactor     .86498        7.5502        .45310E-03   -1.5522    
   9  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7107        2.1616        .13511E-03   -1.5446    
  12  Prefactor     .10000E-03    4.5754        .17750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7732        3.7657        .17890E-03   -1.5375    
  14  Prefactor     .10000E-03    6.8738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.203        5.9420        .55118E-03   -1.4981    
  16  Prefactor     .10000E-03    8.2899        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4915        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98298        .24516        .32332E-03   -.93603    
  20  Prefactor     .88677        .12387        .17528E-03   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05525e-08
Minuit parameter uncertainties:
  1  8.14208e-07
  2  2.40513
  3  9.3129
  4  21.838
  5  2.19589e-05
  6  1.11624e-05
  7  7.55675
  8  5.11165
  9  8.317e-05
  10  0.000322838
  11  2.16175
  12  1.14268e-05
  13  3.76602
  14  0.000111552
  15  5.94231
  16  8.40526e-05
  17  0.00020104
  18  1.55198e-06
  19  0.245437
  20  0.123909
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.711e+00  2.162e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.868e-01  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.830e-01  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 6.25e-06 +/- 7.90e-06

TS (Fixed Index): 1.32
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31514/likelihoodResults_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.txt

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) = 7238.80587874
delta logL = 0.000350682060343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7238.80582135
delta logL = 0.000408066587624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7352       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3693       1.0000          .0000       5.0000    
     3 'Normalizat'    .98314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7238.806     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7348        83.835        .79650E-02    .26971E-03
   2  alpha         2.3690        3.4557        .41223        .21773E-04
   3  Normalizat    .98380        .94317E-01    .73046E-01    .18917E-03
   4  Prefactor     .88654        .37330E-01    .44836E-01    .11810E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73475
  alpha      = 2.36904
  Normalizat = 0.983798
  Prefactor  = 0.886543
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.806     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7348        2.3777        .13652E-03   -1.5445    
   2  alpha         2.3690        1.1975        .28777E-01   -.52410E-01
   3  Normalizat    .98380        .23695        .32320E-03   -.93575    
   4  Prefactor     .88654        .12259        .17530E-03   -.96613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96311e-09
Minuit parameter uncertainties:
  1  2.37787
  2  1.249
  3  0.237199
  4  0.122631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31514': 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) = 7238.80581679
delta logL = 0.000412632450207

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.735e+00  2.378e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.369e+00  1.249e+00  0.000e+00  5.000e+00 ( 1.000e+00)
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.865e-01  1.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.838e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.37 +/- 1.25
Photon Flux (Free Index): 1.81e-08 +/- 3.09e-08
Energy Flux (Free Index): 6.27e-06 +/- 7.93e-06

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/31514/cmap_HighResolution_586137601_586396801_4FGL_J1037.7-2822_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='6.27e-06', photon_flux_error='2.36e-08', dlogl='4.13e-04', energy_flux='6.25e-06', photon_flux2='1.81e-08', job_status='DONE', time_completed='2021-09-02 06:42:15.028079', photon_index_error2='1.25', photon_index2='2.37', ts='1.32', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.66e-08', energy_flux_error2='7.93e-06', EG='0.98', time_epoch_completed='1630590135.03', return_code='0', job_id='31514', GAL2='0.89', EG2='0.98', return_code2='0', energy_flux_error='7.90e-06', photon_flux_error2='3.09e-08', ts2='1.32', photon_index='2.40' WHERE bin_id='1338' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:42:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 31514: <4FGL_J1037.7-2822_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1338> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:27:05 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:29:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 06:29:23 2021
Terminated at Thu Sep  2 06:42:15 2021
Results reported at Thu Sep  2 06:42:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1338 159.427 -28.3816 586137601 586396801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7-2822 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            910 sec.

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

