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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin600
RA = 164.342, Dec = -23.6889
tmin = 394848001, tmax = 395107201
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='307226', job_status='RUN', time_executed='2021-09-02 21:17:07.726768', time_epoch_executed='1630642627.73' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307226

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307226/ft1_4FGL_J1057.3-2341_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307226/ft1_4FGL_J1057.3-2341_daily_bin600.fits outfile=/scratch/kocevski/307226/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin600.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.31
user 5.02
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/307226/ltcube_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.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/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits
.....................!
real 16.21
user 15.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/307226/ltcube_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.fits outfile=/scratch/kocevski/307226/expmap_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.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/307226/ltcube_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.fits
.....................!
real 192.50
user 187.18
sys 4.53

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/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits scfile=/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits outfile=/scratch/kocevski/307226/cmap_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits scfile=/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits outfile=/scratch/kocevski/307226/cmap_HighResolution_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307226/Model_4FGL_J1057.3-2341_daily_bin600.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/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits.....................!
real 91.62
user 89.70
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits', '/scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits', expMap='/scratch/kocevski/307226/expmap_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.fits', expCube='/scratch/kocevski/307226/ltcube_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307226/Model_4FGL_J1057.3-2341_daily_bin600.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/307226/ft1_filtered_4FGL_J1057.3-2341_daily_bin600.fits
Spacecraft file(s): /scratch/kocevski/307226/ft2_4FGL_J1057.3-2341_daily_bin600.fits
Exposure map: /scratch/kocevski/307226/expmap_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.fits
Exposure cube: /scratch/kocevski/307226/ltcube_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307226/Model_4FGL_J1057.3-2341_daily_bin600.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) = 10319.142929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9667       1.0000         .10000E-03   10000.    
     2 'norm      '    22.202       1.0000         .10000E-03   10000.    
     3 'norm      '    10.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6446       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .32892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9742       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89731       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99129       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=   10319.08     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2192 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9667        1.1245        .15412E-07   -.42765E-04
   2  norm          22.200        11.484       -.50172E-07   -.55028E-04
   3  norm          10.385        7.7295        .68145E-07   -.18874E-04
   4  Prefactor     9.6447        6.3061        .12985E-05   -.82069E-04
   5  Prefactor     .10000E-03    5.8579       -.12452E-06** at limit **
   6  Prefactor     .10000E-03    5.8094       -.12260E-06** at limit **
   7  norm          .32510        1.2796        .32222E-06   -.44389E-03
   8  Prefactor     4.6648        6.4200       -.11367E-07   -.36484E-04
   9  Prefactor     6.9847        3.6850       -.85846E-07   -.30154E-03
  10  Prefactor     .10000E-03    3.9152       -.27597E-06** at limit **
  11  Prefactor     2.7859        4.2317        .61939E-06   -.58975E-04
  12  Prefactor     .10000E-03    7.0229        .91499E-07** at limit **
  13  Prefactor     .10000E-03    18.298        .68863E-06** at limit **
  14  Prefactor     14.317        21.967       -.22073E-05   -.18622E-03
  15  Prefactor     .10000E-03    3.7666       -.18701E-06** at limit **
  16  Prefactor     .10000E-03    18.881       -.62916E-06** at limit **
  17  norm          8.9741        1.4594        .43618E-08   -.18075E-04
  18  Prefactor     10.533        9.0207        .97272E-07   -.56762E-05
  19  Prefactor     .10000E-03    4.4751        .38796E-06** at limit **
  20  Normalizat    .89723        .17382       -.32533E-06   -.77659E-04
  21  Prefactor     .99134        .98973E-01   -.14202E-06   -.10629E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96672
  norm       = 22.2004
  norm       = 10.3848
  Prefactor  = 9.6447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.325102
  Prefactor  = 4.66481
  Prefactor  = 6.98473
  Prefactor  = 0.0001
  Prefactor  = 2.78591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.97411
  Prefactor  = 10.5331
  Prefactor  = 0.0001
  Normalizat = 0.897227
  Prefactor  = 0.991343
 **********
 **   18 **HESSE 
 **********

 FCN=   10319.08     FROM HESSE     STATUS=OK           319 CALLS     2511 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9667        1.1208        .79060E-04   -1.5427    
   2  norm          22.200        11.475        .85007E-04   -1.4765    
   3  norm          10.385        7.7212        .12434E-03   -1.5063    
   4  Prefactor     9.6447        6.4059        .64519E-03   -1.5087    
   5  Prefactor     .10000E-03    5.9085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .32510        4.0710        .20212E-02   -1.5594    
   8  Prefactor     4.6648        6.4079        .18634E-03   -1.5276    
   9  Prefactor     6.9847        3.6233        .12669E-03   -1.5179    
  10  Prefactor     .10000E-03    3.9850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7859        4.2418        .24243E-03   -1.5374    
  12  Prefactor     .10000E-03    7.0294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.317        23.002        .10580E-03   -1.4951    
  15  Prefactor     .10000E-03    3.7842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.9741        1.4601        .47527E-04   -1.5109    
  18  Prefactor     10.533        9.0286        .12345E-03   -1.5059    
  19  Prefactor     .10000E-03    4.6243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89723        .20676        .32923E-03   -.96558    
  21  Prefactor     .99134        .11854        .18588E-03   -.93019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55787e-10
