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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1290
RA = 161.468, Dec = -29.4795
tmin = 573696001, tmax = 573955201
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='125069', job_status='RUN', time_executed='2021-09-02 11:31:59.252850', time_epoch_executed='1630607519.25' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125069

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125069/ft1_4FGL_J1045.8-2928_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125069/ft1_4FGL_J1045.8-2928_daily_bin1290.fits outfile=/scratch/kocevski/125069/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1290.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=573696001.0 tmax=573955201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.43
user 4.16
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125069/ft1_filtered_4FGL_J1045.8-2928_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/125069/ltcube_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.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/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits
.....................!
real 11.85
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125069/ft1_filtered_4FGL_J1045.8-2928_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/125069/ltcube_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.fits outfile=/scratch/kocevski/125069/expmap_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.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/125069/ltcube_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.fits
.....................!
real 191.84
user 186.34
sys 4.83

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/125069/ft1_filtered_4FGL_J1045.8-2928_daily_bin1290.fits scfile=/scratch/kocevski/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits outfile=/scratch/kocevski/125069/cmap_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125069/ft1_filtered_4FGL_J1045.8-2928_daily_bin1290.fits scfile=/scratch/kocevski/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits outfile=/scratch/kocevski/125069/cmap_HighResolution_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125069/ft1_filtered_4FGL_J1045.8-2928_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/125069/ft2_4FGL_J1045.8-2928_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125069/Model_4FGL_J1045.8-2928_daily_bin1290.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/125069/ft1_filtered_4FGL_J1045.8-2928_daily_bin1290.fits.....................!
real 96.88
user 93.92
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8018       1.0000         .10000E-03   10000.    
     2 'norm      '    10.277       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14116E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.146       1.0000         .10000E-03   10000.    
     6 'norm      '    .80657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23932E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5838       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26599E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22559E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49687E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19468E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3155       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79982       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=   9833.021     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1816 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8017        1.1031       -.27917E-07   -.36561E-03
   2  norm          10.264        6.5674       -.28976E-06    .18619E-04
   3  Prefactor     .10000E-03    18.538       -.70218E-05** at limit **
   4  Prefactor     .10000E-03    2.7769       -.55725E-07** at limit **
   5  norm          19.086        9.2736        .10281E-05    .31557E-03
   6  norm          .83364        3.5926       -.72943E-06   -.73969E-04
   7  Prefactor     .10000E-03    11.728        .11301E-05** at limit **
   8  Prefactor     9.6410        10.270       -.56784E-05   -.90515E-04
   9  norm          .10000E-03    1.7605        .47442E-06** at limit **
  10  Prefactor     .10000E-03    4.7834       -.22491E-07** at limit **
  11  Prefactor     .10000E-03    2.5909        .34921E-06** at limit **
  12  Prefactor     .10000E-03    5.1530        .12421E-06** at limit **
  13  Prefactor     .30267E-01    1.5383        .14907E-06   -.51288E-03
  14  Prefactor     .10000E-03    2.1712       -.14691E-07** at limit **
  15  Prefactor     .10000E-03    75.382       -.39362E-06** at limit **
  16  Prefactor     .10000E-03    29.722        .10802E-04** at limit **
  17  Prefactor     2.3700        7.4151        .99442E-06   -.42887E-03
  18  Prefactor     .10000E-03    9.3155       -.82708E-06** at limit **
  19  Normalizat    1.3155        .17290        .47959E-06    .31358E-05
  20  Prefactor     .79986        .86191E-01    .60267E-07    .95121E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8017
  norm       = 10.2636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0861
  norm       = 0.833641
  Prefactor  = 0.0001
  Prefactor  = 9.64097
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0302667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37004
  Prefactor  = 0.0001
  Normalizat = 1.31553
  Prefactor  = 0.799856
 **********
 **   18 **HESSE 
 **********

 FCN=   9833.021     FROM HESSE     STATUS=OK           299 CALLS     2115 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8017        1.0974        .78996E-04   -1.5440    
   2  norm          10.264        6.5673        .12499E-03   -1.5067    
   3  Prefactor     .10000E-03    18.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7798        .16137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.086        9.3400        .91536E-04   -1.4834    
   6  norm          .83364        17.700        .32488E-02   -1.5525    
   7  Prefactor     .10000E-03    11.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6410        10.307        .12945E-03   -1.5087    
   9  norm          .10000E-03    1.8314        .25762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7094        .31169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .30267E-01    3.3150        .40597E-01   -1.5673    
  14  Prefactor     .10000E-03    2.1894        .14268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    75.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.690        .21161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3700        7.3633        .26247E-03   -1.5400    
  18  Prefactor     .10000E-03    9.3176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3155        .20629        .28444E-03   -.83104    
  20  Prefactor     .79986        .10307        .18039E-03   -.99734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23729e-07
Minuit parameter uncertainties:
  1  1.0974
  2  6.56773
  3  1.8629e-05
  4  1.03678e-06
  5  9.34071
  6  7.68469
  7  4.24353e-05
  8  10.3094
  9  6.13796e-05
  10  2.90869e-06
  11  5.84641e-05
  12  2.06455e-05
  13  0.632502
  14  7.67134e-07
  15  1.40686e-05
  16  0.000118935
  17  7.36611
  18  1.07546e-06
  19  0.206419
  20  0.103092
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  5.846e-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:  7.999e-01  1.031e-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.316e+00  2.064e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125069/likelihoodResults_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.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) = 9833.02281205
delta logL = -0.00176268536597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9833.02104957
delta logL = -2.05500327866e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5441       1.0000          .0000       10.000    
     3 'Normalizat'    1.3155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79990       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=   9833.021     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2972        .90712E-02** at limit **
   2  Index         2.5439        5.7093        .50000        .24506E-06
   3  Normalizat    1.3155        .49931E-02    .64303E-01    .58450E-05
   4  Prefactor     .79986        .25511E-02    .43716E-01    .26570E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54395
  Normalizat = 1.31553
  Prefactor  = 0.799856
 **********
 **   18 **HESSE 
 **********

 FCN=   9833.021     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    200.22        .31171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5439        8.1922        .50000       -.51348    
   3  Normalizat    1.3155        .41761E-01    .28444E-03   -.83104    
   4  Prefactor     .79986        .21339E-01    .18039E-03   -.99734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58908e-09
Minuit parameter uncertainties:
  1  2.77691e-05
  2  617.403
  3  0.0417617
  4  0.0213396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125069': 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) = 9833.02104937
delta logL = 7.09405867383e-11

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.777e-05  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.544e+00  6.174e+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:  7.999e-01  2.134e-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.316e+00  4.176e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/125069/cmap_HighResolution_573696001_573955201_4FGL_J1045.8-2928_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-02 11:45:16.063910', job_id='125069', GAL2='0.80', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630608316.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='7.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1290' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:45:16 PDT 2021


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

Job <4FGL_J1045.8-2928_daily_bin1290> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:20 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:31:38 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:31:38 2021
Terminated at Thu Sep  2 11:45:16 2021
Results reported at Thu Sep  2 11:45:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1290 161.468 -29.4795 573696001 573955201 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 :                             363.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            836 sec.

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

