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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin746
RA = 164.342, Dec = -23.6889
tmin = 432691201, tmax = 432950401
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='307460', job_status='RUN', time_executed='2021-09-02 21:21:05.413106', time_epoch_executed='1630642865.41' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307460/ft1_4FGL_J1057.3-2341_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307460/ft1_4FGL_J1057.3-2341_daily_bin746.fits outfile=/scratch/kocevski/307460/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin746.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=432691201.0 tmax=432950401.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 5.41
user 5.06
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307460/ft1_filtered_4FGL_J1057.3-2341_daily_bin746.fits" evtable="EVENTS" scfile=/scratch/kocevski/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits sctable="SC_DATA" outfile=/scratch/kocevski/307460/ltcube_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.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/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits
.....................!
real 16.76
user 16.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307460/ft1_filtered_4FGL_J1057.3-2341_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/307460/ltcube_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.fits outfile=/scratch/kocevski/307460/expmap_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.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/307460/ltcube_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.fits
.....................!
real 193.09
user 187.88
sys 4.65

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/307460/ft1_filtered_4FGL_J1057.3-2341_daily_bin746.fits scfile=/scratch/kocevski/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits outfile=/scratch/kocevski/307460/cmap_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307460/ft1_filtered_4FGL_J1057.3-2341_daily_bin746.fits scfile=/scratch/kocevski/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits outfile=/scratch/kocevski/307460/cmap_HighResolution_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307460/ft1_filtered_4FGL_J1057.3-2341_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/307460/ft2_4FGL_J1057.3-2341_daily_bin746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307460/Model_4FGL_J1057.3-2341_daily_bin746.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/307460/ft1_filtered_4FGL_J1057.3-2341_daily_bin746.fits.....................!
real 52.47
user 51.05
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5605       1.0000         .10000E-03   10000.    
     2 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.712       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2867       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7322       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30802E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37058E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    247.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14134E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77385       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2047       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5077.893     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     1899 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5610        2.2649       -.72179E-06   -.14357E-03
   2  norm          .10037E-03    10.715        .36231E-05** at limit **
   3  norm          .10003E-03    4.3922        .12433E-04** at limit **
   4  Prefactor     .10003E-03    4.4094       -.12552E-04** at limit **
   5  Prefactor     .10009E-03    10.881       -.47083E-05** at limit **
   6  Prefactor     13.706        1.3655        .39681E-06   -.10717E-02
   7  norm          .10000E-03    3.6625        .34336E-05** at limit **
   8  Prefactor     4.2730        2.7608        .40461E-05   -.51768E-03
   9  Prefactor     4.1393        5.1965       -.59199E-05   -.33538E-02
  10  Prefactor     6.7342        1.2614       -.22751E-06   -.67125E-03
  11  Prefactor     .11826E-03    33.784        .23046E-04** at limit **
  12  Prefactor     .10183E-03    7.0381        .17009E-04** at limit **
  13  Prefactor     247.20        1.1836       -.12447E-06    .39646E-02
  14  Prefactor     .11123E-03    102.56       -.12244E-04** at limit **
  15  Prefactor     4.4645        10.938        .15078E-04    .77215E-03
  16  Prefactor     .10051E-03    15.806       -.74980E-05** at limit **
  17  norm          1.4505        1.4544        .47041E-06   -.72118E-05
  18  Prefactor     .10089E-03    11.178        .38752E-06** at limit **
  19  Prefactor     .10000E-03    4.0206        .12773E-05** at limit **
  20  Normalizat    .77338        .31153        .48809E-05   -.12805E-04
  21  Prefactor     1.2048        .18171       -.32049E-05   -.52164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56105
  norm       = 0.000100368
  norm       = 0.000100028
  Prefactor  = 0.000100027
  Prefactor  = 0.000100086
  Prefactor  = 13.706
  norm       = 0.0001
  Prefactor  = 4.27303
  Prefactor  = 4.13932
  Prefactor  = 6.73419
  Prefactor  = 0.000118257
  Prefactor  = 0.00010183
  Prefactor  = 247.205
  Prefactor  = 0.000111227
  Prefactor  = 4.46445
  Prefactor  = 0.00010051
  norm       = 1.4505
  Prefactor  = 0.000100888
  Prefactor  = 0.0001
  Normalizat = 0.773379
  Prefactor  = 1.20483
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.893     FROM HESSE     STATUS=OK           363 CALLS     2262 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5610        2.2805        .63783E-02   -1.5388    
   2  norm          .10037E-03    12.446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10003E-03    4.4892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    4.4850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    11.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.706        15.202        .27042E-02   -1.4967    
   7  norm          .10000E-03    3.5900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2730        14.977        .48647E-02   -1.5295    
   9  Prefactor     4.1393        5.7548        .49509E-02   -1.5301    
  10  Prefactor     6.7342        9.9804        .38662E-02   -1.5189    
  11  Prefactor     .11826E-03    4.4342        .83751E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10183E-03    85.254        .10649E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     247.20        164.68        .64403E-03   -1.2550    
  14  Prefactor     .11123E-03    130.08        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4645        14.119        .47373E-02   -1.5285    
  16  Prefactor     .10051E-03    19.511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4505        1.4913        .89459E-02   -1.5467    
  18  Prefactor     .10089E-03    16.410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .77338        .28444        .85433E-01   -1.0106    
  21  Prefactor     1.2048        .15828        .34522E-01   -.86183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29758e-07
