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


Performing analysis on: 4FGL_J1038.8-5312_daily_bin1629
RA = 159.713, Dec = -53.2069
tmin = 661564801, tmax = 661824001
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='405098', job_status='RUN', time_executed='2021-12-22 02:27:23.035687', time_epoch_executed='1640168843.04' WHERE source_name='4FGL J1038.8-5312' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405098/ft1_4FGL_J1038.8-5312_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405098/ft1_4FGL_J1038.8-5312_daily_bin1629.fits outfile=/scratch/kocevski/405098/ft1_filteredMKT_4FGL_J1038.8-5312_daily_bin1629.fits ra=159.713 dec=-53.2069 rad=12.0 tmin=661564801.0 tmax=661824001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.62
user 3.37
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.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/405098/ft1_filteredMKT_4FGL_J1038.8-5312_daily_bin1629.fits evtable="EVENTS" outfile="/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.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/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits" evtable="EVENTS" scfile=/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits sctable="SC_DATA" outfile=/scratch/kocevski/405098/ltcube_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.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/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits
.....................!
real 14.47
user 13.92
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/405098/ltcube_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.fits outfile=/scratch/kocevski/405098/expmap_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.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/405098/ltcube_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.fits
.....................!
real 192.36
user 186.46
sys 5.42

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
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Added 265 point sources and 8 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1038.8-5312 @ 159.713 -53.2069

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits scfile=/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits outfile=/scratch/kocevski/405098/cmap_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.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.713 yref=-53.2069 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits scfile=/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits outfile=/scratch/kocevski/405098/cmap_HighResolution_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.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.713 yref=-53.2069 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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405098/Model_4FGL_J1038.8-5312_daily_bin1629.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source Vela Junior
adding source Vela X
adding source Westerlund 2
Working on...
/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits.....................!
real 583.17
user 580.78
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits', '/scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits', expMap='/scratch/kocevski/405098/expmap_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.fits', expCube='/scratch/kocevski/405098/ltcube_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405098/Model_4FGL_J1038.8-5312_daily_bin1629.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1038.8-5312'

4FGL J1038.8-5312
   Spectrum: LogParabola