Minuit parameter uncertainties:
  1  1.12082
  2  11.4758
  3  7.72198
  4  6.4064
  5  1.07296e-05
  6  8.86292e-06
  7  2.30071
  8  6.40886
  9  3.6234
  10  1.14167e-05
  11  4.24227
  12  5.76855e-06
  13  8.16232e-05
  14  23.0165
  15  1.65605e-05
  16  7.4732e-05
  17  1.46008
  18  9.02979
  19  1.9199e-05
  20  0.206945
  21  0.118575
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  2.786e+00  4.242e+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.913e-01  1.186e-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:  8.972e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/307226/likelihoodResults_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.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) = 10318.6685915
delta logL = 0.415374887358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10318.6411662
delta logL = 0.442800185594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77732       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9229       1.0000          .0000       10.000    
     3 'Normalizat'    .84608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0121       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.

 FCN=   10318.64     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77018        9.2583        .12355E-01    .39986E-03
   2  Index         3.9280        2.9369        .15603        .75167E-04
   3  Normalizat    .84603        .35995E-01    .76396E-01   -.62311E-04
   4  Prefactor     1.0122        .21399E-01    .43031E-01   -.89312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.77018
  Index      = 3.92796
  Normalizat = 0.846026
  Prefactor  = 1.01224
 **********
 **   18 **HESSE 
 **********

 FCN=   10318.64     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77018        28.687        .76458E-04   -1.5532    
   2  Index         3.9280        6.9226        .81050E-02   -.21609    
   3  Normalizat    .84603        .17081        .33813E-03   -.98383    
   4  Prefactor     1.0122        .10231        .18415E-03   -.92322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02955e-09
Minuit parameter uncertainties:
  1  9.40521
  2  7.50575
  3  0.170919
  4  0.102331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307226': 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) = 10318.6411626
delta logL = 0.442803769285

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.702e-01  9.405e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.928e+00  7.506e+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:  1.012e+00  1.023e-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:  8.460e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 3.93 +/- 7.51
Photon Flux (Free Index): 5.33e-08 +/- 4.76e-08
Energy Flux (Free Index): 8.08e-06 +/- 1.42e-05

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/307226/cmap_HighResolution_394848001_395107201_4FGL_J1057.3-2341_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', comment='SUCCESS', energy_flux2='8.08e-06', dlogl='4.43e-01', photon_flux2='5.33e-08', job_status='DONE', time_completed='2021-09-02 21:32:26.678911', photon_index_error2='7.51', photon_index2='3.93', ts='0.52', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.42e-05', EG='0.90', time_epoch_completed='1630643546.68', return_code='0', job_id='307226', GAL2='1.01', EG2='0.85', return_code2='102', photon_flux_error2='4.76e-08', ts2='1.50', photon_index='2.51' WHERE bin_id='600' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:32:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 307226: <4FGL_J1057.3-2341_daily_bin600> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin600> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 21:16:27 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:16:58 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:16:58 2021
Terminated at Thu Sep  2 21:32:27 2021
Results reported at Thu Sep  2 21:32:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin600 164.342 -23.6889 394848001 395107201 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 :                                   913.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             351.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            960 sec.

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

