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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1399
RA = 159.356, Dec = -29.5568
tmin = 601948801, tmax = 602208001
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='14747', job_status='RUN', time_executed='2021-09-02 05:32:55.617708', time_epoch_executed='1630585975.62' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14747

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14747/ft1_4FGL_J1037.4-2933_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14747/ft1_4FGL_J1037.4-2933_daily_bin1399.fits outfile=/scratch/kocevski/14747/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1399.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=601948801.0 tmax=602208001.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.85
user 3.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14747/ft1_filtered_4FGL_J1037.4-2933_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/14747/ltcube_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.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/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits
.....................!
real 16.34
user 15.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14747/ft1_filtered_4FGL_J1037.4-2933_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/14747/ltcube_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.fits outfile=/scratch/kocevski/14747/expmap_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.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/14747/ltcube_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.fits
.....................!
real 192.37
user 187.21
sys 4.65

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/14747/ft1_filtered_4FGL_J1037.4-2933_daily_bin1399.fits scfile=/scratch/kocevski/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits outfile=/scratch/kocevski/14747/cmap_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.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.69
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14747/ft1_filtered_4FGL_J1037.4-2933_daily_bin1399.fits scfile=/scratch/kocevski/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits outfile=/scratch/kocevski/14747/cmap_HighResolution_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.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.82
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14747/ft1_filtered_4FGL_J1037.4-2933_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/14747/ft2_4FGL_J1037.4-2933_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14747/Model_4FGL_J1037.4-2933_daily_bin1399.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/14747/ft1_filtered_4FGL_J1037.4-2933_daily_bin1399.fits.....................!
real 80.51
user 77.43
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8302       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33162E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5352       1.0000         .10000E-03   10000.    
     7 'norm      '    .21480E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2722       1.0000         .10000E-03   10000.    
    11 'norm      '    .14903E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5692       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3936       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4098       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11593E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99946       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=   7411.848     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2002 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9354        .36142E-08** at limit **
   2  norm          3.8302        1.7612        .12407E-07   -.70023E-04
   3  norm          .10001E-03    3.7383       -.30695E-06** at limit **
   4  Prefactor     .10000E-03    17.245        .17380E-06** at limit **
   5  Prefactor     .16822E-03    11.583       -.75003E-07** at limit **
   6  norm          4.5384        6.4986        .77222E-07    .38937E-04
   7  norm          .10000E-03    3.7457       -.25511E-07** at limit **
   8  Prefactor     .10000E-03    5.5141        .78927E-08** at limit **
   9  Prefactor     .10000E-03    4.6274       -.21557E-07** at limit **
  10  Prefactor     9.2233        21.180        .36086E-05   -.98821E-04
  11  norm          .10000E-03    1.9848       -.93490E-06** at limit **
  12  Prefactor     .10000E-03    4.7963       -.85734E-08** at limit **
  13  Prefactor     1.5687        4.6856        .17984E-06   -.19508E-03
  14  Prefactor     27.234        14.894       -.45870E-06   -.23752E-03
  15  Prefactor     6.3913        5.2200        .63442E-07   -.78638E-04
  16  Prefactor     3.4102        6.9684        .65878E-06    .16366E-03
  17  Prefactor     .10000E-03    9.9340       -.33078E-07** at limit **
  18  Prefactor     7.4270        8.2870       -.30190E-06   -.34369E-03
  19  Prefactor     .10000E-03    23.306       -.51141E-07** at limit **
  20  Normalizat    1.0000        .22925        .24534E-06    .48555E-04
  21  Prefactor     .99947        .10709       -.24230E-06    .19150E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.83023
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000168218
  norm       = 4.53838
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.22334
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.56871
  Prefactor  = 27.2336
  Prefactor  = 6.39131
  Prefactor  = 3.41024
  Prefactor  = 0.0001
  Prefactor  = 7.42701
  Prefactor  = 0.0001
  Normalizat = 1.00004
  Prefactor  = 0.999467
 **********
 **   18 **HESSE 
 **********

 FCN=   7411.848     FROM HESSE     STATUS=OK           327 CALLS     2329 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9370        .16680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8302        1.7649        .73843E-04   -1.5317    
   3  norm          .10001E-03    16.198        .31818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16822E-03    11.977        .89040E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5384        6.4205        .18904E-03   -1.5282    
   7  norm          .10000E-03    34.509        .31588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6370        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2233        21.828        .65808E-03   -1.5100    
  11  norm          .10000E-03    3.6438        .23116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5687        4.4565        .26218E-03   -1.5457    
  14  Prefactor     27.234        14.763        .76747E-04   -1.4664    
  15  Prefactor     6.3913        5.2200        .15873E-03   -1.5202    
  16  Prefactor     3.4102        6.9364        .21908E-03   -1.5339    
  17  Prefactor     .10000E-03    9.9364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4270        8.4504        .14723E-03   -1.5163    
  19  Prefactor     .10000E-03    23.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0000        .27221        .35377E-03   -.93029    
  21  Prefactor     .99947        .12756        .17276E-03   -.92747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0432e-10
