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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1441
RA = 161.468, Dec = -29.4795
tmin = 612835201, tmax = 613094401
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='126608', job_status='RUN', time_executed='2021-09-02 11:36:56.521764', time_epoch_executed='1630607816.52' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126608/ft1_4FGL_J1045.8-2928_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126608/ft1_4FGL_J1045.8-2928_daily_bin1441.fits outfile=/scratch/kocevski/126608/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1441.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=612835201.0 tmax=613094401.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.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.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/126608/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/126608/ltcube_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.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/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits
.....................!
real 17.16
user 16.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/126608/ltcube_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.fits outfile=/scratch/kocevski/126608/expmap_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.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/126608/ltcube_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.fits
.....................!
real 191.20
user 185.72
sys 5.03

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/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.fits scfile=/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits outfile=/scratch/kocevski/126608/cmap_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.fits scfile=/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits outfile=/scratch/kocevski/126608/cmap_HighResolution_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.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.60
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/126608/ft2_4FGL_J1045.8-2928_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126608/Model_4FGL_J1045.8-2928_daily_bin1441.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/126608/ft1_filtered_4FGL_J1045.8-2928_daily_bin1441.fits.....................!
real 77.82
user 76.19
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36313       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    25.804       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6595       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16568E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2632       1.0000         .10000E-03   10000.    
    15 'Prefactor '    114.36       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2552       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91505       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.

 FCN=   7747.271     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2430 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36316        1.0297         .0000        .19176E-02
   2  norm          .10000E-03    5.4715         .0000    ** at limit **
   3  Prefactor     47.414        32.154         .0000       -.47159E-04
   4  Prefactor     .10000E-03    7.5591         .0000    ** at limit **
   5  norm          25.802        11.352         .0000       -.94326E-03
   6  norm          .10000E-03    3.0163         .0000    ** at limit **
   7  Prefactor     1.2202        89.233         .0000        .45603E-02
   8  Prefactor     .10000E-03    7.7009         .0000    ** at limit **
   9  norm          2.6596        4.1942         .0000        .91375E-03
  10  Prefactor     .10005E-03    16.850         .0000    ** at limit **
  11  Prefactor     .10000E-03    4.0714         .0000    ** at limit **
  12  Prefactor     9.0487        10.475         .0000        .11235E-02
  13  Prefactor     .27457        2.6395         .0000        .82147E-03
  14  Prefactor     7.2647        9.0103         .0000        .18669E-02
  15  Prefactor     114.36        124.53         .0000        .42661E-03
  16  Prefactor     3.7922        48.631         .0000       -.79209E-04
  17  Prefactor     .10000E-03    6.2798         .0000    ** at limit **
  18  Prefactor     .10000E-03    24.941         .0000    ** at limit **
  19  Normalizat    1.2555        .23110         .0000       -.17460E-03
  20  Prefactor     .91490        .10900         .0000       -.27403E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.363161
  norm       = 0.0001
  Prefactor  = 47.4142
  Prefactor  = 0.000100001
  norm       = 25.8016
  norm       = 0.0001
  Prefactor  = 1.22022
  Prefactor  = 0.0001
  norm       = 2.65964
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 9.04871
  Prefactor  = 0.274565
  Prefactor  = 7.26474
  Prefactor  = 114.363
  Prefactor  = 3.79219
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.25547
  Prefactor  = 0.9149
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.271     FROM HESSE     STATUS=OK           301 CALLS     2731 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36316        1.0147        .14531E-03   -1.5587    
   2  norm          .10000E-03    5.5391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.414        32.190        .58233E-04   -1.4330    
   4  Prefactor     .10000E-03    7.5772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          25.802        11.346        .78861E-04   -1.4692    
   6  norm          .10000E-03    3.0279        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2202        77.952        .20291E-02   -1.5487    
   8  Prefactor     .10000E-03    7.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6596        4.0283        .19608E-03   -1.5382    
  10  Prefactor     .10005E-03    20.628        .83661E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1913        .34486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0487        10.479        .13325E-03   -1.5106    
  13  Prefactor     .27457        24.613        .26778E-02   -1.5603    
  14  Prefactor     7.2647        9.0085        .14883E-03   -1.5169    
  15  Prefactor     114.36        124.73        .37620E-04   -1.3565    
  16  Prefactor     3.7922        48.635        .20724E-03   -1.5318    
  17  Prefactor     .10000E-03    6.3007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2555        .28027        .32075E-03   -.84905    
  20  Prefactor     .91490        .13217        .18557E-03   -.95622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3718e-08
Minuit parameter uncertainties:
  1  1.01479
  2  3.54565e-05
  3  32.2014
  4  0.000127038
  5  11.3468
  6  7.71078e-05
  7  19.5315
  8  4.88706e-05
  9  4.02873
  10  0.00207434
  11  3.47348e-05
  12  10.4813
  13  5.2004
  14  9.01015
  15  125.017
  16  27.188
  17  0.000175229
  18  0.000333552
  19  0.280605
  20  0.132212
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.473e-05  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:  9.149e-01  1.322e-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.255e+00  2.806e-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: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126608/likelihoodResults_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.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) = 7747.2725549
delta logL = -0.00113924631296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7747.27141539
delta logL = 2.5823192118e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7747.271     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      273 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27729E-03    .15933        .29570E-01** at limit **
   2  Index         3.4340        6.3147        .50000       -.16956E-04
   3  Normalizat    1.2555        .21900E-02    .32075E-03    .10054E-02
   4  Prefactor     .91490        .11080E-02    .18557E-03    .11740E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000277289
  Index      = 3.43399
  Normalizat = 1.25547
  Prefactor  = 0.914901
 **********
 **   18 **HESSE 
 **********

 FCN=   7747.271     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      312 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27729E-03    .24961        .24087E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4340        6.1403        .50000       -.31856    
   3  Normalizat    1.2555        .23312E-02    .64150E-04   -.84906    
   4  Prefactor     .91490        .11794E-02    .37115E-04   -.95622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1663e-08
Minuit parameter uncertainties:
  1  0.0133046
  2  9.2369
  3  0.0023312
  4  0.00117944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126608': 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) = 7747.27140662
delta logL = 9.02900956135e-06

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  2.773e-04  1.330e-02  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.434e+00  9.237e+00  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:  9.149e-01  1.179e-03  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.255e+00  2.331e-03  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/126608/cmap_HighResolution_612835201_613094401_4FGL_J1045.8-2928_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-02 11:49:27.303683', job_id='126608', GAL2='0.91', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630608567.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1441' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 126608: <4FGL_J1045.8-2928_daily_bin1441> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1441> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 11:36:10 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:36:21 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:21 2021
Terminated at Thu Sep  2 11:49:27 2021
Results reported at Thu Sep  2 11:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1441 161.468 -29.4795 612835201 613094401 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 :                                   746.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            797 sec.

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

