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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1226
RA = 159.356, Dec = -29.5568
tmin = 557107201, tmax = 557366401
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='13653', job_status='RUN', time_executed='2021-09-02 05:27:53.450501', time_epoch_executed='1630585673.45' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13653/ft1_4FGL_J1037.4-2933_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13653/ft1_4FGL_J1037.4-2933_daily_bin1226.fits outfile=/scratch/kocevski/13653/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1226.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=557107201.0 tmax=557366401.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.68
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13653/ft1_filtered_4FGL_J1037.4-2933_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/13653/ltcube_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.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/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits
.....................!
real 17.65
user 17.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13653/ft1_filtered_4FGL_J1037.4-2933_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/13653/ltcube_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.fits outfile=/scratch/kocevski/13653/expmap_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.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/13653/ltcube_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.fits
.....................!
real 192.75
user 187.00
sys 5.35

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/13653/ft1_filtered_4FGL_J1037.4-2933_daily_bin1226.fits scfile=/scratch/kocevski/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits outfile=/scratch/kocevski/13653/cmap_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13653/ft1_filtered_4FGL_J1037.4-2933_daily_bin1226.fits scfile=/scratch/kocevski/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits outfile=/scratch/kocevski/13653/cmap_HighResolution_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13653/ft1_filtered_4FGL_J1037.4-2933_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/13653/ft2_4FGL_J1037.4-2933_daily_bin1226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13653/Model_4FGL_J1037.4-2933_daily_bin1226.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/13653/ft1_filtered_4FGL_J1037.4-2933_daily_bin1226.fits.....................!
real 81.36
user 79.97
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7334       1.0000         .10000E-03   10000.    
     2 'norm      '    .58157       1.0000         .10000E-03   10000.    
     3 'norm      '    15.889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-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 '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.453       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9706       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1933       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7025       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 '    41.690       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99715       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=   7611.313     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1852 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7341        9.9546        .22292E-06   -.70490E-04
   2  norm          .58145        1.5243        .15764E-07   -.44594E-04
   3  norm          15.889        11.571       -.17517E-08   -.13238E-05
   4  Prefactor     .10000E-03    9.9281       -.15240E-05** at limit **
   5  Prefactor     .10000E-03    4.2732        .13411E-05** at limit **
   6  norm          .10000E-03    2.3676        .16044E-06** at limit **
   7  norm          .10000E-03    1.6820        .12065E-06** at limit **
   8  Prefactor     .10000E-03    6.3236       -.87393E-06** at limit **
   9  Prefactor     .10000E-03    10.794        .25991E-05** at limit **
  10  Prefactor     12.451        16.835       -.22227E-05    .39694E-04
  11  norm          2.4199        3.5903       -.26058E-05   -.32968E-04
  12  Prefactor     .10000E-03    13.967       -.41813E-05** at limit **
  13  Prefactor     9.9704        6.7835        .27793E-06    .15821E-03
  14  Prefactor     8.1906        11.638       -.10226E-05    .29539E-04
  15  Prefactor     1.1918        2.0526        .42661E-07   -.27304E-03
  16  Prefactor     5.7031        9.0659       -.57926E-07   -.56976E-04
  17  Prefactor     .10000E-03    12.517        .34599E-05** at limit **
  18  Prefactor     .10000E-03    3.8857       -.80107E-06** at limit **
  19  Prefactor     41.691        43.737        .17293E-05    .13966E-05
  20  Normalizat    1.1745        .24184        .17852E-05    .18734E-04
  21  Prefactor     .99703        .10945       -.13935E-06    .15174E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73412
  norm       = 0.581446
  norm       = 15.8886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4515
  norm       = 2.41988
  Prefactor  = 0.0001
  Prefactor  = 9.97037
  Prefactor  = 8.19062
  Prefactor  = 1.19179
  Prefactor  = 5.70311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.6911
  Normalizat = 1.17449
  Prefactor  = 0.997029
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7341        10.184        .12314E-02   -1.5377    
   2  norm          .58145        1.4993        .16729E-03   -1.5555    
   3  norm          15.889        11.602        .10048E-03   -1.4911    
   4  Prefactor     .10000E-03    9.9444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2754        .17610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3716        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6843        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.451        16.746        .11351E-03   -1.5002    
  11  norm          2.4199        3.5700        .18423E-03   -1.5397    
  12  Prefactor     .10000E-03    13.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9704        6.7581        .12690E-03   -1.5076    
  14  Prefactor     8.1906        11.622        .14007E-03   -1.5136    
  15  Prefactor     1.1918        13.571        .20829E-02   -1.5490    
  16  Prefactor     5.7031        9.1844        .84103E-03   -1.5230    
  17  Prefactor     .10000E-03    12.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8890        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.691        43.739        .62085E-04   -1.4416    
  20  Normalizat    1.1745        .29340        .35966E-03   -.87395    
  21  Prefactor     .99703        .13173        .17927E-03   -.92829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97502e-10
