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


Performing analysis on: 4FGL_J1026.9-1749_daily_bin1491
RA = 156.742, Dec = -17.8218
tmin = 625795201, tmax = 626054401
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='874736', job_status='RUN', time_executed='2021-09-01 21:35:13.849814', time_epoch_executed='1630557313.85' WHERE source_name='4FGL J1026.9-1749' and cadence='daily' and bin_id='1491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874736/ft1_4FGL_J1026.9-1749_daily_bin1491.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874736/ft1_4FGL_J1026.9-1749_daily_bin1491.fits outfile=/scratch/kocevski/874736/ft1_filteredMKT_4FGL_J1026.9-1749_daily_bin1491.fits ra=156.742 dec=-17.8218 rad=12.0 tmin=625795201.0 tmax=626054401.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.58
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.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/874736/ft1_filteredMKT_4FGL_J1026.9-1749_daily_bin1491.fits evtable="EVENTS" outfile="/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits" evtable="EVENTS" scfile=/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits sctable="SC_DATA" outfile=/scratch/kocevski/874736/ltcube_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.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/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits
.....................!
real 17.26
user 16.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits sctable="SC_DATA" expcube=/scratch/kocevski/874736/ltcube_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.fits outfile=/scratch/kocevski/874736/expmap_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.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/874736/ltcube_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.fits
.....................!
real 192.19
user 186.99
sys 4.79

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1026.9-1749 @ 156.742 -17.8218

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits scfile=/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits outfile=/scratch/kocevski/874736/cmap_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.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=156.742 yref=-17.8218 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.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits scfile=/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits outfile=/scratch/kocevski/874736/cmap_HighResolution_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.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=156.742 yref=-17.8218 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/874736/Model_4FGL_J1026.9-1749_daily_bin1491.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/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits.....................!
real 57.16
user 55.86
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits', '/scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits', expMap='/scratch/kocevski/874736/expmap_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.fits', expCube='/scratch/kocevski/874736/ltcube_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/874736/Model_4FGL_J1026.9-1749_daily_bin1491.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1026.9-1749'

4FGL J1026.9-1749
   Spectrum: PowerLaw
273    Prefactor:  2.731e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.948e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  2.127e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/874736/ft1_filtered_4FGL_J1026.9-1749_daily_bin1491.fits
Spacecraft file(s): /scratch/kocevski/874736/ft2_4FGL_J1026.9-1749_daily_bin1491.fits
Exposure map: /scratch/kocevski/874736/expmap_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.fits
Exposure cube: /scratch/kocevski/874736/ltcube_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/874736/Model_4FGL_J1026.9-1749_daily_bin1491.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) = 5600.94443055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.531       1.0000         .10000E-03   10000.    
     4 'norm      '    8.5747       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1467       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.2775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.303       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29867E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .79573       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5600.889     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     1156 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.663       -.94776E-08** at limit **
   2  norm          .10000E-03    5.9233        .45877E-08** at limit **
   3  norm          19.533        14.026       -.37731E-06    .10131E-03
   4  norm          8.5744        2.4132       -.40406E-08   -.30620E-03
   5  Prefactor     6.2678        6.1828        .44721E-06   -.37786E-03
   6  Prefactor     3.1757        25.886       -.15354E-04    .66512E-05
   7  Prefactor     .10000E-03    19.252        .73216E-07** at limit **
   8  norm          9.2832        4.9965        .42621E-06   -.44937E-03
   9  Prefactor     .10018E-03    17.279        .55599E-05** at limit **
  10  Prefactor     .10000E-03    3.0024       -.65392E-08** at limit **
  11  norm          13.302        7.8040        .38294E-07   -.11826E-03
  12  Prefactor     11.926        22.235        .11629E-05   -.14360E-03
  13  Prefactor     .10004E-03    149.59       -.88309E-05** at limit **
  14  Normalizat    .79611        .23151        .53932E-06   -.30593E-03
  15  Prefactor     1.0593        .14269        .22915E-06   -.50252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.5334
  norm       = 8.57439
  Prefactor  = 6.26781
  Prefactor  = 3.17568
  Prefactor  = 0.0001
  norm       = 9.28319
  Prefactor  = 0.000100176
  Prefactor  = 0.0001
  norm       = 13.3018
  Prefactor  = 11.9257
  Prefactor  = 0.00010004
  Normalizat = 0.796111
  Prefactor  = 1.0593
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.889     FROM HESSE     STATUS=OK           184 CALLS     1340 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.9749        .17787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.533        14.012        .90629E-04   -1.4824    
   4  norm          8.5744        2.4138        .58416E-04   -1.5122    
   5  Prefactor     6.2678        6.1748        .16034E-03   -1.5207    
   6  Prefactor     3.1757        27.999        .22851E-03   -1.5352    
   7  Prefactor     .10000E-03    19.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.2832        4.9794        .11594E-03   -1.5099    
   9  Prefactor     .10018E-03    97.376        .55464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0338        .12659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.302        7.8123        .10982E-03   -1.4978    
  12  Prefactor     11.926        22.184        .11613E-03   -1.5017    
  13  Prefactor     .10004E-03    147.81        .21392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .79611        .26687        .34197E-03   -1.0021    
  15  Prefactor     1.0593        .16577        .18899E-03   -.90778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47335e-09
