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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin185
RA = 164.342, Dec = -23.6889
tmin = 287280001, tmax = 287539201
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='302531', job_status='RUN', time_executed='2021-09-02 21:05:03.488132', time_epoch_executed='1630641903.49' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302531/ft1_4FGL_J1057.3-2341_daily_bin185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302531/ft1_4FGL_J1057.3-2341_daily_bin185.fits outfile=/scratch/kocevski/302531/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin185.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=287280001.0 tmax=287539201.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.57
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302531/ft1_filtered_4FGL_J1057.3-2341_daily_bin185.fits" evtable="EVENTS" scfile=/scratch/kocevski/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits sctable="SC_DATA" outfile=/scratch/kocevski/302531/ltcube_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.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/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits
.....................!
real 13.31
user 12.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302531/ft1_filtered_4FGL_J1057.3-2341_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits sctable="SC_DATA" expcube=/scratch/kocevski/302531/ltcube_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.fits outfile=/scratch/kocevski/302531/expmap_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.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/302531/ltcube_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.fits
.....................!
real 191.38
user 186.39
sys 4.53

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/302531/ft1_filtered_4FGL_J1057.3-2341_daily_bin185.fits scfile=/scratch/kocevski/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits outfile=/scratch/kocevski/302531/cmap_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302531/ft1_filtered_4FGL_J1057.3-2341_daily_bin185.fits scfile=/scratch/kocevski/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits outfile=/scratch/kocevski/302531/cmap_HighResolution_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302531/ft1_filtered_4FGL_J1057.3-2341_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/302531/ft2_4FGL_J1057.3-2341_daily_bin185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302531/Model_4FGL_J1057.3-2341_daily_bin185.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/302531/ft1_filtered_4FGL_J1057.3-2341_daily_bin185.fits.....................!
real 55.99
user 54.63
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    15.811       1.0000         .10000E-03   10000.    
     3 'norm      '    14.576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.892       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12316E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6175       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50515E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10861E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39574E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4753       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85962       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99579       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=   5456.796     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2291 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2332       -.10983E-06** at limit **
   2  norm          15.808        17.632        .24891E-06    .10253E-04
   3  norm          14.567        12.234       -.40094E-06   -.37182E-03
   4  Prefactor     .10000E-03    5.6781       -.56514E-07** at limit **
   5  Prefactor     15.873        18.541        .26591E-05    .30913E-04
   6  Prefactor     .10003E-03    17.586       -.14501E-05** at limit **
   7  norm          .10000E-03    3.9949       -.25390E-06** at limit **
   8  Prefactor     .10000E-03    12.886       -.10739E-05** at limit **
   9  Prefactor     7.6150        5.2431        .54719E-07   -.98616E-04
  10  Prefactor     .10011E-03    8.7323        .11331E-05** at limit **
  11  Prefactor     .10023E-03    3.2162        .51860E-06** at limit **
  12  Prefactor     .10000E-03    9.3236        .29895E-06** at limit **
  13  Prefactor     .10000E-03    38.221        .48313E-05** at limit **
  14  Prefactor     .10000E-03    26.843       -.16490E-04** at limit **
  15  Prefactor     .10000E-03    6.6043        .28257E-06** at limit **
  16  Prefactor     .10000E-03    23.322        .11342E-04** at limit **
  17  norm          .39212E-01    .58646       -.12357E-06   -.85350E-04
  18  Prefactor     .10000E-03    9.2631        .34262E-06** at limit **
  19  Prefactor     9.4737        8.9275        .20939E-06   -.97804E-04
  20  Normalizat    .85962        .23607       -.75942E-06   -.40704E-04
  21  Prefactor     .99580        .12875        .13601E-06   -.58661E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 15.8081
  norm       = 14.5673
  Prefactor  = 0.0001
  Prefactor  = 15.873
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.61501
  Prefactor  = 0.000100106
  Prefactor  = 0.00010023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0392116
  Prefactor  = 0.0001
  Prefactor  = 9.4737
  Normalizat = 0.859623
  Prefactor  = 0.995799
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.796     FROM HESSE     STATUS=OK           323 CALLS     2614 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2554        .15752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.808        17.601        .10073E-03   -1.4913    
   3  norm          14.567        12.271        .52456E-03   -1.4944    
   4  Prefactor     .10000E-03    5.8387        .34376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.873        18.443        .10047E-03   -1.4911    
   6  Prefactor     .10003E-03    97.546        .56755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.1235        .28682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6150        5.0101        .12747E-03   -1.5156    
  10  Prefactor     .10011E-03    57.285        .40896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10023E-03    53.738        .24981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .39212E-01    6.5677        .10753E-02   -1.5668    
  18  Prefactor     .10000E-03    9.3222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4737        8.9152        .13019E-03   -1.5092    
  20  Normalizat    .85962        .27751        .32794E-03   -.97894    
  21  Prefactor     .99580        .15625        .17491E-03   -.92870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86355e-08
Minuit parameter uncertainties:
  1  0.000113341
  2  17.6069
  3  12.2733
  4  1.04761e-06
  5  18.4496
  6  0.00344383
  7  1.76859e-05
  8  5.27215e-05
  9  5.01037
  10  0.00493339
  11  0.00703083
  12  5.92776e-07
  13  2.85394e-06
  14  1.98119e-05
  15  3.23177e-06
  16  3.04301e-06
  17  1.01377
  18  5.30001e-06
  19  8.91645
  20  0.277973
  21  0.15632
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.958e-01  1.563e-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.596e-01  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302531/likelihoodResults_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.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): 102
logL (Free Index) = 5456.79564569
delta logL = -8.77530001162e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5456.79543755
delta logL = 0.00012038422301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40188E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6993       1.0000          .0000       10.000    
     3 'Normalizat'    .85952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99594       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=   5456.709     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      253 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78924        53.433        .97443E-02    .12092E-02
   2  Index         3.4873        6.7366        .22892        .62918E-04
   3  Normalizat    .82818        .41830E-01    .75380E-01    .29176E-04
   4  Prefactor     1.0047        .24038E-01    .46216E-01    .22530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.789236
  Index      = 3.48727
  Normalizat = 0.828181
  Prefactor  = 1.00472
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.709     FROM HESSE     STATUS=OK            31 CALLS      284 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78924        5.2713        .15145E-03   -1.5530    
   2  Index         3.4873        2.6295        .12299E-01   -.30736    
   3  Normalizat    .82818        .28135        .33363E-03   -.99032    
   4  Prefactor     1.0047        .15757        .17421E-03   -.92572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88446e-11
Minuit parameter uncertainties:
  1  4.07961
  2  2.78538
  3  0.281844
  4  0.157637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302531': 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) = 5456.70863572
delta logL = 0.0869222161227

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.892e-01  4.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.487e+00  2.785e+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.005e+00  1.576e-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.282e-01  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.342 -23.689

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/302531/cmap_HighResolution_287280001_287539201_4FGL_J1057.3-2341_daily_bin185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-02 21:15:30.385918', job_id='302531', GAL2='1.00', fit_tolerance='1e-08', EG2='0.83', EG='0.86', time_epoch_completed='1630642530.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.69e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='185' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 302531: <4FGL_J1057.3-2341_daily_bin185> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin185> 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) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:02:18 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:18 2021
Terminated at Thu Sep  2 21:15:30 2021
Results reported at Thu Sep  2 21:15:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin185 164.342 -23.6889 287280001 287539201 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 :                                   623.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            865 sec.

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

