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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1431
RA = 161.468, Dec = -29.4795
tmin = 610243201, tmax = 610502401
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='126585', job_status='RUN', time_executed='2021-09-02 11:36:39.632259', time_epoch_executed='1630607799.63' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126585

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126585/ft1_4FGL_J1045.8-2928_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126585/ft1_4FGL_J1045.8-2928_daily_bin1431.fits outfile=/scratch/kocevski/126585/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1431.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=610243201.0 tmax=610502401.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.05
user 3.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126585/ft1_filtered_4FGL_J1045.8-2928_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/126585/ltcube_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.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/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits
.....................!
real 15.83
user 15.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126585/ft1_filtered_4FGL_J1045.8-2928_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/126585/ltcube_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.fits outfile=/scratch/kocevski/126585/expmap_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.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/126585/ltcube_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.fits
.....................!
real 194.24
user 188.66
sys 5.07

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/126585/ft1_filtered_4FGL_J1045.8-2928_daily_bin1431.fits scfile=/scratch/kocevski/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits outfile=/scratch/kocevski/126585/cmap_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126585/ft1_filtered_4FGL_J1045.8-2928_daily_bin1431.fits scfile=/scratch/kocevski/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits outfile=/scratch/kocevski/126585/cmap_HighResolution_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126585/ft1_filtered_4FGL_J1045.8-2928_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/126585/ft2_4FGL_J1045.8-2928_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126585/Model_4FGL_J1045.8-2928_daily_bin1431.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/126585/ft1_filtered_4FGL_J1045.8-2928_daily_bin1431.fits.....................!
real 100.25
user 98.10
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9192       1.0000         .10000E-03   10000.    
     2 'norm      '    15.628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9456       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3891       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6237       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73112E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2040       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85013       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=   10361.33     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2073 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9189        1.2277       -.40675E-07   -.49623E-05
   2  norm          15.625        8.3198        .31763E-06    .21811E-04
   3  Prefactor     18.336        20.025       -.18671E-05    .16373E-04
   4  Prefactor     .10000E-03    6.6787        .19234E-06** at limit **
   5  norm          6.9428        8.9320        .12862E-06   -.18090E-03
   6  norm          2.3885        1.7413        .62023E-07   -.10215E-02
   7  Prefactor     .10000E-03    2.9214        .53840E-08** at limit **
   8  Prefactor     .10000E-03    6.4403       -.23309E-06** at limit **
   9  norm          2.2487        2.4750        .99126E-07    .49888E-03
  10  Prefactor     .10000E-03    2.8314        .48716E-07** at limit **
  11  Prefactor     .17132        1.5415       -.85458E-06    .10134E-02
  12  Prefactor     15.773        7.5631        .73359E-06    .44078E-03
  13  Prefactor     8.6219        4.9120        .12255E-06    .13100E-03
  14  Prefactor     .12326E-01    2.9356       -.16000E-06    .22437E-04
  15  Prefactor     .10000E-03    26.331        .28672E-05** at limit **
  16  Prefactor     38.597        30.491       -.68936E-05   -.11049E-04
  17  Prefactor     .10000E-03    8.6620        .11975E-05** at limit **
  18  Prefactor     .10000E-03    8.2177       -.75717E-06** at limit **
  19  Normalizat    1.2039        .18034        .70122E-06    .24362E-03
  20  Prefactor     .85023        .87889E-01    .15693E-06    .37189E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9189
  norm       = 15.6255
  Prefactor  = 18.3361
  Prefactor  = 0.0001
  norm       = 6.9428
  norm       = 2.38849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24868
  Prefactor  = 0.0001
  Prefactor  = 0.17132
  Prefactor  = 15.7731
  Prefactor  = 8.62186
  Prefactor  = 0.0123263
  Prefactor  = 0.0001
  Prefactor  = 38.5969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20394
  Prefactor  = 0.850226
 **********
 **   18 **HESSE 
 **********

 FCN=   10361.33     FROM HESSE     STATUS=OK           305 CALLS     2378 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9189        1.2206        .87093E-04   -1.5431    
   2  norm          15.625        8.3301        .10132E-03   -1.4917    
   3  Prefactor     18.336        20.033        .93513E-04   -1.4851    
   4  Prefactor     .10000E-03    6.7075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9428        8.9191        .76114E-03   -1.5181    
   6  norm          2.3885        5.6834        .13249E-02   -1.5399    
   7  Prefactor     .10000E-03    2.9308        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2487        2.4811        .15540E-03   -1.5408    
  10  Prefactor     .10000E-03    2.8366        .16726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17132        18.359        .21835E-02   -1.5625    
  12  Prefactor     15.773        7.6425        .10084E-03   -1.4913    
  13  Prefactor     8.6219        4.9423        .13650E-03   -1.5121    
  14  Prefactor     .12326E-01    3.1715        .59681E-01   -1.5686    
  15  Prefactor     .10000E-03    26.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.597        30.481        .64509E-04   -1.4465    
  17  Prefactor     .10000E-03    8.8450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2039        .21699        .30365E-03   -.86481    
  20  Prefactor     .85023        .10565        .18014E-03   -.97903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18823e-09
Minuit parameter uncertainties:
  1  1.22058
  2  8.33075
  3  20.0402
  4  3.15053e-06
  5  8.92082
  6  5.68467
  7  7.14231e-07
  8  4.89889e-06
  9  2.48124
  10  1.00847e-06
  11  3.54706
  12  7.64301
  13  4.94249
  14  0.393851
  15  3.14931e-06
  16  30.4929
  17  7.04472e-05
  18  2.06695e-06
  19  0.217155
  20  0.105673
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.713e-01  3.547e+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.502e-01  1.057e-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.204e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126585/likelihoodResults_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10361.2969227
delta logL = 0.0301469840069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10361.2878491
delta logL = 0.0392206300821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29100       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4486       1.0000          .0000       10.000    
     3 'Normalizat'    1.1901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85408       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=   10361.29     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      259 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28960        2.6798        .25968E-01    .96864E-03
   2  Index         3.4560        .67904        .50000       -.67738E-04
   3  Normalizat    1.1905        .10417E-01    .68955E-01    .31906E-04
   4  Prefactor     .85392        .53196E-02    .44417E-01   -.31958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.289602
  Index      = 3.45604
  Normalizat = 1.19046
  Prefactor  = 0.853921
 **********
 **   18 **HESSE 
 **********

 FCN=   10361.29     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28960        169.45        .13899E-02   -1.5600    
   2  Index         3.4560        6.8170        .60819E-02   -.31392    
   3  Normalizat    1.1905        .14357        .30509E-03   -.86898    
   4  Prefactor     .85392        .71697E-01    .17978E-03   -.97770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06601e-08
Minuit parameter uncertainties:
  1  14.0481
  2  26.3368
  3  0.143618
  4  0.0717049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126585': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10361.2878428
delta logL = 0.0392268995056

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  2.896e-01  1.405e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.456e+00  2.634e+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.539e-01  7.170e-02  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.190e+00  1.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 161.468 -29.480

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/126585/cmap_HighResolution_610243201_610502401_4FGL_J1045.8-2928_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-02 11:51:23.840846', job_id='126585', GAL2='0.85', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1630608683.84', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.92e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1431' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 126585: <4FGL_J1045.8-2928_daily_bin1431> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1431> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 11:36:09 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:36:16 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:36:16 2021
Terminated at Thu Sep  2 11:51:24 2021
Results reported at Thu Sep  2 11:51:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1431 161.468 -29.4795 610243201 610502401 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 :                                   869.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            915 sec.

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

