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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin581
RA = 164.342, Dec = -23.6889
tmin = 389923201, tmax = 390182401
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='307195', job_status='RUN', time_executed='2021-09-02 21:18:49.310939', time_epoch_executed='1630642729.31' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307195/ft1_4FGL_J1057.3-2341_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307195/ft1_4FGL_J1057.3-2341_daily_bin581.fits outfile=/scratch/kocevski/307195/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin581.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=389923201.0 tmax=390182401.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.55
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307195/ft1_filtered_4FGL_J1057.3-2341_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/307195/ltcube_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.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/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits
.....................!
real 13.65
user 13.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307195/ft1_filtered_4FGL_J1057.3-2341_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/307195/ltcube_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits outfile=/scratch/kocevski/307195/expmap_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.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/307195/ltcube_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits
.....................!
real 190.91
user 185.67
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/307195/ft1_filtered_4FGL_J1057.3-2341_daily_bin581.fits scfile=/scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits outfile=/scratch/kocevski/307195/cmap_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307195/ft1_filtered_4FGL_J1057.3-2341_daily_bin581.fits scfile=/scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits outfile=/scratch/kocevski/307195/cmap_HighResolution_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=164.342 yref=-23.6889 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307195/ft1_filtered_4FGL_J1057.3-2341_daily_bin581.fits', '/scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits', expMap='/scratch/kocevski/307195/expmap_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits', expCube='/scratch/kocevski/307195/ltcube_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307195/Model_4FGL_J1057.3-2341_daily_bin581.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/307195/ft1_filtered_4FGL_J1057.3-2341_daily_bin581.fits
Spacecraft file(s): /scratch/kocevski/307195/ft2_4FGL_J1057.3-2341_daily_bin581.fits
Exposure map: /scratch/kocevski/307195/expmap_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits
Exposure cube: /scratch/kocevski/307195/ltcube_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307195/Model_4FGL_J1057.3-2341_daily_bin581.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10397.5120447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.103       1.0000         .10000E-03   10000.    
     3 'norm      '    .58319E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .98184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28538E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60372E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9104       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78297       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0495       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=   10397.38     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     1964 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .31921        .47830E-08** at limit **
   2  norm          11.131        9.8062       -.12752E-05   -.11319E-02
   3  norm          .10036E-03    4.5755        .25623E-05** at limit **
   4  Prefactor     .98091        2.6131        .37329E-06   -.38336E-05
   5  Prefactor     .10000E-03    11.107        .21066E-06** at limit **
   6  Prefactor     .10000E-03    4.0416       -.44588E-06** at limit **
   7  norm          .10000E-03    1.1360       -.74001E-07** at limit **
   8  Prefactor     6.7949        10.116        .22865E-06   -.69015E-04
   9  Prefactor     .31464        2.7322        .58666E-06   -.11521E-03
  10  Prefactor     3.3078        6.7331        .40003E-05   -.37688E-03
  11  Prefactor     7.8791        3.9213        .64045E-08   -.20176E-03
  12  Prefactor     .10000E-03    9.4882        .76909E-06** at limit **
  13  Prefactor     .10001E-03    127.98        .12939E-04** at limit **
  14  Prefactor     31.674        23.014        .13040E-05    .14141E-03
  15  Prefactor     .10000E-03    9.6887       -.98545E-06** at limit **
  16  Prefactor     .10000E-03    9.9165       -.50786E-06** at limit **
  17  norm          7.9110        1.3311       -.46438E-08   -.10150E-02
  18  Prefactor     .10000E-03    4.1296        .17317E-07** at limit **
  19  Prefactor     .10000E-03    1.9576        .12229E-06** at limit **
  20  Normalizat    .78299        .16732       -.13744E-05   -.50366E-03
  21  Prefactor     1.0496        .97078E-01   -.17230E-06   -.95131E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.1312
  norm       = 0.000100357
  Prefactor  = 0.980911
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.79491
  Prefactor  = 0.314638
  Prefactor  = 3.30785
  Prefactor  = 7.87911
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 31.674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.91098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.782991
  Prefactor  = 1.04964
 **********
 **   18 **HESSE 
 **********

 FCN=   10397.38     FROM HESSE     STATUS=OK           319 CALLS     2283 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .32581        .56246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.131        9.4838        .12023E-03   -1.5041    
   3  norm          .10036E-03    50.774        .36002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98091        2.6640        .26117E-03   -1.5510    
   5  Prefactor     .10000E-03    11.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.386        .37779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3755        .20326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7949        10.092        .15388E-03   -1.5187    
   9  Prefactor     .31464        2.5553        .30415E-03   -1.5596    
  10  Prefactor     3.3078        6.7919        .11130E-02   -1.5344    
  11  Prefactor     7.8791        3.9213        .13584E-03   -1.5146    
  12  Prefactor     .10000E-03    9.4868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    126.12        .21061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.674        23.070        .35590E-03   -1.4582    
  15  Prefactor     .10000E-03    10.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9110        1.3321        .46391E-04   -1.5145    
  18  Prefactor     .10000E-03    4.1690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3399        .27693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .78299        .19448        .33416E-03   -1.0070    
  21  Prefactor     1.0496        .11443        .17478E-03   -.91093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60581e-09
