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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin238
RA = 164.342, Dec = -23.6889
tmin = 301017601, tmax = 301276801
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='302608', job_status='RUN', time_executed='2021-09-02 21:04:29.467864', time_epoch_executed='1630641869.47' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302608/ft1_4FGL_J1057.3-2341_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302608/ft2_4FGL_J1057.3-2341_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302608/ft1_4FGL_J1057.3-2341_daily_bin238.fits outfile=/scratch/kocevski/302608/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin238.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=301017601.0 tmax=301276801.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.60
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302608/ft1_filtered_4FGL_J1057.3-2341_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/302608/ft2_4FGL_J1057.3-2341_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/302608/ltcube_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.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/302608/ft2_4FGL_J1057.3-2341_daily_bin238.fits
.....................!
real 16.49
user 15.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302608/ft1_filtered_4FGL_J1057.3-2341_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/302608/ft2_4FGL_J1057.3-2341_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/302608/ltcube_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.fits outfile=/scratch/kocevski/302608/expmap_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.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/302608/ltcube_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.fits
.....................!
real 193.14
user 187.05
sys 4.23

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/302608/ft1_filtered_4FGL_J1057.3-2341_daily_bin238.fits scfile=/scratch/kocevski/302608/ft2_4FGL_J1057.3-2341_daily_bin238.fits outfile=/scratch/kocevski/302608/cmap_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.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/302608/ft1_filtered_4FGL_J1057.3-2341_daily_bin238.fits scfile=/scratch/kocevski/302608/ft2_4FGL_J1057.3-2341_daily_bin238.fits outfile=/scratch/kocevski/302608/cmap_HighResolution_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.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.61
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85371       1.0000         .10000E-03   10000.    
     2 'norm      '    7.0694       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.454       1.0000         .10000E-03   10000.    
     7 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8193       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.171       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2045       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0376       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=   7007.373     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2667 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85378        2.6862        .24040E-06   -.45838E-03
   2  norm          7.0699        12.242        .23978E-06   -.16254E-04
   3  norm          .10000E-03    4.6412        .40172E-06** at limit **
   4  Prefactor     .10000E-03    3.9103        .41678E-06** at limit **
   5  Prefactor     .10000E-03    4.1653       -.76961E-06** at limit **
   6  Prefactor     15.447        23.664       -.45701E-05   -.18186E-03
   7  norm          .10000E-03    2.6198        .57574E-07** at limit **
   8  Prefactor     2.9950        13.742        .30587E-05   -.62551E-03
   9  Prefactor     16.170        6.8466        .44256E-06    .53166E-04
  10  Prefactor     12.676        13.062        .32004E-06   -.26984E-03
  11  Prefactor     6.8194        6.8415        .61869E-06   -.15164E-02
  12  Prefactor     .10000E-03    34.421        .86703E-05** at limit **
  13  Prefactor     .10000E-03    35.876       -.88755E-05** at limit **
  14  Prefactor     .10000E-03    10.466       -.63683E-07** at limit **
  15  Prefactor     .10000E-03    5.1648       -.51031E-07** at limit **
  16  Prefactor     77.168        54.050       -.15713E-05   -.59120E-04
  17  norm          3.3572        1.3787        .34771E-07   -.15549E-04
  18  Prefactor     27.094        15.998       -.22266E-07   -.14263E-04
  19  Prefactor     .10000E-03    2.9483        .84894E-08** at limit **
  20  Normalizat    1.2044        .24909       -.12742E-06   -.28913E-04
  21  Prefactor     1.0376        .13514       -.82667E-07   -.34310E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.853777
  norm       = 7.06988
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4471
  norm       = 0.0001
  Prefactor  = 2.99498
  Prefactor  = 16.17
  Prefactor  = 12.6763
  Prefactor  = 6.81938
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.1679
  norm       = 3.35717
  Prefactor  = 27.0941
  Prefactor  = 0.0001
  Normalizat = 1.20438
  Prefactor  = 1.03759
 **********
 **   18 **HESSE 
 **********

 FCN=   7007.373     FROM HESSE     STATUS=OK           317 CALLS     2984 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85378        2.7482        .23187E-03   -1.5523    
   2  norm          7.0699        12.236        .15088E-03   -1.5176    
   3  norm          .10000E-03    4.6563        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9217        .16166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1701        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.447        23.902        .10188E-03   -1.4922    
   7  norm          .10000E-03    2.6428        .13203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9950        20.245        .11727E-02   -1.5362    
   9  Prefactor     16.170        6.8731        .99601E-04   -1.4904    
  10  Prefactor     12.676        13.193        .56255E-03   -1.4996    
  11  Prefactor     6.8194        7.6161        .76822E-03   -1.5186    
  12  Prefactor     .10000E-03    35.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     77.168        54.194        .45711E-04   -1.3949    
  17  norm          3.3572        1.3789        .59768E-04   -1.5341    
  18  Prefactor     27.094        16.067        .76964E-04   -1.4666    
  19  Prefactor     .10000E-03    2.9786        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2044        .29627        .34512E-03   -.86468    
  21  Prefactor     1.0376        .15989        .20572E-03   -.91487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55318e-09
