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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin569
RA = 164.342, Dec = -23.6889
tmin = 386812801, tmax = 387072001
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='307177', job_status='RUN', time_executed='2021-09-02 21:19:02.369014', time_epoch_executed='1630642742.37' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307177/ft1_4FGL_J1057.3-2341_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307177/ft1_4FGL_J1057.3-2341_daily_bin569.fits outfile=/scratch/kocevski/307177/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin569.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=386812801.0 tmax=387072001.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.45
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307177/ft1_filtered_4FGL_J1057.3-2341_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/307177/ltcube_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.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/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits
.....................!
real 16.38
user 16.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307177/ft1_filtered_4FGL_J1057.3-2341_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/307177/ltcube_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.fits outfile=/scratch/kocevski/307177/expmap_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.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/307177/ltcube_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.fits
.....................!
real 192.60
user 187.52
sys 4.59

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/307177/ft1_filtered_4FGL_J1057.3-2341_daily_bin569.fits scfile=/scratch/kocevski/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits outfile=/scratch/kocevski/307177/cmap_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=164.342 yref=-23.6889 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307177/ft1_filtered_4FGL_J1057.3-2341_daily_bin569.fits scfile=/scratch/kocevski/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits outfile=/scratch/kocevski/307177/cmap_HighResolution_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307177/ft1_filtered_4FGL_J1057.3-2341_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/307177/ft2_4FGL_J1057.3-2341_daily_bin569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307177/Model_4FGL_J1057.3-2341_daily_bin569.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/307177/ft1_filtered_4FGL_J1057.3-2341_daily_bin569.fits.....................!
real 63.46
user 62.02
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2256       1.0000         .10000E-03   10000.    
     2 'norm      '    21.223       1.0000         .10000E-03   10000.    
     3 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19357E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13241E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.280       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44853E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10559       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75536       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1238       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=   6414.257     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     2646 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2256        1.9849        .10267E-03   -.20507E-03
   2  norm          21.220        13.387        .86944E-04    .95847E-04
   3  norm          .10000E-03    12.935        .36285E-03** at limit **
   4  Prefactor     .10000E-03    2.9830        .13489E-02** at limit **
   5  Prefactor     .10000E-03    16.516        .18142E-02** at limit **
   6  Prefactor     .10024E-03    36.850        .45447E-02** at limit **
   7  norm          .10000E-03    1.1500        .83625E-03** at limit **
   8  Prefactor     .10001E-03    56.957        .36285E-02** at limit **
   9  Prefactor     2.7378        3.0378        .14214E-03   -.10582E-03
  10  Prefactor     .10000E-03    5.8159        .18142E-02** at limit **
  11  Prefactor     9.2774        7.1913        .13158E-03   -.74910E-04
  12  Prefactor     .10000E-03    9.4124        .18142E-02** at limit **
  13  Prefactor     .10002E-03    211.60        .18142E-02** at limit **
  14  Prefactor     .10000E-03    96.588        .18142E-02** at limit **
  15  Prefactor     19.276        15.903        .91216E-04    .20266E-03
  16  Prefactor     .10000E-03    14.213        .18142E-02** at limit **
  17  norm          7.1009        1.9079        .54729E-04    .31616E-03
  18  Prefactor     .10012E-03    14.766        .78524E-01** at limit **
  19  Prefactor     .10906        5.5890        .59153E-01    .35454E-03
  20  Normalizat    .75533        .26794        .37519E-03    .17053E-03
  21  Prefactor     1.1238        .15164        .18150E-03    .35666E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22564
  norm       = 21.22
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100239
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 2.73779
  Prefactor  = 0.0001
  Prefactor  = 9.27736
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100001
  Prefactor  = 19.2761
  Prefactor  = 0.0001
  norm       = 7.10091
  Prefactor  = 0.000100119
  Prefactor  = 0.109057
  Normalizat = 0.755329
  Prefactor  = 1.12379
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.257     FROM HESSE     STATUS=OK           315 CALLS     2961 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2256        1.9849        .41068E-05   -1.5410    
   2  norm          21.220        13.386        .34777E-05   -1.4786    
   3  norm          .10000E-03    12.936        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9832        .26979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10024E-03    37.370        .90894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1500        .16725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    57.379        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7378        3.0375        .56857E-05   -1.5377    
  10  Prefactor     .10000E-03    5.8183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2774        7.1908        .52632E-05   -1.5099    
  12  Prefactor     .10000E-03    9.4125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    211.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    96.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.276        15.901        .36487E-05   -1.4830    
  16  Prefactor     .10000E-03    14.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1009        1.9078        .21891E-05   -1.5175    
  18  Prefactor     .10012E-03    13.751        .82386E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10906        5.5014        .59957E-01   -1.5642    
  20  Normalizat    .75533        .26807        .15008E-04   -1.0175    
  21  Prefactor     1.1238        .15174        .36301E-04   -.88710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13566e-09
