/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 60 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.5+2057_daily_bin186
RA = 164.878, Dec = 20.9524
tmin = 287539201, tmax = 287798401
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='410420', job_status='RUN', time_executed='2021-09-03 02:33:20.616116', time_epoch_executed='1630661600.62' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410420/ft1_4FGL_J1059.5+2057_daily_bin186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410420/ft1_4FGL_J1059.5+2057_daily_bin186.fits outfile=/scratch/kocevski/410420/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin186.fits ra=164.878 dec=20.9524 rad=12.0 tmin=287539201.0 tmax=287798401.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.77
user 3.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.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/410420/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin186.fits evtable="EVENTS" outfile="/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.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.66
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits" evtable="EVENTS" scfile=/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits sctable="SC_DATA" outfile=/scratch/kocevski/410420/ltcube_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.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/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits
.....................!
real 16.56
user 16.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits sctable="SC_DATA" expcube=/scratch/kocevski/410420/ltcube_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.fits outfile=/scratch/kocevski/410420/expmap_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.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/410420/ltcube_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.fits
.....................!
real 194.59
user 187.78
sys 5.02

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits scfile=/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits outfile=/scratch/kocevski/410420/cmap_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.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.878 yref=20.9524 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits scfile=/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits outfile=/scratch/kocevski/410420/cmap_HighResolution_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.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.878 yref=20.9524 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.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410420/Model_4FGL_J1059.5+2057_daily_bin186.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/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits.....................!
real 53.69
user 52.26
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits', '/scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits', expMap='/scratch/kocevski/410420/expmap_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.fits', expCube='/scratch/kocevski/410420/ltcube_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410420/Model_4FGL_J1059.5+2057_daily_bin186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410420/ft1_filtered_4FGL_J1059.5+2057_daily_bin186.fits
Spacecraft file(s): /scratch/kocevski/410420/ft2_4FGL_J1059.5+2057_daily_bin186.fits
Exposure map: /scratch/kocevski/410420/expmap_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.fits
Exposure cube: /scratch/kocevski/410420/ltcube_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410420/Model_4FGL_J1059.5+2057_daily_bin186.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) = 5734.15371234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99831E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0230       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.524       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10697E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16251E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93282       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5734.123     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2086 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7366        9.7161        .61546E-06   -.82765E-04
   2  Prefactor     .10000E-03    251.36        .22892E-04** at limit **
   3  Prefactor     3.3669        6.9731       -.33243E-06   -.35588E-03
   4  Prefactor     .10000E-03    1.3562       -.83001E-07** at limit **
   5  Prefactor     12.622        9.6189        .72823E-06   -.89346E-04
   6  Prefactor     .10000E-03    7.9804       -.25124E-06** at limit **
   7  Prefactor     9.0295        12.472        .37681E-05   -.39640E-04
   8  Prefactor     .10000E-03    3.9287       -.46542E-07** at limit **
   9  Prefactor     18.529        18.242        .11231E-05   -.27580E-04
  10  norm          .10000E-03    .61326       -.39377E-07** at limit **
  11  Prefactor     13.680        4.2412        .17552E-06   -.59518E-04
  12  Prefactor     .10000E-03    5.8610       -.99633E-07** at limit **
  13  norm          .10000E-03    18.395       -.26198E-05** at limit **
  14  norm          .10000E-03    4.8383        .46655E-08** at limit **
  15  Prefactor     .10000E-03    3.1315        .37663E-07** at limit **
  16  Prefactor     .10000E-03    65.324       -.23361E-05** at limit **
  17  Prefactor     28.499        42.463        .23558E-04    .89234E-05
  18  Prefactor     .10000E-03    19.292        .13318E-05** at limit **
  19  Normalizat    .93279        .19540       -.31263E-05    .37875E-04
  20  Prefactor     1.3103        .20098        .30928E-06   -.87817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.73657
  Prefactor  = 0.0001
  Prefactor  = 3.36689
  Prefactor  = 0.0001
  Prefactor  = 12.6223
  Prefactor  = 0.0001
  Prefactor  = 9.02947
  Prefactor  = 0.0001
  Prefactor  = 18.5286
  norm       = 0.0001
  Prefactor  = 13.6801
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4991
  Prefactor  = 0.0001
  Normalizat = 0.932793
  Prefactor  = 1.31026
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.123     FROM HESSE     STATUS=OK           289 CALLS     2375 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7366        9.7165        .13560E-03   -1.5117    
   2  Prefactor     .10000E-03    261.74        .36292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3669        6.9117        .22080E-03   -1.5341    
   4  Prefactor     .10000E-03    2.2124        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.622        9.6113        .11277E-03   -1.4997    
   6  Prefactor     .10000E-03    8.0616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0295        12.392        .13343E-03   -1.5107    
   8  Prefactor     .10000E-03    3.9318        .14656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.529        18.207        .93059E-04   -1.4847    
  10  norm          .10000E-03    .63008        .11563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.680        4.2478        .82637E-04   -1.4968    
  12  Prefactor     .10000E-03    6.0452        .35798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.8566        .16266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1344        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.499        42.373        .75141E-04   -1.4640    
  18  Prefactor     .10000E-03    19.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93279        .22655        .27112E-03   -.95317    
  20  Prefactor     1.3103        .23462        .25371E-03   -.83003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43869e-10
