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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin164
RA = 164.342, Dec = -23.6889
tmin = 281836801, tmax = 282096001
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='302501', job_status='RUN', time_executed='2021-09-02 21:05:59.641850', time_epoch_executed='1630641959.64' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302501/ft1_4FGL_J1057.3-2341_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302501/ft2_4FGL_J1057.3-2341_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302501/ft1_4FGL_J1057.3-2341_daily_bin164.fits outfile=/scratch/kocevski/302501/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin164.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=281836801.0 tmax=282096001.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 4.07
user 3.76
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302501/ft1_filtered_4FGL_J1057.3-2341_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/302501/ft2_4FGL_J1057.3-2341_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/302501/ltcube_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.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/302501/ft2_4FGL_J1057.3-2341_daily_bin164.fits
.....................!
real 15.48
user 15.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302501/ft1_filtered_4FGL_J1057.3-2341_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/302501/ft2_4FGL_J1057.3-2341_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/302501/ltcube_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.fits outfile=/scratch/kocevski/302501/expmap_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.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/302501/ltcube_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.fits
.....................!
real 190.47
user 184.81
sys 4.84

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/302501/ft1_filtered_4FGL_J1057.3-2341_daily_bin164.fits scfile=/scratch/kocevski/302501/ft2_4FGL_J1057.3-2341_daily_bin164.fits outfile=/scratch/kocevski/302501/cmap_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302501/ft1_filtered_4FGL_J1057.3-2341_daily_bin164.fits scfile=/scratch/kocevski/302501/ft2_4FGL_J1057.3-2341_daily_bin164.fits outfile=/scratch/kocevski/302501/cmap_HighResolution_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.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.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1120       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .24416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6814       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27846E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6904       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5818       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44886E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.408       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1024       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4234       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81376       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=   4783.792     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2231 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1099        1.9137        .17442E-06    .81644E-04
   2  norm          .10000E-03    5.7438       -.80454E-07** at limit **
   3  norm          .10000E-03    5.9227        .12177E-06** at limit **
   4  Prefactor     .10000E-03    3.9003       -.34674E-08** at limit **
   5  Prefactor     .10000E-03    12.912        .79963E-07** at limit **
   6  Prefactor     .10000E-03    12.924        .10252E-06** at limit **
   7  norm          .25095        3.4121       -.15783E-06    .89567E-04
   8  Prefactor     33.056        22.385       -.80001E-06   -.23941E-03
   9  Prefactor     9.6815        7.5908        .15582E-06    .63966E-06
  10  Prefactor     .10001E-03    8.7694        .44614E-06** at limit **
  11  Prefactor     7.6886        6.9721        .11783E-05   -.87863E-03
  12  Prefactor     3.5864        75.105        .59742E-05    .66331E-04
  13  Prefactor     .10000E-03    48.504       -.83595E-06** at limit **
  14  Prefactor     .10000E-03    19.303       -.25084E-06** at limit **
  15  Prefactor     .10025E-03    10.792        .25961E-05** at limit **
  16  Prefactor     24.394        31.234       -.62073E-05   -.58693E-03
  17  norm          2.1474        1.3443        .56415E-07   -.17876E-03
  18  Prefactor     .10000E-03    9.9719       -.58459E-07** at limit **
  19  Prefactor     6.0996        10.435        .30099E-05   -.71730E-03
  20  Normalizat    1.4238        .27611       -.10195E-05   -.19834E-03
  21  Prefactor     .81354        .14558       -.20078E-06   -.31193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10989
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.250948
  Prefactor  = 33.0558
  Prefactor  = 9.68149
  Prefactor  = 0.000100011
  Prefactor  = 7.68857
  Prefactor  = 3.58635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100255
  Prefactor  = 24.3939
  norm       = 2.14736
  Prefactor  = 0.0001
  Prefactor  = 6.09965
  Normalizat = 1.42384
  Prefactor  = 0.813542
 **********
 **   18 **HESSE 
 **********

 FCN=   4783.792     FROM HESSE     STATUS=OK           317 CALLS     2548 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1099        1.6397        .12178E-02   -1.5497    
   2  norm          .10000E-03    5.7498        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9461        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9088        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .25095        27.290        .22533E-02   -1.5608    
   8  Prefactor     33.056        22.460        .69691E-04   -1.4557    
   9  Prefactor     9.6815        7.3692        .12879E-03   -1.5086    
  10  Prefactor     .10001E-03    63.917        .37578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6886        7.3235        .72302E-03   -1.5153    
  12  Prefactor     3.5864        76.001        .21353E-03   -1.5329    
  13  Prefactor     .10000E-03    48.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10025E-03    50.293        .41236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.394        33.899        .81080E-04   -1.4720    
  17  norm          2.1474        1.3383        .61197E-04   -1.5415    
  18  Prefactor     .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0996        11.552        .81262E-03   -1.5214    
  20  Normalizat    1.4238        .32956        .29922E-03   -.79942    
  21  Prefactor     .81354        .17356        .20724E-03   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65138e-09
