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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin460
RA = 164.342, Dec = -23.6889
tmin = 358560001, tmax = 358819201
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='305557', job_status='RUN', time_executed='2021-09-02 21:15:03.676542', time_epoch_executed='1630642503.68' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305557

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305557/ft1_4FGL_J1057.3-2341_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305557/ft1_4FGL_J1057.3-2341_daily_bin460.fits outfile=/scratch/kocevski/305557/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin460.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.28
user 5.05
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305557/ft1_filtered_4FGL_J1057.3-2341_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/305557/ltcube_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.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/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits
.....................!
real 17.24
user 16.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305557/ft1_filtered_4FGL_J1057.3-2341_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/305557/ltcube_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.fits outfile=/scratch/kocevski/305557/expmap_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.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/305557/ltcube_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.fits
.....................!
real 192.22
user 187.35
sys 4.29

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/305557/ft1_filtered_4FGL_J1057.3-2341_daily_bin460.fits scfile=/scratch/kocevski/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits outfile=/scratch/kocevski/305557/cmap_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305557/ft1_filtered_4FGL_J1057.3-2341_daily_bin460.fits scfile=/scratch/kocevski/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits outfile=/scratch/kocevski/305557/cmap_HighResolution_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305557/ft1_filtered_4FGL_J1057.3-2341_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/305557/ft2_4FGL_J1057.3-2341_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305557/Model_4FGL_J1057.3-2341_daily_bin460.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/305557/ft1_filtered_4FGL_J1057.3-2341_daily_bin460.fits.....................!
real 77.69
user 75.77
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5305       1.0000         .10000E-03   10000.    
     3 'norm      '    21.038       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2225       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 '    24.817       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7023       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2698       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99810       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96876       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=   8415.500     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     1933 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .77836        .14892E-07** at limit **
   2  norm          1.5302        4.7869       -.19316E-05   -.82460E-03
   3  norm          21.037        8.9444        .84819E-07    .11038E-03
   4  Prefactor     .10000E-03    4.4170       -.19395E-06** at limit **
   5  Prefactor     12.377        11.522       -.32755E-06   -.29132E-04
   6  Prefactor     .10000E-03    5.3113        .18553E-06** at limit **
   7  norm          .10000E-03    .70426        .12378E-07** at limit **
   8  Prefactor     .10000E-03    9.8002        .24486E-05** at limit **
   9  Prefactor     .20704        1.4567       -.88085E-06   -.67039E-03
  10  Prefactor     .10000E-03    4.1588        .17598E-06** at limit **
  11  Prefactor     7.2218        4.6171        .17483E-05   -.88829E-03
  12  Prefactor     .10000E-03    9.3259       -.35267E-05** at limit **
  13  Prefactor     .10000E-03    63.910       -.31318E-05** at limit **
  14  Prefactor     24.815        24.939       -.76645E-06    .22317E-04
  15  Prefactor     .10000E-03    8.5379        .12554E-05** at limit **
  16  Prefactor     .10000E-03    47.518        .25783E-05** at limit **
  17  norm          4.7024        1.3255        .19435E-08    .17106E-04
  18  Prefactor     .10001E-03    4.2317       -.43705E-06** at limit **
  19  Prefactor     4.2693        5.0186       -.38760E-06   -.31875E-03
  20  Normalizat    .99821        .18284       -.34110E-06    .10097E-03
  21  Prefactor     .96871        .10441        .84384E-07    .10616E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.53023
  norm       = 21.037
  Prefactor  = 0.0001
  Prefactor  = 12.3775
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.207037
  Prefactor  = 0.0001
  Prefactor  = 7.22179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70238
  Prefactor  = 0.000100011
  Prefactor  = 4.26927
  Normalizat = 0.998207
  Prefactor  = 0.968712
 **********
 **   18 **HESSE 
 **********

 FCN=   8415.500     FROM HESSE     STATUS=OK           317 CALLS     2250 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7945        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5302        5.2060        .34499E-03   -1.5461    
   3  norm          21.037        8.9370        .87325E-04   -1.4790    
   4  Prefactor     .10000E-03    4.5020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.377        11.511        .11385E-03   -1.5004    
   6  Prefactor     .10000E-03    5.3398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .70796        .75133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20704        3.5812        .21816E-02   -1.5617    
  10  Prefactor     .10000E-03    4.2034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2218        4.3784        .14290E-03   -1.5170    
  12  Prefactor     .10000E-03    9.1371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    63.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.815        24.934        .80411E-04   -1.4711    
  15  Prefactor     .10000E-03    8.6463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7024        1.3241        .53985E-04   -1.5274    
  18  Prefactor     .10001E-03    21.578        .36614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2693        5.0510        .19498E-03   -1.5295    
  20  Normalizat    .99821        .21539        .30879E-03   -.93091    
  21  Prefactor     .96871        .12437        .18370E-03   -.93780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41283e-09
