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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin364
RA = 164.342, Dec = -23.6889
tmin = 333676801, tmax = 333936001
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='304298', job_status='RUN', time_executed='2021-09-02 21:10:54.116360', time_epoch_executed='1630642254.12' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304298/ft1_4FGL_J1057.3-2341_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304298/ft1_4FGL_J1057.3-2341_daily_bin364.fits outfile=/scratch/kocevski/304298/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin364.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=333676801.0 tmax=333936001.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.88
user 3.58
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304298/ft1_filtered_4FGL_J1057.3-2341_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/304298/ltcube_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.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/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits
.....................!
real 15.37
user 14.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304298/ft1_filtered_4FGL_J1057.3-2341_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/304298/ltcube_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.fits outfile=/scratch/kocevski/304298/expmap_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.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/304298/ltcube_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.fits
.....................!
real 191.56
user 186.07
sys 4.71

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/304298/ft1_filtered_4FGL_J1057.3-2341_daily_bin364.fits scfile=/scratch/kocevski/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits outfile=/scratch/kocevski/304298/cmap_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304298/ft1_filtered_4FGL_J1057.3-2341_daily_bin364.fits scfile=/scratch/kocevski/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits outfile=/scratch/kocevski/304298/cmap_HighResolution_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304298/ft1_filtered_4FGL_J1057.3-2341_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/304298/ft2_4FGL_J1057.3-2341_daily_bin364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304298/Model_4FGL_J1057.3-2341_daily_bin364.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/304298/ft1_filtered_4FGL_J1057.3-2341_daily_bin364.fits.....................!
real 66.70
user 65.28
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    37.834       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .43791E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    115.28       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5337       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2212       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93954       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=   6856.276     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1930 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0499       -.39956E-06** at limit **
   2  norm          .10000E-03    4.5476        .16331E-07** at limit **
   3  norm          37.835        13.876        .30131E-08    .21284E-04
   4  Prefactor     .10000E-03    2.2511       -.66097E-07** at limit **
   5  Prefactor     .10000E-03    30.052        .40893E-06** at limit **
   6  Prefactor     .10000E-03    5.1758       -.58489E-06** at limit **
   7  norm          .10001E-03    1.3425        .49849E-06** at limit **
   8  Prefactor     6.4514        20.301       -.11615E-06    .11522E-04
   9  Prefactor     .10000E-03    1.7132       -.30814E-07** at limit **
  10  Prefactor     16.611        12.537        .43036E-06    .30303E-04
  11  Prefactor     5.4744        4.9158        .29030E-06    .73486E-04
  12  Prefactor     .10000E-03    13.070        .17658E-05** at limit **
  13  Prefactor     115.40        90.749       -.13015E-04    .78943E-06
  14  Prefactor     .10000E-03    12.125       -.68220E-06** at limit **
  15  Prefactor     11.001        11.433        .36969E-06    .29190E-04
  16  Prefactor     .10000E-03    22.915       -.27009E-06** at limit **
  17  norm          1.4767        1.1163        .25782E-06    .10187E-03
  18  Prefactor     .10000E-03    5.3181        .34952E-06** at limit **
  19  Prefactor     1.5333        4.0080        .73515E-05    .63624E-05
  20  Normalizat    1.2214        .23183       -.16995E-05    .54653E-04
  21  Prefactor     .93947        .12597        .10824E-05    .24803E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 37.8351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 6.45139
  Prefactor  = 0.0001
  Prefactor  = 16.611
  Prefactor  = 5.4744
  Prefactor  = 0.0001
  Prefactor  = 115.396
  Prefactor  = 0.0001
  Prefactor  = 11.0014
  Prefactor  = 0.0001
  norm       = 1.47668
  Prefactor  = 0.0001
  Prefactor  = 1.5333
  Normalizat = 1.22144
  Prefactor  = 0.939467
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3116        .16289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.5561        .17242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          37.835        13.872        .65160E-04   -1.4477    
   4  Prefactor     .10000E-03    2.2556        .12133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    10.132        .18473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4514        20.259        .15807E-03   -1.5200    
   9  Prefactor     .10000E-03    1.7306        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.611        12.529        .49137E-03   -1.4893    
  11  Prefactor     5.4744        4.9128        .16640E-03   -1.5240    
  12  Prefactor     .10000E-03    13.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     115.40        90.831        .18736E-03   -1.3555    
  14  Prefactor     .10000E-03    12.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.001        11.428        .60394E-03   -1.5044    
  16  Prefactor     .10000E-03    22.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4767        1.1170        .17668E-03   -1.5465    
  18  Prefactor     .10000E-03    5.3686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5333        4.0248        .13103E-02   -1.5460    
  20  Normalizat    1.2214        .27824        .30879E-03   -.85943    
  21  Prefactor     .93947        .15275        .19716E-03   -.94775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36657e-09
