/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 57 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 = 7533
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin906
RA = 159.427, Dec = -28.3816
tmin = 474163201, tmax = 474422401
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='30086', job_status='RUN', time_executed='2021-09-02 06:24:19.968183', time_epoch_executed='1630589059.97' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30086/ft1_4FGL_J1037.7-2822_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30086/ft1_4FGL_J1037.7-2822_daily_bin906.fits outfile=/scratch/kocevski/30086/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin906.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=474163201.0 tmax=474422401.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 6.58
user 5.30
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.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/30086/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/30086/ltcube_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.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/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits
.....................!
real 16.37
user 15.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/30086/ltcube_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.fits outfile=/scratch/kocevski/30086/expmap_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.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/30086/ltcube_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.fits
.....................!
real 193.14
user 187.92
sys 4.72

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/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits scfile=/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits outfile=/scratch/kocevski/30086/cmap_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.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.78
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits scfile=/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits outfile=/scratch/kocevski/30086/cmap_HighResolution_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.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.70
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/30086/ft2_4FGL_J1037.7-2822_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30086/Model_4FGL_J1037.7-2822_daily_bin906.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/30086/ft1_filtered_4FGL_J1037.7-2822_daily_bin906.fits.....................!
real 41.35
user 38.65
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9788       1.0000         .10000E-03   10000.    
     3 'norm      '    8.0233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3248       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.614       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.979       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14224E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.122       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77130       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4582       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=   3113.411     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2012 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.593       -.52982E-06** at limit **
   2  norm          2.9788        3.9545        .35586E-05   -.20007E-03
   3  norm          8.0228        9.4892        .91451E-07    .58146E-05
   4  Prefactor     82.424        57.706       -.91915E-06   -.10323E-03
   5  Prefactor     4.3507        24.968       -.25403E-05   -.11006E-03
   6  norm          .10000E-03    5.2705        .17127E-07** at limit **
   7  norm          .10000E-03    10.885       -.59490E-06** at limit **
   8  Prefactor     .10000E-03    10.333        .67387E-06** at limit **
   9  Prefactor     .10000E-03    23.111        .22073E-05** at limit **
  10  Prefactor     32.610        32.067        .53246E-06   -.53941E-05
  11  norm          .10000E-03    3.3772        .68475E-07** at limit **
  12  Prefactor     .10000E-03    20.936       -.15191E-05** at limit **
  13  Prefactor     .10000E-03    2.8548        .36530E-07** at limit **
  14  Prefactor     .10000E-03    13.536        .13041E-05** at limit **
  15  Prefactor     .10000E-03    21.128       -.42306E-06** at limit **
  16  Prefactor     13.984        17.644        .11596E-06   -.44402E-04
  17  Prefactor     .10019E-03    396.65       -.29263E-04** at limit **
  18  Prefactor     22.141        26.962       -.12262E-05    .63749E-04
  19  Normalizat    .77135        .45306       -.67294E-05    .67795E-05
  20  Prefactor     1.4581        .22847        .74148E-06   -.13054E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.97885
  norm       = 8.02282
  Prefactor  = 82.4243
  Prefactor  = 4.35067
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 32.6095
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.9843
  Prefactor  = 0.000100186
  Prefactor  = 22.1414
  Normalizat = 0.771346
  Prefactor  = 1.45812
 **********
 **   18 **HESSE 
 **********

 FCN=   3113.411     FROM HESSE     STATUS=OK           287 CALLS     2299 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9788        4.0249        .61069E-03   -1.5363    
   3  norm          8.0228        9.4877        .14155E-03   -1.5141    
   4  Prefactor     82.424        57.758        .44239E-04   -1.3890    
   5  Prefactor     4.3507        25.380        .19370E-03   -1.5291    
   6  norm          .10000E-03    5.2728        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.942        .17985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.382        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.610        32.021        .70165E-04   -1.4565    
  11  norm          .10000E-03    3.3971        .10005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8588        .92048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.984        17.670        .10713E-03   -1.4960    
  17  Prefactor     .10019E-03    421.83        .20512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.141        26.871        .85161E-04   -1.4767    
  19  Normalizat    .77135        .48717        .47669E-03   -1.0114    
  20  Prefactor     1.4581        .24889        .18524E-03   -.78719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81976e-10
Minuit parameter uncertainties:
  1  6.39724e-05
  2  4.0253
  3  9.48952
  4  57.7976
  5  21.0293
  6  9.76961e-06
  7  5.10609e-05
  8  6.91972e-05
  9  0.000353523
  10  32.0381
  11  4.35877e-06
  12  0.000245947
  13  2.43082e-06
  14  0.000167229
  15  1.17707e-05
  16  17.6769
  17  0.0178193
  18  26.8861
  19  0.489955
  20  0.249097
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  4.359e-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.458e+00  2.491e-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:  7.713e-01  4.900e-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.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30086/likelihoodResults_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.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) = 3113.41264185
delta logL = -0.00136276537614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3113.41127863
delta logL = 4.49676463177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3691       1.0000          .0000       5.0000    
     3 'Normalizat'    .77129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4582       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3113.410     FROM MIGRAD    STATUS=FAILED       137 CALLS      277 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21878        1191.6        .42839E-01    .46175E-03
   2  alpha         1.1878        3.7462        .50000       -.19846E-04
   3  Normalizat    .77280        .24720        .47670E-03    .13236E-04
   4  Prefactor     1.4570        .16005        .18524E-03    .70979E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3113.410     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      372 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21878        1191.6        .48724E-03    .46175E-03
   2  alpha         1.1878        3.7462        .27419E-02   -.19846E-04
   3  Normalizat    .77280        .24720        .18382E-04    .13236E-04
   4  Prefactor     1.4570        .16005        .10740E-04    .70979E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3113.410     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      415 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21877        21.101         .0000        .17514E-02
   2  alpha         1.1878        2.9493         .0000       -.29522E-05
   3  Normalizat    .77280        .47324         .0000        .13832E-04
   4  Prefactor     1.4570        .24759         .0000        .70949E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.21877
  alpha      = 1.18778
  Normalizat = 0.772798
  Prefactor  = 1.45695
 **********
 **   18 **HESSE 
 **********

 FCN=   3113.410     FROM HESSE     STATUS=OK            27 CALLS      442 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21877        20.945        .53424E-03   -1.5614    
   2  alpha         1.1878        2.9528        .27024E-02   -6.8358    
   3  Normalizat    .77280        .47249        .38136E-05   -1.0109    
   4  Prefactor     1.4570        .24709        .74094E-05   -.78753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56002e-11
Minuit parameter uncertainties:
  1  4.28178
  2  3.18731
  3  0.475026
  4  0.24729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30086': 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) = 3113.40988088
delta logL = 0.00139820292543

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  2.188e-01  4.282e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.188e+00  3.187e+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.457e+00  2.473e-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:  7.728e-01  4.750e-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/30086/cmap_HighResolution_474163201_474422401_4FGL_J1037.7-2822_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-05', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-02 06:32:33.538652', job_id='30086', GAL2='1.46', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630589553.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='1.40e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='906' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:32:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 30086: <4FGL_J1037.7-2822_daily_bin906> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin906 159.427 -28.3816 474163201 474422401 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 :                                   484.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            649 sec.

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

