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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin1541
RA = 164.342, Dec = -23.6889
tmin = 638755201, tmax = 639014401
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='313651', job_status='RUN', time_executed='2021-09-02 21:35:27.723692', time_epoch_executed='1630643727.72' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313651/ft1_4FGL_J1057.3-2341_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313651/ft1_4FGL_J1057.3-2341_daily_bin1541.fits outfile=/scratch/kocevski/313651/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1541.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=638755201.0 tmax=639014401.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.36
user 5.05
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.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/313651/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1541.fits evtable="EVENTS" outfile="/scratch/kocevski/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/313651/ltcube_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.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/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits
.....................!
real 13.36
user 12.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/313651/ltcube_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.fits outfile=/scratch/kocevski/313651/expmap_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.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/313651/ltcube_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.fits
.....................!
real 191.43
user 185.75
sys 5.24

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/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.fits scfile=/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits outfile=/scratch/kocevski/313651/cmap_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.fits scfile=/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits outfile=/scratch/kocevski/313651/cmap_HighResolution_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/313651/ft2_4FGL_J1057.3-2341_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313651/Model_4FGL_J1057.3-2341_daily_bin1541.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/313651/ft1_filtered_4FGL_J1057.3-2341_daily_bin1541.fits.....................!
real 50.70
user 49.07
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.753       1.0000         .10000E-03   10000.    
     7 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.674       1.0000         .10000E-03   10000.    
    17 'norm      '    .72469       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.831       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90528       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0415       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=   4786.297     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2195 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6622        .17584E-06** at limit **
   2  norm          .10000E-03    7.7842        .38450E-06** at limit **
   3  norm          .10000E-03    4.3750        .83992E-07** at limit **
   4  Prefactor     .10000E-03    8.2300        .37010E-07** at limit **
   5  Prefactor     44.156        23.725       -.61415E-06    .18520E-04
   6  Prefactor     23.756        21.065       -.12962E-06    .13906E-03
   7  norm          .10002E-03    2.5989       -.27227E-06** at limit **
   8  Prefactor     .10000E-03    30.056       -.15801E-05** at limit **
   9  Prefactor     .10000E-03    2.8565        .12349E-06** at limit **
  10  Prefactor     26.316        17.896       -.25866E-07    .92236E-05
  11  Prefactor     8.5922        9.4752        .24749E-05   -.46633E-04
  12  Prefactor     .10000E-03    23.087        .12109E-05** at limit **
  13  Prefactor     22.848        80.992       -.48204E-05   -.52856E-04
  14  Prefactor     .10000E-03    17.557       -.38840E-06** at limit **
  15  Prefactor     .10000E-03    7.0701       -.15337E-06** at limit **
  16  Prefactor     42.678        42.476        .37251E-06    .19558E-04
  17  norm          .72390        1.1850       -.20235E-07   -.25458E-04
  18  Prefactor     12.450        18.150        .18632E-06   -.14086E-04
  19  Prefactor     37.830        16.706        .42534E-07   -.17346E-04
  20  Normalizat    .90544        .29847       -.56564E-06   -.95481E-05
  21  Prefactor     1.0414        .15839       -.49036E-06    .84182E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1556
  Prefactor  = 23.7562
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3157
  Prefactor  = 8.59221
  Prefactor  = 0.000100001
  Prefactor  = 22.8484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6779
  norm       = 0.723898
  Prefactor  = 12.4503
  Prefactor  = 37.8303
  Normalizat = 0.905435
  Prefactor  = 1.0414
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.297     FROM HESSE     STATUS=OK           317 CALLS     2512 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7774        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.8212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3836        .14133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.156        23.583        .60330E-04   -1.4378    
   6  Prefactor     23.756        20.365        .82190E-04   -1.4733    
   7  norm          .10002E-03    17.407        .20478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8750        .11404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.316        17.876        .78090E-04   -1.4682    
  11  Prefactor     8.5922        9.5570        .68374E-03   -1.5122    
  12  Prefactor     .10000E-03    23.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.848        83.042        .83726E-04   -1.4752    
  14  Prefactor     .10000E-03    17.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0819        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.678        42.428        .61367E-04   -1.4400    
  17  norm          .72390        1.0117        .91949E-03   -1.5538    
  18  Prefactor     12.450        18.124        .11352E-03   -1.5002    
  19  Prefactor     37.830        16.721        .65163E-04   -1.4477    
  20  Normalizat    .90544        .34799        .37234E-03   -.96269    
  21  Prefactor     1.0414        .18618        .19228E-03   -.91362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38428e-09
Minuit parameter uncertainties:
  1  8.17887e-06
  2  2.60758e-05
  3  3.02568e-06
  4  2.03154e-06
  5  23.5881
  6  20.3706
  7  0.00107929
  8  0.000156555
  9  2.21559e-06
  10  17.8794
  11  9.55867
  12  0.000273278
  13  83.4663
  14  4.62535e-05
  15  1.09974e-05
  16  42.4585
  17  1.01172
  18  18.1323
  19  16.7234
  20  0.348858
  21  0.1863
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  8.592e+00  9.559e+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:  1.041e+00  1.863e-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:  9.054e-01  3.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.33e-08 +/- 8.15e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 2.35e-05

TS (Fixed Index): 1.03
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 2.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/313651/likelihoodResults_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.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) = 4786.27859338
delta logL = 0.0184069139796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4786.27338637
delta logL = 0.0236139208973

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4786.273     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6340        11.244        .12910E-03    .11561E-02
   2  Index         2.3537        .68331        .79681E-02    .32569E-03
   3  Normalizat    .91356        .33772        .37081E-03   -.21728E-03
   4  Prefactor     1.0375        .18666        .19259E-03   -.52011E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63403
  Index      = 2.3537
  Normalizat = 0.913565
  Prefactor  = 1.03745
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.273     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6340        11.071        .51640E-05   -1.5087    
   2  Index         2.3537        .67268        .31872E-03   -.55773    
   3  Normalizat    .91356        .33792        .14832E-04   -.95985    
   4  Prefactor     1.0375        .18672        .38518E-04   -.91491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54681e-09
Minuit parameter uncertainties:
  1  11.0737
  2  0.675526
  3  0.338712
  4  0.186838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313651': 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) = 4786.27338631
delta logL = 0.0236139818526

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  9.634e+00  1.107e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.354e+00  6.755e-01  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.037e+00  1.868e-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:  9.136e-01  3.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.35 +/- 0.68
Photon Flux (Free Index): 6.81e-08 +/- 8.03e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.87e-05

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/313651/cmap_HighResolution_638755201_639014401_4FGL_J1057.3-2341_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-02', comment='SUCCESS', photon_flux='7.33e-08', energy_flux2='2.38e-05', photon_flux_error='8.15e-08', dlogl='2.36e-02', energy_flux='2.11e-05', photon_flux2='6.81e-08', job_status='DONE', time_completed='2021-09-02 21:47:29.832161', photon_index_error2='0.68', photon_index2='2.35', ts='1.03', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.44e-07', energy_flux_error2='2.87e-05', EG='0.91', time_epoch_completed='1630644449.83', return_code='0', job_id='313651', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='8.03e-08', ts2='1.07', photon_index='2.51' WHERE bin_id='1541' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:47:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 313651: <4FGL_J1057.3-2341_daily_bin1541> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin1541> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 21:32:53 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:33:22 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:33:22 2021
Terminated at Thu Sep  2 21:47:30 2021
Results reported at Thu Sep  2 21:47:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin1541 164.342 -23.6889 638755201 639014401 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 :                                   580.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             221.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            877 sec.

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

