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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1343
RA = 159.356, Dec = -29.5568
tmin = 587433601, tmax = 587692801
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='14658', job_status='RUN', time_executed='2021-09-02 05:31:42.479867', time_epoch_executed='1630585902.48' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14658/ft1_4FGL_J1037.4-2933_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14658/ft2_4FGL_J1037.4-2933_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14658/ft1_4FGL_J1037.4-2933_daily_bin1343.fits outfile=/scratch/kocevski/14658/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1343.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=587433601.0 tmax=587692801.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.62
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14658/ft2_4FGL_J1037.4-2933_daily_bin1343.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/14658/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1343.fits evtable="EVENTS" outfile="/scratch/kocevski/14658/ft1_filtered_4FGL_J1037.4-2933_daily_bin1343.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.51
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14658/ft1_filtered_4FGL_J1037.4-2933_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/14658/ft2_4FGL_J1037.4-2933_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/14658/ltcube_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.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/14658/ft2_4FGL_J1037.4-2933_daily_bin1343.fits
.....................!
real 16.24
user 15.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14658/ft1_filtered_4FGL_J1037.4-2933_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/14658/ft2_4FGL_J1037.4-2933_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/14658/ltcube_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.fits outfile=/scratch/kocevski/14658/expmap_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.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/14658/ltcube_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.fits
.....................!
real 191.41
user 186.89
sys 4.08

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/14658/ft1_filtered_4FGL_J1037.4-2933_daily_bin1343.fits scfile=/scratch/kocevski/14658/ft2_4FGL_J1037.4-2933_daily_bin1343.fits outfile=/scratch/kocevski/14658/cmap_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.2902       1.0000         .10000E-03   10000.    
     3 'norm      '    .11405E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.166       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9935       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9942       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33523E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85925E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0062       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=   11198.56     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     1965 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2415        .79428E-07** at limit **
   2  norm          8.2908        1.6723       -.11620E-08    .14723E-03
   3  norm          .10000E-03    4.4934        .38002E-05** at limit **
   4  Prefactor     9.7688        13.271        .98007E-07    .23092E-04
   5  Prefactor     .10000E-03    5.2094       -.46986E-07** at limit **
   6  norm          .10000E-03    4.9274        .18400E-06** at limit **
   7  norm          .10000E-03    2.6797        .19464E-06** at limit **
   8  Prefactor     .10000E-03    3.8747       -.57357E-07** at limit **
   9  Prefactor     .10000E-03    4.2201        .13931E-06** at limit **
  10  Prefactor     10.175        14.835        .20302E-06    .88308E-04
  11  norm          3.7090        2.9884       -.86702E-06    .75448E-03
  12  Prefactor     .10000E-03    2.8640        .56588E-07** at limit **
  13  Prefactor     .10000E-03    1.8567        .14664E-05** at limit **
  14  Prefactor     6.9945        6.6880       -.14040E-07    .97325E-05
  15  Prefactor     .10000E-03    1.1764       -.34996E-07** at limit **
  16  Prefactor     4.9907        6.5765        .73693E-07    .41654E-04
  17  Prefactor     .10000E-03    15.454       -.44223E-06** at limit **
  18  Prefactor     .10001E-03    25.778       -.14126E-04** at limit **
  19  Prefactor     .10001E-03    626.84       -.10071E-05** at limit **
  20  Normalizat    1.1242        .17891       -.72980E-06    .26516E-03
  21  Prefactor     1.0062        .88792E-01    .77743E-06    .72397E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.29077
  norm       = 0.000100005
  Prefactor  = 9.76882
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1753
  norm       = 3.70905
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.99453
  Prefactor  = 0.0001
  Prefactor  = 4.99074
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100012
  Normalizat = 1.12417
  Prefactor  = 1.0062
 **********
 **   18 **HESSE 
 **********

 FCN=   11198.56     FROM HESSE     STATUS=OK           315 CALLS     2280 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.2908        1.6739        .59137E-04   -1.5132    
   3  norm          .10000E-03    16.696        .34212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7688        13.266        .12836E-03   -1.5083    
   5  Prefactor     .10000E-03    5.2332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7074        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.175        14.847        .12567E-03   -1.5070    
  11  norm          3.7090        3.0061        .70703E-03   -1.5323    
  12  Prefactor     .10000E-03    2.8681        .17490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0309        .28893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9945        6.6855        .15170E-03   -1.5179    
  15  Prefactor     .10000E-03    1.1851        .11207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9907        6.5767        .17995E-03   -1.5261    
  17  Prefactor     .10000E-03    15.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    28.228        .37319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    652.84        .36704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1242        .21119        .33306E-03   -.88980    
  21  Prefactor     1.0062        .10526        .17697E-03   -.92523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00361e-09
Minuit parameter uncertainties:
  1  2.53603e-05
  2  1.67393
  3  0.000552208
  4  13.27
  5  6.02677e-06
  6  2.26877e-05
  7  1.8671e-05
  8  8.71539e-06
  9  5.87573e-05
  10  14.8527
  11  3.00625
  12  6.40452e-06
  13  0.000134593
  14  6.68622
  15  2.03517e-06
  16  6.57764
  17  5.18162e-05
  18  0.000977276
  19  0.00573014
  20  0.211353
  21  0.105277
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.018e+01  1.485e+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.006e+00  1.053e-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.124e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14658/likelihoodResults_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.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) = 11198.4146477
delta logL = 0.145132139494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11198.409685
delta logL = 0.150094874025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1562       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8996       1.0000          .0000       10.000    
     3 'Normalizat'    1.1063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   11198.41     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      288 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1551        17.291        .16180E-03   -.36073E-03
   2  Index         2.8997        1.4188        .88730E-02   -.90972E-04
   3  Normalizat    1.1063        .21132        .33535E-03   -.32070E-03
   4  Prefactor     1.0116        .10561        .17653E-03   -.52345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.15512
  Index      = 2.89974
  Normalizat = 1.10633
  Prefactor  = 1.01164
 **********
 **   18 **HESSE 
 **********

 FCN=   11198.41     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1551        11.562        .64722E-05   -1.5212    
   2  Index         2.8997        .95574        .35492E-03   -.43350    
   3  Normalizat    1.1063        .21086        .13414E-04   -.89549    
   4  Prefactor     1.0116        .10534        .35306E-04   -.92343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97868e-10
Minuit parameter uncertainties:
  1  11.5659
  2  0.962951
  3  0.211024
  4  0.105359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14658': 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) = 11198.409685
delta logL = 0.150094894534

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  6.155e+00  1.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.900e+00  9.630e-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.012e+00  1.054e-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.106e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.90 +/- 0.96
Photon Flux (Free Index): 4.06e-08 +/- 4.57e-08
Energy Flux (Free Index): 8.55e-06 +/- 9.42e-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/14658/cmap_HighResolution_587433601_587692801_4FGL_J1037.4-2933_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', energy_flux2='8.55e-06', dlogl='1.50e-01', photon_flux2='4.06e-08', job_status='DONE', time_completed='2021-09-02 05:46:25.115593', photon_index_error2='0.96', photon_index2='2.90', ts='0.70', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='9.42e-06', EG='1.12', time_epoch_completed='1630586785.12', return_code='0', job_id='14658', GAL2='1.01', EG2='1.11', return_code2='0', photon_flux_error2='4.57e-08', ts2='1.03', photon_index='2.41' WHERE bin_id='1343' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:46:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 14658: <4FGL_J1037.4-2933_daily_bin1343> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1343 159.356 -29.5568 587433601 587692801 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 :                                   878.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            903 sec.

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

