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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin159
RA = 164.342, Dec = -23.6889
tmin = 280540801, tmax = 280800001
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='302494', job_status='RUN', time_executed='2021-09-02 21:05:17.793432', time_epoch_executed='1630641917.79' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302494

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302494/ft1_4FGL_J1057.3-2341_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302494/ft1_4FGL_J1057.3-2341_daily_bin159.fits outfile=/scratch/kocevski/302494/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin159.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=280540801.0 tmax=280800001.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.52
user 3.31
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.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/302494/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/302494/ltcube_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.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/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits
.....................!
real 14.60
user 14.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/302494/ltcube_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.fits outfile=/scratch/kocevski/302494/expmap_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.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/302494/ltcube_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.fits
.....................!
real 192.24
user 186.63
sys 4.93

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 191 point sources and 0 extended sources

Setting source of interest to:
4FGL J1057.3-2341 @ 164.342 -23.6889

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits scfile=/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits outfile=/scratch/kocevski/302494/cmap_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.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.342 yref=-23.6889 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits scfile=/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits outfile=/scratch/kocevski/302494/cmap_HighResolution_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.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.342 yref=-23.6889 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302494/Model_4FGL_J1057.3-2341_daily_bin159.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/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits.....................!
real 69.25
user 67.93
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits', '/scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits', expMap='/scratch/kocevski/302494/expmap_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.fits', expCube='/scratch/kocevski/302494/ltcube_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302494/Model_4FGL_J1057.3-2341_daily_bin159.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1057.3-2341'

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.450e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302494/ft1_filtered_4FGL_J1057.3-2341_daily_bin159.fits
Spacecraft file(s): /scratch/kocevski/302494/ft2_4FGL_J1057.3-2341_daily_bin159.fits
Exposure map: /scratch/kocevski/302494/expmap_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.fits
Exposure cube: /scratch/kocevski/302494/ltcube_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302494/Model_4FGL_J1057.3-2341_daily_bin159.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) = 7159.89106221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7744       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11564E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31564E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    176.55       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10643E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6303       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7159.882     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2268 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7744        1.1777       -.34631E-08    .30063E-05
   2  norm          .10000E-03    3.6031        .86421E-08** at limit **
   3  norm          .10000E-03    3.2090       -.93862E-08** at limit **
   4  Prefactor     6.0335        5.0969        .40543E-06    .25067E-03
   5  Prefactor     17.353        14.426        .24562E-06   -.20176E-03
   6  Prefactor     .10000E-03    3.3457        .25725E-07** at limit **
   7  norm          .10000E-03    1.1938       -.57781E-07** at limit **
   8  Prefactor     10.039        18.710       -.27620E-06   -.45256E-05
   9  Prefactor     1.5809        3.5359        .26911E-06   -.26089E-03
  10  Prefactor     .10000E-03    6.0639       -.18003E-06** at limit **
  11  Prefactor     .94641        4.9629        .12142E-05   -.44678E-03
  12  Prefactor     .10000E-03    15.823       -.52784E-07** at limit **
  13  Prefactor     176.53        98.398       -.56980E-05   -.24722E-03
  14  Prefactor     10.290        18.432       -.62600E-06   -.33962E-04
  15  Prefactor     6.8843        9.6884        .14546E-05   -.62369E-03
  16  Prefactor     .10000E-03    27.036        .10228E-06** at limit **
  17  norm          .10000E-03    .52799        .39454E-07** at limit **
  18  Prefactor     16.140        15.374        .19673E-06   -.26134E-04
  19  Prefactor     9.6310        6.9292       -.43162E-06   -.23798E-03
  20  Normalizat    1.0641        .20621        .32941E-06   -.54160E-04
  21  Prefactor     .90821        .11241       -.30718E-06    .17351E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77441
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.03351
  Prefactor  = 17.3532
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0388
  Prefactor  = 1.5809
  Prefactor  = 0.0001
  Prefactor  = 0.946413
  Prefactor  = 0.0001
  Prefactor  = 176.535
  Prefactor  = 10.2896
  Prefactor  = 6.88425
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1403
  Prefactor  = 9.63102
  Normalizat = 1.06414
  Prefactor  = 0.908206
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.882     FROM HESSE     STATUS=OK           327 CALLS     2595 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7744        1.1815        .72670E-04   -1.5442    
   2  norm          .10000E-03    3.6246        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2306        .14802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0335        5.1089        .16347E-03   -1.5217    
   5  Prefactor     17.353        14.501        .48069E-03   -1.4875    
   6  Prefactor     .10000E-03    3.3488        .15112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6019        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.039        18.650        .12646E-03   -1.5074    
   9  Prefactor     1.5809        3.4381        .21926E-03   -1.5456    
  10  Prefactor     .10000E-03    47.056        .38556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94641        5.8785        .37988E-03   -1.5513    
  12  Prefactor     .10000E-03    15.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     176.53        104.55        .15187E-03   -1.3043    
  14  Prefactor     10.290        18.429        .12490E-03   -1.5066    
  15  Prefactor     6.8843        10.851        .76464E-03   -1.5183    
  16  Prefactor     .10000E-03    27.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .81117        .11881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.140        15.382        .99690E-04   -1.4904    
  19  Prefactor     9.6310        6.9550        .12913E-03   -1.5087    
  20  Normalizat    1.0641        .24581        .30410E-03   -.90912    
  21  Prefactor     .90821        .13415        .18665E-03   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74879e-09
