/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 183 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.2-1134_daily_bin388
RA = 164.806, Dec = -11.572
tmin = 339897601, tmax = 340156801
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='397927', job_status='RUN', time_executed='2021-09-03 02:03:27.634659', time_epoch_executed='1630659807.63' WHERE source_name='4FGL J1059.2-1134' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397927

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397927/ft1_4FGL_J1059.2-1134_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397927/ft1_4FGL_J1059.2-1134_daily_bin388.fits outfile=/scratch/kocevski/397927/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin388.fits ra=164.806 dec=-11.572 rad=12.0 tmin=339897601.0 tmax=340156801.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.33
user 3.13
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.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/397927/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin388.fits evtable="EVENTS" outfile="/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/397927/ltcube_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.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/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits
.....................!
real 14.94
user 14.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/397927/ltcube_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.fits outfile=/scratch/kocevski/397927/expmap_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.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/397927/ltcube_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.fits
.....................!
real 194.42
user 189.81
sys 4.12

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

Setting source of interest to:
4FGL J1059.2-1134 @ 164.806 -11.572

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits scfile=/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits outfile=/scratch/kocevski/397927/cmap_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.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=164.806 yref=-11.572 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits scfile=/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits outfile=/scratch/kocevski/397927/cmap_HighResolution_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.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=164.806 yref=-11.572 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397927/Model_4FGL_J1059.2-1134_daily_bin388.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/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits.....................!
real 86.16
user 84.68
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits', '/scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits', expMap='/scratch/kocevski/397927/expmap_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.fits', expCube='/scratch/kocevski/397927/ltcube_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397927/Model_4FGL_J1059.2-1134_daily_bin388.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.2-1134'

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  8.168e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  4.525e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  6.976e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/397927/ft1_filtered_4FGL_J1059.2-1134_daily_bin388.fits
Spacecraft file(s): /scratch/kocevski/397927/ft2_4FGL_J1059.2-1134_daily_bin388.fits
Exposure map: /scratch/kocevski/397927/expmap_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.fits
Exposure cube: /scratch/kocevski/397927/ltcube_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397927/Model_4FGL_J1059.2-1134_daily_bin388.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) = 9615.10248478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92767       1.0000         .10000E-03   10000.    
     3 'norm      '    29.666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13591E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7597       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12928E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.437       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2430       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9615.086     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1902 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7368        4.1678        .46399E-07   -.48567E-05
   2  Prefactor     .93318        5.5311        .18477E-05   -.19368E-03
   3  norm          29.669        8.0125        .55464E-07   -.33354E-04
   4  Prefactor     .10000E-03    7.1596       -.48924E-08** at limit **
   5  Prefactor     .10000E-03    25.142       -.73155E-06** at limit **
   6  Prefactor     .10000E-03    12.174       -.11028E-05** at limit **
   7  Prefactor     .10000E-03    3.5911        .38720E-07** at limit **
   8  Prefactor     6.1188        4.3377        .52687E-06    .93354E-03
   9  Prefactor     9.6547        57.653        .11419E-04    .10165E-03
  10  norm          6.8845        6.4422       -.46252E-06   -.26033E-04
  11  Prefactor     .10000E-03    13.201        .76906E-06** at limit **
  12  norm          12.028        1.7774        .22187E-07   -.13929E-03
  13  Prefactor     .10000E-03    3.6469       -.20562E-05** at limit **
  14  Prefactor     .10000E-03    8.3852        .33508E-07** at limit **
  15  norm          18.480        23.443       -.14787E-05    .11034E-03
  16  Prefactor     .10000E-03    26.019        .72227E-07** at limit **
  17  Prefactor     .10000E-03    31.055        .11467E-05** at limit **
  18  Normalizat    1.2431        .18459       -.16670E-05   -.15534E-03
  19  Prefactor     .96365        .12302        .28771E-06   -.23814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.73683
  Prefactor  = 0.933181
  norm       = 29.6685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.11884
  Prefactor  = 9.65467
  norm       = 6.88453
  Prefactor  = 0.0001
  norm       = 12.0284
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 18.4801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24313
  Prefactor  = 0.963654
 **********
 **   18 **HESSE 
 **********

 FCN=   9615.086     FROM HESSE     STATUS=OK           268 CALLS     2170 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7368        4.1690        .16589E-03   -1.5229    
   2  Prefactor     .93318        12.103        .40964E-02   -1.5515    
   3  norm          29.669        8.0256        .73559E-04   -1.4618    
   4  Prefactor     .10000E-03    7.1634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1188        4.5033        .81145E-03   -1.5213    
   9  Prefactor     9.6547        60.995        .12827E-03   -1.5086    
  10  norm          6.8845        6.4324        .15289E-03   -1.5183    
  11  Prefactor     .10000E-03    13.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.028        1.7781        .48419E-04   -1.5014    
  13  Prefactor     .10000E-03    4.6159        .26899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.480        22.732        .93278E-04   -1.4848    
  16  Prefactor     .10000E-03    26.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2431        .21619        .29556E-03   -.85280    
  19  Prefactor     .96365        .14558        .22694E-03   -.93951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53321e-08
