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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin1620
RA = 164.342, Dec = -23.6889
tmin = 659232001, tmax = 659491201
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='302602', job_status='RUN', time_executed='2021-12-07 21:26:15.863023', time_epoch_executed='1638941175.86' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302602

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302602/ft1_4FGL_J1057.3-2341_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302602/ft1_4FGL_J1057.3-2341_daily_bin1620.fits outfile=/scratch/kocevski/302602/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1620.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.83
user 2.64
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302602/ft1_filtered_4FGL_J1057.3-2341_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/302602/ltcube_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.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/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits
.....................!
real 14.75
user 14.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302602/ft1_filtered_4FGL_J1057.3-2341_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/302602/ltcube_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.fits outfile=/scratch/kocevski/302602/expmap_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.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/302602/ltcube_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.fits
.....................!
real 191.95
user 186.42
sys 5.03

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/302602/ft1_filtered_4FGL_J1057.3-2341_daily_bin1620.fits scfile=/scratch/kocevski/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits outfile=/scratch/kocevski/302602/cmap_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=164.342 yref=-23.6889 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302602/ft1_filtered_4FGL_J1057.3-2341_daily_bin1620.fits scfile=/scratch/kocevski/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits outfile=/scratch/kocevski/302602/cmap_HighResolution_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=164.342 yref=-23.6889 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/302602/ft1_filtered_4FGL_J1057.3-2341_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/302602/ft2_4FGL_J1057.3-2341_daily_bin1620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302602/Model_4FGL_J1057.3-2341_daily_bin1620.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/302602/ft1_filtered_4FGL_J1057.3-2341_daily_bin1620.fits.....................!
real 87.51
user 86.05
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5474       1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.9978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.1096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1709       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35577E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .64428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2474       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89945       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=   9843.513     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2229 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5477        1.9464       -.89064E-08   -.78772E-04
   2  norm          .10000E-03    3.4523       -.27027E-06** at limit **
   3  norm          8.9969        6.7760        .34442E-05   -.53459E-03
   4  Prefactor     .10000E-03    1.7687       -.29498E-08** at limit **
   5  Prefactor     5.1996        13.175       -.33427E-05    .70136E-04
   6  Prefactor     .10000E-03    17.514        .21649E-06** at limit **
   7  norm          6.1107        3.2775       -.49638E-08   -.22595E-03
   8  Prefactor     4.3580        13.373       -.57652E-05    .56369E-04
   9  Prefactor     .10000E-03    1.7742       -.35067E-07** at limit **
  10  Prefactor     .10000E-03    6.5205       -.43143E-07** at limit **
  11  Prefactor     2.1709        4.0541       -.63642E-06   -.10063E-02
  12  Prefactor     .10000E-03    27.894       -.86460E-06** at limit **
  13  Prefactor     .10000E-03    65.692        .19963E-05** at limit **
  14  Prefactor     .10000E-03    10.671        .17048E-06** at limit **
  15  Prefactor     3.4451        5.3038       -.50965E-05    .13326E-03
  16  Prefactor     .10064E-03    30.141       -.12040E-05** at limit **
  17  norm          .64577        .79615       -.12495E-06   -.11173E-02
  18  Prefactor     3.2198        4.9555        .18674E-06   -.35902E-03
  19  Prefactor     .10000E-03    1.4152        .47637E-07** at limit **
  20  Normalizat    1.2473        .17810        .10724E-05    .11417E-03
  21  Prefactor     .89945        .10038        .24369E-06    .22188E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.5477
  norm       = 0.0001
  norm       = 8.99688
  Prefactor  = 0.0001
  Prefactor  = 5.19957
  Prefactor  = 0.0001
  norm       = 6.11066
  Prefactor  = 4.35802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44506
  Prefactor  = 0.000100637
  norm       = 0.645765
  Prefactor  = 3.21984
  Prefactor  = 0.0001
  Normalizat = 1.24726
  Prefactor  = 0.899446
 **********
 **   18 **HESSE 
 **********

 FCN=   9843.513     FROM HESSE     STATUS=OK           327 CALLS     2556 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5477        1.9477        .72624E-04   -1.5196    
   2  norm          .10000E-03    3.4667        .18006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9969        6.6806        .13362E-03   -1.5108    
   4  Prefactor     .10000E-03    1.7749        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1996        12.982        .17643E-03   -1.5252    
   6  Prefactor     .10000E-03    17.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.1107        3.2591        .12380E-03   -1.5214    
   8  Prefactor     4.3580        13.202        .19307E-03   -1.5290    
   9  Prefactor     .10000E-03    1.8063        .12881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1709        4.0992        .26164E-03   -1.5413    
  12  Prefactor     .10000E-03    28.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    65.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4451        5.3353        .21791E-03   -1.5337    
  16  Prefactor     .10064E-03    28.926        .15608       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .64577        .68843        .92680E-03   -1.5547    
  18  Prefactor     3.2198        4.9411        .22572E-03   -1.5349    
  19  Prefactor     .10000E-03    1.4191        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2473        .21361        .29189E-03   -.85155    
  21  Prefactor     .89945        .12077        .19450E-03   -.96160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44329e-09
Minuit parameter uncertainties:
  1  1.94769
  2  2.34038e-05
  3  6.68117
  4  1.30719e-06
  5  12.9891
  6  5.38937e-05
  7  3.2592
  8  13.211
  9  1.74272e-06
  10  2.16981e-05
  11  4.09971
  12  9.31848e-06
  13  0.000111295
  14  1.99054e-05
  15  5.33603
  16  0.00858656
  17  0.688435
  18  4.94171
  19  1.50201e-07
  20  0.213765
  21  0.120803
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  2.171e+00  4.100e+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:  8.994e-01  1.208e-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.247e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302602/likelihoodResults_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.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) = 9843.41634047
delta logL = 0.0965659171015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9843.40182377
delta logL = 0.111082617526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6681       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1124       1.0000          .0000       10.000    
     3 'Normalizat'    1.2268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90667       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=   9843.402     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6675        52.240        .81614E-02    .12798E-02
   2  Index         3.1125        6.5212        .21861        .92123E-04
   3  Normalizat    1.2269        .40014E-01    .66453E-01    .16236E-04
   4  Prefactor     .90666        .22854E-01    .45090E-01    .73584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66753
  Index      = 3.11254
  Normalizat = 1.22688
  Prefactor  = 0.906657
 **********
 **   18 **HESSE 
 **********

 FCN=   9843.402     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6675        4.5887        .17155E-03   -1.5450    
   2  Index         3.1125        1.7844        .12041E-01   -.38709    
   3  Normalizat    1.2269        .21621        .29399E-03   -.85776    
   4  Prefactor     .90666        .12238        .19380E-03   -.95909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71538e-08
Minuit parameter uncertainties:
  1  4.58963
  2  1.83183
  3  0.216364
  4  0.122418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302602': 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) = 9843.40182374
delta logL = 0.111082646574

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.668e+00  4.590e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.113e+00  1.832e+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.067e-01  1.224e-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.227e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/302602/cmap_HighResolution_659232001_659491201_4FGL_J1057.3-2341_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-12-07 21:40:37.043102', job_id='302602', GAL2='0.91', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1638942037.04', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.11e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1620' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:40:37 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 302602: <4FGL_J1057.3-2341_daily_bin1620> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin1620> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 21:25:12 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:25:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:25:14 2021
Terminated at Tue Dec  7 21:40:37 2021
Results reported at Tue Dec  7 21:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin1620 164.342 -23.6889 659232001 659491201 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            925 sec.

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

