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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1520
RA = 159.356, Dec = -29.5568
tmin = 633312001, tmax = 633571201
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='14934', job_status='RUN', time_executed='2021-09-02 05:32:24.060578', time_epoch_executed='1630585944.06' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14934/ft1_4FGL_J1037.4-2933_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14934/ft2_4FGL_J1037.4-2933_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14934/ft1_4FGL_J1037.4-2933_daily_bin1520.fits outfile=/scratch/kocevski/14934/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1520.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=633312001.0 tmax=633571201.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.78
user 3.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14934/ft1_filtered_4FGL_J1037.4-2933_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/14934/ft2_4FGL_J1037.4-2933_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/14934/ltcube_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.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/14934/ft2_4FGL_J1037.4-2933_daily_bin1520.fits
.....................!
real 17.81
user 17.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14934/ft1_filtered_4FGL_J1037.4-2933_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/14934/ft2_4FGL_J1037.4-2933_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/14934/ltcube_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.fits outfile=/scratch/kocevski/14934/expmap_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.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/14934/ltcube_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.fits
.....................!
real 192.43
user 187.28
sys 4.37

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/14934/ft1_filtered_4FGL_J1037.4-2933_daily_bin1520.fits scfile=/scratch/kocevski/14934/ft2_4FGL_J1037.4-2933_daily_bin1520.fits outfile=/scratch/kocevski/14934/cmap_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.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.64
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14934/ft1_filtered_4FGL_J1037.4-2933_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/14934/ft2_4FGL_J1037.4-2933_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14934/Model_4FGL_J1037.4-2933_daily_bin1520.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/14934/ft1_filtered_4FGL_J1037.4-2933_daily_bin1520.fits.....................!
real 102.38
user 100.61
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .78906       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13349E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3137       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7756       1.0000         .10000E-03   10000.    
    11 'norm      '    .48839       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4697       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.768       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.377       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0282       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0546       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=   10504.18     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2205 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8382       -.11436E-06** at limit **
   2  norm          .78916        .97244       -.31292E-07   -.62120E-03
   3  norm          .10000E-03    3.4034        .23020E-06** at limit **
   4  Prefactor     .10000E-03    27.434        .26972E-06** at limit **
   5  Prefactor     .10000E-03    7.1189       -.58600E-06** at limit **
   6  norm          .10000E-03    4.5635        .45731E-07** at limit **
   7  norm          3.6895        5.0554        .87960E-07   -.79259E-04
   8  Prefactor     2.3147        8.7206        .77714E-05   -.51409E-04
   9  Prefactor     .10000E-03    9.1275        .78362E-06** at limit **
  10  Prefactor     7.7756        9.2273        .11755E-07   -.20956E-04
  11  norm          .48887        1.4096        .54534E-07   -.27654E-03
  12  Prefactor     .10000E-03    3.4503       -.36811E-06** at limit **
  13  Prefactor     2.6551        2.2363        .18585E-07    .47741E-05
  14  Prefactor     1.4727        14.351        .11430E-05   -.17401E-04
  15  Prefactor     29.769        6.9993        .12247E-06    .23129E-04
  16  Prefactor     .10000E-03    1.8163       -.31626E-07** at limit **
  17  Prefactor     77.110        43.293       -.15481E-05    .24787E-04
  18  Prefactor     .10000E-03    13.084        .14431E-05** at limit **
  19  Prefactor     62.380        56.464       -.23648E-06   -.16635E-05
  20  Normalizat    1.0281        .19760       -.14282E-05   -.13317E-03
  21  Prefactor     1.0546        .94492E-01    .28064E-06   -.16312E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.789158
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.68948
  Prefactor  = 2.31468
  Prefactor  = 0.0001
  Prefactor  = 7.77559
  norm       = 0.48887
  Prefactor  = 0.0001
  Prefactor  = 2.65508
  Prefactor  = 1.47273
  Prefactor  = 29.7691
  Prefactor  = 0.0001
  Prefactor  = 77.1096
  Prefactor  = 0.000100004
  Prefactor  = 62.3801
  Normalizat = 1.02811
  Prefactor  = 1.05457
 **********
 **   18 **HESSE 
 **********

 FCN=   10504.18     FROM HESSE     STATUS=OK           319 CALLS     2524 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78916        .85503        .10758E-02   -1.5530    
   3  norm          .10000E-03    3.4170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.445        .41120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6895        5.0439        .21026E-03   -1.5324    
   8  Prefactor     2.3147        8.7246        .13486E-02   -1.5404    
   9  Prefactor     .10000E-03    9.2041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7756        9.0761        .14380E-03   -1.5150    
  11  norm          .48887        1.6091        .19104E-02   -1.5568    
  12  Prefactor     .10000E-03    3.4606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6551        2.2118        .13277E-03   -1.5382    
  14  Prefactor     1.4727        14.235        .35452E-03   -1.5465    
  15  Prefactor     29.769        7.0194        .36717E-03   -1.4616    
  16  Prefactor     .10000E-03    1.8190        .13489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.110        43.267        .45735E-04   -1.3949    
  18  Prefactor     .10000E-03    13.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.380        56.472        .50807E-04   -1.4127    
  20  Normalizat    1.0281        .22733        .35421E-03   -.92095    
  21  Prefactor     1.0546        .11060        .17649E-03   -.90932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3613e-08
