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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1518
RA = 159.356, Dec = -29.5568
tmin = 632793601, tmax = 633052801
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='14931', job_status='RUN', time_executed='2021-09-02 05:31:57.362719', time_epoch_executed='1630585917.36' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14931/ft1_4FGL_J1037.4-2933_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14931/ft1_4FGL_J1037.4-2933_daily_bin1518.fits outfile=/scratch/kocevski/14931/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1518.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=632793601.0 tmax=633052801.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.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.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/14931/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/14931/ft1_filtered_4FGL_J1037.4-2933_daily_bin1518.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14931/ft1_filtered_4FGL_J1037.4-2933_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/14931/ltcube_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.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/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.fits
.....................!
real 17.42
user 17.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14931/ft1_filtered_4FGL_J1037.4-2933_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/14931/ltcube_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.fits outfile=/scratch/kocevski/14931/expmap_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.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/14931/ltcube_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.fits
.....................!
real 192.21
user 186.32
sys 5.41

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/14931/ft1_filtered_4FGL_J1037.4-2933_daily_bin1518.fits scfile=/scratch/kocevski/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.fits outfile=/scratch/kocevski/14931/cmap_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.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.67
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14931/ft1_filtered_4FGL_J1037.4-2933_daily_bin1518.fits scfile=/scratch/kocevski/14931/ft2_4FGL_J1037.4-2933_daily_bin1518.fits outfile=/scratch/kocevski/14931/cmap_HighResolution_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.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.68
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7664       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9088       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.163       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3080       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3976       1.0000         .10000E-03   10000.    
    11 'norm      '    .44565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.225       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .48580       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1327       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=   10664.96     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2179 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7666        6.8155        .38563E-02    .43980E-04
   2  norm          1.9089        1.0262        .75229E-02    .20238E-03
   3  norm          .10000E-03    1.4395        .90712E-02** at limit **
   4  Prefactor     15.095        14.511        .25774E-02    .14302E-03
   5  Prefactor     .10000E-03    7.7448        .90712E-02** at limit **
   6  norm          12.164        7.7850        .28715E-02    .30179E-02
   7  norm          .10000E-03    2.8799        .90712E-02** at limit **
   8  Prefactor     7.3082        6.4215        .37092E-02   -.66513E-03
   9  Prefactor     9.7506        11.260        .32083E-02    .14235E-03
  10  Prefactor     6.3975        6.3402        .39671E-02   -.80086E-04
  11  norm          .44593        1.2242        .45754E-01    .20967E-02
  12  Prefactor     10.761        9.2833        .30534E-02    .77675E-04
  13  Prefactor     .10000E-03    1.5581        .90712E-02** at limit **
  14  Prefactor     12.538        8.1720        .28283E-02    .26919E-02
  15  Prefactor     4.4439        3.7713        .47754E-02   -.46574E-02
  16  Prefactor     18.345        7.8529        .23378E-02    .91639E-03
  17  Prefactor     .10000E-03    38.820        .90712E-02** at limit **
  18  Prefactor     .10000E-03    6.3098        .90712E-02** at limit **
  19  Prefactor     53.225        55.887        .13744E-02   -.31012E-03
  20  Normalizat    .48578        .19293        .99702E-01    .45316E-04
  21  Prefactor     1.1327        .94859E-01    .36459E-01   -.53057E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.76655
  norm       = 1.9089
  norm       = 0.0001
  Prefactor  = 15.0946
  Prefactor  = 0.0001
  norm       = 12.1636
  norm       = 0.0001
  Prefactor  = 7.30824
  Prefactor  = 9.75056
  Prefactor  = 6.39754
  norm       = 0.445926
  Prefactor  = 10.7612
  Prefactor  = 0.0001
  Prefactor  = 12.5385
  Prefactor  = 4.44392
  Prefactor  = 18.3451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.225
  Normalizat = 0.48578
  Prefactor  = 1.13268
 **********
 **   18 **HESSE 
 **********

 FCN=   10664.96     FROM HESSE     STATUS=OK           321 CALLS     2500 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7666        6.8149        .15425E-03   -1.5188    
   2  norm          1.9089        1.0186        .73477E-04   -1.5432    
   3  norm          .10000E-03    1.4409        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.095        14.492        .10310E-03   -1.4931    
   5  Prefactor     .10000E-03    7.8162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.164        7.7583        .11486E-03   -1.5010    
   7  norm          .10000E-03    2.8958        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3082        6.4220        .74185E-03   -1.5167    
   9  Prefactor     9.7506        11.167        .12833E-03   -1.5083    
  10  Prefactor     6.3975        6.3108        .15868E-03   -1.5202    
  11  norm          .44593        1.2999        .17911E-02   -1.5574    
  12  Prefactor     10.761        9.2651        .12214E-03   -1.5052    
  13  Prefactor     .10000E-03    1.5811        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.538        8.1185        .11313E-03   -1.5000    
  15  Prefactor     4.4439        3.7589        .17451E-03   -1.5286    
  16  Prefactor     18.345        7.8518        .46756E-03   -1.4851    
  17  Prefactor     .10000E-03    39.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.225        55.907        .54977E-04   -1.4248    
  20  Normalizat    .48578        .20207        .44182E-03   -1.1308    
  21  Prefactor     1.1327        .10175        .15686E-03   -.88429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61145e-08
