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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin161
RA = 164.342, Dec = -23.6889
tmin = 281059201, tmax = 281318401
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='302497', job_status='RUN', time_executed='2021-09-02 21:05:51.731473', time_epoch_executed='1630641951.73' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302497/ft1_4FGL_J1057.3-2341_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302497/ft2_4FGL_J1057.3-2341_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302497/ft1_4FGL_J1057.3-2341_daily_bin161.fits outfile=/scratch/kocevski/302497/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin161.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=281059201.0 tmax=281318401.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.91
user 4.28
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302497/ft1_filtered_4FGL_J1057.3-2341_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/302497/ft2_4FGL_J1057.3-2341_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/302497/ltcube_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.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/302497/ft2_4FGL_J1057.3-2341_daily_bin161.fits
.....................!
real 17.46
user 16.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302497/ft1_filtered_4FGL_J1057.3-2341_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/302497/ft2_4FGL_J1057.3-2341_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/302497/ltcube_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.fits outfile=/scratch/kocevski/302497/expmap_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.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/302497/ltcube_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.fits
.....................!
real 192.69
user 187.18
sys 4.51

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/302497/ft1_filtered_4FGL_J1057.3-2341_daily_bin161.fits scfile=/scratch/kocevski/302497/ft2_4FGL_J1057.3-2341_daily_bin161.fits outfile=/scratch/kocevski/302497/cmap_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.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.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302497/ft1_filtered_4FGL_J1057.3-2341_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/302497/ft2_4FGL_J1057.3-2341_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302497/Model_4FGL_J1057.3-2341_daily_bin161.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/302497/ft1_filtered_4FGL_J1057.3-2341_daily_bin161.fits.....................!
real 59.27
user 57.65
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50207       1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.853       1.0000         .10000E-03   10000.    
     7 'norm      '    .45274E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5136       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3348       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.305       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4077       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0001       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=   5880.691     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2263 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50168        1.5824        .58869E-06   -.12635E-03
   2  norm          .10000E-03    5.6505        .92703E-06** at limit **
   3  norm          .10000E-03    2.9311       -.76200E-08** at limit **
   4  Prefactor     .10000E-03    5.4606       -.47923E-06** at limit **
   5  Prefactor     .10000E-03    11.704       -.10926E-05** at limit **
   6  Prefactor     15.842        17.474       -.14715E-05   -.34010E-03
   7  norm          .10003E-03    2.8709       -.60438E-06** at limit **
   8  Prefactor     8.5113        17.575       -.73376E-06   -.46122E-04
   9  Prefactor     .10000E-03    5.5697       -.15013E-05** at limit **
  10  Prefactor     .10000E-03    10.513        .10326E-06** at limit **
  11  Prefactor     6.3334        7.0561        .29592E-05   -.64709E-03
  12  Prefactor     26.097        24.543        .24601E-05    .32218E-03
  13  Prefactor     .10002E-03    388.99       -.63730E-05** at limit **
  14  Prefactor     .10000E-03    88.639        .14960E-05** at limit **
  15  Prefactor     12.304        18.107       -.42557E-06   -.41066E-04
  16  Prefactor     .10000E-03    14.065       -.66796E-06** at limit **
  17  norm          .10000E-03    .50210        .16267E-07** at limit **
  18  Prefactor     .10000E-03    5.1726        .65287E-07** at limit **
  19  Prefactor     .10000E-03    13.005        .15408E-05** at limit **
  20  Normalizat    1.4077        .25794        .95794E-07    .11926E-03
  21  Prefactor     1.0001        .13943        .49158E-08    .18304E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.501679
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 15.8417
  norm       = 0.000100031
  Prefactor  = 8.5113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.33343
  Prefactor  = 26.0969
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 12.3039
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40774
  Prefactor  = 1.00013
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.691     FROM HESSE     STATUS=OK           309 CALLS     2572 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50168        1.5535        .16554E-03   -1.5566    
   2  norm          .10000E-03    5.7103        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.9345        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.655        .34675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.842        17.564        .10059E-03   -1.4912    
   7  norm          .10003E-03    10.450        .23526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5113        17.549        .13739E-03   -1.5124    
   9  Prefactor     .10000E-03    5.7124        .35211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3334        7.3722        .79739E-03   -1.5205    
  12  Prefactor     26.097        25.100        .78394E-04   -1.4686    
  13  Prefactor     .10002E-03    394.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    89.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.304        18.111        .11420E-03   -1.5006    
  16  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .51676        .10605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1827        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4077        .30895        .31463E-03   -.80405    
  21  Prefactor     1.0001        .16742        .20206E-03   -.92725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2326e-09
Minuit parameter uncertainties:
  1  1.5536
  2  6.55437e-05
  3  1.87472e-06
  4  0.000444213
  5  7.59956e-05
  6  17.5698
  7  0.00114332
  8  17.5598
  9  2.93795e-05
  10  3.31293e-05
  11  7.37328
  12  25.1099
  13  0.0054398
  14  0.000402053
  15  18.1195
  16  7.51668e-05
  17  1.62484e-06
  18  1.26753e-07
  19  0.00010382
  20  0.309364
  21  0.167509
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  6.333e+00  7.373e+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.000e+00  1.675e-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.408e+00  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/302497/likelihoodResults_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.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) = 5880.14115263
delta logL = 0.549824756485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5880.12933765
delta logL = 0.561639741534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8338       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6103       1.0000          .0000       10.000    
     3 'Normalizat'    1.3272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0301       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=   5880.129     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      248 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8294        46.799        .60393E-02    .53616E-03
   2  Index         3.6114        3.8791        .13196        .12957E-03
   3  Normalizat    1.3272        .88082E-01    .72837E-01    .38673E-05
   4  Prefactor     1.0300        .47370E-01    .41252E-01   -.26149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8294
  Index      = 3.61139
  Normalizat = 1.32723
  Prefactor  = 1.03001
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.129     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8294        9.6655        .94768E-04   -1.5372    
   2  Index         3.6114        2.1863        .64964E-02   -.28142    
   3  Normalizat    1.3272        .31990        .32231E-03   -.82757    
   4  Prefactor     1.0300        .17389        .19939E-03   -.91736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09563e-11
Minuit parameter uncertainties:
  1  9.67087
  2  2.2698
  3  0.320381
  4  0.173986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302497': 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) = 5880.12933701
delta logL = 0.561640376595

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  2.829e+00  9.671e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.611e+00  2.270e+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.030e+00  1.740e-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.327e+00  3.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 3.61 +/- 2.27
Photon Flux (Free Index): 1.19e-07 +/- 9.76e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.66e-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/302497/cmap_HighResolution_281059201_281318401_4FGL_J1057.3-2341_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', energy_flux2='1.92e-05', dlogl='5.62e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-02 21:16:48.216228', photon_index_error2='2.27', photon_index2='3.61', ts='0.94', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.66e-05', EG='1.41', time_epoch_completed='1630642608.22', return_code='0', job_id='302497', GAL2='1.03', EG2='1.33', return_code2='0', photon_flux_error2='9.76e-08', ts2='2.17', photon_index='2.51' WHERE bin_id='161' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:16:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 302497: <4FGL_J1057.3-2341_daily_bin161> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin161> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:01:03 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:02:04 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:04 2021
Terminated at Thu Sep  2 21:16:49 2021
Results reported at Thu Sep  2 21:16:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin161 164.342 -23.6889 281059201 281318401 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 :                                   653.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            946 sec.

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