Minuit parameter uncertainties:
  1  9.71824
  2  0.000605503
  3  6.91329
  4  9.53924e-06
  5  9.61245
  6  8.3345e-05
  7  12.3951
  8  2.15992e-06
  9  18.212
  10  1.03587e-06
  11  4.24793
  12  1.41488e-06
  13  0.000384603
  14  7.57075e-06
  15  1.00384e-06
  16  0.00031951
  17  42.4181
  18  2.11127e-05
  19  0.226784
  20  0.234814
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.853e+01  1.821e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.310e+00  2.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.328e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.42e-05

TS (Fixed Index): 1.85
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410420/likelihoodResults_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.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): 0
logL (Free Index) = 5734.05665163
delta logL = 0.0667397201387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5734.05450274
delta logL = 0.068888610569

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5734.055     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      256 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.821        313.37        .26935E-02    .73987E-03
   2  Index         2.7253        6.3626        .12249        .24562E-03
   3  Normalizat    .91528        .86543E-01    .45095E-01    .99991E-05
   4  Prefactor     1.3227        .76876E-01    .57152E-01    .80940E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.821
  Index      = 2.72528
  Normalizat = 0.91528
  Prefactor  = 1.32269
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.055     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.821        22.921        .10774E-03   -1.4964    
   2  Index         2.7253        1.0459        .68943E-02   -.47231    
   3  Normalizat    .91528        .22422        .27337E-03   -.95925    
   4  Prefactor     1.3227        .23860        .25271E-03   -.82635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05327e-10
Minuit parameter uncertainties:
  1  22.9359
  2  1.05575
  3  0.224445
  4  0.238797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410420': 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) = 5734.05450264
delta logL = 0.0688887193146

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.382e+01  2.294e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.725e+00  1.056e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.323e+00  2.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.153e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.73 +/- 1.06
Photon Flux (Free Index): 5.83e-08 +/- 5.81e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.23e-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/410420/cmap_HighResolution_287539201_287798401_4FGL_J1059.5+2057_daily_bin186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='1.38e-05', photon_flux_error='4.42e-08', dlogl='6.89e-02', energy_flux='1.45e-05', photon_flux2='5.83e-08', job_status='DONE', time_completed='2021-09-03 02:43:34.236680', photon_index_error2='1.06', photon_index2='2.73', ts='1.85', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.23e-05', EG='0.93', time_epoch_completed='1630662214.24', return_code='0', job_id='410420', GAL2='1.32', EG2='0.92', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.81e-08', ts2='2.01', photon_index='2.41' WHERE bin_id='186' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:43:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 410420: <4FGL_J1059.5+2057_daily_bin186> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin186> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 02:31:50 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:31:59 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:31:59 2021
Terminated at Fri Sep  3 02:43:36 2021
Results reported at Fri Sep  3 02:43:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin186 164.878 20.9524 287539201 287798401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1059.5+2057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            706 sec.

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

