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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1582
RA = 159.356, Dec = -29.5568
tmin = 649382401, tmax = 649641601
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='15036', job_status='RUN', time_executed='2021-09-02 05:32:11.473683', time_epoch_executed='1630585931.47' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15036/ft1_4FGL_J1037.4-2933_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15036/ft1_4FGL_J1037.4-2933_daily_bin1582.fits outfile=/scratch/kocevski/15036/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1582.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=649382401.0 tmax=649641601.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 2.71
user 2.52
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.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/15036/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/15036/ltcube_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.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/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits
.....................!
real 15.32
user 14.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/15036/ltcube_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.fits outfile=/scratch/kocevski/15036/expmap_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.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/15036/ltcube_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.fits
.....................!
real 191.38
user 186.29
sys 4.67

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.4-2933 @ 159.356 -29.5568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits scfile=/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits outfile=/scratch/kocevski/15036/cmap_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.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.356 yref=-29.5568 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits scfile=/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits outfile=/scratch/kocevski/15036/cmap_HighResolution_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.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.356 yref=-29.5568 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15036/Model_4FGL_J1037.4-2933_daily_bin1582.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/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits.....................!
real 112.17
user 110.64
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits', '/scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits', expMap='/scratch/kocevski/15036/expmap_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.fits', expCube='/scratch/kocevski/15036/ltcube_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15036/Model_4FGL_J1037.4-2933_daily_bin1582.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.4-2933'

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  4.842e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/15036/ft1_filtered_4FGL_J1037.4-2933_daily_bin1582.fits
Spacecraft file(s): /scratch/kocevski/15036/ft2_4FGL_J1037.4-2933_daily_bin1582.fits
Exposure map: /scratch/kocevski/15036/expmap_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.fits
Exposure cube: /scratch/kocevski/15036/ltcube_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15036/Model_4FGL_J1037.4-2933_daily_bin1582.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) = 11944.6542235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4229       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4679       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9861       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9640       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.027       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4327       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6740       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0525       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11943.71     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1900 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4223        10.503       -.94096E-07   -.27349E-05
   2  norm          4.4679        1.5313        .11409E-07    .75070E-05
   3  norm          4.9862        5.1772       -.44395E-07   -.11442E-03
   4  Prefactor     .10000E-03    6.3742       -.10951E-05** at limit **
   5  Prefactor     .10000E-03    7.1893        .63216E-07** at limit **
   6  norm          2.9612        2.7968       -.25914E-07   -.32500E-03
   7  norm          4.1210        5.2565       -.20025E-07   -.70644E-05
   8  Prefactor     6.8128        6.5554        .17040E-07   -.23857E-06
   9  Prefactor     .10000E-03    3.6107       -.20008E-05** at limit **
  10  Prefactor     42.027        17.596       -.35796E-06    .61249E-06
  11  norm          1.2817        2.6958        .75478E-07   -.36770E-04
  12  Prefactor     .10000E-03    2.9129       -.22060E-06** at limit **
  13  Prefactor     6.4326        3.6336        .22389E-06   -.28467E-04
  14  Prefactor     6.5722        7.3374        .54726E-07   -.16378E-03
  15  Prefactor     .10000E-03    3.7720        .17465E-05** at limit **
  16  Prefactor     8.6739        5.6451       -.94658E-08   -.20477E-05
  17  Prefactor     11.462        21.638       -.57081E-06   -.90098E-05
  18  Prefactor     .10000E-03    3.2240        .58237E-06** at limit **
  19  Prefactor     .10000E-03    21.090       -.11525E-05** at limit **
  20  Normalizat    1.0271        .18344        .21433E-07   -.42047E-04
  21  Prefactor     1.0525        .89410E-01    .96011E-08   -.64617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.42227
  norm       = 4.46786
  norm       = 4.98623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.96118
  norm       = 4.12096
  Prefactor  = 6.81276
  Prefactor  = 0.0001
  Prefactor  = 42.0268
  norm       = 1.2817
  Prefactor  = 0.0001
  Prefactor  = 6.43256
  Prefactor  = 6.57219
  Prefactor  = 0.0001
  Prefactor  = 8.67388
  Prefactor  = 11.4624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0271
  Prefactor  = 1.05253
 **********
 **   18 **HESSE 
 **********

 FCN=   11943.71     FROM HESSE     STATUS=OK           321 CALLS     2221 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4223        10.505        .17256E-03   -1.5242    
   2  norm          4.4679        1.5337        .76257E-04   -1.5285    
   3  norm          4.9862        5.2314        .90049E-03   -1.5261    
   4  Prefactor     .10000E-03    6.3850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9612        7.0119        .11793E-02   -1.5364    
   7  norm          4.1210        5.3240        .19861E-03   -1.5302    
   8  Prefactor     6.8128        6.5583        .15372E-03   -1.5186    
   9  Prefactor     .10000E-03    3.6301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.027        17.401        .61836E-04   -1.4410    
  11  norm          1.2817        2.6344        .22884E-03   -1.5482    
  12  Prefactor     .10000E-03    2.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4326        3.6227        .14327E-03   -1.5201    
  14  Prefactor     6.5722        7.8000        .78268E-03   -1.5195    
  15  Prefactor     .10000E-03    3.8146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6739        5.6459        .13610E-03   -1.5119    
  17  Prefactor     11.462        21.654        .11833E-03   -1.5031    
  18  Prefactor     .10000E-03    3.2366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0271        .21446        .36246E-03   -.92128    
  21  Prefactor     1.0525        .10454        .17794E-03   -.90998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82906e-10
