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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin337
RA = 164.342, Dec = -23.6889
tmin = 326678401, tmax = 326937601
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='304256', job_status='RUN', time_executed='2021-09-02 21:11:17.639844', time_epoch_executed='1630642277.64' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304256/ft1_4FGL_J1057.3-2341_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304256/ft1_4FGL_J1057.3-2341_daily_bin337.fits outfile=/scratch/kocevski/304256/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin337.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=326678401.0 tmax=326937601.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.81
user 2.60
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304256/ft1_filtered_4FGL_J1057.3-2341_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/304256/ltcube_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.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/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits
.....................!
real 14.57
user 14.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304256/ft1_filtered_4FGL_J1057.3-2341_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/304256/ltcube_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.fits outfile=/scratch/kocevski/304256/expmap_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.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/304256/ltcube_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.fits
.....................!
real 157.21
user 152.09
sys 4.57

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/304256/ft1_filtered_4FGL_J1057.3-2341_daily_bin337.fits scfile=/scratch/kocevski/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits outfile=/scratch/kocevski/304256/cmap_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304256/ft1_filtered_4FGL_J1057.3-2341_daily_bin337.fits scfile=/scratch/kocevski/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits outfile=/scratch/kocevski/304256/cmap_HighResolution_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.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.51
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304256/ft1_filtered_4FGL_J1057.3-2341_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/304256/ft2_4FGL_J1057.3-2341_daily_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304256/Model_4FGL_J1057.3-2341_daily_bin337.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/304256/ft1_filtered_4FGL_J1057.3-2341_daily_bin337.fits.....................!
real 58.19
user 56.74
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.817       1.0000         .10000E-03   10000.    
     3 'norm      '    32.292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8462       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18427E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12493E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6759       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0419       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75568       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1678       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=   7519.546     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1940 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .50913       -.50118E-07** at limit **
   2  norm          10.814        9.1596        .19322E-06   -.45221E-05
   3  norm          32.298        11.296       -.50492E-07   -.20161E-04
   4  Prefactor     .10000E-03    7.1284       -.11631E-06** at limit **
   5  Prefactor     .10000E-03    6.8863       -.25619E-07** at limit **
   6  Prefactor     3.8369        37.968       -.26441E-05   -.73543E-04
   7  norm          3.5451        4.7999        .57017E-06   -.71607E-04
   8  Prefactor     .10000E-03    6.8008       -.24921E-06** at limit **
   9  Prefactor     .10000E-03    2.1244        .49921E-06** at limit **
  10  Prefactor     .10000E-03    4.8271       -.43202E-07** at limit **
  11  Prefactor     10.333        6.2426        .87470E-08   -.57482E-04
  12  Prefactor     .10000E-03    175.43       -.19138E-04** at limit **
  13  Prefactor     .10000E-03    304.89        .49556E-04** at limit **
  14  Prefactor     .10000E-03    15.642        .28517E-08** at limit **
  15  Prefactor     4.3140        8.7878        .14668E-05   -.12506E-04
  16  Prefactor     .10000E-03    33.426        .18535E-06** at limit **
  17  norm          4.6766        1.5399       -.25979E-07   -.28774E-03
  18  Prefactor     .10000E-03    2.6952       -.19823E-07** at limit **
  19  Prefactor     2.0415        6.0045        .65567E-05   -.55395E-05
  20  Normalizat    .75569        .21312       -.54305E-06   -.33940E-04
  21  Prefactor     1.1678        .12224       -.14590E-06   -.81130E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.8144
  norm       = 32.2976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83689
  norm       = 3.5451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3326
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.314
  Prefactor  = 0.0001
  norm       = 4.67657
  Prefactor  = 0.0001
  Prefactor  = 2.04147
  Normalizat = 0.755685
  Prefactor  = 1.16784
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.546     FROM HESSE     STATUS=OK           319 CALLS     2259 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .86080        .12019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.814        9.1554        .12182E-03   -1.5050    
   3  norm          32.298        11.285        .70512E-04   -1.4571    
   4  Prefactor     .10000E-03    7.2193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8369        31.969        .20578E-03   -1.5316    
   7  norm          3.5451        4.5846        .15583E-03   -1.5331    
   8  Prefactor     .10000E-03    6.8314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7408        .22444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.333        6.2476        .12465E-03   -1.5065    
  12  Prefactor     .10000E-03    182.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    306.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3140        8.7672        .96948E-03   -1.5293    
  16  Prefactor     .10000E-03    33.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6766        1.5394        .59123E-04   -1.5275    
  18  Prefactor     .10000E-03    2.6973        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0415        6.0038        .14469E-02   -1.5422    
  20  Normalizat    .75569        .23925        .37099E-03   -1.0173    
  21  Prefactor     1.1678        .13863        .18015E-03   -.87327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37287e-10
