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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1101
RA = 159.427, Dec = -28.3816
tmin = 524707201, tmax = 524966401
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='31269', job_status='RUN', time_executed='2021-09-02 06:27:46.851021', time_epoch_executed='1630589266.85' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31269/ft1_4FGL_J1037.7-2822_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31269/ft1_4FGL_J1037.7-2822_daily_bin1101.fits outfile=/scratch/kocevski/31269/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1101.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=524707201.0 tmax=524966401.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.86
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31269/ft1_filtered_4FGL_J1037.7-2822_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/31269/ltcube_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.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/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits
.....................!
real 13.20
user 12.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31269/ft1_filtered_4FGL_J1037.7-2822_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/31269/ltcube_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.fits outfile=/scratch/kocevski/31269/expmap_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.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/31269/ltcube_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.fits
.....................!
real 190.88
user 185.93
sys 4.49

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/31269/ft1_filtered_4FGL_J1037.7-2822_daily_bin1101.fits scfile=/scratch/kocevski/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits outfile=/scratch/kocevski/31269/cmap_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31269/ft1_filtered_4FGL_J1037.7-2822_daily_bin1101.fits scfile=/scratch/kocevski/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits outfile=/scratch/kocevski/31269/cmap_HighResolution_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.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.64
user 0.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31269/ft1_filtered_4FGL_J1037.7-2822_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/31269/ft2_4FGL_J1037.7-2822_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31269/Model_4FGL_J1037.7-2822_daily_bin1101.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/31269/ft1_filtered_4FGL_J1037.7-2822_daily_bin1101.fits.....................!
real 66.70
user 65.30
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6620       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6967       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2733       1.0000         .10000E-03   10000.    
     6 'norm      '    .12581E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.265       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14571E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.431       1.0000         .10000E-03   10000.    
    11 'norm      '    5.6929       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31917E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58435E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20204E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1099       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1193       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=   6378.585     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2004 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6565        24.142       -.54312E-05   -.18241E-03
   2  norm          1.6975        1.6643       -.46788E-06   -.15505E-03
   3  norm          5.9449        12.235        .37078E-06    .86791E-04
   4  Prefactor     1.8778        122.53       -.14503E-03   -.83222E-06
   5  Prefactor     6.2616        10.792        .16564E-05    .19382E-03
   6  norm          .10000E-03    5.0969        .15945E-06** at limit **
   7  norm          10.294        10.295        .40930E-05    .28804E-03
   8  Prefactor     11.950        9.2062        .18344E-05    .32729E-04
   9  Prefactor     .10000E-03    29.912       -.21815E-05** at limit **
  10  Prefactor     15.331        16.238        .67513E-05    .19950E-03
  11  norm          5.6986        4.6813       -.11935E-05    .29191E-03
  12  Prefactor     .10000E-03    47.556        .60096E-05** at limit **
  13  Prefactor     .10002E-03    2.2826       -.83955E-06** at limit **
  14  Prefactor     .10000E-03    9.0670       -.14522E-05** at limit **
  15  Prefactor     5.1070        6.8670       -.70626E-06   -.11095E-03
  16  Prefactor     6.4279        6.3338       -.42397E-05    .65572E-04
  17  Prefactor     21.229        44.597       -.74826E-04    .26623E-05
  18  Prefactor     .10001E-03    12.991        .29710E-05** at limit **
  19  Normalizat    1.0596        .27803        .94913E-05    .48133E-03
  20  Prefactor     1.1192        .13559        .20853E-05    .10183E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65649
  norm       = 1.69748
  norm       = 5.94492
  Prefactor  = 1.87781
  Prefactor  = 6.26157
  norm       = 0.0001
  norm       = 10.2936
  Prefactor  = 11.95
  Prefactor  = 0.0001
  Prefactor  = 15.3306
  norm       = 5.69857
  Prefactor  = 0.000100003
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 5.10695
  Prefactor  = 6.42795
  Prefactor  = 21.2288
  Prefactor  = 0.000100005
  Normalizat = 1.05965
  Prefactor  = 1.11924
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.585     FROM HESSE     STATUS=OK           295 CALLS     2299 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6565        24.487        .32721E-03   -1.5451    
   2  norm          1.6975        1.6558        .97242E-04   -1.5447    
   3  norm          5.9449        12.231        .16506E-03   -1.5220    
   4  Prefactor     1.8778        124.99        .29961E-03   -1.5434    
   5  Prefactor     6.2616        10.772        .16027E-03   -1.5207    
   6  norm          .10000E-03    5.1084        .17602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.294        10.284        .12506E-03   -1.5066    
   8  Prefactor     11.950        9.2047        .11599E-03   -1.5016    
   9  Prefactor     .10000E-03    30.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.331        16.175        .10196E-03   -1.4925    
  11  norm          5.6986        4.6440        .14560E-03   -1.5230    
  12  Prefactor     .10000E-03    48.541        .21363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    15.733        .22978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1070        6.8705        .17786E-03   -1.5256    
  16  Prefactor     6.4279        6.3355        .15847E-03   -1.5201    
  17  Prefactor     21.229        44.620        .86834E-04   -1.4786    
  18  Prefactor     .10001E-03    13.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0596        .32463        .37661E-03   -.91058    
  20  Prefactor     1.1192        .15999        .18421E-03   -.88854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85688e-09
