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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1478
RA = 159.356, Dec = -29.5568
tmin = 622425601, tmax = 622684801
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='14869', job_status='RUN', time_executed='2021-09-02 05:33:12.917661', time_epoch_executed='1630585992.92' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14869/ft1_4FGL_J1037.4-2933_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14869/ft1_4FGL_J1037.4-2933_daily_bin1478.fits outfile=/scratch/kocevski/14869/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1478.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=622425601.0 tmax=622684801.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 4.26
user 4.03
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14869/ft1_filtered_4FGL_J1037.4-2933_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/14869/ltcube_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.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/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits
.....................!
real 13.27
user 12.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14869/ft1_filtered_4FGL_J1037.4-2933_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/14869/ltcube_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.fits outfile=/scratch/kocevski/14869/expmap_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.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/14869/ltcube_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.fits
.....................!
real 190.16
user 185.77
sys 4.03

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/14869/ft1_filtered_4FGL_J1037.4-2933_daily_bin1478.fits scfile=/scratch/kocevski/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits outfile=/scratch/kocevski/14869/cmap_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14869/ft1_filtered_4FGL_J1037.4-2933_daily_bin1478.fits scfile=/scratch/kocevski/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits outfile=/scratch/kocevski/14869/cmap_HighResolution_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14869/ft1_filtered_4FGL_J1037.4-2933_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/14869/ft2_4FGL_J1037.4-2933_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14869/Model_4FGL_J1037.4-2933_daily_bin1478.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/14869/ft1_filtered_4FGL_J1037.4-2933_daily_bin1478.fits.....................!
real 80.97
user 79.60
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5116       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7091       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.423       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19496E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.970       1.0000         .10000E-03   10000.    
    11 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54602       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    83.622       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.820       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1180       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94886       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=   8224.833     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2204 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5120        6.6940       -.85277E-06    .63653E-03
   2  norm          2.7092        1.3776        .19651E-08   -.73002E-04
   3  norm          .10000E-03    5.0040        .37496E-07** at limit **
   4  Prefactor     .10000E-03    17.129        .61334E-07** at limit **
   5  Prefactor     23.421        16.161       -.11797E-06   -.61598E-04
   6  norm          .10000E-03    3.7575        .66432E-07** at limit **
   7  norm          .10000E-03    4.0153        .11681E-06** at limit **
   8  Prefactor     .10000E-03    8.8215       -.89299E-07** at limit **
   9  Prefactor     .10000E-03    42.883       -.24741E-05** at limit **
  10  Prefactor     16.929        17.159       -.27943E-05   -.58349E-03
  11  norm          .10002E-03    14.010       -.46708E-05** at limit **
  12  Prefactor     4.9930        13.035       -.51314E-07   -.19640E-03
  13  Prefactor     .10000E-03    1.8604        .19566E-06** at limit **
  14  Prefactor     .54971        6.9546        .23560E-05    .23174E-03
  15  Prefactor     .10000E-03    2.3817       -.11261E-06** at limit **
  16  Prefactor     .10000E-03    6.9567        .15359E-06** at limit **
  17  Prefactor     83.629        41.000        .55901E-07   -.16641E-03
  18  Prefactor     .10000E-03    7.5485       -.32570E-06** at limit **
  19  Prefactor     56.826        57.326        .23873E-06   -.62520E-04
  20  Normalizat    1.1178        .20645       -.70344E-06   -.37728E-03
  21  Prefactor     .94888        .98442E-01    .42461E-07   -.63352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.51201
  norm       = 2.70922
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.421
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.929
  norm       = 0.000100017
  Prefactor  = 4.99296
  Prefactor  = 0.0001
  Prefactor  = 0.549708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.6289
  Prefactor  = 0.0001
  Prefactor  = 56.826
  Normalizat = 1.1178
  Prefactor  = 0.948884
 **********
 **   18 **HESSE 
 **********

 FCN=   8224.833     FROM HESSE     STATUS=OK           311 CALLS     2515 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5120        6.6809        .10787E-02   -1.5333    
   2  norm          2.7092        1.3758        .73375E-04   -1.5379    
   3  norm          .10000E-03    5.0355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.421        16.162        .82766E-04   -1.4740    
   6  norm          .10000E-03    3.7705        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0531        .17749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.9234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.972        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.929        17.030        .97225E-04   -1.4885    
  11  norm          .10002E-03    14.833        .22739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9930        12.978        .17935E-03   -1.5261    
  13  Prefactor     .10000E-03    1.8902        .12080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .54971        22.098        .40572E-02   -1.5560    
  15  Prefactor     .10000E-03    2.4021        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     83.629        41.016        .21963E-03   -1.3876    
  18  Prefactor     .10000E-03    7.5927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     56.826        57.334        .53218E-04   -1.4199    
  20  Normalizat    1.1178        .24554        .32688E-03   -.89182    
  21  Prefactor     .94888        .11773        .17419E-03   -.94453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03887e-09
