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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1342
RA = 161.468, Dec = -29.4795
tmin = 587174401, tmax = 587433601
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='125158', job_status='RUN', time_executed='2021-09-02 11:33:47.866919', time_epoch_executed='1630607627.87' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125158/ft1_4FGL_J1045.8-2928_daily_bin1342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125158/ft1_4FGL_J1045.8-2928_daily_bin1342.fits outfile=/scratch/kocevski/125158/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1342.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=587174401.0 tmax=587433601.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.64
user 3.34
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.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/125158/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1342.fits evtable="EVENTS" outfile="/scratch/kocevski/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.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/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits" evtable="EVENTS" scfile=/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits sctable="SC_DATA" outfile=/scratch/kocevski/125158/ltcube_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.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/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits
.....................!
real 17.60
user 17.15
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits sctable="SC_DATA" expcube=/scratch/kocevski/125158/ltcube_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.fits outfile=/scratch/kocevski/125158/expmap_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.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/125158/ltcube_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.fits
.....................!
real 196.18
user 188.89
sys 6.20

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/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits scfile=/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits outfile=/scratch/kocevski/125158/cmap_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.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.61
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits scfile=/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits outfile=/scratch/kocevski/125158/cmap_HighResolution_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.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.59
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125158/Model_4FGL_J1045.8-2928_daily_bin1342.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/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits.....................!
real 102.50
user 100.74
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits', '/scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits', expMap='/scratch/kocevski/125158/expmap_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.fits', expCube='/scratch/kocevski/125158/ltcube_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/125158/Model_4FGL_J1045.8-2928_daily_bin1342.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/125158/ft1_filtered_4FGL_J1045.8-2928_daily_bin1342.fits
Spacecraft file(s): /scratch/kocevski/125158/ft2_4FGL_J1045.8-2928_daily_bin1342.fits
Exposure map: /scratch/kocevski/125158/expmap_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.fits
Exposure cube: /scratch/kocevski/125158/ltcube_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/125158/Model_4FGL_J1045.8-2928_daily_bin1342.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) = 10917.270458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3693       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37639E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .44178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39208E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11691E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89644       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0225       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=   10917.13     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     1810 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3690        1.8338       -.31493E-07    .17948E-03
   2  norm          .10000E-03    4.1682       -.13772E-06** at limit **
   3  Prefactor     .10000E-03    17.573       -.99051E-06** at limit **
   4  Prefactor     .10000E-03    19.890        .63927E-06** at limit **
   5  norm          .10000E-03    4.8386       -.21810E-06** at limit **
   6  norm          6.0650        5.0589       -.12789E-06    .48247E-04
   7  Prefactor     .10000E-03    3.2201       -.10854E-06** at limit **
   8  Prefactor     .10000E-03    34.112       -.60391E-05** at limit **
   9  norm          .44692        2.5468       -.14233E-05    .45944E-03
  10  Prefactor     3.6702        6.8309        .74416E-07    .45862E-04
  11  Prefactor     8.1665        3.5555       -.34580E-06    .30815E-03
  12  Prefactor     .10001E-03    3.4075        .28395E-06** at limit **
  13  Prefactor     .10000E-03    2.0035       -.19297E-06** at limit **
  14  Prefactor     4.0149        4.1076       -.11132E-06    .28468E-04
  15  Prefactor     .10000E-03    67.359        .36113E-05** at limit **
  16  Prefactor     .10000E-03    6.5071       -.66391E-07** at limit **
  17  Prefactor     .10000E-03    7.1567       -.19762E-06** at limit **
  18  Prefactor     .10000E-03    94.879       -.20026E-05** at limit **
  19  Normalizat    .89660        .17197        .11979E-05    .44616E-03
  20  Prefactor     1.0224        .87068E-01    .31046E-06    .92465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.36899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.06497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.446918
  Prefactor  = 3.67023
  Prefactor  = 8.16651
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 4.01491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.896603
  Prefactor  = 1.02244
 **********
 **   18 **HESSE 
 **********

 FCN=   10917.13     FROM HESSE     STATUS=OK           291 CALLS     2101 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3690        1.8361        .63893E-04   -1.5129    
   2  norm          .10000E-03    4.2111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.9046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0650        5.0534        .16299E-03   -1.5215    
   7  Prefactor     .10000E-03    3.2292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.964        .49810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .44692        3.2518        .24473E-02   -1.5574    
  10  Prefactor     3.6702        6.8070        .21092E-03   -1.5325    
  11  Prefactor     8.1665        3.7212        .62017E-03   -1.5136    
  12  Prefactor     .10001E-03    26.685        .35260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0539        .14463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0149        4.1053        .20128E-03   -1.5307    
  15  Prefactor     .10000E-03    66.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    97.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89660        .20088        .34125E-03   -.96580    
  20  Prefactor     1.0224        .10342        .16797E-03   -.91985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10213e-09