Minuit parameter uncertainties:
  1  2.26906e-07
  2  9.48506
  3  0.0085191
  4  2.66434
  5  1.87579e-06
  6  0.000187431
  7  1.02674e-05
  8  10.0944
  9  1.79315
  10  6.79352
  11  3.92146
  12  2.8113e-05
  13  0.0019293
  14  23.0769
  15  7.75151e-05
  16  2.56331e-05
  17  1.33209
  18  1.29755e-06
  19  2.22035e-05
  20  0.194651
  21  0.114453
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.879e+00  3.921e+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.050e+00  1.145e-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:  7.830e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.65
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.72e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 9.65e-06

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) = 10395.4513646
delta logL = 1.92886793018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10395.4314152
delta logL = 1.94881737926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7008       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6725       1.0000          .0000       10.000    
     3 'Normalizat'    .83006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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=   10395.43     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6990        4.4469        .33973E-02   -.10986E-03
   2  Index         1.6723        .27156        .18847       -.11816E-03
   3  Normalizat    .83007        .16041        .73511E-01    .64616E-04
   4  Prefactor     1.0330        .96053E-01    .41032E-01    .50043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.699
  Index      = 1.67229
  Normalizat = 0.830074
  Prefactor  = 1.03296
 **********
 **   18 **HESSE 
 **********

 FCN=   10395.43     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6990        5.2719        .13589E-03   -1.5118    
   2  Index         1.6723        .37203        .72082E-02   -.72822    
   3  Normalizat    .83007        .19018        .32533E-03   -.98963    
   4  Prefactor     1.0330        .11399        .17596E-03   -.91639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21153e-11
Minuit parameter uncertainties:
  1  5.27215
  2  0.372651
  3  0.190333
  4  0.114016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307195': 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) = 10395.4314151
delta logL = 1.94881750272

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  8.699e+00  5.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.672e+00  3.727e-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.033e+00  1.140e-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:  8.301e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.52
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 1.67 +/- 0.37
Photon Flux (Free Index): 3.27e-08 +/- 2.38e-08
Energy Flux (Free Index): 5.84e-05 +/- 5.00e-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/307195/cmap_HighResolution_389923201_390182401_4FGL_J1057.3-2341_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.72e-08', energy_flux2='5.84e-05', photon_flux_error='3.34e-08', dlogl='1.95e+00', energy_flux='1.94e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-02 21:31:32.556274', photon_index_error2='0.37', photon_index2='1.67', ts='9.65', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='5.00e-05', EG='0.78', time_epoch_completed='1630643492.56', return_code='0', job_id='307195', GAL2='1.03', EG2='0.83', return_code2='0', energy_flux_error='9.65e-06', photon_flux_error2='2.38e-08', ts2='13.52', photon_index='2.51' WHERE bin_id='581' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 307195: <4FGL_J1057.3-2341_daily_bin581> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin581> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 21:16:25 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:16:44 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:44 2021
Terminated at Thu Sep  2 21:31:33 2021
Results reported at Thu Sep  2 21:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin581 164.342 -23.6889 389923201 390182401 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 :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            908 sec.

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