Minuit parameter uncertainties:
  1  6.81572
  2  1.01865
  3  1.31658e-05
  4  14.4953
  5  8.40347e-05
  6  7.75891
  7  2.39293e-05
  8  6.42256
  9  11.1689
  10  6.31143
  11  1.29994
  12  9.26636
  13  5.62174e-06
  14  8.11923
  15  3.75906
  16  7.85221
  17  0.000140487
  18  3.49312e-05
  19  55.9621
  20  0.202378
  21  0.101769
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  6.398e+00  6.311e+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.133e+00  1.018e-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:  4.858e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 5.52e-06 +/- 5.45e-06

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

Saving results to:
/scratch/kocevski/14931/likelihoodResults_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.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) = 10663.8722538
delta logL = 1.09158483549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10663.8106779
delta logL = 1.15316073894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3433       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4691       1.0000          .0000       10.000    
     3 'Normalizat'    .49680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1297       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=   10663.81     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3433        10.558        .32778E-02    .65074E-03
   2  Index         1.4691        .49736        .30170       -.56358E-04
   3  Normalizat    .49687        .17673        .98628E-01    .31183E-03
   4  Prefactor     1.1297        .93378E-01    .36553E-01    .67833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.34327
  Index      = 1.46909
  Normalizat = 0.496869
  Prefactor  = 1.12968
 **********
 **   18 **HESSE 
 **********

 FCN=   10663.81     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3433        9.7002        .13111E-03   -1.5097    
   2  Index         1.4691        .55901        .11907E-01   -.78409    
   3  Normalizat    .49687        .18936        .43706E-03   -1.1256    
   4  Prefactor     1.1297        .10055        .15704E-03   -.88523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32357e-10
Minuit parameter uncertainties:
  1  9.70182
  2  0.56136
  3  0.189606
  4  0.100564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14931': 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) = 10663.8106778
delta logL = 1.15316081862

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.343e+00  9.702e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.469e+00  5.614e-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.130e+00  1.006e-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:  4.969e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 1.47 +/- 0.56
Photon Flux (Free Index): 7.10e-09 +/- 8.64e-09
Energy Flux (Free Index): 2.49e-05 +/- 3.66e-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/14931/cmap_HighResolution_632793601_633052801_4FGL_J1037.4-2933_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='2.49e-05', photon_flux_error='1.69e-08', dlogl='1.15e+00', energy_flux='5.52e-06', photon_flux2='7.10e-09', job_status='DONE', time_completed='2021-09-02 05:46:16.246917', photon_index_error2='0.56', photon_index2='1.47', ts='2.82', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.58e-08', energy_flux_error2='3.66e-05', EG='0.49', time_epoch_completed='1630586776.25', return_code='0', job_id='14931', GAL2='1.13', EG2='0.50', return_code2='0', energy_flux_error='5.45e-06', photon_flux_error2='8.64e-09', ts2='5.13', photon_index='2.41' WHERE bin_id='1518' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 14931: <4FGL_J1037.4-2933_daily_bin1518> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1518> 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) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:47 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:47 2021
Terminated at Thu Sep  2 05:46:18 2021
Results reported at Thu Sep  2 05:46:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1518 159.356 -29.5568 632793601 633052801 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 :                                   853.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