Minuit parameter uncertainties:
  1  6.6769e-06
  2  2.58053e-06
  3  14.0147
  4  2.41382
  5  6.17538
  6  18.8704
  7  1.1125e-05
  8  4.97964
  9  0.0082905
  10  1.28385e-06
  11  7.8129
  12  22.1997
  13  0.00489982
  14  0.267309
  15  0.165854
Done.

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

Extracting fit parameters...

4FGL J1026.9-1749
   Spectrum: PowerLaw
273    Prefactor:  6.268e+00  6.175e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.948e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  2.127e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.059e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.961e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 156.742 -17.822
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.98e-05

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): 0
logL (Free Index) = 5600.8271162
delta logL = 0.0620371629675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5600.82413507
delta logL = 0.0650182960926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3637       1.0000          .0000       10.000    
     3 'Normalizat'    .77047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0657       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5600.824     FROM MIGRAD    STATUS=FAILED       101 CALLS      322 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9511        8.9949        .68754E-03   -.45158E-04
   2  Index         2.3660        1.4205        .79079E-02    .54764E-03
   3  Normalizat    .76940        .28646        .34736E-03    .80185E-05
   4  Prefactor     1.0664        .16968        .18841E-03    .47670E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5600.824     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      396 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9511        8.9949        .16988E-03   -1.5263    
   2  Index         2.3660        1.4205        .11491E-02   -.55484    
   3  Normalizat    .76940        .28646        .43958E-03   -1.0121    
   4  Prefactor     1.0664        .16968        .23884E-03   -.90547    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5600.824     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      432 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9511        6.9210        .27501E-04   -.11575E-04
   2  Index         2.3660        1.0981        .15816E-02    .14664E-05
   3  Normalizat    .76940        .27713        .13894E-04   -.65457E-06
   4  Prefactor     1.0664        .16793        .37681E-04   -.78444E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95107
  Index      = 2.36596
  Normalizat = 0.7694
  Prefactor  = 1.06642
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.824     FROM HESSE     STATUS=OK            25 CALLS      457 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9511        6.6991        .11001E-05   -1.5263    
   2  Index         2.3660        1.0624        .63263E-04   -.55484    
   3  Normalizat    .76940        .27616        .27789E-05   -1.0121    
   4  Prefactor     1.0664        .16776        .75362E-05   -.90547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20869e-13
Minuit parameter uncertainties:
  1  6.70008
  2  1.0738
  3  0.276664
  4  0.167848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874736': 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): 0
logL (Free Index) = 5600.82412405
delta logL = 0.065029315424

Extracting fit parameters...

4FGL J1026.9-1749
   Spectrum: PowerLaw
273    Prefactor:  4.951e+00  6.700e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.366e+00  1.074e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  2.127e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.066e+00  1.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  7.694e-01  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 156.742 -17.822
Photon Index (Free Index): 2.37 +/- 1.07
Photon Flux (Free Index): 5.03e-08 +/- 8.50e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.49e-05

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/874736/cmap_HighResolution_625795201_626054401_4FGL_J1026.9-1749_daily_bin1491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='1.73e-05', photon_flux_error='2.51e-08', dlogl='6.50e-02', energy_flux='2.01e-05', photon_flux2='5.03e-08', job_status='DONE', time_completed='2021-09-01 21:45:02.592327', photon_index_error2='1.07', photon_index2='2.37', ts='4.18', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.80', time_epoch_completed='1630557902.59', return_code='0', job_id='874736', GAL2='1.07', EG2='0.77', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='8.50e-08', ts2='4.30', photon_index='1.95' WHERE bin_id='1491' AND source_name='4FGL J1026.9-1749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:45:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 874736: <4FGL_J1026.9-1749_daily_bin1491> in cluster <slac> Done

Job <4FGL_J1026.9-1749_daily_bin1491> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 21:30:49 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:33:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 21:33:12 2021
Terminated at Wed Sep  1 21:45:03 2021
Results reported at Wed Sep  1 21:45:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1026.9-1749_daily_bin1491 156.742 -17.8218 625795201 626054401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1026.9-1749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   486.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            854 sec.

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