Minuit parameter uncertainties:
  1  1.98493
  2  13.3879
  3  0.0001227
  4  1.46079e-05
  5  0.000202377
  6  0.00598302
  7  1.24456e-05
  8  0.00147604
  9  3.0377
  10  5.6755e-05
  11  7.19144
  12  2.69643e-05
  13  0.00405704
  14  0.000467182
  15  15.9046
  16  1.94012e-05
  17  1.90786
  18  0.00255505
  19  1.54859
  20  0.268538
  21  0.151799
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  9.277e+00  7.191e+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.124e+00  1.518e-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.553e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.52
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/307177/likelihoodResults_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.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) = 6414.10090136
delta logL = 0.155656780801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.09771558
delta logL = 0.15884256491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6094       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9570       1.0000          .0000       10.000    
     3 'Normalizat'    .71668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1397       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=   6414.098     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      266 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6064        99.412        .39023E-02    .30397E-03
   2  Index         2.9573        6.4680        .14132        .11470E-03
   3  Normalizat    .71654        .98836E-01    .86802E-01    .26052E-04
   4  Prefactor     1.1399        .49452E-01    .36242E-01   -.26801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60642
  Index      = 2.95733
  Normalizat = 0.716536
  Prefactor  = 1.13994
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.098     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6064        9.5685        .13526E-03   -1.5194    
   2  Index         2.9573        1.0880        .71286E-02   -.42085    
   3  Normalizat    .71654        .27644        .38447E-03   -1.0324    
   4  Prefactor     1.1399        .15677        .18038E-03   -.88200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89944e-11
Minuit parameter uncertainties:
  1  9.57066
  2  1.09859
  3  0.276983
  4  0.156838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307177': 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) = 6414.09771217
delta logL = 0.15884597394

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  6.606e+00  9.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.957e+00  1.099e+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.140e+00  1.568e-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.165e-01  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.96 +/- 1.10
Photon Flux (Free Index): 1.04e-07 +/- 8.04e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.61e-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/307177/cmap_HighResolution_386812801_387072001_4FGL_J1057.3-2341_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='2.12e-05', photon_flux_error='6.13e-08', dlogl='1.59e-01', energy_flux='2.28e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-02 21:30:56.139861', photon_index_error2='1.10', photon_index2='2.96', ts='2.52', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.61e-05', EG='0.76', time_epoch_completed='1630643456.14', return_code='0', job_id='307177', GAL2='1.14', EG2='0.72', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='8.04e-08', ts2='2.89', photon_index='2.51' WHERE bin_id='569' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 307177: <4FGL_J1057.3-2341_daily_bin569> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin569> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 21:16:23 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:16:39 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:39 2021
Terminated at Thu Sep  2 21:30:56 2021
Results reported at Thu Sep  2 21:30:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin569 164.342 -23.6889 386812801 387072001 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 :                                   711.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            873 sec.

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

