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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin184
RA = 164.342, Dec = -23.6889
tmin = 287020801, tmax = 287280001
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='302529', job_status='RUN', time_executed='2021-09-02 21:04:18.853559', time_epoch_executed='1630641858.85' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302529/ft1_4FGL_J1057.3-2341_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302529/ft2_4FGL_J1057.3-2341_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302529/ft1_4FGL_J1057.3-2341_daily_bin184.fits outfile=/scratch/kocevski/302529/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin184.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=287020801.0 tmax=287280001.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 4.73
user 4.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302529/ft1_filtered_4FGL_J1057.3-2341_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/302529/ft2_4FGL_J1057.3-2341_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/302529/ltcube_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.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/302529/ft2_4FGL_J1057.3-2341_daily_bin184.fits
.....................!
real 16.05
user 15.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302529/ft1_filtered_4FGL_J1057.3-2341_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/302529/ft2_4FGL_J1057.3-2341_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/302529/ltcube_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.fits outfile=/scratch/kocevski/302529/expmap_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.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/302529/ltcube_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.fits
.....................!
real 193.00
user 187.94
sys 3.94

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/302529/ft1_filtered_4FGL_J1057.3-2341_daily_bin184.fits scfile=/scratch/kocevski/302529/ft2_4FGL_J1057.3-2341_daily_bin184.fits outfile=/scratch/kocevski/302529/cmap_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.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.54
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302529/ft1_filtered_4FGL_J1057.3-2341_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/302529/ft2_4FGL_J1057.3-2341_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302529/Model_4FGL_J1057.3-2341_daily_bin184.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/302529/ft1_filtered_4FGL_J1057.3-2341_daily_bin184.fits.....................!
real 56.05
user 54.70
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5173       1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.883       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.047       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0021       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14779E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.549       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.662       1.0000         .10000E-03   10000.    
    17 'norm      '    .44261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36174       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0184       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1739       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=   5368.497     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     2918 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5173        1.5100        .87845E-04    .12295E-04
   2  norm          .10000E-03    10.661        .18142E-02** at limit **
   3  norm          .10000E-03    4.1741        .14605E-02** at limit **
   4  Prefactor     15.878        12.682        .10050E-03    .26358E-04
   5  Prefactor     17.547        23.700        .95544E-04   -.11780E-04
   6  Prefactor     25.051        20.641        .80042E-04    .14203E-05
   7  norm          1.0014        4.1252        .27531E-03   -.34356E-04
   8  Prefactor     .10000E-03    37.448        .91610E-01** at limit **
   9  Prefactor     .10000E-03    5.0858        .15954E-02** at limit **
  10  Prefactor     .10000E-03    6.3850        .18039E-02** at limit **
  11  Prefactor     7.3317        7.9934        .14809E-03   -.46060E-06
  12  Prefactor     .10000E-03    15.174        .18142E-02** at limit **
  13  Prefactor     90.756        88.995        .21089E-03   -.17898E-04
  14  Prefactor     13.524        73.228        .10882E-03   -.52237E-05
  15  Prefactor     8.5261        25.300        .13736E-03   -.34763E-04
  16  Prefactor     21.676        48.472        .86059E-04   -.25100E-05
  17  norm          .44159        1.4496        .14671E-03   -.81444E-04
  18  Prefactor     .10000E-03    17.861        .18142E-02** at limit **
  19  Prefactor     .34157        50.095        .39509E-02    .58416E-04
  20  Normalizat    1.0188        .33753        .36449E-03   -.66748E-05
  21  Prefactor     1.1737        .18347        .19351E-03   -.25109E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51726
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8778
  Prefactor  = 17.5474
  Prefactor  = 25.0512
  norm       = 1.00142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.33169
  Prefactor  = 0.0001
  Prefactor  = 90.7561
  Prefactor  = 13.5239
  Prefactor  = 8.52605
  Prefactor  = 21.6756
  norm       = 0.441585
  Prefactor  = 0.0001
  Prefactor  = 0.341568
  Normalizat = 1.01878
  Prefactor  = 1.17375
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.497     FROM HESSE     STATUS=OK           307 CALLS     3225 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5173        1.5099        .35138E-05   -1.5462    
   2  norm          .10000E-03    10.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.1743        .29210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.878        12.678        .40199E-05   -1.4911    
   5  Prefactor     17.547        23.602        .38218E-05   -1.4870    
   6  Prefactor     25.051        20.631        .32017E-05   -1.4707    
   7  norm          1.0014        4.1194        .11013E-04   -1.5508    
   8  Prefactor     .10000E-03    32.657        .99460E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0887        .31908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3861        .36078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3317        7.9912        .59237E-05   -1.5166    
  12  Prefactor     .10000E-03    15.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     90.756        88.985        .42177E-04   -1.3800    
  14  Prefactor     13.524        73.150        .43528E-05   -1.4972    
  15  Prefactor     8.5261        25.273        .54942E-05   -1.5124    
  16  Prefactor     21.676        48.432        .34424E-05   -1.4776    
  17  norm          .44159        1.4487        .58684E-05   -1.5575    
  18  Prefactor     .10000E-03    17.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .34157        50.386        .15804E-03   -1.5591    
  20  Normalizat    1.0188        .33699        .14580E-04   -.92404    
  21  Prefactor     1.1737        .18362        .38703E-04   -.87143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45631e-11
