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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1370
RA = 161.468, Dec = -29.4795
tmin = 594432001, tmax = 594691201
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='125211', job_status='RUN', time_executed='2021-09-02 11:34:30.529009', time_epoch_executed='1630607670.53' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125211/ft1_4FGL_J1045.8-2928_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125211/ft1_4FGL_J1045.8-2928_daily_bin1370.fits outfile=/scratch/kocevski/125211/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1370.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=594432001.0 tmax=594691201.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 4.39
user 4.14
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.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/125211/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1370.fits evtable="EVENTS" outfile="/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/125211/ltcube_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.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/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits
.....................!
real 15.23
user 14.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/125211/ltcube_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.fits outfile=/scratch/kocevski/125211/expmap_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.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/125211/ltcube_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.fits
.....................!
real 193.00
user 186.57
sys 5.74

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J1045.8-2928 @ 161.468 -29.4795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits scfile=/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits outfile=/scratch/kocevski/125211/cmap_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.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=161.468 yref=-29.4795 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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits scfile=/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits outfile=/scratch/kocevski/125211/cmap_HighResolution_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.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=161.468 yref=-29.4795 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125211/Model_4FGL_J1045.8-2928_daily_bin1370.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/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits.....................!
real 65.53
user 64.02
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits', '/scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits', expMap='/scratch/kocevski/125211/expmap_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.fits', expCube='/scratch/kocevski/125211/ltcube_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/125211/Model_4FGL_J1045.8-2928_daily_bin1370.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1045.8-2928'

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.056e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/125211/ft1_filtered_4FGL_J1045.8-2928_daily_bin1370.fits
Spacecraft file(s): /scratch/kocevski/125211/ft2_4FGL_J1045.8-2928_daily_bin1370.fits
Exposure map: /scratch/kocevski/125211/expmap_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.fits
Exposure cube: /scratch/kocevski/125211/ltcube_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/125211/Model_4FGL_J1045.8-2928_daily_bin1370.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) = 6323.36651495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.9847       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11464E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9409       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18399E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2231       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6323.274     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1724 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .41748       -.12837E-07** at limit **
   2  norm          3.9811        10.009       -.54500E-06   -.77458E-04
   3  Prefactor     .95532        21.802       -.47410E-05    .27727E-03
   4  Prefactor     12.846        11.296        .17229E-06    .15579E-03
   5  norm          .10000E-03    9.6987       -.23441E-05** at limit **
   6  norm          .10000E-03    9.2066       -.22033E-05** at limit **
   7  Prefactor     .10000E-03    8.7301        .23684E-05** at limit **
   8  Prefactor     .10000E-03    10.390        .24279E-05** at limit **
   9  norm          4.8074        4.0146       -.63410E-07   -.23117E-03
  10  Prefactor     .10000E-03    7.9952        .47592E-07** at limit **
  11  Prefactor     3.6026        3.9765       -.18018E-06   -.33562E-03
  12  Prefactor     .10000E-03    4.7716        .55203E-07** at limit **
  13  Prefactor     1.9398        5.9034        .27512E-05   -.73898E-03
  14  Prefactor     4.5218        7.1180       -.32228E-06   -.16392E-03
  15  Prefactor     .10000E-03    29.291        .17307E-04** at limit **
  16  Prefactor     .10000E-03    24.660       -.17857E-04** at limit **
  17  Prefactor     .10000E-03    7.9788       -.24621E-06** at limit **
  18  Prefactor     .10000E-03    17.997        .35648E-05** at limit **
  19  Normalizat    1.2234        .23753       -.47016E-06    .26056E-03
  20  Prefactor     .86465        .11263        .34384E-06    .31207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.98114
  Prefactor  = 0.955319
  Prefactor  = 12.8457
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80743
  Prefactor  = 0.0001
  Prefactor  = 3.60265
  Prefactor  = 0.0001
  Prefactor  = 1.93977
  Prefactor  = 4.52182
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22341
  Prefactor  = 0.864648
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.274     FROM HESSE     STATUS=OK           287 CALLS     2011 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41969        .50168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9811        10.002        .20205E-03   -1.5309    
   3  Prefactor     .95532        144.39        .68637E-02   -1.5512    
   4  Prefactor     12.846        11.309        .11178E-03   -1.4991    
   5  norm          .10000E-03    9.8061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.3859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8074        4.0033        .13754E-03   -1.5269    
  10  Prefactor     .10000E-03    8.0276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6026        3.9668        .15747E-03   -1.5328    
  12  Prefactor     .10000E-03    4.7877        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9398        5.7353        .29800E-03   -1.5429    
  14  Prefactor     4.5218        7.1192        .18907E-03   -1.5283    
  15  Prefactor     .10000E-03    29.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2234        .28938        .31045E-03   -.85882    
  20  Prefactor     .86465        .13788        .17819E-03   -.97388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60785e-09
