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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin690
RA = 164.878, Dec = 20.9524
tmin = 418176001, tmax = 418435201
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='414004', job_status='RUN', time_executed='2021-09-03 02:43:32.347326', time_epoch_executed='1630662212.35' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414004/ft1_4FGL_J1059.5+2057_daily_bin690.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414004/ft2_4FGL_J1059.5+2057_daily_bin690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414004/ft1_4FGL_J1059.5+2057_daily_bin690.fits outfile=/scratch/kocevski/414004/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin690.fits ra=164.878 dec=20.9524 rad=12.0 tmin=418176001.0 tmax=418435201.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 4.13
user 3.82
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414004/ft2_4FGL_J1059.5+2057_daily_bin690.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/414004/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin690.fits evtable="EVENTS" outfile="/scratch/kocevski/414004/ft1_filtered_4FGL_J1059.5+2057_daily_bin690.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.79
user 0.30
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414004/ft1_filtered_4FGL_J1059.5+2057_daily_bin690.fits evtable="EVENTS" scfile=/scratch/kocevski/414004/ft2_4FGL_J1059.5+2057_daily_bin690.fits sctable="SC_DATA" expcube=/scratch/kocevski/414004/ltcube_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.fits outfile=/scratch/kocevski/414004/expmap_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.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/414004/ltcube_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.fits
.....................!
real 158.84
user 151.71
sys 4.38

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/414004/ft1_filtered_4FGL_J1059.5+2057_daily_bin690.fits scfile=/scratch/kocevski/414004/ft2_4FGL_J1059.5+2057_daily_bin690.fits outfile=/scratch/kocevski/414004/cmap_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.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 1.55
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414004/ft1_filtered_4FGL_J1059.5+2057_daily_bin690.fits scfile=/scratch/kocevski/414004/ft2_4FGL_J1059.5+2057_daily_bin690.fits outfile=/scratch/kocevski/414004/cmap_HighResolution_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.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.80
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8079       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8446       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1452       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44899       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2048       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0421       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2317       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.797       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97575       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0848       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=   7951.973     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2075 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16967        4.1904        .93334E-06   -.69718E-04
   2  Prefactor     .10000E-03    8.5351        .12804E-07** at limit **
   3  Prefactor     2.3182        4.5862        .26499E-06    .11911E-04
   4  Prefactor     2.8077        2.3711        .23824E-06   -.12228E-03
   5  Prefactor     .10000E-03    7.9487       -.27459E-07** at limit **
   6  Prefactor     .10000E-03    5.4475        .16818E-06** at limit **
   7  Prefactor     3.8455        5.3912        .29950E-06   -.80284E-05
   8  Prefactor     17.250        12.767       -.25994E-05    .20458E-03
   9  Prefactor     .10000E-03    6.4278        .15208E-06** at limit **
  10  norm          2.1449        1.0048        .50437E-07   -.98745E-04
  11  Prefactor     .45432        2.5774        .29152E-05    .11273E-02
  12  Prefactor     3.2041        3.7068        .13054E-06   -.17028E-04
  13  norm          1.0455        7.7753        .79742E-05   -.40727E-03
  14  norm          .10000E-03    7.6667       -.17471E-06** at limit **
  15  Prefactor     .10000E-03    4.4771        .14938E-06** at limit **
  16  Prefactor     9.2310        14.286       -.18716E-06    .38530E-04
  17  Prefactor     21.758        28.726        .10723E-05    .12801E-03
  18  Prefactor     .10000E-03    13.270        .45841E-06** at limit **
  19  Normalizat    .97590        .15090       -.66598E-06    .14264E-03
  20  Prefactor     1.0849        .15834       -.15317E-05   -.34940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.169672
  Prefactor  = 0.0001
  Prefactor  = 2.31819
  Prefactor  = 2.80766
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 3.84553
  Prefactor  = 17.2498
  Prefactor  = 0.0001
  norm       = 2.14495
  Prefactor  = 0.454316
  Prefactor  = 3.20409
  norm       = 1.04554
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.23104
  Prefactor  = 21.7584
  Prefactor  = 0.0001
  Normalizat = 0.975902
  Prefactor  = 1.08489
 **********
 **   18 **HESSE 
 **********

 FCN=   7951.973     FROM HESSE     STATUS=OK           299 CALLS     2374 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16967        86.083        .34906E-02   -1.5626    
   2  Prefactor     .10000E-03    8.5392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3182        4.5552        .25259E-03   -1.5403    
   4  Prefactor     2.8077        2.3558        .58406E-03   -1.5373    
   5  Prefactor     .10000E-03    8.2003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8455        5.3733        .10291E-02   -1.5316    
   8  Prefactor     17.250        13.177        .96477E-04   -1.4877    
   9  Prefactor     .10000E-03    6.4695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1449        1.0029        .58782E-04   -1.5415    
  11  Prefactor     .45432        4.7076        .23146E-02   -1.5573    
  12  Prefactor     3.2041        3.7031        .17933E-03   -1.5350    
  13  norm          1.0455        8.2083        .24241E-02   -1.5503    
  14  norm          .10000E-03    7.8098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2310        14.289        .13191E-03   -1.5100    
  17  Prefactor     21.758        28.784        .85792E-04   -1.4775    
  18  Prefactor     .10000E-03    13.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97590        .17648        .23864E-03   -.93842    
  20  Prefactor     1.0849        .18764        .24838E-03   -.89951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6933e-09
Minuit parameter uncertainties:
  1  7.65235
  2  3.31717e-05
  3  4.55588
  4  2.35585
  5  0.00033589
  6  0.00010776
  7  5.37393
  8  13.1797
  9  7.94093e-05
  10  1.0029
  11  2.92486
  12  3.70336
  13  5.85987
  14  0.0001711
  15  2.07933e-05
  16  14.2939
  17  28.8026
  18  7.27103e-05
  19  0.176583
  20  0.187759
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  7.941e-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.085e+00  1.878e-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.759e-01  1.766e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414004/likelihoodResults_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.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) = 7951.9733492
delta logL = -0.000736640892683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7951.97261258
delta logL = -2.47200659942e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4097       1.0000          .0000       10.000    
     3 'Normalizat'    .97588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0849       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=   7951.973     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    112.52        .18142E-02** at limit **
   2  Index         2.3768        6.3909        .50000        .54371E-05
   3  Normalizat    .97590        .15313E-01    .23863E-03    .17770E-04
   4  Prefactor     1.0849        .16786E-01    .24838E-03    .11992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010023
  Index      = 2.37677
  Normalizat = 0.975898
  Prefactor  = 1.0849
 **********
 **   18 **HESSE 
 **********

 FCN=   7951.973     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    518.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3768        8.7461        .50000       -.55230    
   3  Normalizat    .97590        .36067E-01    .95454E-05   -.93842    
   4  Prefactor     1.0849        .39501E-01    .99353E-05   -.89951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.47866e-09
Minuit parameter uncertainties:
  1  0.0220431
  2  1353.98
  3  0.036068
  4  0.0395023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414004': 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) = 7951.97261252
delta logL = 3.80650817533e-08

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.002e-04  2.204e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.377e+00  1.354e+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.085e+00  3.950e-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.759e-01  3.607e-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/414004/cmap_HighResolution_418176001_418435201_4FGL_J1059.5+2057_daily_bin690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-03 02:53:40.590026', job_id='414004', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630662820.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='690' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:53:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 414004: <4FGL_J1059.5+2057_daily_bin690> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin690 164.878 20.9524 418176001 418435201 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 :                                   590.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            709 sec.

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

