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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin419
RA = 164.342, Dec = -23.6889
tmin = 347932801, tmax = 348192001
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='305457', job_status='RUN', time_executed='2021-09-02 21:12:27.938745', time_epoch_executed='1630642347.94' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305457

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305457/ft1_4FGL_J1057.3-2341_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305457/ft2_4FGL_J1057.3-2341_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305457/ft1_4FGL_J1057.3-2341_daily_bin419.fits outfile=/scratch/kocevski/305457/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin419.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=347932801.0 tmax=348192001.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 3.44
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/305457/ft2_4FGL_J1057.3-2341_daily_bin419.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/305457/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin419.fits evtable="EVENTS" outfile="/scratch/kocevski/305457/ft1_filtered_4FGL_J1057.3-2341_daily_bin419.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305457/ft1_filtered_4FGL_J1057.3-2341_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/305457/ft2_4FGL_J1057.3-2341_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/305457/ltcube_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.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/305457/ft2_4FGL_J1057.3-2341_daily_bin419.fits
.....................!
real 13.57
user 13.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305457/ft1_filtered_4FGL_J1057.3-2341_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/305457/ft2_4FGL_J1057.3-2341_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/305457/ltcube_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.fits outfile=/scratch/kocevski/305457/expmap_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.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/305457/ltcube_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.fits
.....................!
real 190.73
user 185.12
sys 5.04

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/305457/ft1_filtered_4FGL_J1057.3-2341_daily_bin419.fits scfile=/scratch/kocevski/305457/ft2_4FGL_J1057.3-2341_daily_bin419.fits outfile=/scratch/kocevski/305457/cmap_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.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.38
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305457/ft1_filtered_4FGL_J1057.3-2341_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/305457/ft2_4FGL_J1057.3-2341_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305457/Model_4FGL_J1057.3-2341_daily_bin419.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/305457/ft1_filtered_4FGL_J1057.3-2341_daily_bin419.fits.....................!
real 69.95
user 67.86
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1028       1.0000         .10000E-03   10000.    
     2 'norm      '    21.471       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2584       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0829       1.0000         .10000E-03   10000.    
     7 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10290E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.209       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4128       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.426       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2411       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16054E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .58484       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1451       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=   7968.088     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1978 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1032        1.7534        .18303E-06   -.42648E-03
   2  norm          21.473        10.418       -.14535E-06    .67490E-04
   3  norm          5.2576        6.7143        .23312E-05   -.14453E-02
   4  Prefactor     .10000E-03    2.9243        .14826E-07** at limit **
   5  Prefactor     .10000E-03    4.8758        .25619E-05** at limit **
   6  Prefactor     5.0431        11.077       -.68097E-06   -.15968E-03
   7  norm          .10000E-03    1.2633        .11675E-07** at limit **
   8  Prefactor     .10000E-03    8.5197        .15159E-06** at limit **
   9  Prefactor     .54257E-01    1.3981        .11132E-06   -.10024E-03
  10  Prefactor     .10000E-03    4.7308       -.19367E-05** at limit **
  11  Prefactor     .10000E-03    3.1021        .64032E-08** at limit **
  12  Prefactor     22.210        19.669        .16872E-05    .26908E-03
  13  Prefactor     .10000E-03    23.568       -.11244E-06** at limit **
  14  Prefactor     8.3864        19.748        .22940E-05    .13731E-03
  15  Prefactor     .10000E-03    5.5507       -.75632E-06** at limit **
  16  Prefactor     42.432        35.606        .34413E-05    .31504E-03
  17  norm          3.2414        1.2594       -.77827E-07   -.68012E-04
  18  Prefactor     .10000E-03    3.8865        .95734E-07** at limit **
  19  Prefactor     .10000E-03    2.4934       -.24497E-07** at limit **
  20  Normalizat    .58489        .18825       -.70878E-06   -.33089E-04
  21  Prefactor     1.1449        .11254       -.11678E-06   -.13629E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10322
  norm       = 21.4732
  norm       = 5.25765
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.04314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0542566
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.2103
  Prefactor  = 0.0001
  Prefactor  = 8.38643
  Prefactor  = 0.0001
  Prefactor  = 42.4324
  norm       = 3.24137
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.584893
  Prefactor  = 1.14492
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.088     FROM HESSE     STATUS=OK           319 CALLS     2297 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1032        1.7368        .14292E-03   -1.5498    
   2  norm          21.473        10.560        .86441E-04   -1.4781    
   3  norm          5.2576        8.5974        .87642E-03   -1.5249    
   4  Prefactor     .10000E-03    2.9463        .14906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0431        11.217        .17834E-03   -1.5259    
   7  norm          .10000E-03    2.5123        .19048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .54257E-01    40.532        .19501E-02   -1.5661    
  10  Prefactor     .10000E-03    4.8907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2022        .30672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.210        19.823        .84994E-04   -1.4765    
  13  Prefactor     .10000E-03    23.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3864        19.857        .13821E-03   -1.5129    
  15  Prefactor     .10000E-03    5.6381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.432        36.345        .30773E-03   -1.4404    
  17  norm          3.2414        1.2597        .58357E-04   -1.5348    
  18  Prefactor     .10000E-03    3.9026        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.066        .27089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .58489        .21065        .36996E-03   -1.0863    
  21  Prefactor     1.1449        .12873        .16494E-03   -.88044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03524e-09
