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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1311
RA = 159.356, Dec = -29.5568
tmin = 579139201, tmax = 579398401
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='14606', job_status='RUN', time_executed='2021-09-02 05:31:51.575207', time_epoch_executed='1630585911.58' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14606/ft1_4FGL_J1037.4-2933_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14606/ft1_4FGL_J1037.4-2933_daily_bin1311.fits outfile=/scratch/kocevski/14606/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1311.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=579139201.0 tmax=579398401.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.55
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.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/14606/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1311.fits evtable="EVENTS" outfile="/scratch/kocevski/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.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.57
user 0.38
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/14606/ltcube_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.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/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits
.....................!
real 17.12
user 16.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/14606/ltcube_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.fits outfile=/scratch/kocevski/14606/expmap_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.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/14606/ltcube_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.fits
.....................!
real 191.41
user 186.68
sys 4.09

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/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits scfile=/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits outfile=/scratch/kocevski/14606/cmap_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits scfile=/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits outfile=/scratch/kocevski/14606/cmap_HighResolution_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14606/Model_4FGL_J1037.4-2933_daily_bin1311.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/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits....................!
real 76.14
user 74.51
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits', '/scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits', expMap='/scratch/kocevski/14606/expmap_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.fits', expCube='/scratch/kocevski/14606/ltcube_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14606/Model_4FGL_J1037.4-2933_daily_bin1311.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/14606/ft1_filtered_4FGL_J1037.4-2933_daily_bin1311.fits
Spacecraft file(s): /scratch/kocevski/14606/ft2_4FGL_J1037.4-2933_daily_bin1311.fits
Exposure map: /scratch/kocevski/14606/expmap_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.fits
Exposure cube: /scratch/kocevski/14606/ltcube_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14606/Model_4FGL_J1037.4-2933_daily_bin1311.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) = 7361.25516955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9780       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2468       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.345       1.0000         .10000E-03   10000.    
    11 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4431       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.878       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98235       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1180       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=   7361.190     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1875 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9784        10.291        .27740E-06   -.14095E-04
   2  norm          3.2468        1.7507        .28447E-07   -.25342E-04
   3  norm          7.2476        10.270        .27156E-05   -.29031E-03
   4  Prefactor     4.4429        20.261       -.50667E-05   -.16161E-03
   5  Prefactor     .10000E-03    13.386       -.83525E-06** at limit **
   6  norm          .10000E-03    3.8561       -.15690E-06** at limit **
   7  norm          16.956        9.6309        .36393E-06   -.13524E-03
   8  Prefactor     3.9096        11.824        .34232E-06   -.16948E-04
   9  Prefactor     .10000E-03    7.9564       -.13261E-06** at limit **
  10  Prefactor     27.345        17.561        .76183E-07    .44718E-04
  11  norm          .10000E-03    2.8320        .60510E-07** at limit **
  12  Prefactor     .10000E-03    9.2027        .45046E-06** at limit **
  13  Prefactor     4.4425        5.4382        .30774E-06   -.10249E-04
  14  Prefactor     20.879        13.737       -.47911E-07    .10382E-05
  15  Prefactor     .10000E-03    13.055       -.10290E-06** at limit **
  16  Prefactor     .10000E-03    4.0377        .56794E-07** at limit **
  17  Prefactor     .10000E-03    15.601        .51555E-06** at limit **
  18  Prefactor     .10000E-03    14.062        .15041E-08** at limit **
  19  Prefactor     .10000E-03    19.910        .34380E-06** at limit **
  20  Normalizat    .98231        .24810        .10133E-06   -.12042E-04
  21  Prefactor     1.1179        .11839       -.38447E-06    .47014E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97842
  norm       = 3.24682
  norm       = 7.24762
  Prefactor  = 4.44294
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.9563
  Prefactor  = 3.90964
  Prefactor  = 0.0001
  Prefactor  = 27.3455
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44253
  Prefactor  = 20.8794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.982314
  Prefactor  = 1.11793
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.190     FROM HESSE     STATUS=OK           315 CALLS     2190 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9784        10.281        .20222E-03   -1.5309    
   2  norm          3.2468        1.7525        .79697E-04   -1.5348    
   3  norm          7.2476        10.656        .74490E-03   -1.5169    
   4  Prefactor     4.4429        23.191        .19066E-03   -1.5286    
   5  Prefactor     .10000E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8650        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.956        9.6386        .48632E-03   -1.4884    
   8  Prefactor     3.9096        11.819        .20406E-03   -1.5312    
   9  Prefactor     .10000E-03    7.9788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.345        17.535        .76610E-04   -1.4662    
  11  norm          .10000E-03    2.8891        .28109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.2378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4425        5.4043        .19104E-03   -1.5286    
  14  Prefactor     20.879        13.714        .87658E-04   -1.4794    
  15  Prefactor     .10000E-03    13.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0648        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98231        .28436        .38366E-03   -.93625    
  21  Prefactor     1.1179        .13644        .17800E-03   -.88896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96198e-10
