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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin357
RA = 164.878, Dec = 20.9524
tmin = 331862401, tmax = 332121601
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='411927', job_status='RUN', time_executed='2021-09-03 02:38:10.054619', time_epoch_executed='1630661890.05' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411927/ft1_4FGL_J1059.5+2057_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411927/ft1_4FGL_J1059.5+2057_daily_bin357.fits outfile=/scratch/kocevski/411927/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin357.fits ra=164.878 dec=20.9524 rad=12.0 tmin=331862401.0 tmax=332121601.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 6.35
user 4.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411927/ft1_filtered_4FGL_J1059.5+2057_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/411927/ltcube_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.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/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits
.....................!
real 17.46
user 16.85
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411927/ft1_filtered_4FGL_J1059.5+2057_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/411927/ltcube_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.fits outfile=/scratch/kocevski/411927/expmap_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.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/411927/ltcube_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.fits
.....................!
real 197.35
user 188.74
sys 5.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 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/411927/ft1_filtered_4FGL_J1059.5+2057_daily_bin357.fits scfile=/scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits outfile=/scratch/kocevski/411927/cmap_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411927/ft1_filtered_4FGL_J1059.5+2057_daily_bin357.fits scfile=/scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits outfile=/scratch/kocevski/411927/cmap_HighResolution_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/411927/ft1_filtered_4FGL_J1059.5+2057_daily_bin357.fits', '/scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits', expMap='/scratch/kocevski/411927/expmap_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.fits', expCube='/scratch/kocevski/411927/ltcube_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/411927/Model_4FGL_J1059.5+2057_daily_bin357.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/411927/ft1_filtered_4FGL_J1059.5+2057_daily_bin357.fits
Spacecraft file(s): /scratch/kocevski/411927/ft2_4FGL_J1059.5+2057_daily_bin357.fits
Exposure map: /scratch/kocevski/411927/expmap_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.fits
Exposure cube: /scratch/kocevski/411927/ltcube_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/411927/Model_4FGL_J1059.5+2057_daily_bin357.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) = 5536.1829338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85923E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1319       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2636       1.0000         .10000E-03   10000.    
    13 'norm      '    .10491E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.940       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46603E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5546       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92122       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1788       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.

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

 FCN=   5536.178     FROM MIGRAD    STATUS=FAILED       780 CALLS     2732 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5791        .11656E-02** at limit **
   2  Prefactor     .10000E-03    33.448        .18142E-02** at limit **
   3  Prefactor     .16898E-01    9.0138        .42947E-01    .28210E-03
   4  Prefactor     2.2409        2.3422        .10881E-03    .65403E-04
   5  Prefactor     .10000E-03    3.4162        .13355E-02** at limit **
   6  Prefactor     2.6025        6.9560        .25311E-03   -.58751E-04
   7  Prefactor     7.5138        10.029        .14628E-03   -.13989E-05
   8  Prefactor     .64945        54.895        .45662E-02    .12189E-02
   9  Prefactor     .10000E-03    19.451        .36285E-02** at limit **
  10  norm          1.1321        1.0002        .66250E-04    .41871E-04
  11  Prefactor     .10000E-03    1.6395        .18328E-03** at limit **
  12  Prefactor     4.2635        4.5139        .15822E-03   -.90248E-04
  13  norm          .10000E-03    9.5511        .18142E-02** at limit **
  14  norm          15.937        11.979        .10032E-03    .70262E-04
  15  Prefactor     7.6607        8.0655        .14488E-03   -.27465E-05
  16  Prefactor     12.057        19.352        .11536E-03   -.40603E-04
  17  Prefactor     .10052E-03    51.243        .13225    ** at limit **
  18  Prefactor     8.5465        15.767        .13705E-03    .95393E-05
  19  Normalizat    .92124        .21248        .24522E-03    .14896E-03
  20  Prefactor     1.1786        .22122        .24459E-03    .30940E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5536.178     FROM SIMPLEX   STATUS=UNCHANGED   1010 CALLS     3742 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5791        .19328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.448        .84062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16898E-01    9.0138        .50054E-06   -1.5682    
   4  Prefactor     2.2409        2.3422        .45991E-06   -1.5409    
   5  Prefactor     .10000E-03    3.4162        .25428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6025        6.9560        .45897E-06   -1.5385    
   7  Prefactor     7.5138        10.029        .45000E-06   -1.5160    
   8  Prefactor     .64945        54.895        .50747E-06   -1.5547    
   9  Prefactor     .10000E-03    19.451        .57756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1321        1.0002        .46247E-06   -1.5495    
  11  Prefactor     .10000E-03    1.6395        .18737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2635        4.5139        .45582E-06   -1.5295    
  13  norm          .10000E-03    9.5511        .43112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.937        11.979        .45321E-06   -1.4909    
  15  Prefactor     7.6607        8.0655        .46310E-06   -1.5154    
  16  Prefactor     12.057        19.352        .45466E-06   -1.5013    
  17  Prefactor     .10052E-03    51.243        .31149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5465        15.767        .47598E-06   -1.5123    
  19  Normalizat    .92124        .21248        .30339E-06   -.95718    
  20  Prefactor     1.1786        .22122        .26482E-06   -.86991    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5536.178     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     4048 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5792        .23312E-03** at limit **
   2  Prefactor     .10000E-03    33.452        .36285E-03** at limit **
   3  Prefactor     .16893E-01    6.5117        .52297E-01    .23227E-03
   4  Prefactor     2.2409        2.3384        .43526E-05    .87761E-04
   5  Prefactor     .10000E-03    3.4169        .26711E-03** at limit **
   6  Prefactor     2.6025        6.9508        .10124E-04    .26051E-04
   7  Prefactor     7.5138        10.023        .58513E-05    .10880E-04
   8  Prefactor     .64950        54.811        .91323E-03    .59132E-05
   9  Prefactor     .10000E-03    19.599        .72569E-03** at limit **
  10  norm          1.1321        1.0001        .26500E-05   -.77221E-05
  11  Prefactor     .10000E-03    1.6395        .36656E-04** at limit **
  12  Prefactor     4.2635        4.5137        .63288E-05    .11856E-04
  13  norm          .10000E-03    9.5546        .36285E-03** at limit **
  14  norm          15.937        11.977        .40128E-05   -.90660E-05
  15  Prefactor     7.6607        8.0645        .57950E-05   -.39236E-06
  16  Prefactor     12.057        19.350        .46144E-05    .54203E-05
  17  Prefactor     .10053E-03    53.563        .12874    ** at limit **
  18  Prefactor     8.5465        15.760        .54822E-05   -.24885E-05
  19  Normalizat    .92124        .21200        .98088E-05    .11127E-04
  20  Prefactor     1.1786        .22140        .48918E-04   -.18871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0168932
  Prefactor  = 2.24093
  Prefactor  = 0.0001
  Prefactor  = 2.60253
  Prefactor  = 7.5138
  Prefactor  = 0.649501
  Prefactor  = 0.0001
  norm       = 1.13211
  Prefactor  = 0.0001
  Prefactor  = 4.26348
  norm       = 0.0001
  norm       = 15.9372
  Prefactor  = 7.66071
  Prefactor  = 12.0569
  Prefactor  = 0.000100534
  Prefactor  = 8.5465
  Normalizat = 0.921238
  Prefactor  = 1.17863
 **********
 **   18 **HESSE 
 **********

 FCN=   5536.178     FROM HESSE     STATUS=OK           293 CALLS     4341 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5792        .46624E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.452        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16893E-01    7.3349        .48579E-01   -1.5682    
   4  Prefactor     2.2409        2.3397        .87052E-06   -1.5409    
   5  Prefactor     .10000E-03    3.4170        .53422E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6025        6.9529        .20249E-05   -1.5385    
   7  Prefactor     7.5138        10.026        .11703E-05   -1.5160    
   8  Prefactor     .64950        54.631        .36529E-04   -1.5547    
   9  Prefactor     .10000E-03    19.605        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1321        .99991        .53000E-06   -1.5495    
  11  Prefactor     .10000E-03    1.6395        .73313E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2635        4.5143        .12658E-05   -1.5295    
  13  norm          .10000E-03    9.5548        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.937        11.966        .80255E-06   -1.4909    
  15  Prefactor     7.6607        8.0663        .11590E-05   -1.5154    
  16  Prefactor     12.057        19.376        .92287E-06   -1.5013    
  17  Prefactor     .10053E-03    52.478        .13028       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5465        15.750        .10964E-05   -1.5123    
  19  Normalizat    .92124        .21194        .19618E-05   -.95718    
  20  Prefactor     1.1786        .22142        .97837E-05   -.86991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74074e-10
