/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 61 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1057.3-2341_daily_bin731
RA = 164.342, Dec = -23.6889
tmin = 428803201, tmax = 429062401
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='307436', job_status='RUN', time_executed='2021-09-02 21:19:52.070126', time_epoch_executed='1630642792.07' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307436/ft1_4FGL_J1057.3-2341_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307436/ft1_4FGL_J1057.3-2341_daily_bin731.fits outfile=/scratch/kocevski/307436/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin731.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.61
user 6.31
sys 0.25

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307436/ft1_filtered_4FGL_J1057.3-2341_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/307436/ltcube_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.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/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits
.....................!
real 16.60
user 15.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307436/ft1_filtered_4FGL_J1057.3-2341_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/307436/ltcube_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.fits outfile=/scratch/kocevski/307436/expmap_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.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/307436/ltcube_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.fits
.....................!
real 191.83
user 186.50
sys 4.68

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/307436/ft1_filtered_4FGL_J1057.3-2341_daily_bin731.fits scfile=/scratch/kocevski/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits outfile=/scratch/kocevski/307436/cmap_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307436/ft1_filtered_4FGL_J1057.3-2341_daily_bin731.fits scfile=/scratch/kocevski/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits outfile=/scratch/kocevski/307436/cmap_HighResolution_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.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/307436/ft1_filtered_4FGL_J1057.3-2341_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/307436/ft2_4FGL_J1057.3-2341_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307436/Model_4FGL_J1057.3-2341_daily_bin731.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/307436/ft1_filtered_4FGL_J1057.3-2341_daily_bin731.fits.....................!
real 44.15
user 42.75
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    26.492       1.0000         .10000E-03   10000.    
     3 'norm      '    38.521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43804E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9340       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.106       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2273       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97059       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=   3989.134     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2656 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .78882        .63893E-07** at limit **
   2  norm          26.498        23.263        .88988E-07    .36854E-04
   3  norm          38.516        24.146       -.14727E-07    .12343E-04
   4  Prefactor     .10000E-03    5.2217        .11294E-06** at limit **
   5  Prefactor     .10000E-03    8.7592       -.36858E-07** at limit **
   6  Prefactor     .10000E-03    9.5216        .14210E-06** at limit **
   7  norm          3.4159        3.9968        .56449E-07    .15237E-03
   8  Prefactor     .10000E-03    17.154       -.47235E-07** at limit **
   9  Prefactor     .10000E-03    4.8052       -.14150E-05** at limit **
  10  Prefactor     10.773        16.740        .19927E-05    .14247E-03
  11  Prefactor     .85069        9.1726        .29492E-05    .28366E-04
  12  Prefactor     .10000E-03    86.612       -.72743E-05** at limit **
  13  Prefactor     39.401        134.42       -.16157E-05   -.35211E-04
  14  Prefactor     .10000E-03    20.901        .15306E-06** at limit **
  15  Prefactor     .10000E-03    7.8036        .41792E-07** at limit **
  16  Prefactor     5.9361        220.65        .21937E-06   -.77910E-06
  17  norm          3.6385        2.3249        .19244E-07   -.20244E-04
  18  Prefactor     .10000E-03    58.340       -.38081E-06** at limit **
  19  Prefactor     12.105        11.814        .13778E-05    .29289E-04
  20  Normalizat    1.2275        .30230        .16483E-07    .10043E-04
  21  Prefactor     .97038        .16418       -.11777E-05    .93068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 26.4985
  norm       = 38.5158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41592
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.7735
  Prefactor  = 0.850692
  Prefactor  = 0.0001
  Prefactor  = 39.4011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93612
  norm       = 3.63847
  Prefactor  = 0.0001
  Prefactor  = 12.1052
  Normalizat = 1.22754
  Prefactor  = 0.970383
 **********
 **   18 **HESSE 
 **********

 FCN=   3989.134     FROM HESSE     STATUS=OK           317 CALLS     2973 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .79448        .54787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.498        23.276        .77831E-04   -1.4678    
   3  norm          38.516        24.150        .64578E-04   -1.4466    
   4  Prefactor     .10000E-03    5.2478        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4159        3.9726        .13160E-03   -1.5338    
   8  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8772        .24951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.773        16.848        .60994E-03   -1.5051    
  11  Prefactor     .85069        9.3332        .36677E-03   -1.5524    
  12  Prefactor     .10000E-03    86.506        .21221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.401        134.64        .31888E-03   -1.4452    
  14  Prefactor     .10000E-03    20.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8250        .17233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9361        219.62        .16485E-03   -1.5221    
  17  norm          3.6385        2.3221        .70788E-04   -1.5326    
  18  Prefactor     .10000E-03    58.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.105        11.855        .57567E-03   -1.5012    
  20  Normalizat    1.2275        .35258        .32997E-03   -.85756    
  21  Prefactor     .97038        .19021        .20204E-03   -.93723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69528e-10
Minuit parameter uncertainties:
  1  1.0005e-06
  2  23.2836
  3  24.156
  4  5.293e-06
  5  2.32661e-05
  6  4.80236e-05
  7  3.9729
  8  4.37956e-05
  9  0.000319681
  10  16.8556
  11  5.63628
  12  0.000205651
  13  135.7
  14  6.0624e-05
  15  1.03737e-05
  16  72.5011
  17  2.32219
  18  5.47206e-05
  19  11.857
  20  0.35327
  21  0.190341
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  8.507e-01  5.636e+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:  9.704e-01  1.903e-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.228e+00  3.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/307436/likelihoodResults_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.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) = 3989.07231865
delta logL = 0.0617289832676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3989.06913687
delta logL = 0.0649107650142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75876       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6724       1.0000          .0000       10.000    
     3 'Normalizat'    1.1974       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97935       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=   3989.069     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      230 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75725        29.835        .12285E-01    .80566E-03
   2  Index         3.6762        2.8902        .36267        .11951E-04
   3  Normalizat    1.1977        .38535E-01    .75371E-01    .66834E-05
   4  Prefactor     .97926        .21337E-01    .46009E-01    .38849E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.757252
  Index      = 3.67618
  Normalizat = 1.19767
  Prefactor  = 0.979263
 **********
 **   18 **HESSE 
 **********

 FCN=   3989.069     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75725        14.179        .14036E-03   -1.5534    
   2  Index         3.6762        6.8367        .82540E-02   -.26796    
   3  Normalizat    1.1977        .36759        .33357E-03   -.86675    
   4  Prefactor     .97926        .19598        .20122E-03   -.93424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79701e-09
Minuit parameter uncertainties:
  1  6.55493
  2  6.444
  3  0.368388
  4  0.196125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307436': 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) = 3989.06913535
delta logL = 0.0649122887039

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.573e-01  6.555e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.676e+00  6.444e+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:  9.793e-01  1.961e-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.198e+00  3.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/307436/cmap_HighResolution_428803201_429062401_4FGL_J1057.3-2341_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.63e-07', time_completed='2021-09-02 21:29:29.629439', job_id='307436', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.23', time_epoch_completed='1630643369.63', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.49e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='731' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 307436: <4FGL_J1057.3-2341_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin731 164.342 -23.6889 428803201 429062401 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            765 sec.

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