Minuit parameter uncertainties:
  1  10.2855
  2  1.75251
  3  10.659
  4  20.3133
  5  3.60468e-05
  6  1.45202e-06
  7  9.63947
  8  11.8262
  9  1.20811e-05
  10  17.5381
  11  3.94134e-06
  12  3.43383e-05
  13  5.40487
  14  13.7159
  15  3.02025e-05
  16  1.79714e-06
  17  5.4951e-05
  18  7.68472e-06
  19  4.1924e-05
  20  0.284797
  21  0.136486
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.735e+01  1.754e+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.118e+00  1.365e-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:  9.823e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.51e-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) = 7361.18015707
delta logL = 0.0102360502478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7361.17111795
delta logL = 0.0192751618697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.406       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2802       1.0000          .0000       10.000    
     3 'Normalizat'    .99282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1147       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=   7361.171     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      254 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.419        25.124        .72661E-04    .66559E-04
   2  Index         2.2798        .70238        .85245E-02    .40075E-03
   3  Normalizat    .99284        .27861        .38190E-03   -.14736E-04
   4  Prefactor     1.1147        .13555        .17823E-03   -.64755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4188
  Index      = 2.27983
  Normalizat = 0.992841
  Prefactor  = 1.11473
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.171     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.419        24.141        .14532E-04   -1.4604    
   2  Index         2.2798        .67434        .17049E-02   -.57524    
   3  Normalizat    .99284        .27825        .15276E-04   -.93271    
   4  Prefactor     1.1147        .13552        .35646E-04   -.88997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55582e-11
Minuit parameter uncertainties:
  1  24.1489
  2  0.677276
  3  0.278654
  4  0.135566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14606': 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) = 7361.17111774
delta logL = 0.019275377138

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.042e+01  2.415e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.280e+00  6.773e-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.115e+00  1.356e-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:  9.928e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.56
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.28 +/- 0.68
Photon Flux (Free Index): 6.48e-08 +/- 5.94e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.96e-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/14606/cmap_HighResolution_579139201_579398401_4FGL_J1037.4-2933_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='2.53e-05', photon_flux_error='4.70e-08', dlogl='1.93e-02', energy_flux='2.36e-05', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-02 05:42:04.950377', photon_index_error2='0.68', photon_index2='2.28', ts='5.52', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='0.98', time_epoch_completed='1630586524.95', return_code='0', job_id='14606', GAL2='1.11', EG2='0.99', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.94e-08', ts2='5.56', photon_index='2.41' WHERE bin_id='1311' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:42:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 14606: <4FGL_J1037.4-2933_daily_bin1311> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1311> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:18 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:20 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:20 2021
Terminated at Thu Sep  2 05:42:05 2021
Results reported at Thu Sep  2 05:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1311 159.356 -29.5568 579139201 579398401 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 :                                   604.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

