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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin539
RA = 164.878, Dec = 20.9524
tmin = 379036801, tmax = 379296001
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='413545', job_status='RUN', time_executed='2021-09-03 02:42:54.634202', time_epoch_executed='1630662174.63' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413545

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413545/ft1_4FGL_J1059.5+2057_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413545/ft2_4FGL_J1059.5+2057_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413545/ft1_4FGL_J1059.5+2057_daily_bin539.fits outfile=/scratch/kocevski/413545/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin539.fits ra=164.878 dec=20.9524 rad=12.0 tmin=379036801.0 tmax=379296001.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.47
user 3.23
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413545/ft1_filtered_4FGL_J1059.5+2057_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/413545/ft2_4FGL_J1059.5+2057_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/413545/ltcube_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.fits outfile=/scratch/kocevski/413545/expmap_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.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/413545/ltcube_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.fits
.....................!
real 192.28
user 186.46
sys 4.39

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/413545/ft1_filtered_4FGL_J1059.5+2057_daily_bin539.fits scfile=/scratch/kocevski/413545/ft2_4FGL_J1059.5+2057_daily_bin539.fits outfile=/scratch/kocevski/413545/cmap_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.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.87
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413545/ft1_filtered_4FGL_J1059.5+2057_daily_bin539.fits scfile=/scratch/kocevski/413545/ft2_4FGL_J1059.5+2057_daily_bin539.fits outfile=/scratch/kocevski/413545/cmap_HighResolution_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.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 1.41
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .78623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.688       1.0000         .10000E-03   10000.    
    13 'norm      '    5.6141       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.182       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.212       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81638       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1376       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=   5534.118     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2057 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4989       -.58899E-07** at limit **
   2  Prefactor     .10000E-03    46.073        .19817E-05** at limit **
   3  Prefactor     .84702        5.8335        .53654E-06    .39569E-03
   4  Prefactor     4.5632        2.5625        .45449E-06    .92819E-03
   5  Prefactor     .10000E-03    3.0021       -.46070E-06** at limit **
   6  Prefactor     5.5104        7.9896       -.28405E-05    .19790E-03
   7  Prefactor     .10000E-03    3.5897       -.13956E-05** at limit **
   8  Prefactor     .10000E-03    10.798       -.67256E-06** at limit **
   9  Prefactor     .10000E-03    4.3901       -.27769E-06** at limit **
  10  norm          .78615        .90650       -.21677E-07    .15197E-04
  11  Prefactor     .10000E-03    1.2665       -.23260E-06** at limit **
  12  Prefactor     14.676        10.610       -.28195E-05   -.34778E-03
  13  norm          5.6137        5.8978        .63776E-06    .76599E-04
  14  norm          .10000E-03    3.2940        .48611E-06** at limit **
  15  Prefactor     .53145        95.423        .35309E-04   -.35554E-04
  16  Prefactor     6.4580        19.266        .12737E-07   -.47448E-05
  17  Prefactor     24.149        31.227       -.86264E-05    .41758E-05
  18  Prefactor     30.210        16.139       -.68640E-06   -.60796E-04
  19  Normalizat    .81620        .17739        .60053E-06    .55606E-04
  20  Prefactor     1.1378        .18200        .61510E-06    .26362E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.847021
  Prefactor  = 4.5632
  Prefactor  = 0.0001
  Prefactor  = 5.51044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.786155
  Prefactor  = 0.0001
  Prefactor  = 14.6762
  norm       = 5.61372
  norm       = 0.0001
  Prefactor  = 0.531445
  Prefactor  = 6.45795
  Prefactor  = 24.1491
  Prefactor  = 30.2103
  Normalizat = 0.816199
  Prefactor  = 1.13775
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.118     FROM HESSE     STATUS=OK           299 CALLS     2356 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5019        .11485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84702        10.657        .31797E-02   -1.5524    
   4  Prefactor     4.5632        2.5397        .82574E-04   -1.5281    
   5  Prefactor     .10000E-03    3.0305        .12588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5104        8.0063        .85571E-03   -1.5238    
   7  Prefactor     .10000E-03    3.6050        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3995        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .78615        .85976        .73424E-03   -1.5531    
  11  Prefactor     .10000E-03    1.2940        .81695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.676        10.491        .10451E-03   -1.4942    
  13  norm          5.6137        5.8981        .84773E-03   -1.5234    
  14  norm          .10000E-03    3.2973        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .53145        100.40        .39150E-02   -1.5562    
  16  Prefactor     6.4580        19.258        .15796E-03   -1.5200    
  17  Prefactor     24.149        31.157        .81458E-04   -1.4725    
  18  Prefactor     30.210        16.131        .72893E-04   -1.4608    
  19  Normalizat    .81620        .20396        .24605E-03   -.99471    
  20  Prefactor     1.1378        .21407        .23584E-03   -.88269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01147e-08
Minuit parameter uncertainties:
  1  4.65043e-06
  2  0.000192076
  3  6.00981
  4  2.53972
  5  1.18767e-05
  6  8.00789
  7  8.42268e-06
  8  9.19457e-05
  9  2.71659e-06
  10  0.859771
  11  1.4259e-05
  12  10.4922
  13  5.8987
  14  1.31407e-05
  15  14.6324
  16  19.2769
  17  31.1779
  18  16.1336
  19  0.20415
  20  0.214228
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.717e-06  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.138e+00  2.142e-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.162e-01  2.042e-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: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413545/likelihoodResults_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.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) = 5534.1188314
delta logL = -0.00107913015017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5534.11775228
delta logL = -1.17943272926e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3866       1.0000          .0000       10.000    
     3 'Normalizat'    .81619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1378       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=   5534.118     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      260 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.207        .15731E-01** at limit **
   2  Index         1.7641        5.1862        .50000       -.92086E-08
   3  Normalizat    .81620        .65320E-02    .24605E-03    .57378E-03
   4  Prefactor     1.1377        .73068E-02    .23584E-03    .60441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76412
  Normalizat = 0.816202
  Prefactor  = 1.13775
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.118     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    151.87        .19037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7641        9.1163        .50000       -.70387    
   3  Normalizat    .81620        .19816E-01    .49211E-04   -.99470    
   4  Prefactor     1.1377        .22166E-01    .47169E-04   -.88269    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.38892e-11
Minuit parameter uncertainties:
  1  4.21747e-05
  2  589.934
  3  0.0198163
  4  0.0221667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413545': 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) = 5534.11774815
delta logL = 4.113837349e-06

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  4.217e-05  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  1.764e+00  5.899e+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.138e+00  2.217e-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.162e-01  1.982e-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/413545/cmap_HighResolution_379036801_379296001_4FGL_J1059.5+2057_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-03 02:52:56.920296', job_id='413545', GAL2='1.14', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630662776.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='539' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:52:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 413545: <4FGL_J1059.5+2057_daily_bin539> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin539> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 02:41:32 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:42:35 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:42:35 2021
Terminated at Fri Sep  3 02:52:57 2021
Results reported at Fri Sep  3 02:52:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin539 164.878 20.9524 379036801 379296001 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 :                                   588.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            685 sec.

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

