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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin755
RA = 164.342, Dec = -23.6889
tmin = 435024001, tmax = 435283201
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='307473', job_status='RUN', time_executed='2021-09-02 21:21:59.617883', time_epoch_executed='1630642919.62' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307473/ft1_4FGL_J1057.3-2341_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307473/ft1_4FGL_J1057.3-2341_daily_bin755.fits outfile=/scratch/kocevski/307473/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin755.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=435024001.0 tmax=435283201.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.20
user 3.95
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307473/ft1_filtered_4FGL_J1057.3-2341_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/307473/ltcube_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.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/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits
.....................!
real 15.13
user 14.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307473/ft1_filtered_4FGL_J1057.3-2341_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/307473/ltcube_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.fits outfile=/scratch/kocevski/307473/expmap_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.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/307473/ltcube_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.fits
.....................!
real 156.84
user 152.14
sys 3.74

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/307473/ft1_filtered_4FGL_J1057.3-2341_daily_bin755.fits scfile=/scratch/kocevski/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits outfile=/scratch/kocevski/307473/cmap_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307473/ft1_filtered_4FGL_J1057.3-2341_daily_bin755.fits scfile=/scratch/kocevski/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits outfile=/scratch/kocevski/307473/cmap_HighResolution_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307473/ft1_filtered_4FGL_J1057.3-2341_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/307473/ft2_4FGL_J1057.3-2341_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307473/Model_4FGL_J1057.3-2341_daily_bin755.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/307473/ft1_filtered_4FGL_J1057.3-2341_daily_bin755.fits.....................!
real 49.04
user 47.73
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5946       1.0000         .10000E-03   10000.    
     2 'norm      '    14.508       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15309E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57506       1.0000         .10000E-03   10000.    
     7 'norm      '    .10735E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2926       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49125E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9391       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1094       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89586       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0206       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=   6241.512     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1939 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5950        1.8901        .24927E-08    .12589E-03
   2  norm          14.506        13.145       -.14361E-06    .11461E-03
   3  norm          9.7257        9.8099       -.18999E-06    .13370E-03
   4  Prefactor     1.2841        7.8914       -.68617E-06   -.18849E-04
   5  Prefactor     .10002E-03    8.6877        .19538E-06** at limit **
   6  Prefactor     .55293        122.43        .26837E-04    .40527E-05
   7  norm          .10000E-03    3.0901       -.99531E-08** at limit **
   8  Prefactor     5.2531        9.4654        .26962E-06    .10959E-03
   9  Prefactor     .10000E-03    1.9562       -.43345E-07** at limit **
  10  Prefactor     .10000E-03    3.6309       -.15527E-06** at limit **
  11  Prefactor     4.2916        5.4771        .20427E-06    .81234E-04
  12  Prefactor     1.2000        67.902        .53637E-05   -.27113E-04
  13  Prefactor     .10001E-03    222.17       -.41722E-05** at limit **
  14  Prefactor     .10000E-03    33.806       -.19333E-05** at limit **
  15  Prefactor     10.976        9.8062       -.36273E-07    .46029E-04
  16  Prefactor     .10000E-03    28.564        .74522E-06** at limit **
  17  norm          3.5537        1.4291       -.35529E-08   -.24044E-03
  18  Prefactor     6.9354        11.060       -.84693E-08   -.21119E-04
  19  Prefactor     2.1079        5.5332       -.20676E-05    .88390E-04
  20  Normalizat    .89601        .22037        .52373E-06    .33763E-03
  21  Prefactor     1.0205        .12383       -.14484E-06    .35239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.595
  norm       = 14.5058
  norm       = 9.72574
  Prefactor  = 1.2841
  Prefactor  = 0.00010002
  Prefactor  = 0.552928
  norm       = 0.0001
  Prefactor  = 5.25311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.29157
  Prefactor  = 1.19996
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 10.9763
  Prefactor  = 0.0001
  norm       = 3.55374
  Prefactor  = 6.93539
  Prefactor  = 2.10786
  Normalizat = 0.896014
  Prefactor  = 1.02052
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.512     FROM HESSE     STATUS=OK           325 CALLS     2264 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5950        1.8838        .89445E-04   -1.5386    
   2  norm          14.506        13.123        .10516E-03   -1.4946    
   3  norm          9.7257        9.7861        .12850E-03   -1.5084    
   4  Prefactor     1.2841        7.9645        .39077E-03   -1.5481    
   5  Prefactor     .10002E-03    45.224        .43081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55293        122.67        .49586E-02   -1.5559    
   7  norm          .10000E-03    3.1519        .26903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2531        9.2808        .17556E-03   -1.5250    
   9  Prefactor     .10000E-03    1.9783        .10761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6494        .14703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2916        5.4734        .19445E-03   -1.5294    
  12  Prefactor     1.2000        67.490        .40028E-03   -1.5489    
  13  Prefactor     .10001E-03    228.05        .19227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.976        9.8083        .12092E-03   -1.5045    
  16  Prefactor     .10000E-03    28.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5537        1.4288        .56993E-04   -1.5331    
  18  Prefactor     6.9354        11.059        .15230E-03   -1.5181    
  19  Prefactor     2.1079        5.5491        .14203E-02   -1.5418    
  20  Normalizat    .89601        .25787        .32386E-03   -.96600    
  21  Prefactor     1.0205        .14617        .17919E-03   -.92049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88569e-10
