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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin595
RA = 159.427, Dec = -28.3816
tmin = 393552001, tmax = 393811201
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='27484', job_status='RUN', time_executed='2021-09-02 06:16:14.623846', time_epoch_executed='1630588574.62' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27484

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27484/ft1_4FGL_J1037.7-2822_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits


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

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

Done.
real 4.54
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27484/ft1_filtered_4FGL_J1037.7-2822_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/27484/ltcube_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.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/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits
.....................!
real 11.84
user 11.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27484/ft1_filtered_4FGL_J1037.7-2822_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/27484/ltcube_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.fits outfile=/scratch/kocevski/27484/expmap_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.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/27484/ltcube_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.fits
.....................!
real 191.34
user 185.47
sys 5.37

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/27484/ft1_filtered_4FGL_J1037.7-2822_daily_bin595.fits scfile=/scratch/kocevski/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits outfile=/scratch/kocevski/27484/cmap_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.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.61
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27484/ft1_filtered_4FGL_J1037.7-2822_daily_bin595.fits scfile=/scratch/kocevski/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits outfile=/scratch/kocevski/27484/cmap_HighResolution_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.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/27484/ft1_filtered_4FGL_J1037.7-2822_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/27484/ft2_4FGL_J1037.7-2822_daily_bin595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27484/Model_4FGL_J1037.7-2822_daily_bin595.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/27484/ft1_filtered_4FGL_J1037.7-2822_daily_bin595.fits.....................!
real 81.98
user 80.36
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.559       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3024       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.334       1.0000         .10000E-03   10000.    
     6 'norm      '    40.928       1.0000         .10000E-03   10000.    
     7 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34639E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.525       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2961       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18812E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89928       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0448       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=   8326.244     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1786 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.559        10.182        .30825E-02    .46051E-03
   2  norm          1.3025        1.2899        .96758E-02    .10490E-02
   3  norm          4.8270        9.4030        .45776E-02    .16898E-03
   4  Prefactor     12.342        24.180        .28504E-02    .52469E-03
   5  Prefactor     14.333        12.505        .26448E-02    .18042E-03
   6  norm          40.927        13.240        .15664E-02   -.12733E-03
   7  norm          .10000E-03    3.3988        .90712E-01** at limit **
   8  Prefactor     .10000E-03    4.7271        .73932E-01** at limit **
   9  Prefactor     15.334        13.343        .25569E-02    .62770E-03
  10  Prefactor     .10000E-03    6.4910        .90712E-02** at limit **
  11  norm          .10000E-03    .87185        .90712E-02** at limit **
  12  Prefactor     .10000E-03    9.1230        .90712E-02** at limit **
  13  Prefactor     .39758        2.1430        .42203E-01    .13532E-02
  14  Prefactor     16.523        10.125        .24631E-02    .54547E-04
  15  Prefactor     5.2957        4.2615        .43662E-02    .78897E-03
  16  Prefactor     .10000E-03    3.5095        .64220E-01** at limit **
  17  Prefactor     .10000E-03    38.576        .90712E-02** at limit **
  18  Prefactor     .10000E-03    3.6360        .90712E-02** at limit **
  19  Normalizat    .89941        .21090        .81691E-01    .86838E-05
  20  Prefactor     1.0448        .10697        .40223E-01   -.57569E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.559
  norm       = 1.3025
  norm       = 4.82704
  Prefactor  = 12.3422
  Prefactor  = 14.3333
  norm       = 40.9266
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3338
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.397577
  Prefactor  = 16.523
  Prefactor  = 5.29568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.899412
  Prefactor  = 1.04477
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.244     FROM HESSE     STATUS=OK           299 CALLS     2085 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.559        10.181        .61650E-03   -1.5058    
   2  norm          1.3025        1.2692        .98860E-04   -1.5480    
   3  norm          4.8270        9.4101        .18311E-03   -1.5269    
   4  Prefactor     12.342        24.153        .11402E-03   -1.5005    
   5  Prefactor     14.333        12.500        .52897E-03   -1.4951    
   6  norm          40.927        12.928        .62658E-04   -1.4428    
   7  norm          .10000E-03    18.253        .31700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.297        .38345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.334        13.341        .51139E-03   -1.4925    
  10  Prefactor     .10000E-03    6.5157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .87544        .83155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.1542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .39758        4.0892        .24708E-02   -1.5582    
  14  Prefactor     16.523        9.9869        .98525E-04   -1.4895    
  15  Prefactor     5.2957        4.2619        .16168E-03   -1.5248    
  16  Prefactor     .10000E-03    23.302        .33178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6459        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89941        .24286        .36165E-03   -.96481    
  20  Prefactor     1.0448        .12449        .17667E-03   -.91252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54394e-09
Minuit parameter uncertainties:
  1  10.1827
  2  1.26926
  3  9.413
  4  24.1717
  5  12.5026
  6  12.9293
  7  7.59876e-06
  8  0.000219985
  9  13.3435
  10  3.58749e-06
  11  1.51229e-06
  12  8.68062e-06
  13  2.55003
  14  9.98794
  15  4.26216
  16  0.000122241
  17  4.13877e-06
  18  2.12752e-05
  19  0.243155
  20  0.124529
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  1.512e-06  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.045e+00  1.245e-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.994e-01  2.432e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27484/likelihoodResults_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.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) = 8326.24933021
delta logL = -0.00536300701788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8326.24396069
delta logL = 6.50971378491e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10599E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0811       1.0000          .0000       5.0000    
     3 'Normalizat'    .89941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0448       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=   8326.244     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      258 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.413        .91198E-02** at limit **
   2  alpha         1.7679        3.1774        .50000       -.12478E-06
   3  Normalizat    .89941        .25168E-01    .36165E-03    .60608E-04
   4  Prefactor     1.0448        .13247E-01    .17667E-03    .15621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76785
  Normalizat = 0.899413
  Prefactor  = 1.04477
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.244     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    179.29        .94156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7679        2.7826        .50000       -.29722    
   3  Normalizat    .89941        .86954E-01    .14466E-04   -.96481    
   4  Prefactor     1.0448        .45772E-01    .35334E-04   -.91252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.36037e-09
Minuit parameter uncertainties:
  1  4.05187e-05
  2  1297.15
  3  0.0869671
  4  0.0457741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27484': 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) = 8326.24395471
delta logL = 1.24935795611e-05

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  4.052e-05  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.768e+00  1.297e+03  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.045e+00  4.577e-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:  8.994e-01  8.697e-02  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/27484/cmap_HighResolution_393552001_393811201_4FGL_J1037.7-2822_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-05', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-02 06:27:46.877338', job_id='27484', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630589266.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='595' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:27:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 27484: <4FGL_J1037.7-2822_daily_bin595> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin595 159.427 -28.3816 393552001 393811201 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 :                                   688.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

