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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1541
RA = 159.356, Dec = -29.5568
tmin = 638755201, tmax = 639014401
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='14970', job_status='RUN', time_executed='2021-09-02 05:34:04.222772', time_epoch_executed='1630586044.22' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14970/ft1_4FGL_J1037.4-2933_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14970/ft1_4FGL_J1037.4-2933_daily_bin1541.fits outfile=/scratch/kocevski/14970/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1541.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=638755201.0 tmax=639014401.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 5.40
user 5.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.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/14970/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1541.fits evtable="EVENTS" outfile="/scratch/kocevski/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/14970/ltcube_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.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/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits
.....................!
real 14.81
user 14.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/14970/ltcube_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.fits outfile=/scratch/kocevski/14970/expmap_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.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/14970/ltcube_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.fits
.....................!
real 190.85
user 185.22
sys 5.21

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/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.fits scfile=/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits outfile=/scratch/kocevski/14970/cmap_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.fits scfile=/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits outfile=/scratch/kocevski/14970/cmap_HighResolution_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/14970/ft2_4FGL_J1037.4-2933_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14970/Model_4FGL_J1037.4-2933_daily_bin1541.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/14970/ft1_filtered_4FGL_J1037.4-2933_daily_bin1541.fits.....................!
real 61.76
user 60.21
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.939       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.798       1.0000         .10000E-03   10000.    
    11 'norm      '    .11285E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2888       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67434       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1025       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=   5392.878     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2211 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6323        .79230E-08** at limit **
   2  norm          .10000E-03    .88528        .11151E-07** at limit **
   3  norm          .10000E-03    7.7717        .14908E-05** at limit **
   4  Prefactor     33.940        34.026        .41764E-06    .13378E-04
   5  Prefactor     .10000E-03    17.471        .96505E-06** at limit **
   6  norm          .10000E-03    7.6166       -.45269E-06** at limit **
   7  norm          .10000E-03    3.6714        .26193E-07** at limit **
   8  Prefactor     .10000E-03    3.8437       -.41998E-08** at limit **
   9  Prefactor     45.780        23.904        .78563E-07    .80264E-04
  10  Prefactor     24.762        20.751        .75754E-06    .25132E-03
  11  norm          .10001E-03    2.4483       -.15634E-07** at limit **
  12  Prefactor     .10000E-03    30.688        .31150E-06** at limit **
  13  Prefactor     .10000E-03    2.9684        .78299E-07** at limit **
  14  Prefactor     32.928        19.082        .38583E-06    .15223E-03
  15  Prefactor     9.2892        8.9720        .15331E-05   -.44698E-03
  16  Prefactor     10.802        11.137        .54671E-06   -.11280E-03
  17  Prefactor     .10000E-03    19.446       -.11682E-05** at limit **
  18  Prefactor     .10000E-03    8.3907       -.10385E-05** at limit **
  19  Prefactor     .10000E-03    105.12       -.13202E-05** at limit **
  20  Normalizat    .67422        .31028       -.19686E-05   -.94352E-05
  21  Prefactor     1.1026        .13809        .10969E-06   -.39035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 33.9399
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7805
  Prefactor  = 24.7616
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9277
  Prefactor  = 9.2892
  Prefactor  = 10.8016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.67422
  Prefactor  = 1.10258
 **********
 **   18 **HESSE 
 **********

 FCN=   5392.878     FROM HESSE     STATUS=OK           311 CALLS     2522 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6356        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .92378        .13484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.940        34.001        .68785E-04   -1.4542    
   5  Prefactor     .10000E-03    17.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.6968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6799        .13740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8450        .14061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.780        23.818        .59251E-04   -1.4354    
  10  Prefactor     24.762        20.764        .80441E-04   -1.4712    
  11  norm          .10001E-03    20.774        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9862        .12335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.928        19.149        .69828E-04   -1.4560    
  15  Prefactor     9.2892        9.5508        .65749E-03   -1.5098    
  16  Prefactor     10.802        11.199        .60952E-03   -1.5051    
  17  Prefactor     .10000E-03    19.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    105.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .67422        .34472        .43932E-03   -1.0492    
  21  Prefactor     1.1026        .15606        .16648E-03   -.89384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38837e-10
Minuit parameter uncertainties:
  1  1.4816e-06
  2  1.83245e-06
  3  0.000152904
  4  34.02
  5  0.000134707
  6  4.89459e-05
  7  4.75164e-07
  8  1.68811e-07
  9  23.8231
  10  20.7697
  11  0.000740517
  12  3.33898e-05
  13  8.52632e-06
  14  19.153
  15  9.55235
  16  11.2008
  17  0.000183855
  18  0.00010599
  19  0.000464178
  20  0.345835
  21  0.156124
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.476e+01  2.077e+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.103e+00  1.561e-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:  6.742e-01  3.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.64e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.79e-05

TS (Fixed Index): 2.52
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14970/likelihoodResults_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.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) = 5392.58636983
delta logL = 0.291371287389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5392.58575235
delta logL = 0.291988762909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.917       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9162       1.0000          .0000       10.000    
     3 'Normalizat'    .70512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0928       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=   5392.586     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      298 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.918        27.980        .68807E-04   -.35424E-04
   2  Index         1.9162        .59748        .91768E-02   -.15193E-04
   3  Normalizat    .70510        .32526        .43038E-03    .11599E-03
   4  Prefactor     1.0929        .15514        .16712E-03    .47787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9175
  Index      = 1.9162
  Normalizat = 0.705103
  Prefactor  = 1.09285
 **********
 **   18 **HESSE 
 **********

 FCN=   5392.586     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.918        27.899        .13761E-04   -1.4543    
   2  Index         1.9162        .59561        .36707E-03   -.66462    
   3  Normalizat    .70510        .32534        .17215E-04   -1.0369    
   4  Prefactor     1.0929        .15520        .33424E-04   -.89695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76225e-10
Minuit parameter uncertainties:
  1  27.9093
  2  0.59791
  3  0.32624
  4  0.155268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14970': 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) = 5392.58575235
delta logL = 0.291988763817

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.392e+01  2.791e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.916e+00  5.979e-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.093e+00  1.553e-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:  7.051e-01  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 1.92 +/- 0.60
Photon Flux (Free Index): 4.12e-08 +/- 4.63e-08
Energy Flux (Free Index): 3.54e-05 +/- 4.18e-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/14970/cmap_HighResolution_638755201_639014401_4FGL_J1037.4-2933_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='6.64e-08', energy_flux2='3.54e-05', photon_flux_error='5.57e-08', dlogl='2.92e-01', energy_flux='2.14e-05', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-02 05:44:49.079527', photon_index_error2='0.60', photon_index2='1.92', ts='2.52', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='4.18e-05', EG='0.67', time_epoch_completed='1630586689.08', return_code='0', job_id='14970', GAL2='1.09', EG2='0.71', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.63e-08', ts2='3.10', photon_index='2.41' WHERE bin_id='1541' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 14970: <4FGL_J1037.4-2933_daily_bin1541> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1541 159.356 -29.5568 638755201 639014401 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 :                                   598.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             284.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