Minuit parameter uncertainties:
  1  1.50303e-06
  2  5.20756
  3  8.93752
  4  5.02118e-06
  5  11.5134
  6  7.40957e-06
  7  1.71975e-06
  8  8.68448e-05
  9  1.72186
  10  5.3789e-06
  11  4.37859
  12  0.000103528
  13  0.00024729
  14  24.9444
  15  3.98953e-05
  16  0.000186137
  17  1.32411
  18  0.000992575
  19  5.05155
  20  0.215578
  21  0.124409
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.222e+00  4.379e+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.687e-01  1.244e-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.982e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.16e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.08e-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) = 8415.49961995
delta logL = 0.000128407013108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8415.49954527
delta logL = 0.000203087383852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2830       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4936       1.0000          .0000       10.000    
     3 'Normalizat'    .99888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96843       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=   8415.500     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2830        101.15        .37157E-02    .12076E-02
   2  Index         2.4936        6.2274        .16579        .15269E-03
   3  Normalizat    .99889        .10110        .69779E-01    .15132E-04
   4  Prefactor     .96843        .47462E-01    .45871E-01   -.32917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.28301
  Index      = 2.49363
  Normalizat = 0.99889
  Prefactor  = 0.968426
 **********
 **   18 **HESSE 
 **********

 FCN=   8415.500     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2830        5.5749        .14366E-03   -1.5168    
   2  Index         2.4936        .61700        .82979E-02   -.52507    
   3  Normalizat    .99889        .21445        .30869E-03   -.93068    
   4  Prefactor     .96843        .12512        .18372E-03   -.93790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20714e-10
Minuit parameter uncertainties:
  1  5.5753
  2  0.619115
  3  0.214631
  4  0.125156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305557': 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) = 8415.49954526
delta logL = 0.000203087907721

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.283e+00  5.575e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.494e+00  6.191e-01  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.684e-01  1.252e-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.989e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.49 +/- 0.62
Photon Flux (Free Index): 6.12e-08 +/- 4.19e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.28e-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/305557/cmap_HighResolution_358560001_358819201_4FGL_J1057.3-2341_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-08', energy_flux2='1.79e-05', photon_flux_error='3.73e-08', dlogl='2.03e-04', energy_flux='1.78e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-09-02 21:26:36.032162', photon_index_error2='0.62', photon_index2='2.49', ts='4.28', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.00', time_epoch_completed='1630643196.03', return_code='0', job_id='305557', GAL2='0.97', EG2='1.00', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.19e-08', ts2='4.27', photon_index='2.51' WHERE bin_id='460' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:26:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 305557: <4FGL_J1057.3-2341_daily_bin460> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin460> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 21:11:04 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:12: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:12:41 2021
Terminated at Thu Sep  2 21:26:36 2021
Results reported at Thu Sep  2 21:26:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin460 164.342 -23.6889 358560001 358819201 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 :                                   689.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            932 sec.

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

