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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1334
RA = 161.468, Dec = -29.4795
tmin = 585100801, tmax = 585360001
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='125146', job_status='RUN', time_executed='2021-09-02 11:33:07.104239', time_epoch_executed='1630607587.1' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125146/ft1_4FGL_J1045.8-2928_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125146/ft1_4FGL_J1045.8-2928_daily_bin1334.fits outfile=/scratch/kocevski/125146/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1334.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=585100801.0 tmax=585360001.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 3.08
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125146/ft1_filtered_4FGL_J1045.8-2928_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/125146/ltcube_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.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/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits
.....................!
real 15.94
user 15.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125146/ft1_filtered_4FGL_J1045.8-2928_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/125146/ltcube_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.fits outfile=/scratch/kocevski/125146/expmap_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.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/125146/ltcube_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.fits
.....................!
real 191.27
user 185.95
sys 4.86

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/125146/ft1_filtered_4FGL_J1045.8-2928_daily_bin1334.fits scfile=/scratch/kocevski/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits outfile=/scratch/kocevski/125146/cmap_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125146/ft1_filtered_4FGL_J1045.8-2928_daily_bin1334.fits scfile=/scratch/kocevski/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits outfile=/scratch/kocevski/125146/cmap_HighResolution_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=161.468 yref=-29.4795 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125146/ft1_filtered_4FGL_J1045.8-2928_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/125146/ft2_4FGL_J1045.8-2928_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125146/Model_4FGL_J1045.8-2928_daily_bin1334.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/125146/ft1_filtered_4FGL_J1045.8-2928_daily_bin1334.fits.....................!
real 91.29
user 89.89
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7798       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.490       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0543       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=   9530.693     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2039 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7803        1.9922       -.10734E-06   -.11446E-03
   2  norm          6.4886        7.8620        .53180E-06   -.27240E-04
   3  Prefactor     .10000E-03    20.448        .16060E-05** at limit **
   4  Prefactor     .10000E-03    8.8835        .57722E-06** at limit **
   5  norm          .10000E-03    5.5788        .91890E-06** at limit **
   6  norm          .10000E-03    4.3640        .97641E-06** at limit **
   7  Prefactor     5.4307        14.422       -.19856E-06   -.75527E-04
   8  Prefactor     .10000E-03    7.1238        .36150E-06** at limit **
   9  norm          5.2610        3.7400       -.11041E-05   -.11701E-02
  10  Prefactor     15.608        17.014       -.11353E-05   -.15277E-03
  11  Prefactor     .10000E-03    1.6941        .19984E-06** at limit **
  12  Prefactor     .10000E-03    2.5223        .40149E-06** at limit **
  13  Prefactor     2.6775        4.4181       -.89804E-08   -.23550E-04
  14  Prefactor     3.7464        4.2990        .25642E-06    .30764E-04
  15  Prefactor     65.903        134.94       -.90802E-05   -.85620E-04
  16  Prefactor     .10000E-03    13.670        .19766E-06** at limit **
  17  Prefactor     .10000E-03    17.754        .29223E-06** at limit **
  18  Prefactor     .10000E-03    20.171        .51406E-06** at limit **
  19  Normalizat    1.0092        .24318        .11361E-04   -.50029E-03
  20  Prefactor     1.0546        .11702       -.59865E-05   -.50426E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.7803
  norm       = 6.48857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.43066
  Prefactor  = 0.0001
  norm       = 5.26099
  Prefactor  = 15.6084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67755
  Prefactor  = 3.74645
  Prefactor  = 65.903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00919
  Prefactor  = 1.0546
 **********
 **   18 **HESSE 
 **********

 FCN=   9530.693     FROM HESSE     STATUS=OK           293 CALLS     2332 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7803        1.9909        .85693E-04   -1.5271    
   2  norm          6.4886        7.8542        .15754E-03   -1.5198    
   3  Prefactor     .10000E-03    20.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.6543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4307        14.277        .17240E-03   -1.5242    
   8  Prefactor     .10000E-03    7.1412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2610        3.6631        .14530E-03   -1.5249    
  10  Prefactor     15.608        16.890        .10140E-03   -1.4918    
  11  Prefactor     .10000E-03    6.3154        .23357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5314        .15144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6775        4.4043        .24915E-03   -1.5381    
  14  Prefactor     3.7464        4.2956        .20858E-03   -1.5321    
  15  Prefactor     65.903        136.08        .24610E-03   -1.4083    
  16  Prefactor     .10000E-03    13.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.482        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0092        .24014        .35267E-03   -.92723    
  20  Prefactor     1.0546        .11707        .17485E-03   -.90931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73013e-10
Minuit parameter uncertainties:
  1  1.99097
  2  7.85546
  3  0.000164497
  4  5.60075e-05
  5  5.6758e-05
  6  4.97453e-05
  7  14.2858
  8  3.89279e-05
  9  3.66322
  10  16.8947
  11  3.99331e-05
  12  1.32046e-05
  13  4.40481
  14  4.29591
  15  136.729
  16  1.13551e-05
  17  2.7413e-05
  18  7.82956e-05
  19  0.240395
  20  0.117098
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.993e-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:  1.055e+00  1.171e-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.009e+00  2.404e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125146/likelihoodResults_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.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) = 9530.69347089
delta logL = -0.000754100155973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9530.69271336
delta logL = 3.43393367075e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6603       1.0000          .0000       10.000    
     3 'Normalizat'    1.0091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0547       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=   9530.142     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      268 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12237        1.6797        .76301E-02    .43697E-02
   2  Index         4.8224        2.8698        .13926        .21254E-03
   3  Normalizat    .93454        .37058E-01    .82420E-01   -.46031E-04
   4  Prefactor     1.0774        .18830E-01    .39645E-01   -.25151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.122367
  Index      = 4.82245
  Normalizat = 0.934541
  Prefactor  = 1.07736
 **********
 **   18 **HESSE 
 **********

 FCN=   9530.142     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12237        6.2909        .35055E-03   -1.5638    
   2  Index         4.8224        7.4108        .82740E-02   -.35518E-01
   3  Normalizat    .93454        .15868        .36486E-03   -.95257    
   4  Prefactor     1.0774        .79043E-01    .17316E-03   -.90193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.8596e-07
Minuit parameter uncertainties:
  1  1.75424
  2  7.76546
  3  0.158763
  4  0.0790517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125146': 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) = 9530.14205429
delta logL = 0.55066250754

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.224e-01  1.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  4.822e+00  7.765e+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:  1.077e+00  7.905e-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:  9.345e-01  1.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 4.82 +/- 7.77
Photon Flux (Free Index): 5.62e-08 +/- 6.38e-08
Energy Flux (Free Index): 7.58e-06 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/125146/cmap_HighResolution_585100801_585360001_4FGL_J1045.8-2928_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='7.58e-06', dlogl='5.51e-01', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-09-02 11:46:22.864000', photon_index_error2='7.77', photon_index2='4.82', ts='-0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.92e-08', energy_flux_error2='1.24e-05', EG='1.01', time_epoch_completed='1630608382.86', return_code='0', job_id='125146', GAL2='1.08', EG2='0.93', return_code2='102', photon_flux_error2='6.38e-08', ts2='1.20', photon_index='2.54' WHERE bin_id='1334' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 125146: <4FGL_J1045.8-2928_daily_bin1334> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1334> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:25 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:32:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 11:32:06 2021
Terminated at Thu Sep  2 11:46:23 2021
Results reported at Thu Sep  2 11:46:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1334 161.468 -29.4795 585100801 585360001 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            898 sec.

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

