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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin662
RA = 164.342, Dec = -23.6889
tmin = 410918401, tmax = 411177601
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='307328', job_status='RUN', time_executed='2021-09-02 21:21:58.260075', time_epoch_executed='1630642918.26' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307328/ft1_4FGL_J1057.3-2341_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307328/ft2_4FGL_J1057.3-2341_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307328/ft1_4FGL_J1057.3-2341_daily_bin662.fits outfile=/scratch/kocevski/307328/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin662.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=410918401.0 tmax=411177601.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 7.08
user 6.75
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307328/ft2_4FGL_J1057.3-2341_daily_bin662.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/307328/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/307328/ft1_filtered_4FGL_J1057.3-2341_daily_bin662.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307328/ft1_filtered_4FGL_J1057.3-2341_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/307328/ft2_4FGL_J1057.3-2341_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/307328/ltcube_410918401_411177601_4FGL_J1057.3-2341_daily_bin662.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/307328/ft2_4FGL_J1057.3-2341_daily_bin662.fits
.....................!
real 17.73
user 17.25
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307328/ft1_filtered_4FGL_J1057.3-2341_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/307328/ft2_4FGL_J1057.3-2341_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/307328/ltcube_410918401_411177601_4FGL_J1057.3-2341_daily_bin662.fits outfile=/scratch/kocevski/307328/expmap_410918401_411177601_4FGL_J1057.3-2341_daily_bin662.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/307328/ltcube_410918401_411177601_4FGL_J1057.3-2341_daily_bin662.fits
.....................!
real 192.24
user 186.86
sys 4.41

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

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307328/ft1_filtered_4FGL_J1057.3-2341_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/307328/ft2_4FGL_J1057.3-2341_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307328/Model_4FGL_J1057.3-2341_daily_bin662.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/307328/ft1_filtered_4FGL_J1057.3-2341_daily_bin662.fits.....................!
real 44.73
user 43.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10705E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9283       1.0000         .10000E-03   10000.    
     3 'norm      '    33.946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69736E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.261       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2640       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0389       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.941       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2410       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0446       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=   3986.808     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2263 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.7982       -.31220E-06** at limit **
   2  norm          1.7955        79.954        .22509E-04    .15673E-04
   3  norm          33.952        24.469        .24848E-05    .16820E-03
   4  Prefactor     25.271        16.616        .19567E-05    .13344E-03
   5  Prefactor     .10000E-03    36.234        .41473E-05** at limit **
   6  Prefactor     .10000E-03    8.3702        .55425E-07** at limit **
   7  norm          .10000E-03    1.9010       -.40539E-07** at limit **
   8  Prefactor     .10000E-03    6.5765        .15228E-06** at limit **
   9  Prefactor     .13542E-03    4.3962       -.13645E-05** at limit **
  10  Prefactor     .10000E-03    9.8148       -.37519E-05** at limit **
  11  Prefactor     7.9499        8.8344        .57767E-06   -.50481E-05
  12  Prefactor     .10000E-03    14.748       -.14854E-06** at limit **
  13  Prefactor     .10000E-03    45.585       -.14662E-04** at limit **
  14  Prefactor     87.266        73.730        .32875E-05    .30200E-04
  15  Prefactor     .10000E-03    7.3161        .60598E-07** at limit **
  16  Prefactor     6.2663        86.934        .29135E-05   -.19218E-05
  17  norm          2.0374        2.4057        .11594E-07   -.49334E-03
  18  Prefactor     49.936        27.207        .53834E-06    .25642E-05
  19  Prefactor     .10000E-03    10.341        .62783E-05** at limit **
  20  Normalizat    1.2415        .34924       -.17047E-05    .34171E-04
  21  Prefactor     1.0443        .18822       -.14470E-05    .77399E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  norm       = 1.79549
  norm       = 33.9523
  Prefactor  = 25.2715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000135422
  Prefactor  = 0.0001
  Prefactor  = 7.94987
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 87.2657
  Prefactor  = 0.0001
  Prefactor  = 6.26632
  norm       = 2.03744
  Prefactor  = 49.9358
  Prefactor  = 0.000100001
  Normalizat = 1.24153
  Prefactor  = 1.04428
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.808     FROM HESSE     STATUS=OK           321 CALLS     2584 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    11.418        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7955        72.385        .29914E-03   -1.5440    
   3  norm          33.952        23.690        .68778E-04   -1.4542    
   4  Prefactor     25.271        16.630        .79685E-04   -1.4702    
   5  Prefactor     .10000E-03    36.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.3732        .17841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9067        .84995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5796        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13542E-03    10.565        .41883E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9499        8.8309        .14219E-03   -1.5144    
  12  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     87.266        73.762        .43009E-04   -1.3837    
  15  Prefactor     .10000E-03    7.3204        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.2663        86.425        .16039E-03   -1.5207    
  17  norm          2.0374        2.3781        .96364E-04   -1.5422    
  18  Prefactor     49.936        27.272        .56747E-04   -1.4293    
  19  Prefactor     .10000E-03    10.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2415        .41423        .34954E-03   -.85329    
  21  Prefactor     1.0443        .22582        .20808E-03   -.91268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06034e-09