Minuit parameter uncertainties:
  1  0.000219191
  2  3.65298e-06
  3  13.8731
  4  3.39378e-06
  5  2.3072e-06
  6  5.30046e-06
  7  0.000594089
  8  20.2809
  9  3.96145e-06
  10  12.5307
  11  4.9132
  12  0.000138178
  13  90.9404
  14  6.93609e-06
  15  11.4302
  16  5.38671e-05
  17  1.11706
  18  4.0972e-06
  19  4.02548
  20  0.278582
  21  0.152824
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  5.474e+00  4.913e+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.395e-01  1.528e-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.221e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/304298/likelihoodResults_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.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) = 6856.25354321
delta logL = 0.0226384041134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6856.24857108
delta logL = 0.0276105321773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9941       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3264       1.0000          .0000       10.000    
     3 'Normalizat'    1.2300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93601       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=   6856.249     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9952        5.7420        .82003E-03   -.12547E-03
   2  Index         2.3282        .74142        .97929E-02    .59932E-04
   3  Normalizat    1.2303        .26848        .30784E-03   -.51440E-03
   4  Prefactor     .93587        .15224        .19749E-03   -.54008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9952
  Index      = 2.3282
  Normalizat = 1.23029
  Prefactor  = 0.935866
 **********
 **   18 **HESSE 
 **********

 FCN=   6856.249     FROM HESSE     STATUS=OK            27 CALLS      270 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9952        5.6435        .32801E-04   -1.5218    
   2  Index         2.3282        .72858        .39172E-03   -.56375    
   3  Normalizat    1.2303        .26862        .61568E-04   -.85672    
   4  Prefactor     .93587        .15232        .39498E-04   -.94899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46235e-10
Minuit parameter uncertainties:
  1  5.64402
  2  0.732241
  3  0.268923
  4  0.152391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304298': 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) = 6856.24856664
delta logL = 0.0276149779202

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  5.995e+00  5.644e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.328e+00  7.322e-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:  9.359e-01  1.524e-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.230e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.33 +/- 0.73
Photon Flux (Free Index): 4.11e-08 +/- 4.53e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.53e-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/304298/cmap_HighResolution_333676801_333936001_4FGL_J1057.3-2341_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='1.49e-05', photon_flux_error='4.19e-08', dlogl='2.76e-02', energy_flux='1.35e-05', photon_flux2='4.11e-08', job_status='DONE', time_completed='2021-09-02 21:22:18.102944', photon_index_error2='0.73', photon_index2='2.33', ts='2.17', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.53e-05', EG='1.22', time_epoch_completed='1630642938.1', return_code='0', job_id='304298', GAL2='0.94', EG2='1.23', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.53e-08', ts2='2.22', photon_index='2.51' WHERE bin_id='364' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:22:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 304298: <4FGL_J1057.3-2341_daily_bin364> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin364> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 21:06:25 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:08:48 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:08:48 2021
Terminated at Thu Sep  2 21:22:18 2021
Results reported at Thu Sep  2 21:22:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin364 164.342 -23.6889 333676801 333936001 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 :                                   681.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            953 sec.

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

