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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin59
RA = 164.878, Dec = 20.9524
tmin = 254620801, tmax = 254880001
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='410193', job_status='RUN', time_executed='2021-09-03 02:34:53.280841', time_epoch_executed='1630661693.28' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410193

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410193/ft1_4FGL_J1059.5+2057_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410193/ft2_4FGL_J1059.5+2057_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410193/ft1_4FGL_J1059.5+2057_daily_bin59.fits outfile=/scratch/kocevski/410193/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin59.fits ra=164.878 dec=20.9524 rad=12.0 tmin=254620801.0 tmax=254880001.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.33
user 1.15
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410193/ft2_4FGL_J1059.5+2057_daily_bin59.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/410193/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/410193/ft1_filtered_4FGL_J1059.5+2057_daily_bin59.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410193/ft1_filtered_4FGL_J1059.5+2057_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/410193/ft2_4FGL_J1059.5+2057_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/410193/ltcube_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.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/410193/ft2_4FGL_J1059.5+2057_daily_bin59.fits
.....................!
real 13.95
user 13.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410193/ft1_filtered_4FGL_J1059.5+2057_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/410193/ft2_4FGL_J1059.5+2057_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/410193/ltcube_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.fits outfile=/scratch/kocevski/410193/expmap_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.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/410193/ltcube_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.fits
.....................!
real 191.39
user 185.83
sys 5.17

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/410193/ft1_filtered_4FGL_J1059.5+2057_daily_bin59.fits scfile=/scratch/kocevski/410193/ft2_4FGL_J1059.5+2057_daily_bin59.fits outfile=/scratch/kocevski/410193/cmap_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410193/ft1_filtered_4FGL_J1059.5+2057_daily_bin59.fits scfile=/scratch/kocevski/410193/ft2_4FGL_J1059.5+2057_daily_bin59.fits outfile=/scratch/kocevski/410193/cmap_HighResolution_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.470       1.0000         .10000E-03   10000.    
     2 'Prefactor '    86.180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1879       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
    13 'norm      '    .14847E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    13.931       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.876       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88670       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79463       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=   4543.364     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2014 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.470        8.6712        .28365E-08   -.38760E-05
   2  Prefactor     86.180        50.623        .11664E-06    .56524E-05
   3  Prefactor     .10000E-03    4.3129       -.52645E-06** at limit **
   4  Prefactor     .10000E-03    .57442       -.10559E-07** at limit **
   5  Prefactor     13.730        8.4497        .71256E-07    .38307E-04
   6  Prefactor     .10000E-03    11.573       -.12638E-05** at limit **
   7  Prefactor     .10000E-03    3.9748       -.12527E-06** at limit **
   8  Prefactor     .10000E-03    4.3341        .47567E-06** at limit **
   9  Prefactor     8.1916        11.252        .22691E-05    .22015E-03
  10  norm          5.9624        1.8021        .78354E-08    .29385E-03
  11  Prefactor     7.6962        4.2426       -.55629E-08   -.24669E-03
  12  Prefactor     14.895        8.1491       -.37988E-07    .25480E-04
  13  norm          .10015E-03    13.193       -.24899E-05** at limit **
  14  norm          13.931        12.846        .10732E-05    .12270E-03
  15  Prefactor     .10000E-03    9.9703       -.72989E-07** at limit **
  16  Prefactor     .10000E-03    20.663        .52084E-06** at limit **
  17  Prefactor     15.874        18.759       -.12188E-06   -.22333E-04
  18  Prefactor     .10000E-03    10.819        .45244E-06** at limit **
  19  Normalizat    .88674        .18678       -.26250E-06    .13382E-03
  20  Prefactor     .79459        .19170       -.68795E-06    .83597E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4695
  Prefactor  = 86.18
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.7297
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.19156
  norm       = 5.96235
  Prefactor  = 7.69618
  Prefactor  = 14.8953
  norm       = 0.000100148
  norm       = 13.9313
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.8739
  Prefactor  = 0.0001
  Normalizat = 0.886737
  Prefactor  = 0.794586
 **********
 **   18 **HESSE 
 **********

 FCN=   4543.364     FROM HESSE     STATUS=OK           289 CALLS     2303 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.470        8.6752        .11344E-03   -1.5002    
   2  Prefactor     86.180        50.618        .43276E-04   -1.3849    
   3  Prefactor     .10000E-03    4.4131        .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .57741        .49876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.730        8.4521        .10810E-03   -1.4967    
   6  Prefactor     .10000E-03    12.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9944        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4011        .13803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1916        11.586        .70055E-03   -1.5135    
  10  norm          5.9624        1.8009        .47712E-04   -1.5220    
  11  Prefactor     7.6962        4.2684        .96099E-04   -1.5153    
  12  Prefactor     14.895        8.1553        .10378E-03   -1.4936    
  13  norm          .10015E-03    41.415        .37070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.931        12.909        .53657E-03   -1.4961    
  15  Prefactor     .10000E-03    10.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.874        18.744        .10052E-03   -1.4911    
  18  Prefactor     .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88674        .21672        .23177E-03   -.96928    
  20  Prefactor     .79459        .22105        .26028E-03   -.99928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07009e-09
Minuit parameter uncertainties:
  1  8.67603
  2  50.6431
  3  0.000105076
  4  3.45698e-07
  5  8.45286
  6  0.000298622
  7  1.29364e-05
  8  0.000106041
  9  11.5892
  10  1.80095
  11  4.26856
  12  8.15595
  13  0.00494882
  14  12.9111
  15  3.79771e-05
  16  0.000223588
  17  18.751
  18  0.000126044
  19  0.216938
  20  0.221294
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  8.192e+00  1.159e+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:  7.946e-01  2.213e-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.867e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/410193/likelihoodResults_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.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) = 4543.36290077
delta logL = 0.00155542616722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4543.3619608
delta logL = 0.00249539790821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5956       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4850       1.0000          .0000       10.000    
     3 'Normalizat'    .88540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79559       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=   4543.362     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      220 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5956        455.88        .36378E-02    .30683E-03
   2  Index         2.4849        5.8963        .16965        .61918E-04
   3  Normalizat    .88550        .67542E-01    .44715E-01    .10230E-04
   4  Prefactor     .79549        .66266E-01    .43660E-01    .32763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59562
  Index      = 2.48493
  Normalizat = 0.885497
  Prefactor  = 0.795493
 **********
 **   18 **HESSE 
 **********

 FCN=   4543.362     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5956        15.024        .14551E-03   -1.5157    
   2  Index         2.4849        1.0786        .91670E-02   -.52708    
   3  Normalizat    .88550        .20577        .23191E-03   -.96972    
   4  Prefactor     .79549        .21951        .26015E-03   -.99895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03774e-09
Minuit parameter uncertainties:
  1  15.0314
  2  1.09011
  3  0.205956
  4  0.219749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410193': 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) = 4543.36196069
delta logL = 0.00249551041634

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  7.596e+00  1.503e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.485e+00  1.090e+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:  7.955e-01  2.197e-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.855e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
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/410193/cmap_HighResolution_254620801_254880001_4FGL_J1059.5+2057_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-03 02:43:39.809083', job_id='410193', GAL2='0.80', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630662219.81', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.50e-03', ts2='0.71', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='59' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:43:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 410193: <4FGL_J1059.5+2057_daily_bin59> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin59 164.878 20.9524 254620801 254880001 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 :                                   524.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            728 sec.

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

