/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin405
RA = 164.878, Dec = 20.9524
tmin = 344304001, tmax = 344563201
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='412016', job_status='RUN', time_executed='2021-09-03 02:38:28.794072', time_epoch_executed='1630661908.79' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412016/ft1_4FGL_J1059.5+2057_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412016/ft2_4FGL_J1059.5+2057_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412016/ft1_4FGL_J1059.5+2057_daily_bin405.fits outfile=/scratch/kocevski/412016/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin405.fits ra=164.878 dec=20.9524 rad=12.0 tmin=344304001.0 tmax=344563201.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.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412016/ft1_filtered_4FGL_J1059.5+2057_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/412016/ft2_4FGL_J1059.5+2057_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/412016/ltcube_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.fits outfile=/scratch/kocevski/412016/expmap_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.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/412016/ltcube_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.fits
.....................!
real 192.88
user 186.94
sys 5.11

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/412016/ft1_filtered_4FGL_J1059.5+2057_daily_bin405.fits scfile=/scratch/kocevski/412016/ft2_4FGL_J1059.5+2057_daily_bin405.fits outfile=/scratch/kocevski/412016/cmap_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.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.96
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412016/ft1_filtered_4FGL_J1059.5+2057_daily_bin405.fits scfile=/scratch/kocevski/412016/ft2_4FGL_J1059.5+2057_daily_bin405.fits outfile=/scratch/kocevski/412016/cmap_HighResolution_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.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.88
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9930       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6480       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8289       1.0000         .10000E-03   10000.    
    10 'norm      '    .43742       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5886       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9015       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85958       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2376       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=   6598.656     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1753 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9932        9.8923        .62613E-08   -.36267E-04
   2  Prefactor     .10000E-03    16.358       -.10209E-05** at limit **
   3  Prefactor     .10000E-03    4.6269       -.11890E-05** at limit **
   4  Prefactor     2.6480        2.3099       -.57673E-08   -.34232E-04
   5  Prefactor     1.9288        7.8366        .55970E-06   -.15030E-03
   6  Prefactor     .10000E-03    9.2999       -.18367E-05** at limit **
   7  Prefactor     .10000E-03    4.9882        .11599E-05** at limit **
   8  Prefactor     .10000E-03    16.053       -.79351E-06** at limit **
   9  Prefactor     4.8259        8.6949        .29710E-05   -.69947E-03
  10  norm          .43735        1.1920        .32247E-06   -.51385E-03
  11  Prefactor     2.5858        2.2910        .30285E-07    .10784E-04
  12  Prefactor     13.611        6.9252       -.35215E-07    .21993E-04
  13  norm          .10000E-03    4.2950        .94754E-06** at limit **
  14  norm          .10000E-03    4.4077       -.74674E-06** at limit **
  15  Prefactor     .10000E-03    9.7013       -.10614E-05** at limit **
  16  Prefactor     2.5879        19.582       -.42163E-07   -.50075E-04
  17  Prefactor     .10000E-03    11.417        .35553E-05** at limit **
  18  Prefactor     4.8964        15.410       -.27298E-05   -.20643E-03
  19  Normalizat    .85951        .17033       -.98140E-07    .42855E-04
  20  Prefactor     1.2377        .17763       -.42330E-06    .61882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.9932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64801
  Prefactor  = 1.92878
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82587
  norm       = 0.437352
  Prefactor  = 2.58581
  Prefactor  = 13.6107
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58794
  Prefactor  = 0.000100003
  Prefactor  = 4.89645
  Normalizat = 0.859506
  Prefactor  = 1.23771
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.656     FROM HESSE     STATUS=OK           293 CALLS     2046 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9932        9.9020        .12676E-03   -1.5076    
   2  Prefactor     .10000E-03    16.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7441        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6480        2.2996        .10920E-03   -1.5383    
   5  Prefactor     1.9288        7.7780        .29903E-03   -1.5430    
   6  Prefactor     .10000E-03    9.7251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0679        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8259        9.9285        .91534E-03   -1.5269    
  10  norm          .43735        1.1863        .13651E-03   -1.5576    
  11  Prefactor     2.5858        2.2833        .11101E-03   -1.5386    
  12  Prefactor     13.611        6.9246        .10857E-03   -1.4970    
  13  norm          .10000E-03    4.3603        .16497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4565        .16699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5879        19.751        .25362E-03   -1.5386    
  17  Prefactor     .10000E-03    11.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8964        15.925        .18168E-03   -1.5265    
  19  Normalizat    .85951        .20284        .25752E-03   -.97898    
  20  Prefactor     1.2377        .21171        .23778E-03   -.85178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07919e-09
Minuit parameter uncertainties:
  1  9.90359
  2  0.00012286
  3  7.47412e-05
  4  2.29965
  5  7.74805
  6  0.000168947
  7  7.51162e-05
  8  9.51055e-05
  9  9.9319
  10  1.18632
  11  2.28333
  12  6.92504
  13  5.48492e-05
  14  4.6896e-05
  15  8.6845e-05
  16  14.3053
  17  0.00036722
  18  15.9384
  19  0.203022
  20  0.211861
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  4.826e+00  9.932e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.238e+00  2.119e-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.595e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/412016/likelihoodResults_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.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) = 6598.61194784
delta logL = 0.0440699422643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6598.60252111
delta logL = 0.0534966714686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6386       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8213       1.0000          .0000       10.000    
     3 'Normalizat'    .85091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2435       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=   6598.603     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6382        9.7728        .21179E-03   -.13007E-03
   2  Index         2.8222        1.4007        .93109E-02   -.24630E-04
   3  Normalizat    .85119        .19715        .25865E-03   -.23155E-03
   4  Prefactor     1.2430        .21238        .23733E-03   -.20747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.63823
  Index      = 2.8222
  Normalizat = 0.851194
  Prefactor  = 1.24302
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.603     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6382        8.5773        .84715E-05   -1.5326    
   2  Index         2.8222        1.2331        .37244E-03   -.45066    
   3  Normalizat    .85119        .19729        .10346E-04   -.98197    
   4  Prefactor     1.2430        .21249        .47466E-04   -.85017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17755e-11
Minuit parameter uncertainties:
  1  8.58015
  2  1.24904
  3  0.197459
  4  0.212636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412016': 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) = 6598.6025165
delta logL = 0.0535012819864

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  3.638e+00  8.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.822e+00  1.249e+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:  1.243e+00  2.126e-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.512e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/412016/cmap_HighResolution_344304001_344563201_4FGL_J1059.5+2057_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-03 02:48:52.105067', job_id='412016', GAL2='1.24', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1630662532.11', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.35e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='405' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:48:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 412016: <4FGL_J1059.5+2057_daily_bin405> in cluster <slac> Done

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

Your job looked like:

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

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

