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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1609
RA = 164.878, Dec = 20.9524
tmin = 656380801, tmax = 656640001
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='302707', job_status='RUN', time_executed='2021-12-07 21:28:50.432630', time_epoch_executed='1638941330.43' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302707/ft1_4FGL_J1059.5+2057_daily_bin1609.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302707/ft2_4FGL_J1059.5+2057_daily_bin1609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302707/ft1_4FGL_J1059.5+2057_daily_bin1609.fits outfile=/scratch/kocevski/302707/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1609.fits ra=164.878 dec=20.9524 rad=12.0 tmin=656380801.0 tmax=656640001.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.24
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302707/ft1_filtered_4FGL_J1059.5+2057_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/302707/ft2_4FGL_J1059.5+2057_daily_bin1609.fits sctable="SC_DATA" expcube=/scratch/kocevski/302707/ltcube_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.fits outfile=/scratch/kocevski/302707/expmap_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.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/302707/ltcube_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.fits
.....................!
real 194.21
user 187.98
sys 4.52

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/302707/ft1_filtered_4FGL_J1059.5+2057_daily_bin1609.fits scfile=/scratch/kocevski/302707/ft2_4FGL_J1059.5+2057_daily_bin1609.fits outfile=/scratch/kocevski/302707/cmap_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302707/ft1_filtered_4FGL_J1059.5+2057_daily_bin1609.fits scfile=/scratch/kocevski/302707/ft2_4FGL_J1059.5+2057_daily_bin1609.fits outfile=/scratch/kocevski/302707/cmap_HighResolution_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7883       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12530E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4075       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.212       1.0000         .10000E-03   10000.    
    14 'norm      '    12.169       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0693       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.259       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3364       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0199       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=   6896.838     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2081 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7881        6.8063       -.32658E-06   -.38139E-05
   2  Prefactor     .10000E-03    216.73       -.23316E-05** at limit **
   3  Prefactor     4.9803        6.6763        .25477E-07   -.69709E-03
   4  Prefactor     .10000E-03    .96875       -.41037E-07** at limit **
   5  Prefactor     3.4426        4.4895        .37895E-06   -.99567E-03
   6  Prefactor     .10001E-03    5.9611       -.67938E-07** at limit **
   7  Prefactor     3.5378        7.2523       -.21146E-06   -.15246E-04
   8  Prefactor     6.4077        6.5712        .11406E-05    .40827E-04
   9  Prefactor     .10000E-03    6.8586        .66544E-08** at limit **
  10  norm          .10000E-03    .50284       -.20198E-07** at limit **
  11  Prefactor     .10000E-03    .82855       -.11135E-07** at limit **
  12  Prefactor     .10000E-03    3.8480        .74913E-07** at limit **
  13  norm          14.211        13.345       -.11748E-05   -.60484E-05
  14  norm          12.168        13.071       -.34191E-05   -.36386E-04
  15  Prefactor     9.0682        9.9810       -.30881E-05   -.46198E-04
  16  Prefactor     33.257        24.048        .45516E-06    .13647E-04
  17  Prefactor     .10000E-03    13.100        .32512E-07** at limit **
  18  Prefactor     .10000E-03    3.4926        .54181E-08** at limit **
  19  Normalizat    1.3365        .18079        .12876E-05   -.32618E-04
  20  Prefactor     1.0199        .18231       -.19466E-06    .87482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.78809
  Prefactor  = 0.0001
  Prefactor  = 4.98029
  Prefactor  = 0.0001
  Prefactor  = 3.44259
  Prefactor  = 0.000100011
  Prefactor  = 3.5378
  Prefactor  = 6.40766
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2113
  norm       = 12.1682
  Prefactor  = 9.0682
  Prefactor  = 33.2573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33649
  Prefactor  = 1.01992
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.838     FROM HESSE     STATUS=OK           303 CALLS     2384 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7881        6.8078        .15400E-03   -1.5187    
   2  Prefactor     .10000E-03    224.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9803        7.8619        .90100E-03   -1.5262    
   4  Prefactor     .10000E-03    .99399        .15943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4426        7.2619        .10898E-02   -1.5337    
   6  Prefactor     .10001E-03    6.8507        .58313E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5378        7.2262        .21493E-03   -1.5332    
   8  Prefactor     6.4077        6.5757        .15856E-03   -1.5202    
   9  Prefactor     .10000E-03    6.8788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .51738        .11487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .83360        .73787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8862        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.211        13.383        .10624E-03   -1.4954    
  14  norm          12.168        13.160        .11483E-03   -1.5010    
  15  Prefactor     9.0682        10.015        .13309E-03   -1.5106    
  16  Prefactor     33.257        24.140        .69483E-04   -1.4554    
  17  Prefactor     .10000E-03    13.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4952        .15158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3365        .22056        .24062E-03   -.82484    
  20  Prefactor     1.0199        .21783        .28494E-03   -.92068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19122e-09
Minuit parameter uncertainties:
  1  6.80854
  2  0.000424139
  3  7.86356
  4  2.31358e-06
  5  7.26377
  6  0.00055624
  7  7.228
  8  6.57642
  9  1.90647e-06
  10  4.19537e-07
  11  1.09148e-06
  12  1.55191e-05
  13  13.3854
  14  13.1635
  15  10.0171
  16  24.1471
  17  4.93522e-06
  18  6.12624e-07
  19  0.220714
  20  0.218014
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.906e-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.020e+00  2.180e-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:  1.336e+00  2.207e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302707/likelihoodResults_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.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) = 6896.83903708
delta logL = -0.000692047273333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6896.83834501
delta logL = 1.7029378796e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4018       1.0000          .0000       10.000    
     3 'Normalizat'    1.3365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0199       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=   6896.838     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10109E-03    98.726        .18142E-02** at limit **
   2  Index         2.3393        5.8721        .50000        .13064E-04
   3  Normalizat    1.3365        .16971E-01    .24062E-03   -.17576E-04
   4  Prefactor     1.0199        .17930E-01    .28494E-03    .95756E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101091
  Index      = 2.33935
  Normalizat = 1.33649
  Prefactor  = 1.01992
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.838     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10109E-03    415.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3393        5.3080        .50000       -.56111    
   3  Normalizat    1.3365        .36995E-01    .96247E-05   -.82483    
   4  Prefactor     1.0199        .39080E-01    .11398E-04   -.92069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.41618e-08
Minuit parameter uncertainties:
  1  0.0428878
  2  992.05
  3  0.0369955
  4  0.0390809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302707': 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) = 6896.83834484
delta logL = 1.86233592103e-07

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.011e-04  4.289e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.339e+00  9.921e+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.020e+00  3.908e-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:  1.336e+00  3.700e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/302707/cmap_HighResolution_656380801_656640001_4FGL_J1059.5+2057_daily_bin1609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-12-07 21:39:42.138643', job_id='302707', GAL2='1.02', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1638941982.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1609' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:39:42 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 302707: <4FGL_J1059.5+2057_daily_bin1609> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1609> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 21:25:18 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:28:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:28:42 2021
Terminated at Tue Dec  7 21:39:42 2021
Results reported at Tue Dec  7 21:39:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1609 164.878 20.9524 656380801 656640001 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 :                                   645.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            864 sec.

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