Minuit parameter uncertainties:
  1  10.1906
  2  1.49941
  3  11.6041
  4  1.27533e-06
  5  7.69608e-07
  6  7.54065e-07
  7  7.6121e-07
  8  1.32364e-06
  9  3.76057e-05
  10  16.7527
  11  3.5703
  12  2.41379e-05
  13  6.75864
  14  11.625
  15  8.04532
  16  9.18663
  17  2.69306e-06
  18  1.53389e-06
  19  43.7724
  20  0.293815
  21  0.131777
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.245e+01  1.675e+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.970e-01  1.318e-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.174e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/13653/likelihoodResults_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.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) = 7611.30960445
delta logL = 0.00385602311962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7611.30841669
delta logL = 0.00504377631933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.247       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3169       1.0000          .0000       10.000    
     3 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99582       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=   7611.308     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.248        18.648        .11005E-03   -.61569E-04
   2  Index         2.3169        .97302        .10912E-01   -.34892E-04
   3  Normalizat    1.1784        .28130        .35916E-03    .89294E-04
   4  Prefactor     .99593        .13001        .17937E-03    .19420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2479
  Index      = 2.31688
  Normalizat = 1.17837
  Prefactor  = 0.995926
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.308     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.248        18.167        .44021E-05   -1.4980    
   2  Index         2.3169        .94753        .43650E-03   -.56643    
   3  Normalizat    1.1784        .28128        .14366E-04   -.87274    
   4  Prefactor     .99593        .13005        .35873E-04   -.92865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02497e-10
Minuit parameter uncertainties:
  1  18.1749
  2  0.955686
  3  0.281636
  4  0.130095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13653': 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) = 7611.30841637
delta logL = 0.00504409959922

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.325e+01  1.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.317e+00  9.557e-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:  9.959e-01  1.301e-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.178e+00  2.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.32 +/- 0.96
Photon Flux (Free Index): 3.01e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.46e-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/13653/cmap_HighResolution_557107201_557366401_4FGL_J1037.4-2933_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='1.11e-05', photon_flux_error='4.49e-08', dlogl='5.04e-03', energy_flux='1.08e-05', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-09-02 05:39:20.149259', photon_index_error2='0.96', photon_index2='2.32', ts='1.02', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.46e-05', EG='1.17', time_epoch_completed='1630586360.15', return_code='0', job_id='13653', GAL2='1.00', EG2='1.18', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.09e-08', ts2='1.04', photon_index='2.41' WHERE bin_id='1226' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:39:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 13653: <4FGL_J1037.4-2933_daily_bin1226> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1226> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 05:26:30 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:27:32 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:27:32 2021
Terminated at Thu Sep  2 05:39:20 2021
Results reported at Thu Sep  2 05:39:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1226 159.356 -29.5568 557107201 557366401 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 :                                   680.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            770 sec.

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

