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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin370
RA = 159.427, Dec = -28.3816
tmin = 335232001, tmax = 335491201
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='27131', job_status='RUN', time_executed='2021-09-02 06:14:31.509338', time_epoch_executed='1630588471.51' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27131/ft1_4FGL_J1037.7-2822_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27131/ft1_4FGL_J1037.7-2822_daily_bin370.fits outfile=/scratch/kocevski/27131/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin370.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=335232001.0 tmax=335491201.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.50
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27131/ft1_filtered_4FGL_J1037.7-2822_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/27131/ltcube_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.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/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits
.....................!
real 11.96
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27131/ft1_filtered_4FGL_J1037.7-2822_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/27131/ltcube_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.fits outfile=/scratch/kocevski/27131/expmap_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.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/27131/ltcube_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.fits
.....................!
real 190.21
user 185.56
sys 4.28

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/27131/ft1_filtered_4FGL_J1037.7-2822_daily_bin370.fits scfile=/scratch/kocevski/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits outfile=/scratch/kocevski/27131/cmap_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27131/ft1_filtered_4FGL_J1037.7-2822_daily_bin370.fits scfile=/scratch/kocevski/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits outfile=/scratch/kocevski/27131/cmap_HighResolution_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27131/ft1_filtered_4FGL_J1037.7-2822_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/27131/ft2_4FGL_J1037.7-2822_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27131/Model_4FGL_J1037.7-2822_daily_bin370.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/27131/ft1_filtered_4FGL_J1037.7-2822_daily_bin370.fits.....................!
real 99.40
user 97.80
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3918       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9928       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6706       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8157       1.0000         .10000E-03   10000.    
     7 'norm      '    39.520       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 '    6.3915       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7803       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8151       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83660       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0281       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=   11071.68     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1722 TOTAL
                     EDM=   .71E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3918        4.2726        .82622E-08   -.67512E-06
   2  norm          1.9928        1.0068       -.60594E-08   -.10996E-04
   3  norm          4.1846        5.2723        .29792E-07   -.26895E-03
   4  Prefactor     5.1338        12.823       -.60406E-06   -.37278E-05
   5  Prefactor     9.6702        8.9191       -.15522E-06    .82540E-06
   6  norm          5.8161        6.6116        .19577E-06   -.21617E-03
   7  norm          39.520        8.7801       -.12155E-06   -.29645E-05
   8  Prefactor     .10000E-03    1.4211       -.43409E-08** at limit **
   9  Prefactor     .10000E-03    3.9891       -.10051E-05** at limit **
  10  Prefactor     6.3915        6.8167       -.20971E-07    .63546E-05
  11  norm          3.7803        2.5957        .24414E-06    .40661E-04
  12  Prefactor     .10000E-03    7.8091        .60987E-06** at limit **
  13  Prefactor     4.9689        3.4148       -.81097E-06   -.94444E-04
  14  Prefactor     .10000E-03    3.8343        .94972E-06** at limit **
  15  Prefactor     3.0008        2.8892       -.57952E-06   -.29484E-04
  16  Prefactor     6.4189        7.6164       -.11872E-06   -.10181E-04
  17  Prefactor     .10000E-03    9.0396       -.44333E-06** at limit **
  18  Prefactor     3.8151        4.6153       -.35388E-07   -.31933E-03
  19  Normalizat    .83662        .17089        .58167E-06   -.70748E-05
  20  Prefactor     1.0281        .89529E-01    .12912E-07    .14678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39183
  norm       = 1.9928
  norm       = 4.18458
  Prefactor  = 5.13377
  Prefactor  = 9.67023
  norm       = 5.81607
  norm       = 39.5196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.39154
  norm       = 3.78028
  Prefactor  = 0.0001
  Prefactor  = 4.96887
  Prefactor  = 0.0001
  Prefactor  = 3.00077
  Prefactor  = 6.41892
  Prefactor  = 0.0001
  Prefactor  = 3.81507
  Normalizat = 0.83662
  Prefactor  = 1.02811
 **********
 **   18 **HESSE 
 **********

 FCN=   11071.68     FROM HESSE     STATUS=OK           301 CALLS     2023 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3918        4.2686        .21969E-03   -1.5340    
   2  norm          1.9928        1.0020        .72160E-04   -1.5426    
   3  norm          4.1846        6.1693        .98508E-03   -1.5299    
   4  Prefactor     5.1338        12.804        .17743E-03   -1.5255    
   5  Prefactor     9.6702        8.9349        .12886E-03   -1.5086    
   6  norm          5.8161        7.2668        .83269E-03   -1.5226    
   7  norm          39.520        8.8284        .63760E-04   -1.4450    
   8  Prefactor     .10000E-03    1.4251        .12250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3915        6.8086        .15876E-03   -1.5202    
  11  norm          3.7803        2.5927        .13223E-03   -1.5319    
  12  Prefactor     .10000E-03    7.8911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9689        3.4277        .15100E-03   -1.5262    
  14  Prefactor     .10000E-03    3.8994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0008        2.8807        .16909E-03   -1.5361    
  16  Prefactor     6.4189        7.6232        .15841E-03   -1.5201    
  17  Prefactor     .10000E-03    9.0464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8151        6.6326        .10332E-02   -1.5317    
  19  Normalizat    .83662        .19696        .35452E-03   -.98724    
  20  Prefactor     1.0281        .10463        .17291E-03   -.91798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18186e-10