Minuit parameter uncertainties:
  1  1.18147
  2  1.12203e-06
  3  2.04092e-06
  4  5.10923
  5  14.5036
  6  8.38978e-07
  7  2.32277e-06
  8  18.6607
  9  3.43852
  10  0.00014595
  11  4.71784
  12  8.76855e-05
  13  104.656
  14  18.4389
  15  10.8537
  16  3.85194e-05
  17  1.41332e-05
  18  15.3856
  19  6.95558
  20  0.246077
  21  0.134194
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  9.464e-01  4.718e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.082e-01  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  1.064e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302494/likelihoodResults_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.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) = 7159.86784531
delta logL = 0.0138342007012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7159.86053891
delta logL = 0.021140593275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6369       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1949       1.0000          .0000       10.000    
     3 'Normalizat'    1.0661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7159.861     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      280 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6464        6.1497        .16518E-02    .87827E-03
   2  Index         2.1948        1.2775        .13040E-01   -.81768E-05
   3  Normalizat    1.0661        .23185        .30384E-03   -.44862E-04
   4  Prefactor     .90608        .13388        .18684E-03   -.78553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64636
  Index      = 2.19478
  Normalizat = 1.0661
  Prefactor  = 0.906084
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.861     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6464        5.9666        .33035E-03   -1.5451    
   2  Index         2.1948        1.2421        .52161E-03   -.59565    
   3  Normalizat    1.0661        .23206        .12154E-04   -.90848    
   4  Prefactor     .90608        .13391        .74736E-05   -.95929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55734e-12
Minuit parameter uncertainties:
  1  5.96871
  2  1.26158
  3  0.232279
  4  0.133955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302494': 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) = 7159.86053711
delta logL = 0.0211423925084

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.646e+00  5.969e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.195e+00  1.262e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.061e-01  1.340e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  1.066e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 164.342 -23.689

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/302494/cmap_HighResolution_280540801_280800001_4FGL_J1057.3-2341_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-02 21:17:27.909482', job_id='302494', GAL2='0.91', fit_tolerance='1e-08', EG2='1.07', EG='1.06', time_epoch_completed='1630642647.91', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.11e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='159' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 302494: <4FGL_J1057.3-2341_daily_bin159> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin159> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:01:03 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:02:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:02:03 2021
Terminated at Thu Sep  2 21:17:28 2021
Results reported at Thu Sep  2 21:17:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin159 164.342 -23.6889 280540801 280800001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1057.3-2341 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            985 sec.

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

