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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1475
RA = 161.468, Dec = -29.4795
tmin = 621648001, tmax = 621907201
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='126657', job_status='RUN', time_executed='2021-09-02 11:38:11.074989', time_epoch_executed='1630607891.08' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126657

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126657/ft1_4FGL_J1045.8-2928_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126657/ft1_4FGL_J1045.8-2928_daily_bin1475.fits outfile=/scratch/kocevski/126657/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1475.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=621648001.0 tmax=621907201.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.36
user 5.06
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126657/ft1_filtered_4FGL_J1045.8-2928_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/126657/ltcube_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.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/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits
.....................!
real 14.40
user 13.71
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126657/ft1_filtered_4FGL_J1045.8-2928_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/126657/ltcube_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.fits outfile=/scratch/kocevski/126657/expmap_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.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/126657/ltcube_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.fits
.....................!
real 191.66
user 186.50
sys 4.29

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/126657/ft1_filtered_4FGL_J1045.8-2928_daily_bin1475.fits scfile=/scratch/kocevski/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits outfile=/scratch/kocevski/126657/cmap_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126657/ft1_filtered_4FGL_J1045.8-2928_daily_bin1475.fits scfile=/scratch/kocevski/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits outfile=/scratch/kocevski/126657/cmap_HighResolution_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126657/ft1_filtered_4FGL_J1045.8-2928_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/126657/ft2_4FGL_J1045.8-2928_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126657/Model_4FGL_J1045.8-2928_daily_bin1475.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/126657/ft1_filtered_4FGL_J1045.8-2928_daily_bin1475.fits.....................!
real 61.89
user 60.52
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1299       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .44098E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.056       1.0000         .10000E-03   10000.    
     9 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47208E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5524       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85872       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=   5425.546     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2114 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1320        1.9277       -.18628E-05   -.61806E-03
   2  norm          6.4194        8.8444       -.51227E-07    .40330E-04
   3  Prefactor     23.414        34.543        .58159E-06    .83730E-05
   4  Prefactor     .10000E-03    6.0276       -.11625E-06** at limit **
   5  norm          .10002E-03    37.078        .63971E-05** at limit **
   6  norm          .10000E-03    13.943        .28397E-06** at limit **
   7  Prefactor     .10000E-03    59.095       -.16192E-05** at limit **
   8  Prefactor     15.040        23.720        .14014E-06    .84745E-04
   9  norm          .10000E-03    5.4686       -.85462E-06** at limit **
  10  Prefactor     .10000E-03    62.340       -.31166E-05** at limit **
  11  Prefactor     .10000E-03    7.8011       -.48291E-06** at limit **
  12  Prefactor     24.278        17.287       -.15427E-06    .15751E-03
  13  Prefactor     11.763        10.144       -.80051E-06    .28837E-03
  14  Prefactor     .10000E-03    5.3774        .23875E-06** at limit **
  15  Prefactor     .10000E-03    54.530        .12436E-05** at limit **
  16  Prefactor     .10000E-03    22.954        .19847E-06** at limit **
  17  Prefactor     .10000E-03    10.967        .22844E-06** at limit **
  18  Prefactor     .10427E-03    66.825       -.89380E-05** at limit **
  19  Normalizat    1.5522        .30287        .24190E-05    .26747E-03
  20  Prefactor     .85864        .13518       -.10060E-05    .79606E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13203
  norm       = 6.41945
  Prefactor  = 23.4141
  Prefactor  = 0.0001
  norm       = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.0397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2776
  Prefactor  = 11.7633
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104269
  Normalizat = 1.55223
  Prefactor  = 0.858644
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.546     FROM HESSE     STATUS=OK           297 CALLS     2411 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1320        1.9373        .14938E-02   -1.5495    
   2  norm          6.4194        8.8359        .15844E-03   -1.5201    
   3  Prefactor     23.414        34.277        .82718E-04   -1.4740    
   4  Prefactor     .10000E-03    6.0291        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10002E-03    39.971        .39217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.040        23.556        .10322E-03   -1.4932    
   9  norm          .10000E-03    5.5552        .33392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    63.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.278        17.320        .81272E-04   -1.4722    
  13  Prefactor     11.763        10.154        .11685E-03   -1.5022    
  14  Prefactor     .10000E-03    5.3935        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10427E-03    30.776        .13929       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5522        .36207        .32446E-03   -.76321    
  20  Prefactor     .85864        .16188        .19762E-03   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26693e-09
Minuit parameter uncertainties:
  1  1.93736
  2  8.83766
  3  34.3056
  4  1.12001e-05
  5  0.00196791
  6  1.20117e-05
  7  0.000568518
  8  23.571
  9  9.05642e-05
  10  0.000187216
  11  7.28954e-05
  12  17.3238
  13  10.1558
  14  1.67159e-05
  15  0.000656814
  16  4.63511e-06
  17  2.98521e-05
  18  0.0229373
  19  0.362681
  20  0.161968
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  7.290e-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.586e-01  1.620e-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.552e+00  3.627e-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: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126657/likelihoodResults_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.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) = 5425.54706095
delta logL = -0.000596025955019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5425.54646504
delta logL = -1.22461642604e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5706       1.0000          .0000       10.000    
     3 'Normalizat'    1.5520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85876       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=   5425.546     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      252 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10286E-03    39.923        .36285E-02** at limit **
   2  Index         2.6545        6.1257        .50000       -.23899E-04
   3  Normalizat    1.5522        .15473E-01    .32446E-03    .12929E-04
   4  Prefactor     .85864        .73203E-02    .19762E-03    .15647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102859
  Index      = 2.6545
  Normalizat = 1.55223
  Prefactor  = 0.85864
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.546     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10286E-03    232.09        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6545        6.1808        .50000       -.48827    
   3  Normalizat    1.5522        .38143E-01    .12978E-04   -.76321    
   4  Prefactor     .85864        .18045E-01    .79049E-05   -.97602    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12137e-07
Minuit parameter uncertainties:
  1  0.0517194
  2  474.924
  3  0.0381438
  4  0.0180452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126657': 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) = 5425.54646441
delta logL = 5.1080587582e-07

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.029e-04  5.172e-02  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.655e+00  4.749e+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.586e-01  1.805e-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.552e+00  3.814e-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/126657/cmap_HighResolution_621648001_621907201_4FGL_J1045.8-2928_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-02 11:48:33.590409', job_id='126657', GAL2='0.86', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1630608513.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1475' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:48:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 126657: <4FGL_J1045.8-2928_daily_bin1475> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1475> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 11:36:13 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:36:37 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:37 2021
Terminated at Thu Sep  2 11:48:34 2021
Results reported at Thu Sep  2 11:48:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1475 161.468 -29.4795 621648001 621907201 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 :                                   599.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            741 sec.

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