Minuit parameter uncertainties:
  1  4.16926
  2  6.72282
  3  8.02585
  4  2.77933e-06
  5  7.32504e-05
  6  0.000121129
  7  3.71915e-06
  8  4.50359
  9  48.6069
  10  6.43303
  11  6.49615e-05
  12  1.77807
  13  0.000284229
  14  1.02369e-05
  15  22.7422
  16  0.000101347
  17  0.000162849
  18  0.216345
  19  0.145634
Done.

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

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  2.967e+01  8.026e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  4.525e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  6.976e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.637e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.243e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.32
Ra Dec: 164.806 -11.572
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 3.92e-08
Energy Flux (Fixed Index): 7.25e-05 +/- 1.96e-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) = 9614.97305388
delta logL = 0.112497606015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9614.95798887
delta logL = 0.127562623242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.921       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9614       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9614.958     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      225 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.921        9.4860        .18311E-02   -.34408E-02
   2  alpha         1.9614        .26754        .21512       -.30590E-04
   3  Normalizat    1.2638        .17932        .66356E-01   -.21187E-03
   4  Prefactor     .95528        .12180        .45705E-01   -.30208E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.9214
  alpha      = 1.96144
  Normalizat = 1.26379
  Prefactor  = 0.95528
 **********
 **   18 **HESSE 
 **********

 FCN=   9614.958     FROM HESSE     STATUS=OK            29 CALLS      254 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.921        8.2562        .73245E-04   -1.4613    
   2  alpha         1.9614        .24862        .88762E-02   -.21713    
   3  Normalizat    1.2638        .21312        .29355E-03   -.84654    
   4  Prefactor     .95528        .14457        .22783E-03   -.94235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65084e-09
Minuit parameter uncertainties:
  1  8.25649
  2  0.249047
  3  0.213264
  4  0.144625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397927': 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) = 9614.95798817
delta logL = 0.127563314458

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  2.992e+01  8.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  1.961e+00  2.490e-01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  4.525e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  6.976e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.553e-01  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.264e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.37
Ra Dec: 164.806 -11.572
Photon Index (Free Index): 1.96 +/- 0.25
Photon Flux (Free Index): 1.29e-07 +/- 4.66e-08
Energy Flux (Free Index): 8.27e-05 +/- 3.29e-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/397927/cmap_HighResolution_339897601_340156801_4FGL_J1059.2-1134_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='8.27e-05', photon_flux_error='3.92e-08', dlogl='1.28e-01', energy_flux='7.25e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-03 02:15:31.998044', photon_index_error2='0.25', photon_index2='1.96', ts='47.32', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.29e-05', EG='1.24', time_epoch_completed='1630660532.0', return_code='0', job_id='397927', GAL2='0.96', EG2='1.26', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='4.66e-08', ts2='47.37', photon_index='2.09' WHERE bin_id='388' AND source_name='4FGL J1059.2-1134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 397927: <4FGL_J1059.2-1134_daily_bin388> in cluster <slac> Done

Job <4FGL_J1059.2-1134_daily_bin388> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep  3 01:59:55 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:00:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 02:00:09 2021
Terminated at Fri Sep  3 02:15:32 2021
Results reported at Fri Sep  3 02:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.2-1134_daily_bin388 164.806 -11.572 339897601 340156801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1059.2-1134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            937 sec.

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