Minuit parameter uncertainties:
  1  4.26893
  2  1.00205
  3  6.17022
  4  12.8107
  5  8.93613
  6  7.26795
  7  8.82867
  8  3.61694e-07
  9  3.16726e-07
  10  6.80941
  11  2.59274
  12  2.65039e-07
  13  3.42786
  14  1.09343e-05
  15  2.88086
  16  7.62438
  17  6.33505e-07
  18  6.63384
  19  0.197131
  20  0.104654
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.780e+00  2.593e+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:  1.028e+00  1.047e-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:  8.366e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.47e-06

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) = 11071.572099
delta logL = 0.111339529843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11071.5460699
delta logL = 0.137368691976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4513       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0675       1.0000          .0000       5.0000    
     3 'Normalizat'    .84857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0245       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=   11071.55     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4540        80.432        .47715E-02    .29384E-03
   2  alpha         2.0684        3.1118        .41958        .33268E-04
   3  Normalizat    .84861        .88629E-01    .79590E-01    .42688E-04
   4  Prefactor     1.0245        .36152E-01    .41719E-01    .13128E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.45403
  alpha      = 2.06841
  Normalizat = 0.848611
  Prefactor  = 1.02447
 **********
 **   18 **HESSE 
 **********

 FCN=   11071.55     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4540        3.2074        .15176E-03   -1.5286    
   2  alpha         2.0684        .63806        .18876E-01   -.17350    
   3  Normalizat    .84861        .19349        .35233E-03   -.98290    
   4  Prefactor     1.0245        .10374        .17320E-03   -.91918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46758e-12
Minuit parameter uncertainties:
  1  3.20749
  2  0.645429
  3  0.193652
  4  0.103756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27131': 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) = 11071.5460682
delta logL = 0.137370334549

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  4.454e+00  3.207e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.068e+00  6.454e-01  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.024e+00  1.038e-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:  8.486e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.07 +/- 0.65
Photon Flux (Free Index): 3.14e-08 +/- 2.95e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.32e-05

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/27131/cmap_HighResolution_335232001_335491201_4FGL_J1037.7-2822_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.63e-05', photon_flux_error='2.83e-08', dlogl='1.37e-01', energy_flux='1.38e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-02 06:26:21.910407', photon_index_error2='0.65', photon_index2='2.07', ts='4.25', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.84', time_epoch_completed='1630589181.91', return_code='0', job_id='27131', GAL2='1.02', EG2='0.85', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='2.95e-08', ts2='4.53', photon_index='2.40' WHERE bin_id='370' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:26:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 27131: <4FGL_J1037.7-2822_daily_bin370> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin370> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 06:12:22 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:12:24 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:12:24 2021
Terminated at Thu Sep  2 06:26:22 2021
Results reported at Thu Sep  2 06:26:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin370 159.427 -28.3816 335232001 335491201 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 :                                   708.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