Minuit parameter uncertainties:
  1  10.5087
  2  1.53373
  3  5.23191
  4  5.55747e-07
  5  3.4845e-07
  6  7.01382
  7  5.32466
  8  6.55901
  9  7.27286e-07
  10  17.4033
  11  2.63466
  12  7.0067e-08
  13  3.62284
  14  7.80117
  15  1.08544e-05
  16  5.64625
  17  21.6686
  18  3.99207e-07
  19  9.06541e-08
  20  0.214641
  21  0.104556
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  4.203e+01  1.740e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.053e+00  1.046e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.027e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.37
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 4.67e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 1.50e-05

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) = 11942.4631882
delta logL = 1.24401142325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11942.4607694
delta logL = 1.24643023965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.759       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9632       1.0000          .0000       10.000    
     3 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0419       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+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=   11942.46     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.765        24.224        .51475E-04    .15460E-04
   2  Index         1.9632        .27326        .60266E-02    .14703E-04
   3  Normalizat    1.0638        .20895        .35700E-03    .41335E-04
   4  Prefactor     1.0420        .10362        .17875E-03   -.53833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.7651
  Index      = 1.96318
  Normalizat = 1.06385
  Prefactor  = 1.04198
 **********
 **   18 **HESSE 
 **********

 FCN=   11942.46     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.765        24.087        .10295E-04   -1.4147    
   2  Index         1.9632        .27161        .24107E-03   -.65274    
   3  Normalizat    1.0638        .20907        .14280E-04   -.90921    
   4  Prefactor     1.0420        .10369        .35749E-04   -.91343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01198e-11
Minuit parameter uncertainties:
  1  24.0909
  2  0.271827
  3  0.209228
  4  0.103712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15036': 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) = 11942.460769
delta logL = 1.24643062419

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  6.077e+01  2.409e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.963e+00  2.718e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.042e+00  1.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.064e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.92
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 1.96 +/- 0.27
Photon Flux (Free Index): 7.88e-08 +/- 3.94e-08
Energy Flux (Free Index): 5.98e-05 +/- 3.27e-05

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/15036/cmap_HighResolution_649382401_649641601_4FGL_J1037.4-2933_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='5.98e-05', photon_flux_error='4.67e-08', dlogl='1.25e+00', energy_flux='3.63e-05', photon_flux2='7.88e-08', job_status='DONE', time_completed='2021-09-02 05:45:20.074000', photon_index_error2='0.27', photon_index2='1.96', ts='16.37', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.27e-05', EG='1.03', time_epoch_completed='1630586720.07', return_code='0', job_id='15036', GAL2='1.04', EG2='1.06', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.94e-08', ts2='18.92', photon_index='2.41' WHERE bin_id='1582' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 15036: <4FGL_J1037.4-2933_daily_bin1582> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1582> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:55 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:31:57 2021
Terminated at Thu Sep  2 05:45:20 2021
Results reported at Thu Sep  2 05:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1582 159.356 -29.5568 649382401 649641601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.4-2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

