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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1332
RA = 161.468, Dec = -29.4795
tmin = 584582401, tmax = 584841601
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='125142', job_status='RUN', time_executed='2021-09-02 11:32:38.473335', time_epoch_executed='1630607558.47' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125142/ft1_4FGL_J1045.8-2928_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125142/ft1_4FGL_J1045.8-2928_daily_bin1332.fits outfile=/scratch/kocevski/125142/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1332.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=584582401.0 tmax=584841601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.95
user 2.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.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/125142/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/125142/ltcube_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.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/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits
.....................!
real 16.43
user 15.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/125142/ltcube_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.fits outfile=/scratch/kocevski/125142/expmap_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.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/125142/ltcube_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.fits
.....................!
real 192.77
user 187.15
sys 5.15

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/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits scfile=/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits outfile=/scratch/kocevski/125142/cmap_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits scfile=/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits outfile=/scratch/kocevski/125142/cmap_HighResolution_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125142/Model_4FGL_J1045.8-2928_daily_bin1332.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/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits.....................!
real 85.35
user 83.88
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits', '/scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits', expMap='/scratch/kocevski/125142/expmap_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.fits', expCube='/scratch/kocevski/125142/ltcube_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/125142/Model_4FGL_J1045.8-2928_daily_bin1332.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/125142/ft1_filtered_4FGL_J1045.8-2928_daily_bin1332.fits
Spacecraft file(s): /scratch/kocevski/125142/ft2_4FGL_J1045.8-2928_daily_bin1332.fits
Exposure map: /scratch/kocevski/125142/expmap_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.fits
Exposure cube: /scratch/kocevski/125142/ltcube_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/125142/Model_4FGL_J1045.8-2928_daily_bin1332.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8736.52443973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.370       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    27.274       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .77194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4293       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0549       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=   8735.813     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1777 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.370        3.1332        .18245E-07   -.85839E-05
   2  norm          8.2401        10.151        .18871E-06   -.84541E-05
   3  Prefactor     .10000E-03    37.840       -.43275E-05** at limit **
   4  Prefactor     .10000E-03    4.2120        .62624E-07** at limit **
   5  norm          27.275        12.465       -.53711E-07    .26953E-04
   6  norm          5.8606        8.1908        .16550E-06   -.11801E-04
   7  Prefactor     8.1379        13.753       -.33372E-06   -.43077E-04
   8  Prefactor     .10000E-03    13.387       -.28014E-05** at limit **
   9  norm          .77233        2.8935        .15846E-05   -.48468E-04
  10  Prefactor     .10000E-03    5.0993       -.20464E-06** at limit **
  11  Prefactor     5.5049        3.9792       -.36044E-06   -.22139E-03
  12  Prefactor     .10000E-03    6.2678        .27110E-06** at limit **
  13  Prefactor     4.6541        3.7029        .12824E-06    .65792E-04
  14  Prefactor     4.5182        7.1231        .49041E-05   -.68715E-03
  15  Prefactor     .10000E-03    35.155        .39442E-05** at limit **
  16  Prefactor     2.3961        110.79       -.19604E-04   -.10633E-03
  17  Prefactor     6.1038        12.941        .14928E-05    .16372E-03
  18  Prefactor     .10000E-03    14.537        .26627E-05** at limit **
  19  Normalizat    1.0895        .22976       -.10635E-05    .29496E-04
  20  Prefactor     1.0549        .11088       -.21480E-06    .27652E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3701
  norm       = 8.24012
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 27.2752
  norm       = 5.86058
  Prefactor  = 8.13793
  Prefactor  = 0.000100001
  norm       = 0.772325
  Prefactor  = 0.0001
  Prefactor  = 5.50494
  Prefactor  = 0.0001
  Prefactor  = 4.65414
  Prefactor  = 4.51819
  Prefactor  = 0.000100002
  Prefactor  = 2.39613
  Prefactor  = 6.10376
  Prefactor  = 0.000100001
  Normalizat = 1.08954
  Prefactor  = 1.05489
 **********
 **   18 **HESSE 
 **********

 FCN=   8735.813     FROM HESSE     STATUS=OK           295 CALLS     2072 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.370        3.1385        .69682E-04   -1.4899    
   2  norm          8.2401        10.150        .13966E-03   -1.5134    
   3  Prefactor     .10000E-03    38.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          27.275        12.434        .76709E-04   -1.4663    
   6  norm          5.8606        8.1597        .16589E-03   -1.5224    
   7  Prefactor     8.1379        13.678        .14053E-03   -1.5137    
   8  Prefactor     .10000E-03    13.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .77233        2.8419        .28530E-03   -1.5532    
  10  Prefactor     .10000E-03    5.1088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5049        3.9488        .14822E-03   -1.5239    
  12  Prefactor     .10000E-03    6.3221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6541        3.7066        .15514E-03   -1.5276    
  14  Prefactor     4.5182        7.4051        .94699E-03   -1.5283    
  15  Prefactor     .10000E-03    35.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3961        122.66        .26256E-03   -1.5398    
  17  Prefactor     6.1038        12.976        .16248E-03   -1.5214    
  18  Prefactor     .10000E-03    14.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0895        .26948        .36706E-03   -.90088    
  20  Prefactor     1.0549        .13066        .18602E-03   -.90922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58903e-09
