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


Performing analysis on: 4FGL_J1059.2-1134_daily_bin468
RA = 164.806, Dec = -11.572
tmin = 360633601, tmax = 360892801
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='398051', job_status='RUN', time_executed='2021-09-03 02:06:40.110010', time_epoch_executed='1630660000.11' WHERE source_name='4FGL J1059.2-1134' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398051

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398051/ft1_4FGL_J1059.2-1134_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398051/ft1_4FGL_J1059.2-1134_daily_bin468.fits outfile=/scratch/kocevski/398051/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin468.fits ra=164.806 dec=-11.572 rad=12.0 tmin=360633601.0 tmax=360892801.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.42
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.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/398051/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/398051/ltcube_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.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/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits
.....................!
real 17.46
user 17.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/398051/ltcube_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.fits outfile=/scratch/kocevski/398051/expmap_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.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/398051/ltcube_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.fits
.....................!
real 194.55
user 189.24
sys 4.72

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/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits scfile=/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits outfile=/scratch/kocevski/398051/cmap_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits scfile=/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits outfile=/scratch/kocevski/398051/cmap_HighResolution_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/398051/Model_4FGL_J1059.2-1134_daily_bin468.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/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits.....................!
real 52.92
user 51.23
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits', '/scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits', expMap='/scratch/kocevski/398051/expmap_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.fits', expCube='/scratch/kocevski/398051/ltcube_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/398051/Model_4FGL_J1059.2-1134_daily_bin468.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/398051/ft1_filtered_4FGL_J1059.2-1134_daily_bin468.fits
Spacecraft file(s): /scratch/kocevski/398051/ft2_4FGL_J1059.2-1134_daily_bin468.fits
Exposure map: /scratch/kocevski/398051/expmap_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.fits
Exposure cube: /scratch/kocevski/398051/ltcube_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/398051/Model_4FGL_J1059.2-1134_daily_bin468.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) = 5224.58327435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3184       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.153       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.726       1.0000         .10000E-03   10000.    
    15 'norm      '    18.742       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89278       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1048       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=   5224.580     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1837 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3184        9.9057       -.10413E-05   -.18723E-03
   2  Prefactor     .10000E-03    3.4162       -.11409E-07** at limit **
   3  norm          19.998        9.8559       -.12965E-06    .82072E-05
   4  Prefactor     .10000E-03    9.1341        .14064E-06** at limit **
   5  Prefactor     .10000E-03    38.545       -.22863E-04** at limit **
   6  Prefactor     .10000E-03    17.333        .31369E-05** at limit **
   7  Prefactor     .10000E-03    4.5340        .12541E-07** at limit **
   8  Prefactor     .10000E-03    3.9333        .12606E-06** at limit **
   9  Prefactor     .10000E-03    89.956       -.63516E-04** at limit **
  10  norm          .10000E-03    13.129       -.11896E-05** at limit **
  11  Prefactor     54.149        60.250       -.37670E-05    .19380E-05
  12  norm          3.9574        1.7904        .44037E-07   -.19379E-03
  13  Prefactor     .10000E-03    3.8457        .30749E-06** at limit **
  14  Prefactor     38.726        15.634       -.24348E-06   -.22720E-03
  15  norm          18.742        21.592        .20766E-05    .67156E-05
  16  Prefactor     23.822        36.856       -.10476E-04   -.46654E-05
  17  Prefactor     .10000E-03    59.130        .67256E-04** at limit **
  18  Normalizat    .89254        .24577        .16770E-05   -.70806E-04
  19  Prefactor     1.1049        .16497       -.64932E-07   -.84403E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31839
  Prefactor  = 0.0001
  norm       = 19.9984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.1492
  norm       = 3.95743
  Prefactor  = 0.0001
  Prefactor  = 38.7256
  norm       = 18.742
  Prefactor  = 23.822
  Prefactor  = 0.000100001
  Normalizat = 0.892544
  Prefactor  = 1.10493
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.580     FROM HESSE     STATUS=OK           262 CALLS     2099 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3184        9.8971        .22222E-03   -1.5344    
   2  Prefactor     .10000E-03    3.4450        .13047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.998        9.8624        .89566E-04   -1.4813    
   4  Prefactor     .10000E-03    9.1350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5433        .15031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0176        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    90.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.149        60.275        .54506E-04   -1.4235    
  12  norm          3.9574        1.7888        .61478E-04   -1.5310    
  13  Prefactor     .10000E-03    3.8858        .13804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.726        15.639        .64407E-04   -1.4463    
  15  norm          18.742        21.590        .46257E-03   -1.4842    
  16  Prefactor     23.822        36.880        .82051E-04   -1.4731    
  17  Prefactor     .10000E-03    59.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .89254        .28560        .33246E-03   -.96723    
  19  Prefactor     1.1049        .19246        .20554E-03   -.89309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77161e-10
