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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin682
RA = 164.342, Dec = -23.6889
tmin = 416102401, tmax = 416361601
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='307360', job_status='RUN', time_executed='2021-09-02 21:21:56.401451', time_epoch_executed='1630642916.4' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307360/ft1_4FGL_J1057.3-2341_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307360/ft1_4FGL_J1057.3-2341_daily_bin682.fits outfile=/scratch/kocevski/307360/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin682.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=416102401.0 tmax=416361601.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.45
user 6.17
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307360/ft1_filtered_4FGL_J1057.3-2341_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/307360/ltcube_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.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/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits
.....................!
real 15.33
user 14.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307360/ft1_filtered_4FGL_J1057.3-2341_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/307360/ltcube_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.fits outfile=/scratch/kocevski/307360/expmap_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.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/307360/ltcube_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.fits
.....................!
real 191.64
user 186.09
sys 5.09

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/307360/ft1_filtered_4FGL_J1057.3-2341_daily_bin682.fits scfile=/scratch/kocevski/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits outfile=/scratch/kocevski/307360/cmap_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.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/307360/ft1_filtered_4FGL_J1057.3-2341_daily_bin682.fits scfile=/scratch/kocevski/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits outfile=/scratch/kocevski/307360/cmap_HighResolution_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.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.60
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307360/ft1_filtered_4FGL_J1057.3-2341_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/307360/ft2_4FGL_J1057.3-2341_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307360/Model_4FGL_J1057.3-2341_daily_bin682.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/307360/ft1_filtered_4FGL_J1057.3-2341_daily_bin682.fits.....................!
real 36.94
user 35.66
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37195       1.0000         .10000E-03   10000.    
     2 'norm      '    .10443E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.206       1.0000         .10000E-03   10000.    
     7 'norm      '    20.420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.985       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11291E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27198E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    103.96       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97275       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1699       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65701       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=   3029.769     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2264 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37333        2.7732        .37049E-06   -.33371E-04
   2  norm          .10000E-03    9.4600        .25223E-06** at limit **
   3  norm          .10000E-03    30.011        .12280E-05** at limit **
   4  Prefactor     .10000E-03    6.4683        .19300E-06** at limit **
   5  Prefactor     .10000E-03    14.572        .20210E-06** at limit **
   6  Prefactor     26.261        35.900       -.31675E-06    .59995E-04
   7  norm          20.403        10.372       -.96285E-07    .96366E-04
   8  Prefactor     10.995        27.751       -.19823E-07   -.10714E-04
   9  Prefactor     5.6472        9.9388        .19200E-06    .22207E-03
  10  Prefactor     .10371E-03    18.516       -.29988E-05** at limit **
  11  Prefactor     6.5730        10.770        .13874E-06    .11287E-04
  12  Prefactor     .10006E-03    156.06       -.21999E-04** at limit **
  13  Prefactor     103.80        163.62        .31968E-05    .20733E-04
  14  Prefactor     .10000E-03    108.90        .44590E-06** at limit **
  15  Prefactor     22.826        19.070       -.32413E-06   -.67771E-04
  16  Prefactor     .10000E-03    150.12       -.10341E-06** at limit **
  17  norm          4.8602        2.2542        .71806E-07    .24126E-03
  18  Prefactor     .10000E-03    8.9392       -.60046E-07** at limit **
  19  Prefactor     .96891        12.404        .24241E-05   -.15071E-03
  20  Normalizat    1.1694        .32586        .18328E-05   -.32206E-04
  21  Prefactor     .65724        .16473       -.25674E-05   -.29090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.373334
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2613
  norm       = 20.4032
  Prefactor  = 10.9954
  Prefactor  = 5.64725
  Prefactor  = 0.00010371
  Prefactor  = 6.57298
  Prefactor  = 0.000100057
  Prefactor  = 103.804
  Prefactor  = 0.0001
  Prefactor  = 22.8265
  Prefactor  = 0.0001
  norm       = 4.86018
  Prefactor  = 0.0001
  Prefactor  = 0.968912
  Normalizat = 1.16935
  Prefactor  = 0.657236
 **********
 **   18 **HESSE 
 **********

 FCN=   3029.769     FROM HESSE     STATUS=OK           325 CALLS     2589 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37333        4.6626        .16956E-02   -1.5586    
   2  norm          .10000E-03    9.4812        .16538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4875        .13674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.261        35.808        .78254E-04   -1.4683    
   7  norm          20.403        10.358        .88636E-04   -1.4804    
   8  Prefactor     10.995        27.737        .12088E-03   -1.5045    
   9  Prefactor     5.6472        9.6588        .16903E-03   -1.5233    
  10  Prefactor     .10371E-03    195.24        .38076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5730        10.789        .15656E-03   -1.5195    
  12  Prefactor     .10006E-03    162.46        .19932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     103.80        164.85        .19719E-03   -1.3667    
  14  Prefactor     .10000E-03    109.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.826        19.081        .83848E-04   -1.4752    
  16  Prefactor     .10000E-03    150.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8602        2.2549        .53309E-04   -1.5267    
  18  Prefactor     .10000E-03    8.9674        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .96891        22.483        .34843E-02   -1.5511    
  20  Normalizat    1.1694        .37635        .28981E-03   -.87555    
  21  Prefactor     .65724        .18799        .20341E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94588e-08