Minuit parameter uncertainties:
  1  3.13854
  2  10.1523
  3  0.000523661
  4  3.45195e-06
  5  12.4355
  6  8.16122
  7  13.6835
  8  0.000212213
  9  2.84241
  10  8.72582e-06
  11  3.94895
  12  2.14728e-05
  13  3.70679
  14  7.40662
  15  0.000525161
  16  34.3609
  17  12.9823
  18  0.000223801
  19  0.269824
  20  0.130702
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  5.505e+00  3.949e+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.055e+00  1.307e-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.090e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.26
Ra Dec: 161.468 -29.480
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.23e-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) = 8734.43610985
delta logL = 1.37694151943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8734.37706223
delta logL = 1.43598914457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6706       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4900       1.0000          .0000       10.000    
     3 'Normalizat'    1.1411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0432       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=   8734.377     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6706        3.2433        .52706E-02   -.73405E-03
   2  Index         1.4904        .35411        .23320       -.85811E-04
   3  Normalizat    1.1411        .21755        .81253E-01    .22313E-04
   4  Prefactor     1.0433        .10918        .40323E-01    .10361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67059
  Index      = 1.49041
  Normalizat = 1.14106
  Prefactor  = 1.04329
 **********
 **   18 **HESSE 
 **********

 FCN=   8734.377     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6706        4.7036        .15014E-03   -1.5325    
   2  Index         1.4904        .59749        .88364E-02   -.77809    
   3  Normalizat    1.1411        .25534        .35971E-03   -.88444    
   4  Prefactor     1.0433        .12842        .18696E-03   -.91300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.618e-10
Minuit parameter uncertainties:
  1  4.70408
  2  0.600328
  3  0.255613
  4  0.128458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125142': 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) = 8734.37706156
delta logL = 1.43598981102

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  3.671e+00  4.704e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  1.490e+00  6.003e-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.285e-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.141e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.11
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 1.49 +/- 0.60
Photon Flux (Free Index): 1.48e-08 +/- 2.05e-08
Energy Flux (Free Index): 4.83e-05 +/- 6.12e-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/125142/cmap_HighResolution_584582401_584841601_4FGL_J1045.8-2928_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='4.83e-05', photon_flux_error='4.42e-08', dlogl='1.44e+00', energy_flux='1.71e-05', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-02 11:43:40.230635', photon_index_error2='0.60', photon_index2='1.49', ts='7.26', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='6.12e-05', EG='1.09', time_epoch_completed='1630608220.23', return_code='0', job_id='125142', GAL2='1.04', EG2='1.14', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.05e-08', ts2='10.11', photon_index='2.54' WHERE bin_id='1332' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:43:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 125142: <4FGL_J1045.8-2928_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1332 161.468 -29.4795 584582401 584841601 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            736 sec.

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