Minuit parameter uncertainties:
  1  9.90195
  2  2.62685e-06
  3  9.86323
  4  5.07712e-07
  5  1.32082e-06
  6  3.36006e-06
  7  2.01974e-06
  8  1.77143e-05
  9  0.000154356
  10  6.82375e-05
  11  60.3426
  12  1.78887
  13  6.52344e-05
  14  15.6407
  15  21.5992
  16  36.9151
  17  0.000565324
  18  0.286087
  19  0.19258
Done.

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

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  2.000e+01  9.863e+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:  1.105e+00  1.926e-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:  8.925e-01  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.72
Ra Dec: 164.806 -11.572
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 9.77e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 2.41e-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) = 5224.54364229
delta logL = 0.0360135262881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5224.54197725
delta logL = 0.0376785697727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.657       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2094       1.0000          .0000       5.0000    
     3 'Normalizat'    .87815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1109       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5224.542     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.657        9.8079        .90337E-04    .20467E-02
   2  alpha         2.2095        .44645        .10687E-01    .27150E-03
   3  Normalizat    .87830        .28498        .33484E-03   -.84677E-04
   4  Prefactor     1.1108        .19231        .20506E-03   -.16222E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6567
  alpha      = 2.2095
  Normalizat = 0.878304
  Prefactor  = 1.11077
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.542     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.657        9.7400        .18067E-04   -1.4821    
   2  alpha         2.2095        .44312        .42748E-03   -.11646    
   3  Normalizat    .87830        .28516        .13394E-04   -.97227    
   4  Prefactor     1.1108        .19243        .41012E-04   -.89123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46875e-09
Minuit parameter uncertainties:
  1  9.74083
  2  0.445508
  3  0.285651
  4  0.19255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398051': 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) = 5224.54197674
delta logL = 0.0376790764994

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  1.966e+01  9.741e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.209e+00  4.455e-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:  1.111e+00  1.925e-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:  8.783e-01  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.76
Ra Dec: 164.806 -11.572
Photon Index (Free Index): 2.21 +/- 0.45
Photon Flux (Free Index): 1.09e-07 +/- 6.64e-08
Energy Flux (Free Index): 4.48e-05 +/- 2.53e-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/398051/cmap_HighResolution_360633601_360892801_4FGL_J1059.2-1134_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.77e-08', energy_flux2='4.48e-05', photon_flux_error='4.82e-08', dlogl='3.77e-02', energy_flux='4.89e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-03 02:15:36.303904', photon_index_error2='0.45', photon_index2='2.21', ts='10.72', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.53e-05', EG='0.89', time_epoch_completed='1630660536.3', return_code='0', job_id='398051', GAL2='1.11', EG2='0.88', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='6.64e-08', ts2='10.76', photon_index='2.09' WHERE bin_id='468' AND source_name='4FGL J1059.2-1134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 398051: <4FGL_J1059.2-1134_daily_bin468> in cluster <slac> Done

Job <4FGL_J1059.2-1134_daily_bin468> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep  3 02:00:12 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:02:32 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:02:32 2021
Terminated at Fri Sep  3 02:15:36 2021
Results reported at Fri Sep  3 02:15:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.2-1134_daily_bin468 164.806 -11.572 360633601 360892801 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 :                                   533.00 sec.
    Max Memory :                                 1107 MB
    Average Memory :                             256.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            924 sec.

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

