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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1324
RA = 159.356, Dec = -29.5568
tmin = 582508801, tmax = 582768001
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='14627', job_status='RUN', time_executed='2021-09-02 05:31:55.367534', time_epoch_executed='1630585915.37' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14627/ft1_4FGL_J1037.4-2933_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14627/ft1_4FGL_J1037.4-2933_daily_bin1324.fits outfile=/scratch/kocevski/14627/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1324.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=582508801.0 tmax=582768001.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.69
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14627/ft1_filtered_4FGL_J1037.4-2933_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/14627/ltcube_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.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/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits
.....................!
real 14.80
user 14.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14627/ft1_filtered_4FGL_J1037.4-2933_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/14627/ltcube_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.fits outfile=/scratch/kocevski/14627/expmap_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.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/14627/ltcube_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.fits
.....................!
real 190.79
user 185.78
sys 4.17

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/14627/ft1_filtered_4FGL_J1037.4-2933_daily_bin1324.fits scfile=/scratch/kocevski/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits outfile=/scratch/kocevski/14627/cmap_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.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.62
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14627/ft1_filtered_4FGL_J1037.4-2933_daily_bin1324.fits scfile=/scratch/kocevski/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits outfile=/scratch/kocevski/14627/cmap_HighResolution_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.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.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14627/ft1_filtered_4FGL_J1037.4-2933_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/14627/ft2_4FGL_J1037.4-2933_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14627/Model_4FGL_J1037.4-2933_daily_bin1324.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/14627/ft1_filtered_4FGL_J1037.4-2933_daily_bin1324.fits....................!
real 107.92
user 106.29
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    13.734       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2546       1.0000         .10000E-03   10000.    
     7 'norm      '    .11028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4245       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .81551E-03   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 '    16.549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .72063       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1215       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=   11559.21     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1856 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0293       -.33355E-07** at limit **
   2  norm          13.733        1.9391        .92560E-08    .24103E-04
   3  norm          3.8721        7.4598        .35614E-05    .15829E-03
   4  Prefactor     .10000E-03    7.0142        .64101E-07** at limit **
   5  Prefactor     .10000E-03    3.7458        .30364E-06** at limit **
   6  norm          6.2557        5.8149       -.25120E-06   -.20077E-03
   7  norm          .10000E-03    6.2707        .21859E-06** at limit **
   8  Prefactor     .10000E-03    1.8164       -.76631E-08** at limit **
   9  Prefactor     .10000E-03    7.3483       -.20256E-06** at limit **
  10  Prefactor     9.4299        10.152       -.22931E-06   -.12064E-03
  11  norm          .10000E-03    .86222        .14167E-06** at limit **
  12  Prefactor     .10000E-03    4.0356       -.20073E-06** at limit **
  13  Prefactor     .10000E-03    1.1400        .14954E-06** at limit **
  14  Prefactor     .10001E-03    5.2283        .26998E-05** at limit **
  15  Prefactor     .10000E-03    1.2846       -.29638E-08** at limit **
  16  Prefactor     .10000E-03    3.8480       -.67353E-07** at limit **
  17  Prefactor     16.541        20.449        .16317E-05    .15383E-04
  18  Prefactor     .10000E-03    3.8899       -.42846E-06** at limit **
  19  Prefactor     .10000E-03    13.617        .14008E-06** at limit **
  20  Normalizat    .72071        .17289        .37656E-06   -.12847E-03
  21  Prefactor     1.1215        .89045E-01   -.41550E-06   -.22576E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.7333
  norm       = 3.87215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.25572
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.42987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.720714
  Prefactor  = 1.12146
 **********
 **   18 **HESSE 
 **********

 FCN=   11559.21     FROM HESSE     STATUS=OK           309 CALLS     2165 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0298        .14957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.733        1.9392        .54105E-04   -1.4967    
   3  norm          3.8721        7.8380        .10252E-02   -1.5314    
   4  Prefactor     .10000E-03    7.0362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2557        5.8087        .16051E-03   -1.5208    
   7  norm          .10000E-03    6.5342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8176        .14151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4299        10.121        .13054E-03   -1.5094    
  11  norm          .10000E-03    .88666        .19487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1606        .11198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    14.710        .38273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2933        .11896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.541        20.481        .98453E-04   -1.4894    
  18  Prefactor     .10000E-03    3.9293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .72071        .19415        .38563E-03   -1.0308    
  21  Prefactor     1.1215        .10118        .16431E-03   -.88784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78567e-10
