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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin829
RA = 159.427, Dec = -28.3816
tmin = 454204801, tmax = 454464001
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='29969', job_status='RUN', time_executed='2021-09-02 06:24:10.912956', time_epoch_executed='1630589050.91' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29969/ft1_4FGL_J1037.7-2822_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29969/ft1_4FGL_J1037.7-2822_daily_bin829.fits outfile=/scratch/kocevski/29969/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin829.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=454204801.0 tmax=454464001.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.60
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/29969/ltcube_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.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/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits
.....................!
real 15.39
user 15.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/29969/ltcube_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.fits outfile=/scratch/kocevski/29969/expmap_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.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/29969/ltcube_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.fits
.....................!
real 192.56
user 186.72
sys 4.68

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/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits scfile=/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits outfile=/scratch/kocevski/29969/cmap_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits scfile=/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits outfile=/scratch/kocevski/29969/cmap_HighResolution_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.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.61
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29969/Model_4FGL_J1037.7-2822_daily_bin829.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/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits.....................!
real 102.89
user 98.72
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits', '/scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits', expMap='/scratch/kocevski/29969/expmap_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.fits', expCube='/scratch/kocevski/29969/ltcube_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/29969/Model_4FGL_J1037.7-2822_daily_bin829.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/29969/ft1_filtered_4FGL_J1037.7-2822_daily_bin829.fits
Spacecraft file(s): /scratch/kocevski/29969/ft2_4FGL_J1037.7-2822_daily_bin829.fits
Exposure map: /scratch/kocevski/29969/expmap_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.fits
Exposure cube: /scratch/kocevski/29969/ltcube_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/29969/Model_4FGL_J1037.7-2822_daily_bin829.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10329.4249644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8414       1.0000         .10000E-03   10000.    
     2 'norm      '    .11199E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.285       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.226       1.0000         .10000E-03   10000.    
     7 'norm      '    .70538       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .46585       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62210       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0682       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90521       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=   10329.37     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1806 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8415        6.2009        .82468E-07    .39836E-06
   2  norm          .10000E-03    .36453        .76640E-08** at limit **
   3  norm          11.284        7.1457        .27049E-06    .29127E-04
   4  Prefactor     18.414        17.418       -.15555E-05    .11657E-04
   5  Prefactor     .10000E-03    7.1198        .15001E-06** at limit **
   6  norm          14.223        7.5096        .19805E-05    .16978E-03
   7  norm          .70460        5.3973       -.18200E-05   -.11405E-03
   8  Prefactor     1.2265        .86683        .99177E-07   -.36510E-03
   9  Prefactor     .10000E-03    2.8795        .81492E-07** at limit **
  10  Prefactor     .10000E-03    4.7687       -.41371E-05** at limit **
  11  norm          .46405        2.5433        .11347E-05    .34672E-03
  12  Prefactor     .10000E-03    4.4432        .25330E-05** at limit **
  13  Prefactor     .62382        2.2210       -.97726E-06    .43790E-03
  14  Prefactor     .10000E-03    1.5936        .32567E-07** at limit **
  15  Prefactor     .10000E-03    4.2979        .28283E-05** at limit **
  16  Prefactor     5.0814        4.9763       -.27249E-07    .89854E-05
  17  Prefactor     .10000E-03    47.259       -.63104E-06** at limit **
  18  Prefactor     .10000E-03    3.9268       -.16335E-05** at limit **
  19  Normalizat    1.0682        .16286       -.21360E-06    .50062E-04
  20  Prefactor     .90517        .85146E-01    .24283E-07    .72152E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.84149
  norm       = 0.0001
  norm       = 11.284
  Prefactor  = 18.4139
  Prefactor  = 0.0001
  norm       = 14.223
  norm       = 0.704602
  Prefactor  = 1.22647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.464049
  Prefactor  = 0.0001
  Prefactor  = 0.623823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06819
  Prefactor  = 0.905174
 **********
 **   18 **HESSE 
 **********

 FCN=   10329.37     FROM HESSE     STATUS=OK           299 CALLS     2105 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8415        6.2001        .15339E-03   -1.5185    
   2  norm          .10000E-03    2.0037        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.284        7.1514        .11926E-03   -1.5036    
   4  Prefactor     18.414        17.414        .93325E-04   -1.4849    
   5  Prefactor     .10000E-03    7.1599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.223        7.5003        .10619E-03   -1.4954    
   7  norm          .70460        5.4589        .44542E-03   -1.5540    
   8  Prefactor     1.2265        7.8500        .20327E-02   -1.5486    
   9  Prefactor     .10000E-03    2.8860        .16839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .46405        2.3923        .28514E-03   -1.5572    
  12  Prefactor     .10000E-03    4.4716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .62382        3.1968        .24212E-02   -1.5550    
  14  Prefactor     .10000E-03    1.5971        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4113        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0814        4.9747        .17837E-03   -1.5257    
  17  Prefactor     .10000E-03    47.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0682        .19364        .29966E-03   -.90780    
  20  Prefactor     .90517        .10219        .17116E-03   -.95961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04834e-10
Minuit parameter uncertainties:
  1  6.20069
  2  2.83601e-06
  3  7.15198
  4  17.4186
  5  1.78576e-05
  6  7.50078
  7  3.92264
  8  6.20665
  9  2.09911e-06
  10  1.37839e-06
  11  2.10718
  12  7.23633e-06
  13  2.82435
  14  2.37762e-06
  15  2.57506e-05
  16  4.97509
  17  2.89925e-05
  18  3.3062e-06
  19  0.193765
  20  0.102209
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  4.640e-01  2.107e+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:  9.052e-01  1.022e-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:  1.068e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/29969/likelihoodResults_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.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) = 10329.2884169
delta logL = 0.078185035105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10329.2831054
delta logL = 0.0834965537342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33109       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3585       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90964       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=   10329.28     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32972        12.832        .10561E-01    .34002E-02
   2  alpha         3.3605        4.1414        .44739        .70195E-04
   3  Normalizat    1.0529        .26115E-01    .68165E-01    .29185E-04
   4  Prefactor     .90963        .13923E-01    .45128E-01    .18688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.329718
  alpha      = 3.36051
  Normalizat = 1.05286
  Prefactor  = 0.909631
 **********
 **   18 **HESSE 
 **********

 FCN=   10329.28     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      258 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32972        69.935        .11774E-02   -1.5593    
   2  alpha         3.3605        3.8011        .35689E-01    .35139    
   3  Normalizat    1.0529        .10884        .30157E-03   -.91280    
   4  Prefactor     .90963        .57919E-01    .17078E-03   -.95805    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.28478e-08
Minuit parameter uncertainties:
  1  9.61388
  2  17.382
  3  0.108858
  4  0.0579231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29969': 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): 102
logL (Free Index) = 10329.283105
delta logL = 0.0834969596472

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.297e-01  9.614e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  3.361e+00  1.738e+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:  9.096e-01  5.792e-02  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:  1.053e+00  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/29969/cmap_HighResolution_454204801_454464001_4FGL_J1037.7-2822_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-02 06:37:31.304720', job_id='29969', GAL2='0.91', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1630589851.3', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.35e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='829' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:37:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 29969: <4FGL_J1037.7-2822_daily_bin829> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin829> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:35 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:22:08 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:22:08 2021
Terminated at Thu Sep  2 06:37:32 2021
Results reported at Thu Sep  2 06:37:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin829 159.427 -28.3816 454204801 454464001 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 :                                   791.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            957 sec.

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

