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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin265
RA = 164.342, Dec = -23.6889
tmin = 308016001, tmax = 308275201
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='302647', job_status='RUN', time_executed='2021-09-02 21:03:42.823030', time_epoch_executed='1630641822.82' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302647/ft1_4FGL_J1057.3-2341_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302647/ft1_4FGL_J1057.3-2341_daily_bin265.fits outfile=/scratch/kocevski/302647/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin265.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=308016001.0 tmax=308275201.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.43
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302647/ft1_filtered_4FGL_J1057.3-2341_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/302647/ltcube_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.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/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits
.....................!
real 16.19
user 15.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302647/ft1_filtered_4FGL_J1057.3-2341_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/302647/ltcube_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.fits outfile=/scratch/kocevski/302647/expmap_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.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/302647/ltcube_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.fits
.....................!
real 192.83
user 186.77
sys 4.95

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/302647/ft1_filtered_4FGL_J1057.3-2341_daily_bin265.fits scfile=/scratch/kocevski/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits outfile=/scratch/kocevski/302647/cmap_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302647/ft1_filtered_4FGL_J1057.3-2341_daily_bin265.fits scfile=/scratch/kocevski/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits outfile=/scratch/kocevski/302647/cmap_HighResolution_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302647/ft1_filtered_4FGL_J1057.3-2341_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/302647/ft2_4FGL_J1057.3-2341_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302647/Model_4FGL_J1057.3-2341_daily_bin265.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/302647/ft1_filtered_4FGL_J1057.3-2341_daily_bin265.fits.....................!
real 76.58
user 75.07
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1244       1.0000         .10000E-03   10000.    
     2 'norm      '    21.687       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1021       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12477E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11951E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2163       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74651E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0233       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.012       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.019       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99489       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=   8057.884     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2204 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1245        1.2137       -.14890E-06   -.97025E-03
   2  norm          21.686        10.618        .42047E-07    .12773E-03
   3  norm          2.1030        4.3536       -.42113E-05   -.61818E-03
   4  Prefactor     .10000E-03    2.4837       -.12561E-06** at limit **
   5  Prefactor     .10000E-03    21.365        .32113E-05** at limit **
   6  Prefactor     5.2160        10.314       -.26753E-06    .29593E-04
   7  norm          .10000E-03    1.9908        .74762E-08** at limit **
   8  Prefactor     20.453        12.826        .21065E-06   -.29664E-04
   9  Prefactor     5.0420        4.8017       -.14932E-06    .52076E-03
  10  Prefactor     .10019E-03    6.5365       -.27160E-05** at limit **
  11  Prefactor     4.0237        5.3364       -.92792E-06   -.42921E-03
  12  Prefactor     17.014        16.678        .23574E-06    .16005E-04
  13  Prefactor     .10000E-03    42.410       -.15250E-05** at limit **
  14  Prefactor     58.014        43.910        .23445E-05    .28319E-04
  15  Prefactor     .10000E-03    10.146       -.37785E-06** at limit **
  16  Prefactor     30.010        52.484       -.14316E-04    .32037E-05
  17  norm          6.0530        1.7346        .19476E-06   -.33672E-04
  18  Prefactor     .10000E-03    9.7853        .37339E-06** at limit **
  19  Prefactor     .10000E-03    2.0883       -.11476E-07** at limit **
  20  Normalizat    1.0728        .20770        .12898E-05    .33321E-03
  21  Prefactor     .99488        .11542        .24737E-06    .53545E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12446
  norm       = 21.686
  norm       = 2.10298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21604
  norm       = 0.0001
  Prefactor  = 20.453
  Prefactor  = 5.04202
  Prefactor  = 0.00010019
  Prefactor  = 4.02373
  Prefactor  = 17.0145
  Prefactor  = 0.0001
  Prefactor  = 58.0142
  Prefactor  = 0.0001
  Prefactor  = 30.0099
  norm       = 6.05297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07284
  Prefactor  = 0.994884
 **********
 **   18 **HESSE 
 **********

 FCN=   8057.884     FROM HESSE     STATUS=OK           323 CALLS     2527 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1245        1.1008        .99934E-03   -1.5496    
   2  norm          21.686        10.606        .86009E-04   -1.4776    
   3  norm          2.1030        4.5305        .27229E-03   -1.5418    
   4  Prefactor     .10000E-03    5.9500        .27548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2160        10.262        .17600E-03   -1.5251    
   7  norm          .10000E-03    2.0167        .12328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.453        12.803        .88551E-04   -1.4803    
   9  Prefactor     5.0420        4.5687        .16668E-03   -1.5259    
  10  Prefactor     .10019E-03    22.847        .40451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0237        5.3895        .20105E-03   -1.5307    
  12  Prefactor     17.014        16.683        .97101E-04   -1.4883    
  13  Prefactor     .10000E-03    42.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     58.014        43.808        .52672E-04   -1.4183    
  15  Prefactor     .10000E-03    10.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.010        51.783        .73126E-04   -1.4612    
  17  norm          6.0530        1.7340        .58984E-04   -1.5216    
  18  Prefactor     .10000E-03    9.8805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1009        .12668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0728        .24580        .32356E-03   -.90629    
  21  Prefactor     .99488        .13761        .19384E-03   -.92900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02739e-09