Minuit parameter uncertainties:
  1  2.99394e-08
  2  1.93922
  3  7.84005
  4  1.19157e-08
  5  3.40953e-07
  6  5.80927
  7  3.62331e-05
  8  1.15862e-08
  9  3.36444e-05
  10  10.1228
  11  6.89266e-06
  12  4.51742e-06
  13  5.28206e-06
  14  0.000676536
  15  1.39635e-06
  16  5.66428e-06
  17  20.4895
  18  4.20227e-05
  19  2.09958e-07
  20  0.194332
  21  0.101197
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.430e+00  1.012e+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.121e+00  1.012e-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.207e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 8.14e-06 +/- 8.74e-06

TS (Fixed Index): 1.11
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14627/likelihoodResults_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.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) = 11559.1885444
delta logL = 0.020993961396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11559.1702632
delta logL = 0.0392751530071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0747       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6605       1.0000          .0000       10.000    
     3 'Normalizat'    .71368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1238       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11559.17     FROM MIGRAD    STATUS=FAILED        96 CALLS      259 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0549        15.592        .15082E-03   -.53972E-04
   2  Index         2.6618        1.2214        .94319E-02    .69306E-03
   3  Normalizat    .71357        .19501        .38743E-03    .31269E-03
   4  Prefactor     1.1239        .10112        .16416E-03   -.23583E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11559.17     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      336 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0549        15.592        .29447E-03   -1.5177    
   2  Index         2.6618        1.2214        .10901E-02   -.48661    
   3  Normalizat    .71357        .19501        .45551E-03   -1.0336    
   4  Prefactor     1.1239        .10112        .18010E-03   -.88706    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11559.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      364 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0548        12.313        .60328E-05   -.62565E-04
   2  Index         2.6618        .96846        .18864E-02    .10378E-04
   3  Normalizat    .71356        .19452        .15497E-04   -.38147E-05
   4  Prefactor     1.1239        .10091        .32831E-04   -.67870E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.05484
  Index      = 2.66184
  Normalizat = 0.713559
  Prefactor  = 1.12393
 **********
 **   18 **HESSE 
 **********

 FCN=   11559.17     FROM HESSE     STATUS=OK            23 CALLS      387 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0548        11.866        .12066E-05   -1.5177    
   2  Index         2.6618        .93325        .75456E-04   -.48661    
   3  Normalizat    .71356        .19468        .30994E-05   -1.0336    
   4  Prefactor     1.1239        .10097        .65662E-05   -.88706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96847e-11
Minuit parameter uncertainties:
  1  11.8702
  2  0.940326
  3  0.194864
  4  0.100987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14627': 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) = 11559.1702606
delta logL = 0.039277674101

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  7.055e+00  1.187e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.662e+00  9.403e-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.124e+00  1.010e-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.136e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.66 +/- 0.94
Photon Flux (Free Index): 2.96e-08 +/- 3.29e-08
Energy Flux (Free Index): 7.36e-06 +/- 8.06e-06

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/14627/cmap_HighResolution_582508801_582768001_4FGL_J1037.4-2933_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='7.36e-06', photon_flux_error='2.71e-08', dlogl='3.93e-02', energy_flux='8.14e-06', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-02 05:46:42.879825', photon_index_error2='0.94', photon_index2='2.66', ts='1.11', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='8.06e-06', EG='0.72', time_epoch_completed='1630586802.88', return_code='0', job_id='14627', GAL2='1.12', EG2='0.71', return_code2='0', energy_flux_error='8.74e-06', photon_flux_error2='3.29e-08', ts2='1.20', photon_index='2.41' WHERE bin_id='1324' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:46:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 14627: <4FGL_J1037.4-2933_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1324 159.356 -29.5568 582508801 582768001 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 :                                   880.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

