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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1417
RA = 161.468, Dec = -29.4795
tmin = 606614401, tmax = 606873601
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='126539', job_status='RUN', time_executed='2021-09-02 11:39:19.897561', time_epoch_executed='1630607959.9' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126539/ft1_4FGL_J1045.8-2928_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126539/ft1_4FGL_J1045.8-2928_daily_bin1417.fits outfile=/scratch/kocevski/126539/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1417.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=606614401.0 tmax=606873601.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 5.12
user 4.86
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126539/ft1_filtered_4FGL_J1045.8-2928_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/126539/ltcube_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.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/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits
.....................!
real 12.29
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126539/ft1_filtered_4FGL_J1045.8-2928_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/126539/ltcube_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.fits outfile=/scratch/kocevski/126539/expmap_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.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/126539/ltcube_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.fits
.....................!
real 191.32
user 186.23
sys 4.72

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/126539/ft1_filtered_4FGL_J1045.8-2928_daily_bin1417.fits scfile=/scratch/kocevski/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits outfile=/scratch/kocevski/126539/cmap_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126539/ft1_filtered_4FGL_J1045.8-2928_daily_bin1417.fits scfile=/scratch/kocevski/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits outfile=/scratch/kocevski/126539/cmap_HighResolution_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126539/ft1_filtered_4FGL_J1045.8-2928_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/126539/ft2_4FGL_J1045.8-2928_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126539/Model_4FGL_J1045.8-2928_daily_bin1417.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/126539/ft1_filtered_4FGL_J1045.8-2928_daily_bin1417.fits.....................!
real 69.00
user 67.64
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.078       1.0000         .10000E-03   10000.    
     2 'norm      '    .14774E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27925       1.0000         .10000E-03   10000.    
     5 'norm      '    6.0948       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5311       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    403.11       1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.481       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4639       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86741       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=   6381.522     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2081 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.078        3.3137        .18365E-07   -.22711E-04
   2  norm          .10000E-03    4.9668        .21273E-06** at limit **
   3  Prefactor     .10000E-03    56.890       -.80436E-07** at limit **
   4  Prefactor     .10001E-03    16.443        .10883E-06** at limit **
   5  norm          6.1510        13.847        .16816E-07   -.55163E-04
   6  norm          .10000E-03    2.2042       -.23073E-07** at limit **
   7  Prefactor     .10000E-03    5.4603       -.22067E-07** at limit **
   8  Prefactor     1.5381        77.157       -.68237E-05   -.73993E-05
   9  norm          5.2866        5.9937        .25510E-05   -.76397E-04
  10  Prefactor     .10000E-03    8.7802       -.15923E-07** at limit **
  11  Prefactor     .10000E-03    1.8473       -.14816E-06** at limit **
  12  Prefactor     .10000E-03    6.9484       -.10051E-06** at limit **
  13  Prefactor     .10000E-03    3.7200        .13293E-06** at limit **
  14  Prefactor     2.5895        8.4612       -.20960E-06   -.22144E-07
  15  Prefactor     403.17        276.23       -.32294E-05   -.35455E-06
  16  Prefactor     49.465        62.586        .20534E-05    .14500E-05
  17  Prefactor     .10000E-03    10.494       -.32553E-06** at limit **
  18  Prefactor     .10000E-03    39.076        .26907E-06** at limit **
  19  Normalizat    1.4633        .26347       -.13138E-05   -.86798E-04
  20  Prefactor     .86774        .12089        .23299E-06   -.54441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0777
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 6.15102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.5381
  norm       = 5.28661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58953
  Prefactor  = 403.168
  Prefactor  = 49.4652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46334
  Prefactor  = 0.867738
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.522     FROM HESSE     STATUS=OK           297 CALLS     2378 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.078        3.3182        .68229E-04   -1.4957    
   2  norm          .10000E-03    37.190        .34146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    19.703        .90505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1510        13.798        .16263E-03   -1.5212    
   6  norm          .10000E-03    2.2053        .11579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5381        77.478        .34491E-03   -1.5460    
   9  norm          5.2866        6.0221        .82391E-03   -1.5248    
  10  Prefactor     .10000E-03    8.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8567        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7479        .15047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5895        8.4350        .25344E-03   -1.5386    
  15  Prefactor     403.17        277.18        .10168E-03   -1.1665    
  16  Prefactor     49.465        62.687        .57008E-04   -1.4300    
  17  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4633        .31322        .32998E-03   -.78814    
  20  Prefactor     .86774        .14389        .19625E-03   -.97278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0782e-11
Minuit parameter uncertainties:
  1  3.31828
  2  0.000157257
  3  2.30939e-05
  4  0.000905226
  5  13.8049
  6  1.922e-06
  7  5.1577e-06
  8  21.8621
  9  6.02279
  10  7.57777e-07
  11  1.29772e-05
  12  1.52072e-05
  13  1.53114e-05
  14  8.43888
  15  278.106
  16  62.7709
  17  5.31653e-05
  18  2.35983e-05
  19  0.313635
  20  0.143951
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.298e-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:  8.677e-01  1.440e-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.463e+00  3.136e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126539/likelihoodResults_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.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) = 6381.52417663
delta logL = -0.00255313821617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6381.52162372
delta logL = -2.31030753639e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5210       1.0000          .0000       10.000    
     3 'Normalizat'    1.4634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86774       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=   6381.522     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.277        .10843E-01** at limit **
   2  Index         2.0358        5.2600        .50000        .10788E-05
   3  Normalizat    1.4633        .13695E-01    .32998E-03    .13285E-03
   4  Prefactor     .86774        .65152E-02    .19625E-03    .24425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03579
  Normalizat = 1.46335
  Prefactor  = 0.867738
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.522     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.626        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0358        7.4223        .50000       -.63458    
   3  Normalizat    1.4633        .42390E-01    .13199E-04   -.78814    
   4  Prefactor     .86774        .20166E-01    .39251E-04   -.97278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32671e-08
Minuit parameter uncertainties:
  1  2.82514e-05
  2  451.289
  3  0.0423914
  4  0.0201667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126539': 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) = 6381.52161693
delta logL = 6.5577978603e-06

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.825e-05  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.036e+00  4.513e+02  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.677e-01  2.017e-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.463e+00  4.239e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/126539/cmap_HighResolution_606614401_606873601_4FGL_J1045.8-2928_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-02 11:50:11.481481', job_id='126539', GAL2='0.87', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630608611.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1417' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:50:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 126539: <4FGL_J1045.8-2928_daily_bin1417> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1417> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 11:36:02 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:36:05 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:05 2021
Terminated at Thu Sep  2 11:50:12 2021
Results reported at Thu Sep  2 11:50:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1417 161.468 -29.4795 606614401 606873601 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 :                                   640.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            850 sec.

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

