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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin611
RA = 164.342, Dec = -23.6889
tmin = 397699201, tmax = 397958401
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='307244', job_status='RUN', time_executed='2021-09-02 21:20:56.226246', time_epoch_executed='1630642856.23' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307244

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307244/ft1_4FGL_J1057.3-2341_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307244/ft1_4FGL_J1057.3-2341_daily_bin611.fits outfile=/scratch/kocevski/307244/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin611.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=397699201.0 tmax=397958401.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.80
user 3.42
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307244/ft1_filtered_4FGL_J1057.3-2341_daily_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/307244/ltcube_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.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/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits
.....................!
real 18.13
user 17.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307244/ft1_filtered_4FGL_J1057.3-2341_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/307244/ltcube_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.fits outfile=/scratch/kocevski/307244/expmap_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.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/307244/ltcube_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.fits
.....................!
real 195.64
user 189.01
sys 5.01

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/307244/ft1_filtered_4FGL_J1057.3-2341_daily_bin611.fits scfile=/scratch/kocevski/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits outfile=/scratch/kocevski/307244/cmap_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307244/ft1_filtered_4FGL_J1057.3-2341_daily_bin611.fits scfile=/scratch/kocevski/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits outfile=/scratch/kocevski/307244/cmap_HighResolution_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307244/ft1_filtered_4FGL_J1057.3-2341_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/307244/ft2_4FGL_J1057.3-2341_daily_bin611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307244/Model_4FGL_J1057.3-2341_daily_bin611.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/307244/ft1_filtered_4FGL_J1057.3-2341_daily_bin611.fits.....................!
real 63.12
user 61.60
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42603       1.0000         .10000E-03   10000.    
     2 'norm      '    65.695       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30661E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27316E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13924E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.0785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7041       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98259       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0812       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=   6203.410     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2266 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42585        1.3153       -.39353E-06   -.11919E-02
   2  norm          65.682        22.961       -.36628E-05   -.11843E-03
   3  norm          1.7581        21.098        .63979E-05   -.18417E-03
   4  Prefactor     .10000E-03    4.6726       -.39162E-06** at limit **
   5  Prefactor     16.344        14.808       -.16266E-05    .67772E-05
   6  Prefactor     .10000E-03    8.3284        .12461E-06** at limit **
   7  norm          .15795        1.7109        .20009E-06   -.70757E-03
   8  Prefactor     .10000E-03    27.101       -.42739E-06** at limit **
   9  Prefactor     .10000E-03    1.8054        .43100E-06** at limit **
  10  Prefactor     9.6539        13.301       -.37286E-05   -.82784E-04
  11  Prefactor     .10000E-03    3.0304       -.27834E-06** at limit **
  12  Prefactor     .10001E-03    132.37        .18203E-05** at limit **
  13  Prefactor     .10002E-03    748.69       -.31793E-03** at limit **
  14  Prefactor     15.236        30.817       -.25700E-05    .70786E-05
  15  Prefactor     .10000E-03    14.145       -.63558E-06** at limit **
  16  Prefactor     .10000E-03    310.37        .47075E-04** at limit **
  17  norm          6.0805        1.8764       -.90098E-07    .13596E-02
  18  Prefactor     .10000E-03    6.4283        .14700E-06** at limit **
  19  Prefactor     6.7040        8.7430       -.16273E-05   -.12564E-03
  20  Normalizat    .98243        .24656        .32309E-05    .31648E-03
  21  Prefactor     1.0814        .13711        .88613E-07    .51124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.425853
  norm       = 65.6819
  norm       = 1.75805
  Prefactor  = 0.0001
  Prefactor  = 16.3439
  Prefactor  = 0.0001
  norm       = 0.157945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65391
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100024
  Prefactor  = 15.236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.08047
  Prefactor  = 0.0001
  Prefactor  = 6.70398
  Normalizat = 0.982433
  Prefactor  = 1.08135
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.410     FROM HESSE     STATUS=OK           317 CALLS     2583 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42585        1.4396        .15319E-02   -1.5577    
   2  norm          65.682        22.585        .49515E-04   -1.4085    
   3  norm          1.7581        20.438        .31850E-03   -1.5443    
   4  Prefactor     .10000E-03    15.931        .33057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.344        14.770        .99063E-04   -1.4899    
   6  Prefactor     .10000E-03    8.3587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .15795        7.7589        .19757E-02   -1.5629    
   8  Prefactor     .10000E-03    27.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8191        .10326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6539        13.292        .12896E-03   -1.5086    
  11  Prefactor     .10000E-03    3.0556        .13385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    136.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    748.18        .19928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.236        30.814        .10264E-03   -1.4927    
  15  Prefactor     .10000E-03    14.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    313.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.0805        1.8767        .56940E-04   -1.5215    
  18  Prefactor     .10000E-03    6.4855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7040        8.7466        .15497E-03   -1.5190    
  20  Normalizat    .98243        .28567        .35366E-03   -.93621    
  21  Prefactor     1.0814        .16058        .19140E-03   -.90065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48946e-09
Minuit parameter uncertainties:
  1  1.4397
  2  22.5883
  3  11.9932
  4  5.76221e-05
  5  14.7735
  6  1.24434e-05
  7  2.21364
  8  4.12691e-05
  9  8.78158e-06
  10  13.2962
  11  2.39991e-06
  12  0.00173424
  13  0.00854699
  14  30.8463
  15  1.73283e-06
  16  0.000504953
  17  1.87673
  18  5.44115e-06
  19  8.74825
  20  0.286116
  21  0.160649
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.400e-06  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.081e+00  1.606e-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:  9.824e-01  2.861e-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: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307244/likelihoodResults_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.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) = 6203.41132296
delta logL = -0.00155823508976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6203.40976476
delta logL = -3.70009729522e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4962       1.0000          .0000       10.000    
     3 'Normalizat'    .98241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0814       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=   6203.410     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.478        .13433E-01** at limit **
   2  Index         2.1272        8.3683        .50000       -.91541E-07
   3  Normalizat    .98243        .16416E-01    .35366E-03   -.10554E-03
   4  Prefactor     1.0814        .93355E-02    .19140E-03   -.17982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12724
  Normalizat = 0.982431
  Prefactor  = 1.08135
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.410     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    655.92        .13889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1272        6.0634        .50000       -.61206    
   3  Normalizat    .98243        .13868        .14146E-04   -.93621    
   4  Prefactor     1.0814        .78886E-01    .38281E-04   -.90065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.10261e-09
Minuit parameter uncertainties:
  1  0.000284322
  2  1572.47
  3  0.138731
  4  0.0788949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307244': 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) = 6203.40976344
delta logL = 1.28478859551e-06

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.843e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.127e+00  1.572e+03  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.081e+00  7.889e-02  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:  9.824e-01  1.387e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/307244/cmap_HighResolution_397699201_397958401_4FGL_J1057.3-2341_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-09-02 21:32:15.994623', job_id='307244', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630643535.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='611' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:32:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 307244: <4FGL_J1057.3-2341_daily_bin611> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin611> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 21:16:29 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:17:03 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:17:03 2021
Terminated at Thu Sep  2 21:32:16 2021
Results reported at Thu Sep  2 21:32:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin611 164.342 -23.6889 397699201 397958401 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 :                                   675.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            947 sec.

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