Minuit parameter uncertainties:
  1  6.6823
  2  1.37578
  3  4.47125e-06
  4  0.000330451
  5  16.1653
  6  7.49784e-06
  7  2.14155e-05
  8  9.22887e-05
  9  0.000291937
  10  17.0351
  11  0.000994434
  12  12.9856
  13  1.87922e-05
  14  6.97272
  15  4.11734e-06
  16  8.20095e-05
  17  41.0294
  18  5.60135e-05
  19  57.39
  20  0.245788
  21  0.117766
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.693e+01  1.704e+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:  9.489e-01  1.178e-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.118e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/14869/likelihoodResults_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.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) = 8223.65391756
delta logL = 1.17906971209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8223.57543753
delta logL = 1.25754973851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4123       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1089       1.0000          .0000       10.000    
     3 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98283       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.

 FCN=   8223.575     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      273 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4081        11.158        .91114E-02    .41115E-03
   2  Index         4.1102        2.1024        .10774        .16961E-03
   3  Normalizat    1.0179        .58593E-01    .76917E-01    .92736E-05
   4  Prefactor     .98284        .28811E-01    .46052E-01   -.97499E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40811
  Index      = 4.11016
  Normalizat = 1.01792
  Prefactor  = 0.982844
 **********
 **   18 **HESSE 
 **********

 FCN=   8223.575     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4081        23.346        .60596E-04   -1.5471    
   2  Index         4.1102        3.4426        .40007E-02   -.17892    
   3  Normalizat    1.0179        .21724        .34041E-03   -.92432    
   4  Prefactor     .98284        .10662        .17145E-03   -.93304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.70755e-07
Minuit parameter uncertainties:
  1  11.4721
  2  3.81299
  3  0.217428
  4  0.106648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14869': 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): 102
logL (Free Index) = 8223.57543708
delta logL = 1.25755018562

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.408e+00  1.147e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  4.110e+00  3.813e+00  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:  9.828e-01  1.066e-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.018e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 4.11 +/- 3.81
Photon Flux (Free Index): 1.12e-07 +/- 6.56e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.33e-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/14869/cmap_HighResolution_622425601_622684801_4FGL_J1037.4-2933_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='1.64e-05', photon_flux_error='4.57e-08', dlogl='1.26e+00', energy_flux='1.46e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-02 05:45:50.280358', photon_index_error2='3.81', photon_index2='4.11', ts='1.31', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.33e-05', EG='1.12', time_epoch_completed='1630586750.28', return_code='0', job_id='14869', GAL2='0.98', EG2='1.02', return_code2='102', energy_flux_error='1.47e-05', photon_flux_error2='6.56e-08', ts2='4.12', photon_index='2.41' WHERE bin_id='1478' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 14869: <4FGL_J1037.4-2933_daily_bin1478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1478 159.356 -29.5568 622425601 622684801 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 :                                   731.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            852 sec.

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

