/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 78 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7364
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1481
RA = 159.356, Dec = -29.5568
tmin = 623203201, tmax = 623462401
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='14874', job_status='RUN', time_executed='2021-09-02 05:33:12.027540', time_epoch_executed='1630585992.03' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14874/ft1_4FGL_J1037.4-2933_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14874/ft1_4FGL_J1037.4-2933_daily_bin1481.fits outfile=/scratch/kocevski/14874/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1481.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.90
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14874/ft1_filtered_4FGL_J1037.4-2933_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/14874/ltcube_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.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/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits
.....................!
real 14.67
user 14.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14874/ft1_filtered_4FGL_J1037.4-2933_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/14874/ltcube_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.fits outfile=/scratch/kocevski/14874/expmap_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.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/14874/ltcube_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.fits
.....................!
real 192.80
user 186.28
sys 5.63

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/14874/ft1_filtered_4FGL_J1037.4-2933_daily_bin1481.fits scfile=/scratch/kocevski/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits outfile=/scratch/kocevski/14874/cmap_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14874/ft1_filtered_4FGL_J1037.4-2933_daily_bin1481.fits scfile=/scratch/kocevski/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits outfile=/scratch/kocevski/14874/cmap_HighResolution_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.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.73
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14874/ft1_filtered_4FGL_J1037.4-2933_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/14874/ft2_4FGL_J1037.4-2933_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14874/Model_4FGL_J1037.4-2933_daily_bin1481.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/14874/ft1_filtered_4FGL_J1037.4-2933_daily_bin1481.fits.....................!
real 49.78
user 47.87
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8735       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4889       1.0000         .10000E-03   10000.    
     3 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7039       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    23.724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.376       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    217.02       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0069       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=   3984.061     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     2506 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8752        11.119        .23978E-03    .70620E-04
   2  norm          2.4893        1.7453        .66823E-04    .54357E-04
   3  norm          .10000E-03    18.898        .18142E-02** at limit **
   4  Prefactor     .10000E-03    24.192        .18142E-02** at limit **
   5  Prefactor     3.7057        14.515        .20984E-03    .21455E-04
   6  norm          .10000E-03    5.8253        .14855E-02** at limit **
   7  norm          23.725        13.911        .82240E-04   -.87574E-04
   8  Prefactor     .10000E-03    4.0548        .12412E-02** at limit **
   9  Prefactor     .10000E-03    6.4417        .15643E-02** at limit **
  10  Prefactor     29.383        33.822        .73921E-04   -.13842E-05
  11  norm          4.2499        8.6921        .19542E-03    .16077E-03
  12  Prefactor     .10000E-03    6.5402        .15763E-02** at limit **
  13  Prefactor     .10000E-03    7.7642        .17045E-02** at limit **
  14  Prefactor     .10000E-03    12.245        .18142E-02** at limit **
  15  Prefactor     .10000E-03    15.218        .18142E-02** at limit **
  16  Prefactor     .10000E-03    37.786        .87856E-01** at limit **
  17  Prefactor     .10000E-03    57.112        .18142E-02** at limit **
  18  Prefactor     .10000E-03    22.167        .18142E-02** at limit **
  19  Prefactor     216.86        261.48        .13726E-03   -.36443E-06
  20  Normalizat    1.0874        .38296        .36155E-03   -.12232E-03
  21  Prefactor     1.0068        .17937        .17740E-03   -.24838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87516
  norm       = 2.48926
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.7057
  norm       = 0.0001
  norm       = 23.7255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3827
  norm       = 4.2499
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 216.859
  Normalizat = 1.08742
  Prefactor  = 1.00679
 **********
 **   18 **HESSE 
 **********

 FCN=   3984.061     FROM HESSE     STATUS=OK           305 CALLS     2811 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8752        11.119        .95914E-05   -1.5369    
   2  norm          2.4893        1.7453        .26729E-05   -1.5392    
   3  norm          .10000E-03    18.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7057        14.514        .83935E-05   -1.5323    
   6  norm          .10000E-03    5.8257        .29710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.725        13.911        .32896E-05   -1.4733    
   8  Prefactor     .10000E-03    4.0548        .24825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4417        .31286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.383        33.807        .29568E-05   -1.4623    
  11  norm          4.2499        8.6875        .78169E-05   -1.5296    
  12  Prefactor     .10000E-03    6.5403        .31527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7672        .34090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.029        .93887E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     216.86        261.45        .27452E-04   -1.2752    
  20  Normalizat    1.0874        .38325        .14462E-04   -.90157    
  21  Prefactor     1.0068        .17951        .35481E-04   -.92504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85695e-10