Minuit parameter uncertainties:
  1  12.7437
  2  1.65589
  3  12.2358
  4  30.7068
  5  10.7753
  6  4.75504e-05
  7  10.2855
  8  9.20577
  9  0.000234946
  10  16.18
  11  4.6443
  12  0.000818254
  13  0.00100005
  14  0.000103705
  15  6.8716
  16  6.33612
  17  44.6903
  18  0.000518299
  19  0.325236
  20  0.160055
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.699e+00  4.644e+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.119e+00  1.601e-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.060e+00  3.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 5.08e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.70e-05

TS (Fixed Index): 3.15
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31269/likelihoodResults_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.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) = 6378.5626369
delta logL = 0.022500566025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6378.557482
delta logL = 0.0276554672391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2058       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2553       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1167       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=   6378.557     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2069        144.17        .40287E-02    .13550E-03
   2  alpha         2.2552        3.2157        .41396        .24649E-04
   3  Normalizat    1.0678        .13760        .84771E-01    .18290E-04
   4  Prefactor     1.1167        .53874E-01    .36985E-01   -.23502E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20687
  alpha      = 2.25522
  Normalizat = 1.06776
  Prefactor  = 1.11669
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.557     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2069        5.3299        .15358E-03   -1.5210    
   2  alpha         2.2552        .62960        .14656E-01   -.98070E-01
   3  Normalizat    1.0678        .31391        .37535E-03   -.90794    
   4  Prefactor     1.1167        .15764        .18440E-03   -.88935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09969e-12
Minuit parameter uncertainties:
  1  5.3303
  2  0.636523
  3  0.314459
  4  0.157708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31269': 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) = 6378.55748197
delta logL = 0.0276554987395

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  6.207e+00  5.330e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.255e+00  6.365e-01  0.000e+00  5.000e+00 ( 1.000e+00)
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.117e+00  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.068e+00  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.26 +/- 0.64
Photon Flux (Free Index): 5.54e-08 +/- 5.32e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.86e-05

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/31269/cmap_HighResolution_524707201_524966401_4FGL_J1037.7-2822_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-05', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='2.20e-05', photon_flux_error='5.08e-08', dlogl='2.77e-02', energy_flux='2.08e-05', photon_flux2='5.54e-08', job_status='DONE', time_completed='2021-09-02 06:38:01.338328', photon_index_error2='0.64', photon_index2='2.26', ts='3.15', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.86e-05', EG='1.06', time_epoch_completed='1630589881.34', return_code='0', job_id='31269', GAL2='1.12', EG2='1.07', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.32e-08', ts2='3.21', photon_index='2.40' WHERE bin_id='1101' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:38:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 31269: <4FGL_J1037.7-2822_daily_bin1101> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin1101> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 06:26:29 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:27:00 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:27:00 2021
Terminated at Thu Sep  2 06:38:02 2021
Results reported at Thu Sep  2 06:38:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1101 159.427 -28.3816 524707201 524966401 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 :                                   609.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            693 sec.

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