Minuit parameter uncertainties:
  1  1.38066e-07
  2  1.76497
  3  0.000612728
  4  6.25834e-05
  5  0.0571805
  6  6.42151
  7  0.000818488
  8  1.95033e-08
  9  1.86896e-06
  10  21.8472
  11  5.22416e-05
  12  1.12096e-06
  13  4.4574
  14  14.7651
  15  5.22035
  16  6.93801
  17  7.4496e-06
  18  8.45172
  19  3.63371e-05
  20  0.272591
  21  0.127602
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.223e+00  2.185e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.995e-01  1.276e-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.000e+00  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/14747/likelihoodResults_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.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) = 7409.30030242
delta logL = 2.5481738174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7408.62155824
delta logL = 3.22691799597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4667       1.0000          .0000       10.000    
     3 'Normalizat'    .82791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       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=   7408.622     FROM MIGRAD    STATUS=CONVERGED    255 CALLS      612 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20828E-02    .27758E-03** at limit **
   2  Index         8.4668        1.9572        .10514        .17260E-03
   3  Normalizat    .82780        .72658E-01    .86651E-01   -.56167E-04
   4  Prefactor     1.0606        .35134E-01    .39333E-01   -.16956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.4668
  Normalizat = 0.827801
  Prefactor  = 1.06062
 **********
 **   18 **HESSE 
 **********

 FCN=   7408.622     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      651 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13627E-01    .11975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4668        2.5867        .44860E-02   -5.5170    
   3  Normalizat    .82780        .16363        .38373E-03   -.99046    
   4  Prefactor     1.0606        .79676E-01    .16812E-03   -.90735    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.90584e-10
Minuit parameter uncertainties:
  1  1.39588e-08
  2  2.88543
  3  0.163727
  4  0.079685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14747': 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) = 7408.62155484
delta logL = 3.22692139458

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.396e-08  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  8.467e+00  2.885e+00  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.061e+00  7.969e-02  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:  8.278e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.22
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 8.47 +/- 2.89
Photon Flux (Free Index): 1.52e-07 +/- 9.97e-07
Energy Flux (Free Index): 1.74e-05 +/- 1.14e-04

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/14747/cmap_HighResolution_601948801_602208001_4FGL_J1037.4-2933_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='3.23e+00', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-02 05:45:13.944736', photon_index_error2='2.89', photon_index2='8.47', ts='0.24', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.14e-04', EG='1.00', time_epoch_completed='1630586713.94', return_code='0', job_id='14747', GAL2='1.06', EG2='0.83', return_code2='102', photon_flux_error2='9.97e-07', ts2='7.22', photon_index='2.41' WHERE bin_id='1399' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:45:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 14747: <4FGL_J1037.4-2933_daily_bin1399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1399 159.356 -29.5568 601948801 602208001 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 :                                   719.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