Minuit parameter uncertainties:
  1  2.31222e-07
  2  5.26843e-06
  3  0.702018
  4  2.33976
  5  7.85406e-07
  6  6.9551
  7  10.0282
  8  11.9238
  9  8.00894e-07
  10  0.999925
  11  3.04372e-07
  12  4.51467
  13  1.88591e-06
  14  11.9681
  15  8.06748
  16  19.3861
  17  0.0105937
  18  15.7574
  19  0.212127
  20  0.221599
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  8.009e-07  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.179e+00  2.216e-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.212e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411927/likelihoodResults_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5536.17863199
delta logL = -0.000243620186666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5536.1783882
delta logL = 1.73537955561e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3709       1.0000          .0000       10.000    
     3 'Normalizat'    .92124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1786       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5536.178     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      262 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    59.864        .36285E-02** at limit **
   2  Index         2.3061        8.6941        .50000        .12105E-04
   3  Normalizat    .92124        .70086E-02    .24522E-03   -.19407E-03
   4  Prefactor     1.1786        .78368E-02    .24459E-03   -.84501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101604
  Index      = 2.30613
  Normalizat = 0.921236
  Prefactor  = 1.17863
 **********
 **   18 **HESSE 
 **********

 FCN=   5536.178     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10160E-03    292.48        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3061        8.8075        .50000       -.56898    
   3  Normalizat    .92124        .15652E-01    .98086E-05   -.95718    
   4  Prefactor     1.1786        .17502E-01    .97837E-05   -.86991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45968e-09
Minuit parameter uncertainties:
  1  0.0435277
  2  334.3
  3  0.0156525
  4  0.0175021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411927': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5536.17838801
delta logL = 3.64003426512e-07

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.016e-04  4.353e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.306e+00  3.343e+02  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.179e+00  1.750e-02  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.212e-01  1.565e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.878 20.952

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/411927/cmap_HighResolution_331862401_332121601_4FGL_J1059.5+2057_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-03 02:50:53.379003', job_id='411927', GAL2='1.18', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630662653.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='357' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 411927: <4FGL_J1059.5+2057_daily_bin357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin357 164.878 20.9524 331862401 332121601 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 :                                   741.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            851 sec.

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

