/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 200 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.5+2057_daily_bin80
RA = 164.878, Dec = 20.9524
tmin = 260064001, tmax = 260323201
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='410237', job_status='RUN', time_executed='2021-09-03 02:35:11.363979', time_epoch_executed='1630661711.36' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410237/ft1_4FGL_J1059.5+2057_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410237/ft2_4FGL_J1059.5+2057_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410237/ft1_4FGL_J1059.5+2057_daily_bin80.fits outfile=/scratch/kocevski/410237/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin80.fits ra=164.878 dec=20.9524 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.51
user 1.33
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410237/ft1_filtered_4FGL_J1059.5+2057_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/410237/ft2_4FGL_J1059.5+2057_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/410237/ltcube_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.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/410237/ft2_4FGL_J1059.5+2057_daily_bin80.fits
.....................!
real 19.11
user 18.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410237/ft1_filtered_4FGL_J1059.5+2057_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/410237/ft2_4FGL_J1059.5+2057_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/410237/ltcube_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.fits outfile=/scratch/kocevski/410237/expmap_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.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/410237/ltcube_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.fits
.....................!
real 192.26
user 187.61
sys 4.25

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/410237/ft1_filtered_4FGL_J1059.5+2057_daily_bin80.fits scfile=/scratch/kocevski/410237/ft2_4FGL_J1059.5+2057_daily_bin80.fits outfile=/scratch/kocevski/410237/cmap_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.689       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7035       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8301       1.0000         .10000E-03   10000.    
    13 'norm      '    10.466       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.214       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.587       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84030       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1975       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=   7673.852     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     2000 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.688        8.4200       -.41943E-06    .42447E-04
   2  Prefactor     1.9335        107.27       -.89504E-04   -.10366E-04
   3  Prefactor     .10000E-03    2.4541       -.46770E-06** at limit **
   4  Prefactor     4.1517        2.1077       -.28515E-06   -.11109E-05
   5  Prefactor     .10000E-03    1.9461       -.14332E-06** at limit **
   6  Prefactor     18.274        8.2340       -.25870E-06    .50409E-04
   7  Prefactor     .10000E-03    3.4186        .41948E-05** at limit **
   8  Prefactor     .10000E-03    3.7099       -.46859E-05** at limit **
   9  Prefactor     .10000E-03    8.2192       -.35855E-05** at limit **
  10  norm          1.7035        1.1285       -.31421E-06   -.44611E-03
  11  Prefactor     .78910        2.1962       -.14621E-05   -.14974E-02
  12  Prefactor     6.8291        5.5080       -.43871E-06   -.81757E-04
  13  norm          10.466        7.9884       -.57331E-06    .16637E-05
  14  norm          4.1536        10.566       -.73994E-05   -.12746E-03
  15  Prefactor     .10000E-03    7.2214        .45564E-05** at limit **
  16  Prefactor     14.212        18.918       -.37330E-05    .40041E-04
  17  Prefactor     11.072        25.981       -.71781E-05   -.65814E-05
  18  Prefactor     14.587        11.932       -.14164E-05   -.21364E-04
  19  Normalizat    .84040        .16015        .40468E-05    .40393E-03
  20  Prefactor     1.1974        .16662        .19100E-05    .42868E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6885
  Prefactor  = 1.93345
  Prefactor  = 0.0001
  Prefactor  = 4.15167
  Prefactor  = 0.0001
  Prefactor  = 18.2736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7035
  Prefactor  = 0.789102
  Prefactor  = 6.82911
  norm       = 10.4659
  norm       = 4.15363
  Prefactor  = 0.0001
  Prefactor  = 14.212
  Prefactor  = 11.0716
  Prefactor  = 14.5867
  Normalizat = 0.8404
  Prefactor  = 1.19741
 **********
 **   18 **HESSE 
 **********

 FCN=   7673.852     FROM HESSE     STATUS=OK           297 CALLS     2297 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.688        8.4201        .10451E-03   -1.4941    
   2  Prefactor     1.9335        109.17        .29738E-03   -1.5430    
   3  Prefactor     .10000E-03    2.4734        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1517        2.1052        .86484E-04   -1.5300    
   5  Prefactor     .10000E-03    1.9566        .11931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.274        8.2530        .93689E-04   -1.4853    
   7  Prefactor     .10000E-03    3.4172        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7053        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7035        1.1211        .72089E-04   -1.5447    
  11  Prefactor     .78910        2.1996        .20643E-03   -1.5530    
  12  Prefactor     6.8291        5.5118        .15352E-03   -1.5185    
  13  norm          10.466        7.9837        .12385E-03   -1.5061    
  14  norm          4.1536        10.611        .19767E-03   -1.5300    
  15  Prefactor     .10000E-03    7.2968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.212        18.902        .10624E-03   -1.4954    
  17  Prefactor     11.072        26.005        .12039E-03   -1.5042    
  18  Prefactor     14.587        11.945        .10487E-03   -1.4944    
  19  Normalizat    .84040        .18827        .26182E-03   -.98587    
  20  Prefactor     1.1974        .19685        .24428E-03   -.86411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03497e-09
Minuit parameter uncertainties:
  1  8.42073
  2  29.1126
  3  7.70525e-09
  4  2.10521
  5  1.16363e-05
  6  8.25352
  7  7.59163e-06
  8  3.5468e-06
  9  3.16051e-05
  10  1.12116
  11  2.19979
  12  5.51222
  13  7.98452
  14  10.6161
  15  5.31505e-05
  16  18.9095
  17  26.0317
  18  11.9471
  19  0.188421
  20  0.196974
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.161e-05  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.197e+00  1.970e-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:  8.404e-01  1.884e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410237/likelihoodResults_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.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) = 7673.8525809
delta logL = -0.000576865892072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7673.85200403
delta logL = 1.52522261487e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4178       1.0000          .0000       10.000    
     3 'Normalizat'    .84040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1974       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=   7673.852     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    125.77        .18142E-02** at limit **
   2  Index         2.4646        8.7645        .50000       -.26959E-05
   3  Normalizat    .84040        .14928E-01    .26181E-03   -.70345E-05
   4  Prefactor     1.1974        .16395E-01    .24428E-03   -.30717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100235
  Index      = 2.46463
  Normalizat = 0.840399
  Prefactor  = 1.19741
 **********
 **   18 **HESSE 
 **********

 FCN=   7673.852     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10024E-03    683.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4646        8.1084        .50000       -.53179    
   3  Normalizat    .84040        .38638E-01    .10473E-04   -.98587    
   4  Prefactor     1.1974        .42322E-01    .97710E-05   -.86411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11412e-08
Minuit parameter uncertainties:
  1  0.0256432
  2  2208.09
  3  0.0386392
  4  0.0423231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410237': 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) = 7673.85200401
delta logL = 1.96350811166e-08

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.002e-04  2.564e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.465e+00  2.208e+03  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.197e+00  4.232e-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:  8.404e-01  3.864e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/410237/cmap_HighResolution_260064001_260323201_4FGL_J1059.5+2057_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-03 02:46:37.103446', job_id='410237', GAL2='1.20', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630662397.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.96e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='80' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 410237: <4FGL_J1059.5+2057_daily_bin80> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin80 164.878 20.9524 260064001 260323201 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 :                                   680.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            904 sec.

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