Minuit parameter uncertainties:
  1  2.63862
  2  2.30262e-05
  3  0.000227083
  4  1.48007e-05
  5  2.4238e-05
  6  35.8372
  7  10.3586
  8  27.7692
  9  9.66144
  10  0.0540068
  11  10.7923
  12  0.00609919
  13  165.581
  14  3.47099e-05
  15  19.0859
  16  0.000500466
  17  2.25494
  18  4.38306e-06
  19  9.33822
  20  0.377224
  21  0.188168
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  6.573e+00  1.079e+01  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:  6.572e-01  1.882e-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.169e+00  3.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/307360/likelihoodResults_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.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) = 3029.51667136
delta logL = 0.251927842872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3029.48330938
delta logL = 0.285289822034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97036       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3219       1.0000          .0000       10.000    
     3 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69604       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=   3029.483     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      253 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96832        18.597        .12116E-01    .43634E-03
   2  Index         4.3231        3.6839        .15251        .57562E-04
   3  Normalizat    1.0768        .71679E-01    .67817E-01   -.36777E-05
   4  Prefactor     .69614        .39012E-01    .42349E-01   -.77267E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.968318
  Index      = 4.32313
  Normalizat = 1.07683
  Prefactor  = 0.696143
 **********
 **   18 **HESSE 
 **********

 FCN=   3029.483     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96832        49.779        .54760E-04   -1.5511    
   2  Index         4.3231        7.0082        .53211E-02   -.13579    
   3  Normalizat    1.0768        .33643        .30003E-03   -.90499    
   4  Prefactor     .69614        .18123        .19813E-03   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85958e-07
Minuit parameter uncertainties:
  1  13.897
  2  8.85305
  3  0.337096
  4  0.181385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307360': 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) = 3029.48330871
delta logL = 0.285290499667

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  9.683e-01  1.390e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.323e+00  8.853e+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:  6.961e-01  1.814e-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.077e+00  3.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 4.32 +/- 8.85
Photon Flux (Free Index): 1.27e-07 +/- 1.38e-07
Energy Flux (Free Index): 1.81e-05 +/- 2.62e-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/307360/cmap_HighResolution_416102401_416361601_4FGL_J1057.3-2341_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-02', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='2.85e-01', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-02 21:30:28.415344', photon_index_error2='8.85', photon_index2='4.32', ts='0.49', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='2.57e-07', energy_flux_error2='2.62e-05', EG='1.17', time_epoch_completed='1630643428.42', return_code='0', job_id='307360', GAL2='0.70', EG2='1.08', return_code2='102', photon_flux_error2='1.38e-07', ts2='1.19', photon_index='2.51' WHERE bin_id='682' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:30:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 307360: <4FGL_J1057.3-2341_daily_bin682> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin682 164.342 -23.6889 416102401 416361601 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 :                                   507.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            832 sec.

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