Minuit parameter uncertainties:
  1  3.19184e-06
  2  9.1566
  3  11.2855
  4  1.00934e-05
  5  7.36299e-06
  6  22.1663
  7  4.58501
  8  5.94389e-06
  9  7.77974e-05
  10  3.15354e-06
  11  6.24798
  12  0.000774503
  13  0.000439377
  14  4.6656e-06
  15  8.76983
  16  1.31336e-05
  17  1.53943
  18  7.82967e-07
  19  6.00556
  20  0.239585
  21  0.138674
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.033e+01  6.248e+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.168e+00  1.387e-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:  7.557e-01  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.81e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.54e-05

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) = 7518.8582386
delta logL = 0.68797053836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7518.85453189
delta logL = 0.691677245856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4836       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2682       1.0000          .0000       10.000    
     3 'Normalizat'    .68771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1943       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=   7518.855     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      266 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4774        42.093        .42896E-02    .12663E-02
   2  Index         3.2687        3.0168        .13465        .30929E-03
   3  Normalizat    .68774        .83356E-01    .87436E-01   -.39024E-04
   4  Prefactor     1.1943        .45066E-01    .34767E-01   -.12171E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47735
  Index      = 3.26871
  Normalizat = 0.687738
  Prefactor  = 1.19426
 **********
 **   18 **HESSE 
 **********

 FCN=   7518.855     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4774        7.4928        .95412E-04   -1.5240    
   2  Index         3.2687        .94676        .51146E-02   -.35358    
   3  Normalizat    .68774        .24475        .38730E-03   -1.0438    
   4  Prefactor     1.1943        .14175        .17837E-03   -.86508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71707e-10
Minuit parameter uncertainties:
  1  7.49411
  2  0.953307
  3  0.245141
  4  0.141798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304256': 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) = 7518.85453097
delta logL = 0.691678169997

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  5.477e+00  7.494e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.269e+00  9.533e-01  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.194e+00  1.418e-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:  6.877e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.93
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 3.27 +/- 0.95
Photon Flux (Free Index): 1.36e-07 +/- 7.24e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.31e-05

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/304256/cmap_HighResolution_326678401_326937601_4FGL_J1057.3-2341_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.81e-08', energy_flux2='2.43e-05', photon_flux_error='5.33e-08', dlogl='6.92e-01', energy_flux='2.54e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-02 21:20:14.857136', photon_index_error2='0.95', photon_index2='3.27', ts='4.35', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.76', time_epoch_completed='1630642814.86', return_code='0', job_id='304256', GAL2='1.19', EG2='0.69', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='7.24e-08', ts2='5.93', photon_index='2.51' WHERE bin_id='337' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 304256: <4FGL_J1057.3-2341_daily_bin337> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin337> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 21:06:21 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:08:05 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:08:05 2021
Terminated at Thu Sep  2 21:20:15 2021
Results reported at Thu Sep  2 21:20:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin337 164.342 -23.6889 326678401 326937601 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 :                                   535.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            834 sec.

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