Minuit parameter uncertainties:
  1  0.000811083
  2  22.8296
  3  23.6962
  4  16.6327
  5  0.0002486
  6  2.31914e-06
  7  7.1586e-08
  8  5.10564e-06
  9  0.0386974
  10  8.85176e-05
  11  8.83232
  12  4.26696e-07
  13  0.000883897
  14  73.8398
  15  2.26105e-07
  16  46.6248
  17  2.37818
  18  27.2792
  19  0.000188595
  20  0.415331
  21  0.226026
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.950e+00  8.832e+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.044e+00  2.260e-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.242e+00  4.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 7.53e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 2.17e-05

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

Saving results to:
/scratch/kocevski/307328/likelihoodResults_410918401_411177601_4FGL_J1057.3-2341_daily_bin662.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) = 3986.8062654
delta logL = 0.00128815536254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3986.80584598
delta logL = 0.00170757530623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6964       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5656       1.0000          .0000       10.000    
     3 'Normalizat'    1.2376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       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=   3986.806     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6964        262.27        .36137E-02    .23294E-03
   2  Index         2.5655        6.0134        .23311        .37211E-04
   3  Normalizat    1.2377        .12365        .79071E-01    .84049E-05
   4  Prefactor     1.0457        .61422E-01    .40164E-01    .24458E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69637
  Index      = 2.56552
  Normalizat = 1.23768
  Prefactor  = 1.04572
 **********
 **   18 **HESSE 
 **********

 FCN=   3986.806     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6964        10.027        .14455E-03   -1.5153    
   2  Index         2.5655        1.0566        .85989E-02   -.50853    
   3  Normalizat    1.2377        .40771        .35001E-03   -.85446    
   4  Prefactor     1.0457        .22347        .20796E-03   -.91221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16067e-09
Minuit parameter uncertainties:
  1  10.029
  2  1.06715
  3  0.408766
  4  0.223674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307328': 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) = 3986.80584595
delta logL = 0.00170759717548

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.696e+00  1.003e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.566e+00  1.067e+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.046e+00  2.237e-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.238e+00  4.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.57 +/- 1.07
Photon Flux (Free Index): 7.09e-08 +/- 9.18e-08
Energy Flux (Free Index): 1.92e-05 +/- 2.23e-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/307328/cmap_HighResolution_410918401_411177601_4FGL_J1057.3-2341_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='1.92e-05', photon_flux_error='7.53e-08', dlogl='1.71e-03', energy_flux='1.96e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-02 21:31:23.326350', photon_index_error2='1.07', photon_index2='2.57', ts='1.23', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.43e-07', energy_flux_error2='2.23e-05', EG='1.24', time_epoch_completed='1630643483.33', return_code='0', job_id='307328', GAL2='1.05', EG2='1.24', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='9.18e-08', ts2='1.23', photon_index='2.51' WHERE bin_id='662' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 307328: <4FGL_J1057.3-2341_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin662 164.342 -23.6889 410918401 411177601 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 :                                   561.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             214.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            888 sec.

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

