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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin575
RA = 164.342, Dec = -23.6889
tmin = 388368001, tmax = 388627201
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='307186', job_status='RUN', time_executed='2021-09-02 21:20:28.184367', time_epoch_executed='1630642828.18' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307186/ft1_4FGL_J1057.3-2341_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307186/ft1_4FGL_J1057.3-2341_daily_bin575.fits outfile=/scratch/kocevski/307186/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin575.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=388368001.0 tmax=388627201.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.55
user 4.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307186/ft1_filtered_4FGL_J1057.3-2341_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/307186/ltcube_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.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/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits
.....................!
real 17.83
user 17.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307186/ft1_filtered_4FGL_J1057.3-2341_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/307186/ltcube_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.fits outfile=/scratch/kocevski/307186/expmap_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.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/307186/ltcube_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.fits
.....................!
real 195.63
user 188.41
sys 4.66

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/307186/ft1_filtered_4FGL_J1057.3-2341_daily_bin575.fits scfile=/scratch/kocevski/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits outfile=/scratch/kocevski/307186/cmap_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307186/ft1_filtered_4FGL_J1057.3-2341_daily_bin575.fits scfile=/scratch/kocevski/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits outfile=/scratch/kocevski/307186/cmap_HighResolution_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.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.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307186/ft1_filtered_4FGL_J1057.3-2341_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/307186/ft2_4FGL_J1057.3-2341_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307186/Model_4FGL_J1057.3-2341_daily_bin575.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/307186/ft1_filtered_4FGL_J1057.3-2341_daily_bin575.fits.....................!
real 57.89
user 56.42
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62721       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.816       1.0000         .10000E-03   10000.    
     7 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.194       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9728       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5546       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75638       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=   5322.593     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1906 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62720        1.8389        .20394E-06   -.39391E-03
   2  norm          .10000E-03    9.2479        .10122E-06** at limit **
   3  norm          .10000E-03    11.140       -.54726E-06** at limit **
   4  Prefactor     2.4717        5.4900        .55497E-07   -.13776E-03
   5  Prefactor     2.9357        14.249        .32980E-05   -.66262E-03
   6  Prefactor     13.815        15.189        .16547E-08   -.20746E-04
   7  norm          .10000E-03    1.8234       -.25098E-07** at limit **
   8  Prefactor     .10000E-03    16.128       -.30179E-05** at limit **
   9  Prefactor     .10000E-03    3.5517        .11919E-07** at limit **
  10  Prefactor     .10000E-03    13.219        .19490E-05** at limit **
  11  Prefactor     15.192        8.9719        .12174E-06   -.46037E-03
  12  Prefactor     .10000E-03    24.025        .75490E-05** at limit **
  13  Prefactor     .10000E-03    160.16       -.21080E-05** at limit **
  14  Prefactor     1.4371        453.29        .33707E-04    .16089E-04
  15  Prefactor     .10000E-03    6.1781       -.57019E-07** at limit **
  16  Prefactor     .10000E-03    43.338        .36550E-05** at limit **
  17  norm          6.8512        2.0990        .41525E-07    .16025E-03
  18  Prefactor     .10000E-03    28.512       -.87265E-05** at limit **
  19  Prefactor     4.9722        8.2475        .11130E-05   -.12666E-02
  20  Normalizat    1.5547        .27106       -.93945E-06   -.40762E-04
  21  Prefactor     .75632        .14189       -.49451E-06   -.87349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.6272
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.47174
  Prefactor  = 2.93568
  Prefactor  = 13.8149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1923
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.43714
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.85117
  Prefactor  = 0.000100003
  Prefactor  = 4.97224
  Normalizat = 1.55475
  Prefactor  = 0.756319
 **********
 **   18 **HESSE 
 **********

 FCN=   5322.593     FROM HESSE     STATUS=OK           315 CALLS     2221 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62720        1.8458        .16411E-03   -1.5550    
   2  norm          .10000E-03    9.2878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4717        5.4764        .24793E-03   -1.5394    
   5  Prefactor     2.9357        21.865        .11847E-02   -1.5365    
   6  Prefactor     13.815        15.173        .10776E-03   -1.4964    
   7  norm          .10000E-03    1.8348        .96130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6069        .13407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.192        9.0725        .51377E-03   -1.4928    
  12  Prefactor     .10000E-03    24.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    160.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4371        458.19        .36239E-03   -1.5468    
  15  Prefactor     .10000E-03    6.1863        .17707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8512        2.1052        .55880E-04   -1.5184    
  18  Prefactor     .10000E-03    29.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9722        9.6722        .90172E-03   -1.5262    
  20  Normalizat    1.5547        .32906        .29435E-03   -.76251    
  21  Prefactor     .75632        .17120        .21696E-03   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55174e-09