Minuit parameter uncertainties:
  1  1.63973
  2  8.02554e-06
  3  1.26961e-05
  4  2.57632e-07
  5  3.55681e-05
  6  1.90879e-05
  7  5.2353
  8  22.4654
  9  7.36986
  10  0.00165088
  11  7.32432
  12  33.0667
  13  0.000303294
  14  6.29536e-05
  15  0.00716599
  16  33.9262
  17  1.33834
  18  9.24578e-06
  19  11.5561
  20  0.330056
  21  0.173673
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.689e+00  7.324e+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:  8.135e-01  1.737e-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.424e+00  3.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 6.24e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/302501/likelihoodResults_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.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) = 4783.46540085
delta logL = 0.326480810325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4783.45891512
delta logL = 0.332966536248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2170       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4024       1.0000          .0000       10.000    
     3 'Normalizat'    1.3432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84388       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=   4783.459     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      249 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2133        68.669        .49059E-02    .33796E-03
   2  Index         3.4031        6.6655        .12936        .10761E-03
   3  Normalizat    1.3431        .10916        .69257E-01    .33244E-05
   4  Prefactor     .84391        .53129E-01    .44286E-01   -.12558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21333
  Index      = 3.40307
  Normalizat = 1.34312
  Prefactor  = 0.84391
 **********
 **   18 **HESSE 
 **********

 FCN=   4783.459     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2133        11.777        .98928E-04   -1.5297    
   2  Index         3.4031        2.0824        .63915E-02   -.32508    
   3  Normalizat    1.3431        .35647        .30642E-03   -.82288    
   4  Prefactor     .84391        .18685        .20387E-03   -.98129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76064e-11
Minuit parameter uncertainties:
  1  11.7837
  2  2.15606
  3  0.357123
  4  0.186994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302501': 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) = 4783.45891492
delta logL = 0.332966740867

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  4.213e+00  1.178e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.403e+00  2.156e+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:  8.439e-01  1.870e-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.343e+00  3.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 3.40 +/- 2.16
Photon Flux (Free Index): 1.28e-07 +/- 1.22e-07
Energy Flux (Free Index): 2.19e-05 +/- 1.65e-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/302501/cmap_HighResolution_281836801_282096001_4FGL_J1057.3-2341_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='2.19e-05', photon_flux_error='6.24e-08', dlogl='3.33e-01', energy_flux='1.89e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-02 21:15:44.707903', photon_index_error2='2.16', photon_index2='3.40', ts='1.74', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='1.65e-05', EG='1.42', time_epoch_completed='1630642544.71', return_code='0', job_id='302501', GAL2='0.84', EG2='1.34', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='1.22e-07', ts2='2.50', photon_index='2.51' WHERE bin_id='164' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:15:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 302501: <4FGL_J1057.3-2341_daily_bin164> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin164> 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) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:02:05 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:05 2021
Terminated at Thu Sep  2 21:15:45 2021
Results reported at Thu Sep  2 21:15:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin164 164.342 -23.6889 281836801 282096001 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 :                                   584.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            882 sec.

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