Minuit parameter uncertainties:
  1  1.00882e-07
  2  10.0061
  3  23.5465
  4  11.3111
  5  9.86676e-06
  6  1.41371e-05
  7  4.81241e-05
  8  6.19985e-05
  9  4.0035
  10  8.32327e-06
  11  3.96705
  12  2.17839e-06
  13  5.73688
  14  7.12049
  15  0.000676945
  16  0.000640816
  17  5.76162e-06
  18  0.000108493
  19  0.289761
  20  0.137933
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  3.603e+00  3.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.646e-01  1.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.223e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 161.468 -29.480
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.23e-05

TS (Fixed Index): 1.37
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125211/likelihoodResults_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.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) = 6323.10414524
delta logL = 0.170288045772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6323.09443537
delta logL = 0.179997915483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0521       1.0000          .0000       10.000    
     3 'Normalizat'    1.2427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85817       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6323.094     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      269 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3967        4.6974        .86176E-03   -.31292E-04
   2  Index         2.0524        .75139        .11046E-01    .80605E-05
   3  Normalizat    1.2426        .27499        .30839E-03    .34827E-03
   4  Prefactor     .85822        .13545        .17876E-03    .65895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39674
  Index      = 2.05239
  Normalizat = 1.24263
  Prefactor  = 0.85822
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.094     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3967        4.7144        .34470E-04   -1.5289    
   2  Index         2.0524        .75417        .44186E-03   -.63047    
   3  Normalizat    1.2426        .27519        .61677E-04   -.85295    
   4  Prefactor     .85822        .13556        .35751E-04   -.97617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37846e-10
Minuit parameter uncertainties:
  1  4.71483
  2  0.75862
  3  0.275517
  4  0.135614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125211': 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) = 6323.09443517
delta logL = 0.179998115015

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  4.397e+00  4.715e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.052e+00  7.586e-01  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  8.582e-01  1.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.243e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 2.05 +/- 0.76
Photon Flux (Free Index): 2.67e-08 +/- 3.78e-08
Energy Flux (Free Index): 1.63e-05 +/- 2.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/125211/cmap_HighResolution_594432001_594691201_4FGL_J1045.8-2928_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.63e-05', photon_flux_error='4.44e-08', dlogl='1.80e-01', energy_flux='1.12e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-02 11:44:58.322872', photon_index_error2='0.76', photon_index2='2.05', ts='1.37', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.17e-05', EG='1.22', time_epoch_completed='1630608298.32', return_code='0', job_id='125211', GAL2='0.86', EG2='1.24', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.78e-08', ts2='1.73', photon_index='2.54' WHERE bin_id='1370' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:44:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 125211: <4FGL_J1045.8-2928_daily_bin1370> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1370> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:29 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:32:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 11:32:25 2021
Terminated at Thu Sep  2 11:44:58 2021
Results reported at Thu Sep  2 11:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1370 161.468 -29.4795 594432001 594691201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1045.8-2928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            809 sec.

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