423         norm:  9.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
424        alpha:  2.593e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
425         beta:  1.430e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
426           Eb:  5.300e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405098/ft1_filtered_4FGL_J1038.8-5312_daily_bin1629.fits
Spacecraft file(s): /scratch/kocevski/405098/ft2_4FGL_J1038.8-5312_daily_bin1629.fits
Exposure map: /scratch/kocevski/405098/expmap_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.fits
Exposure cube: /scratch/kocevski/405098/ltcube_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405098/Model_4FGL_J1038.8-5312_daily_bin1629.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) = 33084.901851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .65327E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.403       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0543       1.0000         .10000E-03   10000.    
     6 'norm      '    11.868       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.508       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4760       1.0000         .10000E-03   10000.    
    11 'norm      '    11.237       1.0000         .10000E-03   10000.    
    12 'norm      '    .41307E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4972       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1922       1.0000         .10000E-03   10000.    
    16 'Normalizat'    2.2126       1.0000         .10000E-01   10.000    
    17 'norm      '    .94059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33084.90     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1779 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.124        19.570        .38766E-06    .20213E-05
   2  Prefactor     .10009E-03    41.188       -.28363E-04** at limit **
   3  Prefactor     .10000E-03    7.0633        .46608E-07** at limit **
   4  Prefactor     52.402        47.502        .69202E-06   -.17403E-04
   5  norm          2.0546        3.8009        .32583E-06    .15355E-03
   6  norm          11.868        13.290        .34993E-06   -.13471E-05
   7  Prefactor     13.509        11.187       -.61846E-06    .16788E-04
   8  norm          6.2652        2.0683        .26687E-06    .98488E-03
   9  Prefactor     .10000E-03    36.311       -.41740E-06** at limit **
  10  Prefactor     3.4759        1.9843        .19969E-05    .11358E-02
  11  norm          11.237        3.9875        .19140E-06   -.11643E-03
  12  norm          .10000E-03    1.1124       -.38307E-06** at limit **
  13  Prefactor     2.4977        14.313       -.94466E-06   -.32921E-03
  14  norm          .10000E-03    13.660        .22855E-06** at limit **
  15  Prefactor     2.1747        142.83        .48581E-05   -.58741E-04
  16  Normalizat    2.2127        .28654       -.18366E-05   -.81655E-03
  17  norm          .94050        .84948        .14452E-06    .17879E-02
  18  Prefactor     .88953        .30343E-01   -.46787E-06   -.39055E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1244
  Prefactor  = 0.000100085
  Prefactor  = 0.0001
  Prefactor  = 52.4015
  norm       = 2.05464
  norm       = 11.8682
  Prefactor  = 13.5088
  norm       = 6.26521
  Prefactor  = 0.0001
  Prefactor  = 3.47591
  norm       = 11.2372
  norm       = 0.000100003
  Prefactor  = 2.49767
  norm       = 0.0001
  Prefactor  = 2.17469
  Normalizat = 2.21272
  norm       = 0.940503
  Prefactor  = 0.889527
 **********
 **   18 **HESSE 
 **********

 FCN=   33084.90     FROM HESSE     STATUS=OK           268 CALLS     2047 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.124        19.573        .10657E-03   -1.4956    
   2  Prefactor     .10009E-03    7.5502        .18374       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     52.402        47.541        .55404E-04   -1.4259    
   5  norm          2.0546        3.7749        .28838E-03   -1.5421    
   6  norm          11.868        13.292        .11628E-03   -1.5019    
   7  Prefactor     13.509        11.293        .10898E-03   -1.4973    
   8  norm          6.2652        2.0360        .67916E-03   -1.5207    
   9  Prefactor     .10000E-03    36.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4759        2.6617        .10845E-02   -1.5335    
  11  norm          11.237        3.9881        .11951E-03   -1.5037    
  12  norm          .10000E-03    1.1510        .55415E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4977        14.467        .25863E-03   -1.5392    
  14  norm          .10000E-03    13.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1747        143.66        .27796E-03   -1.5413    
  16  Normalizat    2.2127        .30277        .86623E-03   -.59320    
  17  norm          .94050        .81328        .14064E-03   -1.5514    
  18  Prefactor     .88953        .31863E-01    .13403E-03   -.96508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38243e-09
Minuit parameter uncertainties:
  1  19.5822
  2  0.00160678
  3  1.91317e-05
  4  47.5759
  5  3.77535
  6  13.2955
  7  11.2945
  8  2.03606
  9  3.54504e-05
  10  2.66178
  11  3.98818
  12  0.000115989
  13  12.0266
  14  6.87035e-05
  15  35.4392
  16  0.303045
  17  0.813285
  18  0.0318637
Done.

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

Extracting fit parameters...

4FGL J1038.8-5312
   Spectrum: LogParabola
423         norm:  1.187e+01  1.330e+01  1.000e-04  1.000e+04 ( 1.000e-12)
424        alpha:  2.593e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
425         beta:  1.430e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
426           Eb:  5.300e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
960    Prefactor:  8.895e-01  3.186e-02  0.000e+00  1.000e+01 ( 1.000e+00)
961        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
962        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
945   Normalization:  2.213e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 159.713 -53.207
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.34e-05