Minuit parameter uncertainties:
  1  2.28055
  2  0.00428194
  3  0.000705171
  4  0.000696873
  5  0.00196801
  6  15.2059
  7  6.51459e-06
  8  14.9904
  9  5.75553
  10  9.98281
  11  0.0179965
  12  0.0250179
  13  164.987
  14  0.0765971
  15  14.1292
  16  0.00631383
  17  1.49129
  18  0.00763607
  19  5.3331e-06
  20  0.284986
  21  0.158341
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.183e-04  1.800e-02  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.205e+00  1.583e-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.734e-01  2.850e-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.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307460/likelihoodResults_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.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) = 5077.89317701
delta logL = -4.52162867077e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5077.85274618
delta logL = 0.0403856118037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62887       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5465       1.0000          .0000       10.000    
     3 'Normalizat'    .74475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2134       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=   5077.853     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      414 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62887        10.557        .40678E-01    .17738E-02
   2  Index         3.5465        1.6948        .39562       -.22635E-04
   3  Normalizat    .74478        .20775E-01    .86948E-01    .24762E-04
   4  Prefactor     1.2134        .12141E-01    .34321E-01   -.34743E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.628872
  Index      = 3.54646
  Normalizat = 0.74478
  Prefactor  = 1.2134
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.853     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      449 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62887        348.78        .14197E-02   -1.5549    
   2  Index         3.5465        7.1095        .79099E-02   -.29497    
   3  Normalizat    .74478        .26166        .38509E-03   -1.0215    
   4  Prefactor     1.2134        .14540        .17971E-03   -.85920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59301e-07
Minuit parameter uncertainties:
  1  29.7938
  2  25.8442
  3  0.262105
  4  0.145445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307460': 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): 102
logL (Free Index) = 5077.85274618
delta logL = 0.0403856184412

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  6.289e-01  2.979e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.546e+00  2.584e+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.213e+00  1.454e-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.448e-01  2.621e-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/307460/cmap_HighResolution_432691201_432950401_4FGL_J1057.3-2341_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-02 21:31:08.607823', job_id='307460', GAL2='1.21', fit_tolerance='1e-08', EG2='0.74', EG='0.77', time_epoch_completed='1630643468.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='4.04e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='746' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:31:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 307460: <4FGL_J1057.3-2341_daily_bin746> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin746 164.342 -23.6889 432691201 432950401 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 :                                   602.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            862 sec.

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