Minuit parameter uncertainties:
  1  1.83611
  2  1.83161e-05
  3  4.57375e-05
  4  0.000182448
  5  2.28302e-05
  6  5.05377
  7  4.09171e-06
  8  5.11712e-05
  9  2.41098
  10  6.80839
  11  3.72127
  12  0.000856046
  13  1.32933e-05
  14  4.10563
  15  0.000268011
  16  5.17248e-06
  17  3.70036e-05
  18  0.000811135
  19  0.201051
  20  0.103437
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  8.167e+00  3.721e+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:  1.022e+00  1.034e-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:  8.966e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.91
Ra Dec: 161.468 -29.480
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.15e-05

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) = 10916.1750937
delta logL = 0.958614580763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10916.1656662
delta logL = 0.968042046825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9949       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2473       1.0000          .0000       10.000    
     3 'Normalizat'    .83976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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.

 FCN=   10916.17     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      246 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9949        18.648        .50446E-02    .37129E-03
   2  Index         3.2473        2.3790        .11705        .23977E-03
   3  Normalizat    .83978        .69526E-01    .79352E-01    .42066E-04
   4  Prefactor     1.0426        .33930E-01    .40363E-01   -.62058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99486
  Index      = 3.2473
  Normalizat = 0.839778
  Prefactor  = 1.04261
 **********
 **   18 **HESSE 
 **********

 FCN=   10916.17     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9949        4.3728        .74667E-04   -1.5308    
   2  Index         3.2473        .71803        .45917E-02   -.35815    
   3  Normalizat    .83978        .20369        .35127E-03   -.98610    
   4  Prefactor     1.0426        .10471        .16649E-03   -.91322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36498e-11
Minuit parameter uncertainties:
  1  4.37315
  2  0.720876
  3  0.203877
  4  0.104727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125158': 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) = 10916.1656662
delta logL = 0.968042056431

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  3.995e+00  4.373e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.247e+00  7.209e-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:  1.043e+00  1.047e-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:  8.398e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.13
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 3.25 +/- 0.72
Photon Flux (Free Index): 1.28e-07 +/- 5.09e-08
Energy Flux (Free Index): 2.30e-05 +/- 9.38e-06

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/125158/cmap_HighResolution_587174401_587433601_4FGL_J1045.8-2928_daily_bin1342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='2.30e-05', photon_flux_error='4.17e-08', dlogl='9.68e-01', energy_flux='2.53e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-02 11:47:02.188465', photon_index_error2='0.72', photon_index2='3.25', ts='8.91', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.38e-06', EG='0.90', time_epoch_completed='1630608422.19', return_code='0', job_id='125158', GAL2='1.04', EG2='0.84', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='5.09e-08', ts2='11.13', photon_index='2.54' WHERE bin_id='1342' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 125158: <4FGL_J1045.8-2928_daily_bin1342> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1342> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:26 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:32:13 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:13 2021
Terminated at Thu Sep  2 11:47:03 2021
Results reported at Thu Sep  2 11:47:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1342 161.468 -29.4795 587174401 587433601 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 :                                   755.03 sec.
    Max Memory :                                 1238 MB
    Average Memory :                             313.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            937 sec.

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