Minuit parameter uncertainties:
  1  11.1265
  2  1.74531
  3  0.000284942
  4  0.000234999
  5  14.5278
  6  2.50452e-05
  7  13.913
  8  8.73358e-06
  9  4.14492e-05
  10  33.8294
  11  8.69003
  12  2.69253e-05
  13  0.000192841
  14  0.000113863
  15  0.000350227
  16  0.000465572
  17  6.45284e-05
  18  5.78711e-05
  19  262.877
  20  0.384231
  21  0.179613
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  2.938e+01  3.383e+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.007e+00  1.796e-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.087e+00  3.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 9.07e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 2.92e-05

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

Saving results to:
/scratch/kocevski/14874/likelihoodResults_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.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) = 3983.91898315
delta logL = 0.142242566338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3983.91840159
delta logL = 0.142824128121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.609       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0815       1.0000          .0000       10.000    
     3 'Normalizat'    1.1085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99910       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=   3983.918     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      297 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.656        42.454        .62144E-04   -.49394E-05
   2  Index         2.0823        .58367        .66403E-02    .56943E-05
   3  Normalizat    1.1087        .37501        .35846E-03    .33666E-04
   4  Prefactor     .99894        .17824        .17798E-03   -.64208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6556
  Index      = 2.08234
  Normalizat = 1.10871
  Prefactor  = 0.998942
 **********
 **   18 **HESSE 
 **********

 FCN=   3983.918     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.656        41.896        .24858E-05   -1.4416    
   2  Index         2.0823        .57575        .26561E-03   -.62307    
   3  Normalizat    1.1087        .37522        .14338E-04   -.89473    
   4  Prefactor     .99894        .17835        .35596E-04   -.92765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79785e-11
Minuit parameter uncertainties:
  1  41.9253
  2  0.577699
  3  0.376123
  4  0.178452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14874': 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) = 3983.91839861
delta logL = 0.142827101688

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  4.166e+01  4.193e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.082e+00  5.777e-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.989e-01  1.785e-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.109e+00  3.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.08 +/- 0.58
Photon Flux (Free Index): 6.45e-08 +/- 7.07e-08
Energy Flux (Free Index): 3.68e-05 +/- 4.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/14874/cmap_HighResolution_623203201_623462401_4FGL_J1037.4-2933_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='3.68e-05', photon_flux_error='9.07e-08', dlogl='1.43e-01', energy_flux='2.54e-05', photon_flux2='6.45e-08', job_status='DONE', time_completed='2021-09-02 05:42:38.956897', photon_index_error2='0.58', photon_index2='2.08', ts='1.55', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='4.39e-05', EG='1.09', time_epoch_completed='1630586558.96', return_code='0', job_id='14874', GAL2='1.00', EG2='1.11', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='7.07e-08', ts2='1.84', photon_index='2.41' WHERE bin_id='1481' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 14874: <4FGL_J1037.4-2933_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1481> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:41 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:31:42 2021
Terminated at Thu Sep  2 05:42:39 2021
Results reported at Thu Sep  2 05:42:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1481 159.356 -29.5568 623203201 623462401 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 :                                   535.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            658 sec.

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

