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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin914
RA = 159.427, Dec = -28.3816
tmin = 476236801, tmax = 476496001
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='30097', job_status='RUN', time_executed='2021-09-02 06:23:23.248410', time_epoch_executed='1630589003.25' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30097

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30097/ft1_4FGL_J1037.7-2822_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30097/ft1_4FGL_J1037.7-2822_daily_bin914.fits outfile=/scratch/kocevski/30097/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin914.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=476236801.0 tmax=476496001.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.49
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30097/ft1_filtered_4FGL_J1037.7-2822_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/30097/ltcube_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.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/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits
.....................!
real 13.53
user 13.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30097/ft1_filtered_4FGL_J1037.7-2822_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/30097/ltcube_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.fits outfile=/scratch/kocevski/30097/expmap_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.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/30097/ltcube_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.fits
.....................!
real 189.66
user 184.66
sys 4.56

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/30097/ft1_filtered_4FGL_J1037.7-2822_daily_bin914.fits scfile=/scratch/kocevski/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits outfile=/scratch/kocevski/30097/cmap_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30097/ft1_filtered_4FGL_J1037.7-2822_daily_bin914.fits scfile=/scratch/kocevski/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits outfile=/scratch/kocevski/30097/cmap_HighResolution_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30097/ft1_filtered_4FGL_J1037.7-2822_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/30097/ft2_4FGL_J1037.7-2822_daily_bin914.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30097/Model_4FGL_J1037.7-2822_daily_bin914.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/30097/ft1_filtered_4FGL_J1037.7-2822_daily_bin914.fits.....................!
real 83.30
user 78.35
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.0948       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.047       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70946       1.0000         .10000E-03   10000.    
     6 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7704       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .39768       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.034       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9047       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4500       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95142       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0242       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=   7892.086     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     2029 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6985        .10115E-06** at limit **
   2  norm          1.0946        1.5484       -.16713E-06    .18825E-04
   3  norm          7.4678        8.5896        .36229E-06    .13170E-03
   4  Prefactor     31.063        25.994        .28274E-05    .50056E-04
   5  Prefactor     .68767        49.278       -.16705E-04    .13941E-04
   6  norm          .10000E-03    5.7373       -.68865E-06** at limit **
   7  norm          .10000E-03    3.2479        .80642E-07** at limit **
   8  Prefactor     6.7700        5.7899       -.34867E-06   -.97566E-05
   9  Prefactor     .10000E-03    2.5291        .26645E-07** at limit **
  10  Prefactor     .10000E-03    15.338        .54476E-06** at limit **
  11  norm          .39743        2.9161       -.13864E-05   -.43714E-04
  12  Prefactor     .10000E-03    5.2399       -.86437E-07** at limit **
  13  Prefactor     .52546        3.8363       -.76063E-06    .17186E-03
  14  Prefactor     15.035        9.8095       -.12989E-06   -.29663E-04
  15  Prefactor     1.9042        5.0965       -.46010E-06    .60791E-04
  16  Prefactor     .10000E-03    3.1490       -.42063E-08** at limit **
  17  Prefactor     .10000E-03    16.009       -.41647E-06** at limit **
  18  Prefactor     4.4499        8.3590       -.25049E-05    .20767E-04
  19  Normalizat    .95142        .21277        .24721E-06    .92524E-04
  20  Prefactor     1.0243        .10681        .31079E-06    .21300E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.09465
  norm       = 7.46779
  Prefactor  = 31.0628
  Prefactor  = 0.687665
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.77004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.397426
  Prefactor  = 0.0001
  Prefactor  = 0.525464
  Prefactor  = 15.0349
  Prefactor  = 1.90419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44987
  Normalizat = 0.951423
  Prefactor  = 1.02426
 **********
 **   18 **HESSE 
 **********

 FCN=   7892.086     FROM HESSE     STATUS=OK           295 CALLS     2324 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0946        1.5357        .12441E-03   -1.5499    
   3  norm          7.4678        8.5759        .14679E-03   -1.5161    
   4  Prefactor     31.063        26.059        .71909E-04   -1.4593    
   5  Prefactor     .68767        49.276        .46563E-02   -1.5542    
   6  norm          .10000E-03    5.8078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.2723        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7700        5.7902        .77102E-03   -1.5188    
   9  Prefactor     .10000E-03    2.5311        .13797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .39743        2.8155        .28245E-03   -1.5582    
  12  Prefactor     .10000E-03    5.2571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .52546        3.6195        .30905E-03   -1.5563    
  14  Prefactor     15.035        9.6849        .10330E-03   -1.4932    
  15  Prefactor     1.9042        5.0920        .30130E-03   -1.5432    
  16  Prefactor     .10000E-03    3.1600        .15387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4499        8.4084        .95444E-03   -1.5286    
  19  Normalizat    .95142        .24953        .33977E-03   -.94676    
  20  Prefactor     1.0243        .12690        .17232E-03   -.91925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47193e-10
Minuit parameter uncertainties:
  1  3.51066e-06
  2  1.53572
  3  8.57734
  4  26.0683
  5  11.6514
  6  8.76338e-05
  7  2.13566e-05
  8  5.79067
  9  1.62555e-06
  10  2.32918e-05
  11  2.11549
  12  2.65581e-05
  13  2.75817
  14  9.6859
  15  5.09319
  16  2.39095e-05
  17  7.16847e-05
  18  8.41061
  19  0.249839
  20  0.126939
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.974e-01  2.115e+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.024e+00  1.269e-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:  9.514e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/30097/likelihoodResults_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.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) = 7892.05892654
delta logL = 0.0268649435893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7892.05654832
delta logL = 0.0292431672933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75222       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9408       1.0000          .0000       5.0000    
     3 'Normalizat'    .95369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       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=   7892.057     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      285 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75181        2.6963        .26604E-03    .23118E-04
   2  alpha         1.9399        1.5292        .48426E-01    .14457E-05
   3  Normalizat    .95368        .23752        .33941E-03    .89735E-04
   4  Prefactor     1.0228        .12560        .17243E-03    .13746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.751807
  alpha      = 1.93988
  Normalizat = 0.953682
  Prefactor  = 1.02275
 **********
 **   18 **HESSE 
 **********

 FCN=   7892.057     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75181        2.6336        .10642E-04   -1.5535    
   2  alpha         1.9399        1.5016        .19370E-02   -.22597    
   3  Normalizat    .95368        .23765        .13576E-04   -.94599    
   4  Prefactor     1.0228        .12566        .34486E-04   -.91975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36998e-11
Minuit parameter uncertainties:
  1  2.63403
  2  1.61795
  3  0.237917
  4  0.125698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30097': 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) = 7892.05654808
delta logL = 0.0292434118619

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  7.518e-01  2.634e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.940e+00  1.618e+00  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.023e+00  1.257e-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:  9.537e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/30097/cmap_HighResolution_476236801_476496001_4FGL_J1037.7-2822_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-02 06:34:54.996766', job_id='30097', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630589695.0', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.92e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='914' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:34:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 30097: <4FGL_J1037.7-2822_daily_bin914> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin914> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 06:21:46 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:23:06 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:23:06 2021
Terminated at Thu Sep  2 06:34:55 2021
Results reported at Thu Sep  2 06:34:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin914 159.427 -28.3816 476236801 476496001 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 :                                   687.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            789 sec.

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