Minuit parameter uncertainties:
  1  1.73684
  2  10.561
  3  8.59942
  4  1.8742e-06
  5  0.000163886
  6  11.2215
  7  2.02007e-05
  8  1.35915e-05
  9  2.96518
  10  0.000105969
  11  9.67314e-07
  12  19.829
  13  3.57836e-05
  14  19.8723
  15  6.23925e-05
  16  36.364
  17  1.25972
  18  6.47071e-06
  19  0.000493768
  20  0.210943
  21  0.128769
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  9.673e-07  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.145e+00  1.288e-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:  5.849e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/305457/likelihoodResults_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.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) = 7968.08993601
delta logL = -0.00149035445884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7968.08844553
delta logL = 1.27492967295e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5262       1.0000          .0000       10.000    
     3 'Normalizat'    .58483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1450       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7968.088     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      294 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11968E-01    .26397E-01** at limit **
   2  Index         4.0827        5.0256        .50000        .53612E-06
   3  Normalizat    .58483        .10157E-02    .36996E-03   -.13233E-02
   4  Prefactor     1.1450        .62145E-03    .16494E-03    .39741E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 4.0827
  Normalizat = 0.584828
  Prefactor  = 1.14496
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.088     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      333 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .53596E-01    .13020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0827        6.4498        .50000       -.18450    
   3  Normalizat    .58483        .12281E-02    .73991E-04   -1.0863    
   4  Prefactor     1.1450        .75138E-03    .32988E-04   -.88042    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.97602e-12
Minuit parameter uncertainties:
  1  1.07164e-05
  2  16.5382
  3  0.00122809
  4  0.000751377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305457': 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) = 7968.08843095
delta logL = 1.47100599861e-05

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.072e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.083e+00  1.654e+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.145e+00  7.514e-04  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:  5.848e-01  1.228e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/305457/cmap_HighResolution_347932801_348192001_4FGL_J1057.3-2341_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-02 21:24:46.262000', job_id='305457', GAL2='1.14', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1630643086.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.47e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='419' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:24:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 305457: <4FGL_J1057.3-2341_daily_bin419> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin419> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 21:11:00 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:11:53 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:11:53 2021
Terminated at Thu Sep  2 21:24:47 2021
Results reported at Thu Sep  2 21:24:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin419 164.342 -23.6889 347932801 348192001 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 :                                   734.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             317.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            827 sec.

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