Minuit parameter uncertainties:
  1  1.10078
  2  10.6065
  3  4.53119
  4  7.47472e-06
  5  9.13722e-05
  6  10.2654
  7  3.17188e-06
  8  12.8051
  9  4.56898
  10  0.00417033
  11  5.39017
  12  16.6872
  13  1.77717e-05
  14  43.8326
  15  3.76655e-05
  16  51.8607
  17  1.73397
  18  1.40419e-05
  19  1.43266e-06
  20  0.246063
  21  0.137661
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  4.024e+00  5.390e+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.949e-01  1.377e-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.073e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/302647/likelihoodResults_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.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) = 8057.30203386
delta logL = 0.582134555675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8057.29209239
delta logL = 0.592076029311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32984       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7229       1.0000          .0000       10.000    
     3 'Normalizat'    .98510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       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=   8057.292     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      274 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33000        3.6290        .87616E-02    .21303E-02
   2  Index         4.7227        2.8786        .12933        .18168E-03
   3  Normalizat    .98523        .46493E-01    .75909E-01    .26690E-04
   4  Prefactor     1.0328        .27087E-01    .41039E-01    .44529E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.330001
  Index      = 4.72267
  Normalizat = 0.985229
  Prefactor  = 1.03277
 **********
 **   18 **HESSE 
 **********

 FCN=   8057.292     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      309 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33000        9.7498        .39960E-03   -1.5593    
   2  Index         4.7227        7.2674        .64462E-02   -.55495E-01
   3  Normalizat    .98523        .18225        .33592E-03   -.93527    
   4  Prefactor     1.0328        .10312        .19066E-03   -.91645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.80503e-07
Minuit parameter uncertainties:
  1  3.58755
  2  6.19168
  3  0.182364
  4  0.103136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302647': 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): 102
logL (Free Index) = 8057.29209215
delta logL = 0.592076264499

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  3.300e-01  3.588e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.723e+00  6.192e+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:  1.033e+00  1.031e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  9.852e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 4.72 +/- 6.19
Photon Flux (Free Index): 8.39e-08 +/- 7.69e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.55e-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/302647/cmap_HighResolution_308016001_308275201_4FGL_J1057.3-2341_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='5.92e-01', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-09-02 21:16:55.465785', photon_index_error2='6.19', photon_index2='4.72', ts='0.71', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.55e-05', EG='1.07', time_epoch_completed='1630642615.47', return_code='0', job_id='302647', GAL2='1.03', EG2='0.99', return_code2='102', photon_flux_error2='7.69e-08', ts2='2.08', photon_index='2.51' WHERE bin_id='265' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:16:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 302647: <4FGL_J1057.3-2341_daily_bin265> in cluster <slac> Done

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

Your job looked like:

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

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