Minuit parameter uncertainties:
  1  1.50993
  2  2.07576e-05
  3  4.81801e-06
  4  12.6803
  5  23.615
  6  20.6365
  7  4.06245
  8  0.000166052
  9  3.62687e-05
  10  1.71736e-05
  11  7.99234
  12  4.95324e-06
  13  89.1157
  14  63.0252
  15  25.3045
  16  48.52
  17  1.44882
  18  0.000126326
  19  8.30294
  20  0.337694
  21  0.183723
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.332e+00  7.992e+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.174e+00  1.837e-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.019e+00  3.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 6.81e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.97e-05

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

Saving results to:
/scratch/kocevski/302529/likelihoodResults_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.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) = 5368.45333211
delta logL = 0.0440407258129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.45175957
delta logL = 0.0456132593736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7098       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2983       1.0000          .0000       10.000    
     3 'Normalizat'    1.0276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1692       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=   5368.452     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      263 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7399        344.11        .33955E-02    .10966E-03
   2  Index         2.3006        5.9349        .22920        .54188E-04
   3  Normalizat    1.0278        .11729        .82008E-01    .47326E-04
   4  Prefactor     1.1689        .75916E-01    .35404E-01   -.31316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.73988
  Index      = 2.30064
  Normalizat = 1.02777
  Prefactor  = 1.16889
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.452     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7399        9.8647        .13582E-03   -1.5117    
   2  Index         2.3006        .64710        .82233E-02   -.57028    
   3  Normalizat    1.0278        .32196        .36305E-03   -.92106    
   4  Prefactor     1.1689        .18324        .19384E-03   -.87294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50348e-11
Minuit parameter uncertainties:
  1  9.86652
  2  0.649672
  3  0.322571
  4  0.183338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302529': 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) = 5368.45174143
delta logL = 0.0456314023995

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  8.740e+00  9.867e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.301e+00  6.497e-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.169e+00  1.833e-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.028e+00  3.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.30 +/- 0.65
Photon Flux (Free Index): 5.80e-08 +/- 6.39e-08
Energy Flux (Free Index): 2.19e-05 +/- 2.74e-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/302529/cmap_HighResolution_287020801_287280001_4FGL_J1057.3-2341_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='2.19e-05', photon_flux_error='6.81e-08', dlogl='4.56e-02', energy_flux='1.80e-05', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-02 21:15:33.968502', photon_index_error2='0.65', photon_index2='2.30', ts='1.17', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='2.74e-05', EG='1.02', time_epoch_completed='1630642533.97', return_code='0', job_id='302529', GAL2='1.17', EG2='1.03', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='6.39e-08', ts2='1.26', photon_index='2.51' WHERE bin_id='184' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:15:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 302529: <4FGL_J1057.3-2341_daily_bin184> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin184> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:01:05 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:02:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:02:17 2021
Terminated at Thu Sep  2 21:15:34 2021
Results reported at Thu Sep  2 21:15:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin184 164.342 -23.6889 287020801 287280001 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 :                                   668.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            869 sec.

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

