/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 139 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 = 7434
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin189
RA = 159.427, Dec = -28.3816
tmin = 288316801, tmax = 288576001
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='25526', job_status='RUN', time_executed='2021-09-02 06:09:31.142937', time_epoch_executed='1630588171.14' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25526/ft1_4FGL_J1037.7-2822_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25526/ft1_4FGL_J1037.7-2822_daily_bin189.fits outfile=/scratch/kocevski/25526/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin189.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=288316801.0 tmax=288576001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.72
user 3.40
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.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/25526/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin189.fits evtable="EVENTS" outfile="/scratch/kocevski/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.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.57
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/25526/ltcube_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.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/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits
.....................!
real 17.41
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/25526/ltcube_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.fits outfile=/scratch/kocevski/25526/expmap_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.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/25526/ltcube_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.fits
.....................!
real 190.14
user 184.61
sys 4.65

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/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits scfile=/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits outfile=/scratch/kocevski/25526/cmap_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits scfile=/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits outfile=/scratch/kocevski/25526/cmap_HighResolution_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25526/Model_4FGL_J1037.7-2822_daily_bin189.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/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits.....................!
real 90.50
user 89.16
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits', '/scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits', expMap='/scratch/kocevski/25526/expmap_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.fits', expCube='/scratch/kocevski/25526/ltcube_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25526/Model_4FGL_J1037.7-2822_daily_bin189.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/25526/ft1_filtered_4FGL_J1037.7-2822_daily_bin189.fits
Spacecraft file(s): /scratch/kocevski/25526/ft2_4FGL_J1037.7-2822_daily_bin189.fits
Exposure map: /scratch/kocevski/25526/expmap_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.fits
Exposure cube: /scratch/kocevski/25526/ltcube_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25526/Model_4FGL_J1037.7-2822_daily_bin189.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) = 9828.14376126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8626       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7916       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8513       1.0000         .10000E-03   10000.    
     6 'norm      '    .10774E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.491       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23861E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4346       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60235       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1618       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=   9827.972     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1779 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8624        6.1201        .52723E-07   -.51146E-04
   2  norm          2.7915        1.2403        .22704E-07   -.13927E-03
   3  norm          .10000E-03    6.0047       -.23079E-06** at limit **
   4  Prefactor     .10000E-03    7.1703        .10674E-05** at limit **
   5  Prefactor     5.8518        4.9841       -.89736E-06    .10126E-02
   6  norm          .10000E-03    8.1996       -.74047E-06** at limit **
   7  norm          .10000E-03    3.9131        .28944E-07** at limit **
   8  Prefactor     .10000E-03    1.6949       -.13295E-07** at limit **
   9  Prefactor     .10000E-03    2.6667        .99676E-08** at limit **
  10  Prefactor     11.492        11.025       -.12482E-06   -.52053E-04
  11  norm          .10000E-03    1.1852       -.22099E-07** at limit **
  12  Prefactor     .10000E-03    20.759        .23391E-06** at limit **
  13  Prefactor     1.7723        2.6228        .22041E-06   -.31771E-03
  14  Prefactor     .10000E-03    3.0773       -.72169E-07** at limit **
  15  Prefactor     4.2642        3.3713        .86678E-06    .91277E-03
  16  Prefactor     .10000E-03    3.1038        .46104E-07** at limit **
  17  Prefactor     .10000E-03    6.6438       -.22620E-06** at limit **
  18  Prefactor     2.4340        6.3764        .37799E-06   -.15237E-03
  19  Normalizat    .60243        .18220       -.60346E-06   -.28070E-04
  20  Prefactor     1.1618        .97029E-01    .56153E-07   -.48410E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.86244
  norm       = 2.79155
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85178
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4919
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77234
  Prefactor  = 0.0001
  Prefactor  = 4.26425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43403
  Normalizat = 0.602425
  Prefactor  = 1.16178
 **********
 **   18 **HESSE 
 **********

 FCN=   9827.972     FROM HESSE     STATUS=OK           293 CALLS     2072 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8624        6.1156        .18242E-03   -1.5267    
   2  norm          2.7915        1.2369        .70409E-04   -1.5374    
   3  norm          .10000E-03    6.1467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8518        5.7335        .83011E-03   -1.5224    
   6  norm          .10000E-03    8.4561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7033        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6703        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.492        10.953        .11818E-03   -1.5030    
  11  norm          .10000E-03    1.2095        .21012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7723        2.6121        .18438E-03   -1.5442    
  14  Prefactor     .10000E-03    3.0933        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2642        3.5804        .16448E-03   -1.5295    
  16  Prefactor     .10000E-03    52.296        .33669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4340        6.4114        .26224E-03   -1.5396    
  19  Normalizat    .60243        .20335        .39060E-03   -1.0788    
  20  Prefactor     1.1618        .10905        .15759E-03   -.87516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86144e-10
Minuit parameter uncertainties:
  1  6.11638
  2  1.2369
  3  1.53731e-05
  4  0.000111868
  5  5.73399
  6  6.34266e-05
  7  8.26129e-06
  8  3.36514e-07
  9  4.39179e-07
  10  10.955
  11  2.27917e-07
  12  1.09534e-05
  13  2.61224
  14  3.14279e-06
  15  3.58054
  16  1.37405e-05
  17  2.21087e-05
  18  6.41322
  19  0.203601
  20  0.109075
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  2.279e-07  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:  1.162e+00  1.091e-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:  6.024e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/25526/likelihoodResults_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.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): 102
logL (Free Index) = 9827.97573208
delta logL = -0.00394100480116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9827.97179043
delta logL = 6.51492882753e-07

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 'alpha     '    2.3836       1.0000          .0000       5.0000    
     3 'Normalizat'    .60243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1618       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9827.972     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      247 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    236.10        .21370E-02** at limit **
   2  alpha         1.9127        3.4149        .16483        .18401E-06
   3  Normalizat    .60243        .70227E-01    .39060E-03    .32261E-03
   4  Prefactor     1.1618        .38596E-01    .15759E-03    .43845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91265
  Normalizat = 0.602429
  Prefactor  = 1.16178
 **********
 **   18 **HESSE 
 **********

 FCN=   9827.972     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5126        .42739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9127        3.7457        .65933E-02   -.23716    
   3  Normalizat    .60243        .19773        .15624E-04   -1.0788    
   4  Prefactor     1.1618        .10875        .31517E-04   -.87516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8652e-10
Minuit parameter uncertainties:
  1  4.90541e-05
  2  119.466
  3  0.197958
  4  0.108771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25526': 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) = 9827.97178281
delta logL = 8.26847281132e-06

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  4.905e-05  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.913e+00  1.195e+02  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:  1.162e+00  1.088e-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:  6.024e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.427 -28.382

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/25526/cmap_HighResolution_288316801_288576001_4FGL_J1037.7-2822_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-05', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2021-09-02 06:22:19.267987', job_id='25526', GAL2='1.16', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1630588939.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='189' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:22:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 25526: <4FGL_J1037.7-2822_daily_bin189> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin189> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 06:06:55 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:06:57 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:06:57 2021
Terminated at Thu Sep  2 06:22:20 2021
Results reported at Thu Sep  2 06:22:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin189 159.427 -28.3816 288316801 288576001 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 :                                   757.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

