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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin727
RA = 164.878, Dec = 20.9524
tmin = 427766401, tmax = 428025601
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='417803', job_status='RUN', time_executed='2021-09-03 02:51:46.817155', time_epoch_executed='1630662706.82' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417803/ft1_4FGL_J1059.5+2057_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417803/ft2_4FGL_J1059.5+2057_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417803/ft1_4FGL_J1059.5+2057_daily_bin727.fits outfile=/scratch/kocevski/417803/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin727.fits ra=164.878 dec=20.9524 rad=12.0 tmin=427766401.0 tmax=428025601.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 6.03
user 5.18
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417803/ft1_filtered_4FGL_J1059.5+2057_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/417803/ft2_4FGL_J1059.5+2057_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/417803/ltcube_427766401_428025601_4FGL_J1059.5+2057_daily_bin727.fits outfile=/scratch/kocevski/417803/expmap_427766401_428025601_4FGL_J1059.5+2057_daily_bin727.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/417803/ltcube_427766401_428025601_4FGL_J1059.5+2057_daily_bin727.fits
.....................!
real 195.67
user 188.24
sys 4.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/417803/ft1_filtered_4FGL_J1059.5+2057_daily_bin727.fits scfile=/scratch/kocevski/417803/ft2_4FGL_J1059.5+2057_daily_bin727.fits outfile=/scratch/kocevski/417803/cmap_427766401_428025601_4FGL_J1059.5+2057_daily_bin727.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.82
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18624E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12350E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.839       1.0000         .10000E-03   10000.    
    14 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7111       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2442       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83232       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2599       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=   3697.032     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1777 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.645        .73628E-06** at limit **
   2  Prefactor     .10000E-03    22.699        .78159E-06** at limit **
   3  Prefactor     10.022        11.586        .92209E-07   -.98829E-05
   4  Prefactor     .10000E-03    1.8026        .43562E-06** at limit **
   5  Prefactor     6.4978        8.4593       -.89217E-06   -.61972E-06
   6  Prefactor     27.975        14.243        .21531E-06   -.92024E-04
   7  Prefactor     .10000E-03    4.8435        .48059E-06** at limit **
   8  Prefactor     .10000E-03    55.671        .11528E-04** at limit **
   9  Prefactor     .10000E-03    6.9461        .17333E-06** at limit **
  10  norm          .10000E-03    1.2797        .52133E-06** at limit **
  11  Prefactor     .10000E-03    1.7648        .53660E-06** at limit **
  12  Prefactor     .10000E-03    4.7519       -.20713E-06** at limit **
  13  norm          15.852        15.821       -.83692E-06    .22836E-04
  14  norm          .10000E-03    11.452        .12794E-05** at limit **
  15  Prefactor     .10000E-03    5.7524       -.38801E-07** at limit **
  16  Prefactor     3.7012        40.846        .78817E-06    .63339E-05
  17  Prefactor     7.2976        72.408       -.60797E-05    .21980E-04
  18  Prefactor     .10000E-03    64.564        .40401E-05** at limit **
  19  Normalizat    .83270        .22604       -.15365E-05   -.17357E-03
  20  Prefactor     1.2598        .23600       -.13571E-05   -.80659E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.022
  Prefactor  = 0.0001
  Prefactor  = 6.49783
  Prefactor  = 27.9752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70116
  Prefactor  = 7.29761
  Prefactor  = 0.0001
  Normalizat = 0.832695
  Prefactor  = 1.25981
 **********
 **   18 **HESSE 
 **********

 FCN=   3697.032     FROM HESSE     STATUS=OK           289 CALLS     2066 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.022        11.560        .12659E-03   -1.5075    
   4  Prefactor     .10000E-03    1.8291        .79681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4978        8.4052        .15747E-03   -1.5198    
   6  Prefactor     27.975        14.259        .75734E-04   -1.4650    
   7  Prefactor     .10000E-03    4.8458        .13066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.201        .36410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9569        .15650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.0474        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7799        .78817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7770        .12938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.852        15.762        .10064E-03   -1.4911    
  14  norm          .10000E-03    11.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7586        .14241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7012        40.883        .20963E-03   -1.5323    
  17  Prefactor     7.2976        71.599        .14903E-03   -1.5168    
  18  Prefactor     .10000E-03    67.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83270        .26135        .26399E-03   -.98867    
  20  Prefactor     1.2598        .27555        .23790E-03   -.84510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22286e-10
Minuit parameter uncertainties:
  1  7.17126e-06
  2  3.07198e-05
  3  11.563
  4  1.18099e-06
  5  8.40675
  6  14.2603
  7  7.94229e-06
  8  1.17729e-05
  9  3.94702e-06
  10  6.027e-05
  11  5.93243e-06
  12  2.24307e-05
  13  15.766
  14  3.73322e-05
  15  1.97389e-05
  16  24.6231
  17  45.7879
  18  0.000129237
  19  0.26175
  20  0.275872
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.947e-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.260e+00  2.759e-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.327e-01  2.617e-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: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/417803/likelihoodResults_427766401_428025601_4FGL_J1059.5+2057_daily_bin727.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) = 3697.03234795
delta logL = -0.000678748259816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3697.03166983
delta logL = -6.20075752522e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3948       1.0000          .0000       10.000    
     3 'Normalizat'    .83287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2596       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=   3697.032     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10243E-03    7.3419        .15898E-01** at limit **
   2  Index         2.3102        7.5807        .50000        .20206E-04
   3  Normalizat    .83270        .53991E-02    .26399E-03    .22975E-04
   4  Prefactor     1.2598        .58794E-02    .23790E-03    .19044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102426
  Index      = 2.31022
  Normalizat = 0.832698
  Prefactor  = 1.25981
 **********
 **   18 **HESSE 
 **********

 FCN=   3697.032     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10243E-03    98.381        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3102        6.7068        .50000       -.56801    
   3  Normalizat    .83270        .20001E-01    .10560E-04   -.98867    
   4  Prefactor     1.2598        .21780E-01    .95158E-05   -.84510    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.84064e-09
Minuit parameter uncertainties:
  1  0.0309475
  2  435.184
  3  0.020001
  4  0.0217803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417803': 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) = 3697.03166882
delta logL = 3.87487034459e-07

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.024e-04  3.095e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.310e+00  4.352e+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.260e+00  2.178e-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.327e-01  2.000e-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/417803/cmap_HighResolution_427766401_428025601_4FGL_J1059.5+2057_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-03 03:00:16.999546', job_id='417803', GAL2='1.26', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630663217.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='727' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:00:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 417803: <4FGL_J1059.5+2057_daily_bin727> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin727> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 02:51:16 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:51:18 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:51:18 2021
Terminated at Fri Sep  3 03:00:17 2021
Results reported at Fri Sep  3 03:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin727 164.878 20.9524 427766401 428025601 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 :                                   500.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            541 sec.

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

