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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1081
RA = 159.356, Dec = -29.5568
tmin = 519523201, tmax = 519782401
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='12211', job_status='RUN', time_executed='2021-09-02 05:27:06.212676', time_epoch_executed='1630585626.21' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12211

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12211/ft1_4FGL_J1037.4-2933_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12211/ft1_4FGL_J1037.4-2933_daily_bin1081.fits outfile=/scratch/kocevski/12211/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1081.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=519523201.0 tmax=519782401.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.94
user 2.74
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12211/ft1_filtered_4FGL_J1037.4-2933_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/12211/ltcube_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.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/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits
.....................!
real 13.71
user 13.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12211/ft1_filtered_4FGL_J1037.4-2933_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/12211/ltcube_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.fits outfile=/scratch/kocevski/12211/expmap_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.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/12211/ltcube_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.fits
.....................!
real 191.84
user 187.30
sys 4.11

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/12211/ft1_filtered_4FGL_J1037.4-2933_daily_bin1081.fits scfile=/scratch/kocevski/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits outfile=/scratch/kocevski/12211/cmap_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12211/ft1_filtered_4FGL_J1037.4-2933_daily_bin1081.fits scfile=/scratch/kocevski/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits outfile=/scratch/kocevski/12211/cmap_HighResolution_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12211/ft1_filtered_4FGL_J1037.4-2933_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/12211/ft2_4FGL_J1037.4-2933_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12211/Model_4FGL_J1037.4-2933_daily_bin1081.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/12211/ft1_filtered_4FGL_J1037.4-2933_daily_bin1081.fits.....................!
real 71.20
user 69.84
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2772       1.0000         .10000E-03   10000.    
     3 'norm      '    19.547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2454       1.0000         .10000E-03   10000.    
     6 'norm      '    27.666       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.667       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0326       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0491       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=   6521.943     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2175 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3501        .50219E-05** at limit **
   2  norm          2.2773        1.4302       -.25779E-07   -.30200E-03
   3  norm          19.546        12.070       -.35407E-06    .59184E-05
   4  Prefactor     30.814        31.261        .17853E-04    .66682E-05
   5  Prefactor     8.2538        17.071       -.11234E-06   -.34894E-04
   6  norm          27.655        13.687       -.11063E-05    .11500E-03
   7  norm          .10010E-03    5.2608       -.46880E-06** at limit **
   8  Prefactor     11.165        10.666        .16643E-06   -.13692E-04
   9  Prefactor     .10000E-03    5.0240       -.22774E-05** at limit **
  10  Prefactor     .10000E-03    5.2107       -.70143E-05** at limit **
  11  norm          3.6441        3.1879        .57277E-07    .21935E-04
  12  Prefactor     .10000E-03    4.9701        .41811E-05** at limit **
  13  Prefactor     .10000E-03    1.3405        .10984E-06** at limit **
  14  Prefactor     .10000E-03    3.0797        .14130E-06** at limit **
  15  Prefactor     .10000E-03    3.1214       -.31044E-07** at limit **
  16  Prefactor     6.0237        9.5488       -.12586E-06   -.10643E-03
  17  Prefactor     .10000E-03    30.546        .11664E-04** at limit **
  18  Prefactor     .10000E-03    23.543       -.45106E-05** at limit **
  19  Prefactor     19.675        53.151        .14783E-04   -.21115E-05
  20  Normalizat    1.0327        .24521       -.22562E-05    .34311E-04
  21  Prefactor     1.0490        .12184       -.44600E-06    .64473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.27735
  norm       = 19.546
  Prefactor  = 30.8136
  Prefactor  = 8.25382
  norm       = 27.6547
  norm       = 0.000100105
  Prefactor  = 11.1651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.675
  Normalizat = 1.03273
  Prefactor  = 1.04903
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.943     FROM HESSE     STATUS=OK           317 CALLS     2492 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2773        1.4275        .73848E-04   -1.5406    
   3  norm          19.546        12.072        .90591E-04   -1.4823    
   4  Prefactor     30.814        31.256        .72202E-04   -1.4597    
   5  Prefactor     8.2538        17.041        .13962E-03   -1.5133    
   6  norm          27.655        13.225        .76166E-04   -1.4656    
   7  norm          .10010E-03    41.950        .34248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.165        10.666        .11990E-03   -1.5040    
   9  Prefactor     .10000E-03    5.0324        .17677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2132        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6441        3.1826        .13033E-03   -1.5326    
  12  Prefactor     .10000E-03    4.9763        .17586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3470        .91277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0844        .13840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1457        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0237        9.5430        .16360E-03   -1.5217    
  17  Prefactor     .10000E-03    30.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.675        53.146        .90315E-04   -1.4821    
  20  Normalizat    1.0327        .28569        .35882E-03   -.91942    
  21  Prefactor     1.0490        .14309        .17801E-03   -.91113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46218e-09
Minuit parameter uncertainties:
  1  2.80411e-06
  2  1.42754
  3  12.0736
  4  31.2731
  5  17.0509
  6  13.2267
  7  0.00419521
  8  10.6676
  9  1.61848e-06
  10  3.32068e-06
  11  3.18277
  12  3.21154e-06
  13  2.70185e-06
  14  4.5786e-06
  15  9.55423e-06
  16  9.54544
  17  8.23615e-06
  18  0.000100179
  19  53.2742
  20  0.286119
  21  0.143138
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.321e-06  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.049e+00  1.431e-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.033e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/12211/likelihoodResults_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.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): 102
logL (Free Index) = 6521.94436549
delta logL = -0.000911063901185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6521.94345411
delta logL = 3.16646946885e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3835       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       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=   6521.943     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10326E-03    4.2044        .18142E-01** at limit **
   2  Index         2.2957        8.3899        .50000        .39309E-04
   3  Normalizat    1.0327        .51668E-02    .35882E-03   -.37513E-04
   4  Prefactor     1.0490        .25985E-02    .17801E-03   -.10774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103262
  Index      = 2.29567
  Normalizat = 1.03273
  Prefactor  = 1.04903
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.943     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10326E-03    49.275        .19242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2957        8.4557        .50000       -.57147    
   3  Normalizat    1.0327        .17791E-01    .14353E-04   -.91942    
   4  Prefactor     1.0490        .89478E-02    .35602E-04   -.91113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09655e-08
Minuit parameter uncertainties:
  1  0.0253783
  2  231.21
  3  0.0177914
  4  0.00894779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12211': 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): 102
logL (Free Index) = 6521.94345347
delta logL = 9.61320438364e-07

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.033e-04  2.538e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.296e+00  2.312e+02  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.049e+00  8.948e-03  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.033e+00  1.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.356 -29.557

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/12211/cmap_HighResolution_519523201_519782401_4FGL_J1037.4-2933_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-02 05:37:56.341672', job_id='12211', GAL2='1.05', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630586276.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='9.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1081' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:37:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 12211: <4FGL_J1037.4-2933_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1081> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 05:21:23 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:25:57 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:25:57 2021
Terminated at Thu Sep  2 05:37:57 2021
Results reported at Thu Sep  2 05:37:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1081 159.356 -29.5568 519523201 519782401 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 :                                   648.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            994 sec.

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