Minuit parameter uncertainties:
  1  1.88385
  2  13.1252
  3  9.78773
  4  6.39702
  5  0.00190982
  6  16.5045
  7  1.31218e-05
  8  9.2833
  9  8.08825e-06
  10  1.35002e-05
  11  5.47404
  12  18.019
  13  0.00330856
  14  6.79552e-05
  15  9.80978
  16  5.12331e-05
  17  1.42884
  18  11.062
  19  5.55043
  20  0.258223
  21  0.146222
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  4.292e+00  5.474e+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.021e+00  1.462e-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.960e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/307473/likelihoodResults_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.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) = 6240.8349685
delta logL = 0.676844232467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6240.82906773
delta logL = 0.682745004231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30430       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7194       1.0000          .0000       10.000    
     3 'Normalizat'    .82572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0514       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=   6240.829     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      317 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30305        3.3721        .72748E-02    .10424E-02
   2  Index         4.7220        2.8536        .15679        .10163E-03
   3  Normalizat    .82566        .49772E-01    .75916E-01   -.65110E-04
   4  Prefactor     1.0514        .29319E-01    .39830E-01   -.10243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.303046
  Index      = 4.72201
  Normalizat = 0.825656
  Prefactor  = 1.05141
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.829     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      350 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30305        8.9270        .33298E-03   -1.5598    
   2  Index         4.7220        7.3005        .55155E-02   -.55626E-01
   3  Normalizat    .82566        .19105        .33601E-03   -.99124    
   4  Prefactor     1.0514        .11192        .17681E-03   -.91035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.89209e-07
Minuit parameter uncertainties:
  1  3.28955
  2  6.46378
  3  0.191201
  4  0.111947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307473': 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) = 6240.8290674
delta logL = 0.682745330474

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  3.030e-01  3.290e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.722e+00  6.464e+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.051e+00  1.119e-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.257e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 4.72 +/- 6.46
Photon Flux (Free Index): 7.70e-08 +/- 5.71e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.06e-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/307473/cmap_HighResolution_435024001_435283201_4FGL_J1057.3-2341_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='6.83e-01', photon_flux2='7.70e-08', job_status='DONE', time_completed='2021-09-02 21:31:12.971096', photon_index_error2='6.46', photon_index2='4.72', ts='0.77', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.06e-05', EG='0.90', time_epoch_completed='1630643472.97', return_code='0', job_id='307473', GAL2='1.05', EG2='0.83', return_code2='102', photon_flux_error2='5.71e-08', ts2='2.27', photon_index='2.51' WHERE bin_id='755' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 307473: <4FGL_J1057.3-2341_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin755 164.342 -23.6889 435024001 435283201 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 :                                   549.07 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             273.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            865 sec.

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