Minuit parameter uncertainties:
  1  1.84601
  2  9.56782e-06
  3  1.58764e-05
  4  5.47754
  5  16.0317
  6  15.1777
  7  8.53927e-07
  8  0.000157833
  9  1.74605e-06
  10  0.000100995
  11  9.07331
  12  0.000539758
  13  0.000365445
  14  51.7238
  15  3.12377e-05
  16  0.000344619
  17  2.10518
  18  0.000555077
  19  9.67524
  20  0.329517
  21  0.171325
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.519e+01  9.073e+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:  7.563e-01  1.713e-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.555e+00  3.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 7.73e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 2.23e-05

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) = 5321.56433191
delta logL = 1.02915352148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5321.55650309
delta logL = 1.03698234018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5157       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4125       1.0000          .0000       10.000    
     3 'Normalizat'    1.4265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80484       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=   5321.557     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      294 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5154        9.5815        .86554E-04   -.41677E-03
   2  Index         3.4125        .87842        .41697E-02   -.60285E-04
   3  Normalizat    1.4264        .33484        .30440E-03   -.41008E-04
   4  Prefactor     .80487        .17605        .21095E-03   -.18008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.51535
  Index      = 3.41245
  Normalizat = 1.42645
  Prefactor  = 0.804873
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.557     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5154        7.8328        .34622E-05   -1.5160    
   2  Index         3.4125        .71864        .16679E-03   -.32310    
   3  Normalizat    1.4264        .33416        .12176E-04   -.79867    
   4  Prefactor     .80487        .17547        .42190E-04   -.99549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11742e-10
Minuit parameter uncertainties:
  1  7.83388
  2  0.72142
  3  0.334678
  4  0.175591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307186': 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) = 5321.55650304
delta logL = 1.03698239153

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.515e+00  7.834e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.412e+00  7.214e-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:  8.049e-01  1.756e-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.426e+00  3.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 3.41 +/- 0.72
Photon Flux (Free Index): 2.32e-07 +/- 1.16e-07
Energy Flux (Free Index): 3.96e-05 +/- 1.88e-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/307186/cmap_HighResolution_388368001_388627201_4FGL_J1057.3-2341_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.96e-05', photon_flux_error='7.73e-08', dlogl='1.04e+00', energy_flux='3.74e-05', photon_flux2='2.32e-07', job_status='DONE', time_completed='2021-09-02 21:29:49.129307', photon_index_error2='0.72', photon_index2='3.41', ts='4.69', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.55', time_epoch_completed='1630643389.13', return_code='0', job_id='307186', GAL2='0.80', EG2='1.43', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.16e-07', ts2='7.05', photon_index='2.51' WHERE bin_id='575' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:29:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 307186: <4FGL_J1057.3-2341_daily_bin575> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin575> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 21:16:24 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:16:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:16:41 2021
Terminated at Thu Sep  2 21:29:54 2021
Results reported at Thu Sep  2 21:29:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin575 164.342 -23.6889 388368001 388627201 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 :                                   556.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            810 sec.

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

