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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin375
RA = 159.427, Dec = -28.3816
tmin = 336528001, tmax = 336787201
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='27139', job_status='RUN', time_executed='2021-09-02 06:16:30.152715', time_epoch_executed='1630588590.15' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27139

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27139/ft1_4FGL_J1037.7-2822_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27139/ft1_4FGL_J1037.7-2822_daily_bin375.fits outfile=/scratch/kocevski/27139/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin375.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=336528001.0 tmax=336787201.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 5.82
user 5.53
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27139/ft1_filtered_4FGL_J1037.7-2822_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/27139/ltcube_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.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/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits
.....................!
real 12.03
user 11.60
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27139/ft1_filtered_4FGL_J1037.7-2822_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/27139/ltcube_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.fits outfile=/scratch/kocevski/27139/expmap_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.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/27139/ltcube_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.fits
.....................!
real 192.34
user 187.39
sys 3.95

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/27139/ft1_filtered_4FGL_J1037.7-2822_daily_bin375.fits scfile=/scratch/kocevski/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits outfile=/scratch/kocevski/27139/cmap_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27139/ft1_filtered_4FGL_J1037.7-2822_daily_bin375.fits scfile=/scratch/kocevski/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits outfile=/scratch/kocevski/27139/cmap_HighResolution_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27139/ft1_filtered_4FGL_J1037.7-2822_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/27139/ft2_4FGL_J1037.7-2822_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27139/Model_4FGL_J1037.7-2822_daily_bin375.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/27139/ft1_filtered_4FGL_J1037.7-2822_daily_bin375.fits.....................!
real 56.38
user 54.97
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0381       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.112       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    49.039       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60386E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1095       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=   4803.742     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2110 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4517       -.11831E-07** at limit **
   2  norm          4.0379        2.4220        .33233E-07   -.10553E-03
   3  norm          7.5839        14.064        .21026E-06   -.11575E-04
   4  Prefactor     70.972        50.656       -.27844E-07   -.36676E-04
   5  Prefactor     20.113        18.097        .37603E-08   -.45012E-05
   6  norm          .10000E-03    5.3554       -.22783E-08** at limit **
   7  norm          49.036        18.506        .19622E-07   -.37667E-04
   8  Prefactor     10.120        11.793        .52328E-07   -.70774E-04
   9  Prefactor     .10054E-03    25.970        .34380E-05** at limit **
  10  Prefactor     .10000E-03    7.6421        .48187E-07** at limit **
  11  norm          .10000E-03    1.8754        .44028E-07** at limit **
  12  Prefactor     27.777        27.788       -.26655E-05   -.16899E-03
  13  Prefactor     .10000E-03    3.3207        .15507E-06** at limit **
  14  Prefactor     22.128        19.765        .14920E-06   -.15873E-04
  15  Prefactor     14.408        10.291        .35115E-07   -.15899E-03
  16  Prefactor     .10000E-03    16.396       -.82659E-07** at limit **
  17  Prefactor     21.349        67.255        .23273E-07    .10748E-04
  18  Prefactor     .10000E-03    42.903        .44699E-05** at limit **
  19  Normalizat    1.0924        .36366       -.19774E-05   -.10192E-03
  20  Prefactor     1.1097        .16566        .31948E-06   -.22394E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.0379
  norm       = 7.58391
  Prefactor  = 70.9718
  Prefactor  = 20.1131
  norm       = 0.0001
  norm       = 49.0357
  Prefactor  = 10.1199
  Prefactor  = 0.00010054
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.7767
  Prefactor  = 0.0001
  Prefactor  = 22.1277
  Prefactor  = 14.4077
  Prefactor  = 0.0001
  Prefactor  = 21.3488
  Prefactor  = 0.000100001
  Normalizat = 1.09236
  Prefactor  = 1.10966
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.742     FROM HESSE     STATUS=OK           299 CALLS     2409 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4526        .15806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0379        2.4234        .79674E-04   -1.5306    
   3  norm          7.5839        14.064        .14564E-03   -1.5157    
   4  Prefactor     70.972        50.857        .47650E-04   -1.4021    
   5  Prefactor     20.113        18.095        .89311E-04   -1.4811    
   6  norm          .10000E-03    5.3590        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          49.036        18.504        .57264E-04   -1.4306    
   8  Prefactor     10.120        11.781        .12597E-03   -1.5072    
   9  Prefactor     .10054E-03    30.877        .94868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8812        .92690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.777        30.371        .76054E-04   -1.4653    
  13  Prefactor     .10000E-03    3.3475        .12328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.128        19.825        .85113E-04   -1.4767    
  15  Prefactor     14.408        10.306        .10552E-03   -1.4949    
  16  Prefactor     .10000E-03    16.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.349        66.411        .86795E-04   -1.4784    
  18  Prefactor     .10000E-03    41.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0924        .41800        .40705E-03   -.89998    
  20  Prefactor     1.1097        .19116        .19821E-03   -.89158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14243e-10
Minuit parameter uncertainties:
  1  9.71323e-07
  2  2.42347
  3  14.0698
  4  50.8877
  5  18.0995
  6  2.15003e-06
  7  18.506
  8  11.7836
  9  0.00817315
  10  9.83822e-07
  11  7.34277e-07
  12  30.3881
  13  1.25166e-07
  14  19.8309
  15  10.3073
  16  1.78736e-05
  17  66.6421
  18  0.000365491
  19  0.41927
  20  0.191276
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  7.343e-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.110e+00  1.913e-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.092e+00  4.193e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27139/likelihoodResults_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.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) = 4803.74439258
delta logL = -0.00245158596954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4803.74194099
delta logL = 5.50608092453e-09

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.3986       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1097       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=   4803.742     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      228 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8779        .92805E-03** at limit **
   2  alpha         2.0888        2.9214        .16478       -.95212E-08
   3  Normalizat    1.0924        .37955        .40705E-03    .48038E-04
   4  Prefactor     1.1097        .18776        .19821E-03    .10810E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.08877
  Normalizat = 1.09236
  Prefactor  = 1.10966
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.742     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9505        .18561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0888        3.6533        .65911E-02   -.16524    
   3  Normalizat    1.0924        .37983        .16282E-04   -.89998    
   4  Prefactor     1.1097        .18790        .39642E-04   -.89158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30567e-11
Minuit parameter uncertainties:
  1  1.84097e-05
  2  226.377
  3  0.380785
  4  0.18801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27139': 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) = 4803.74194005
delta logL = 9.43411578191e-07

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.841e-05  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.089e+00  2.264e+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.110e+00  1.880e-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.092e+00  3.808e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/27139/cmap_HighResolution_336528001_336787201_4FGL_J1037.7-2822_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-02 06:25:52.324082', job_id='27139', GAL2='1.11', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630589152.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='9.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='375' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:25:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 27139: <4FGL_J1037.7-2822_daily_bin375> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin375 159.427 -28.3816 336528001 336787201 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 :                                   557.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