Minuit parameter uncertainties:
  1  4.89267e-06
  2  0.855044
  3  5.6462e-06
  4  0.0004228
  5  1.59353e-05
  6  1.57123e-05
  7  5.04452
  8  8.72935
  9  2.70672e-05
  10  9.07769
  11  1.60921
  12  9.71431e-06
  13  2.21185
  14  9.16004
  15  7.01964
  16  1.18466e-06
  17  43.2844
  18  0.000485716
  19  56.5209
  20  0.227543
  21  0.110626
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  7.776e+00  9.078e+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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.055e+00  1.106e-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.028e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 6.71e-06 +/- 7.84e-06

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

Saving results to:
/scratch/kocevski/14934/likelihoodResults_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.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) = 10503.7270591
delta logL = 0.455239520579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10503.7264898
delta logL = 0.455808752746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.777       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8125       1.0000          .0000       10.000    
     3 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0500       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=   10503.73     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      274 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.764        548.75        .26048E-02    .96805E-05
   2  Index         1.8118        5.6310        .26994        .14786E-04
   3  Normalizat    1.0389        .99300E-01    .79642E-01    .31766E-04
   4  Prefactor     1.0500        .41473E-01    .39910E-01   -.36991E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7645
  Index      = 1.8118
  Normalizat = 1.03891
  Prefactor  = 1.04999
 **********
 **   18 **HESSE 
 **********

 FCN=   10503.73     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.764        14.420        .10419E-03   -1.4939    
   2  Index         1.8118        .54658        .10598E-01   -.69143    
   3  Normalizat    1.0389        .21672        .35254E-03   -.91738    
   4  Prefactor     1.0500        .10993        .17678E-03   -.91081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88524e-13
Minuit parameter uncertainties:
  1  14.4237
  2  0.548429
  3  0.216905
  4  0.109951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14934': 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) = 10503.7264885
delta logL = 0.455810083226

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.476e+01  1.442e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.812e+00  5.484e-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.050e+00  1.100e-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.039e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 1.81 +/- 0.55
Photon Flux (Free Index): 1.56e-08 +/- 1.75e-08
Energy Flux (Free Index): 1.81e-05 +/- 2.60e-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/14934/cmap_HighResolution_633312001_633571201_4FGL_J1037.4-2933_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='1.81e-05', photon_flux_error='2.43e-08', dlogl='4.56e-01', energy_flux='6.71e-06', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-09-02 05:47:13.228258', photon_index_error2='0.55', photon_index2='1.81', ts='1.33', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.15e-08', energy_flux_error2='2.60e-05', EG='1.03', time_epoch_completed='1630586833.23', return_code='0', job_id='14934', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='7.84e-06', photon_flux_error2='1.75e-08', ts2='2.24', photon_index='2.41' WHERE bin_id='1520' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 14934: <4FGL_J1037.4-2933_daily_bin1520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1520 159.356 -29.5568 633312001 633571201 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 :                                   876.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             343.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