Minuit parameter uncertainties:
  1  2.74866
  2  12.2404
  3  1.70745e-05
  4  9.89633e-06
  5  2.02518e-05
  6  23.9164
  7  3.16984e-05
  8  15.5807
  9  6.87344
  10  13.1962
  11  7.61721
  12  0.000682845
  13  0.000759795
  14  3.71875e-06
  15  2.41575e-06
  16  54.2287
  17  1.37896
  18  16.07
  19  9.08136e-07
  20  0.296688
  21  0.159964
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  6.819e+00  7.617e+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.038e+00  1.600e-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.204e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/302608/likelihoodResults_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.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) = 7007.35665909
delta logL = 0.0159506777027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7007.35271317
delta logL = 0.0198965932395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1679       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6612       1.0000          .0000       10.000    
     3 'Normalizat'    1.1955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0411       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=   7007.353     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1674        8.3503        .16165E-03    .24735E-03
   2  Index         2.6612        .84706        .85692E-02    .74171E-04
   3  Normalizat    1.1956        .28925        .34621E-03   -.23282E-03
   4  Prefactor     1.0411        .15995        .20541E-03   -.40782E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16739
  Index      = 2.66119
  Normalizat = 1.19556
  Prefactor  = 1.04113
 **********
 **   18 **HESSE 
 **********

 FCN=   7007.353     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1674        7.9258        .64659E-05   -1.5211    
   2  Index         2.6612        .80364        .34277E-03   -.48676    
   3  Normalizat    1.1956        .28944        .13849E-04   -.86740    
   4  Prefactor     1.0411        .15993        .41083E-04   -.91371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64678e-10
Minuit parameter uncertainties:
  1  7.92718
  2  0.808135
  3  0.289825
  4  0.160008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302608': 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) = 7007.35271316
delta logL = 0.0198966005146

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  6.167e+00  7.927e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.661e+00  8.081e-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.041e+00  1.600e-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.196e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.66 +/- 0.81
Photon Flux (Free Index): 6.45e-08 +/- 7.41e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.80e-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/302608/cmap_HighResolution_301017601_301276801_4FGL_J1057.3-2341_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='1.99e-02', photon_flux2='6.45e-08', job_status='DONE', time_completed='2021-09-02 21:17:00.609863', photon_index_error2='0.81', photon_index2='2.66', ts='0.98', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='1.80e-05', EG='1.20', time_epoch_completed='1630642620.61', return_code='0', job_id='302608', GAL2='1.04', EG2='1.20', return_code2='0', photon_flux_error2='7.41e-08', ts2='1.02', photon_index='2.51' WHERE bin_id='238' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 302608: <4FGL_J1057.3-2341_daily_bin238> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin238> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:01:10 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:02:38 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:38 2021
Terminated at Thu Sep  2 21:17:01 2021
Results reported at Thu Sep  2 21:17:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin238 164.342 -23.6889 301017601 301276801 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 :                                   742.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            951 sec.

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