TS (Fixed Index): 1.09
Ra Dec: 159.713 -53.207
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405098/likelihoodResults_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.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) = 33084.747286
delta logL = 0.14967307527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33084.7401193
delta logL = 0.156839724586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.369       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0550       1.0000          .0000       5.0000    
     3 'Normalizat'    2.2235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88909       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9750E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   33084.74     FROM MIGRAD    STATUS=FAILED        86 CALLS      248 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.374        13.993        .10955E-03   -.76280E-03
   2  alpha         2.0563        .84921        .51900E-01   -.44270E-03
   3  Normalizat    2.2232        .27892        .86492E-03   -.42324E-03
   4  Prefactor     .88911        .29837E-01    .13406E-03   -.19976E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   33084.74     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      315 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.374        13.993        .16072E-03   -1.4976    
   2  alpha         2.0563        .84921        .17746E-02   -.17844    
   3  Normalizat    2.2232        .27892        .17182E-03   -.59066    
   4  Prefactor     .88911        .29837E-01    .35469E-04   -.96523    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33084.74     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      343 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.374        14.185        .21910E-04    .19095E-04
   2  alpha         2.0563        .86248        .10380E-01   -.86394E-05
   3  Normalizat    2.2232        .27899        .34597E-04    .10515E-05
   4  Prefactor     .88911        .29842E-01    .26812E-04    .33922E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3744
  alpha      = 2.05626
  Normalizat = 2.22324
  Prefactor  = 0.889111
 **********
 **   18 **HESSE 
 **********

 FCN=   33084.74     FROM HESSE     STATUS=OK            25 CALLS      368 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.374        14.245        .43820E-05   -1.4976    
   2  alpha         2.0563        .86622        .41520E-03   -.17844    
   3  Normalizat    2.2232        .27887        .69194E-05   -.59066    
   4  Prefactor     .88911        .29836E-01    .53623E-05   -.96523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70013e-12
Minuit parameter uncertainties:
  1  14.2482
  2  0.885196
  3  0.279079
  4  0.0298364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405098': 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) = 33084.740118
delta logL = 0.156841079952

Extracting fit parameters...

4FGL J1038.8-5312
   Spectrum: LogParabola
423         norm:  1.337e+01  1.425e+01  1.000e-04  1.000e+04 ( 1.000e-12)
424        alpha:  2.056e+00  8.852e-01  0.000e+00  5.000e+00 ( 1.000e+00)
425         beta:  1.430e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
426           Eb:  5.300e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
960    Prefactor:  8.891e-01  2.984e-02  0.000e+00  1.000e+01 ( 1.000e+00)
961        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
962        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
945   Normalization:  2.223e+00  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 159.713 -53.207
Photon Index (Free Index): 2.06 +/- 0.89
Photon Flux (Free Index): 3.26e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.46e-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/405098/cmap_HighResolution_661564801_661824001_4FGL_J1038.8-5312_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-05', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.39e-05', photon_flux_error='5.15e-08', dlogl='1.57e-01', energy_flux='1.20e-05', photon_flux2='3.26e-08', job_status='DONE', time_completed='2021-12-22 03:22:33.770035', photon_index_error2='0.89', photon_index2='2.06', ts='1.09', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.46e-05', EG='2.21', time_epoch_completed='1640172153.77', return_code='0', job_id='405098', GAL2='0.89', EG2='2.22', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.41e-08', ts2='1.40', photon_index='2.59' WHERE bin_id='1629' AND source_name='4FGL J1038.8-5312' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 03:22:33 PST 2021




------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 403952: <4FGL_J1038.8-5312_daily_bin1629> in cluster <slac> Done

Job <4FGL_J1038.8-5312_daily_bin1629> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 22 00:06:50 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 01:58:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 01:58:00 2021
Terminated at Wed Dec 22 02:54:54 2021
Results reported at Wed Dec 22 02:54:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1038.8-5312_daily_bin1629 159.713 -53.2069 661564801 661824001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1038.8-5312 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3290.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             420.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3414 sec.
    Turnaround time :                            10084 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 405098: <4FGL_J1038.8-5312_daily_bin1629> in cluster <slac> Done

Job <4FGL_J1038.8-5312_daily_bin1629> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 22 00:07:47 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 02:27:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 02:27:12 2021
Terminated at Wed Dec 22 03:22:34 2021
Results reported at Wed Dec 22 03:22:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1038.8-5312_daily_bin1629 159.713 -53.2069 661564801 661824001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1038.8-5312 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3309.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             433.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3322 sec.
    Turnaround time :                            11687 sec.

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

