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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin438
RA = 164.342, Dec = -23.6889
tmin = 352857601, tmax = 353116801
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='305525', job_status='RUN', time_executed='2021-09-02 21:15:07.716859', time_epoch_executed='1630642507.72' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305525/ft1_4FGL_J1057.3-2341_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305525/ft1_4FGL_J1057.3-2341_daily_bin438.fits outfile=/scratch/kocevski/305525/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin438.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=352857601.0 tmax=353116801.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.47
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305525/ft1_filtered_4FGL_J1057.3-2341_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/305525/ltcube_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.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/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits
.....................!
real 18.21
user 17.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305525/ft1_filtered_4FGL_J1057.3-2341_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/305525/ltcube_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.fits outfile=/scratch/kocevski/305525/expmap_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.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/305525/ltcube_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.fits
.....................!
real 192.55
user 187.86
sys 4.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/305525/ft1_filtered_4FGL_J1057.3-2341_daily_bin438.fits scfile=/scratch/kocevski/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits outfile=/scratch/kocevski/305525/cmap_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305525/ft1_filtered_4FGL_J1057.3-2341_daily_bin438.fits scfile=/scratch/kocevski/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits outfile=/scratch/kocevski/305525/cmap_HighResolution_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.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/305525/ft1_filtered_4FGL_J1057.3-2341_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/305525/ft2_4FGL_J1057.3-2341_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305525/Model_4FGL_J1057.3-2341_daily_bin438.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/305525/ft1_filtered_4FGL_J1057.3-2341_daily_bin438.fits.....................!
real 33.44
user 32.07
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2920       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .50120E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.848       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.708       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0589       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .44941       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96244       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=   2627.592     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     1917 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2919        3.2610        .55788E-02    .14174E-03
   2  norm          .10001E-03    7.9657        .90712E-02** at limit **
   3  norm          .10039E-03    12.855        .60916E-01** at limit **
   4  Prefactor     26.848        16.030        .19329E-02   -.77007E-04
   5  Prefactor     37.242        23.600        .16419E-02   -.63978E-03
   6  Prefactor     .10001E-03    8.0527        .90712E-02** at limit **
   7  norm          .10000E-03    2.7892        .90712E-02** at limit **
   8  Prefactor     .10000E-03    10.952        .90712E-02** at limit **
   9  Prefactor     4.6250        4.8886        .46789E-02   -.18774E-03
  10  Prefactor     .10000E-03    3.7419        .90712E-02** at limit **
  11  Prefactor     7.1997        7.9557        .37373E-02    .13095E-03
  12  Prefactor     .10000E-03    12.713        .90712E-02** at limit **
  13  Prefactor     .10000E-03    71.238        .90712E-02** at limit **
  14  Prefactor     .10000E-03    27.783        .90712E-02** at limit **
  15  Prefactor     25.531        19.008        .19820E-02   -.41959E-04
  16  Prefactor     77.707        73.091        .11389E-02    .96042E-03
  17  norm          2.6652        1.8458        .62413E-02    .52325E-04
  18  Prefactor     6.0585        14.536        .40779E-02    .13248E-02
  19  Prefactor     .10000E-03    3.5194        .90712E-02** at limit **
  20  Normalizat    .44931        .32491        .87532E-01    .17878E-04
  21  Prefactor     .96252        .17708        .45796E-01   -.63209E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.29189
  norm       = 0.000100007
  norm       = 0.000100393
  Prefactor  = 26.8477
  Prefactor  = 37.2422
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.62505
  Prefactor  = 0.0001
  Prefactor  = 7.19968
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 25.531
  Prefactor  = 77.7067
  norm       = 2.6652
  Prefactor  = 6.05853
  Prefactor  = 0.0001
  Normalizat = 0.449311
  Prefactor  = 0.962522
 **********
 **   18 **HESSE 
 **********

 FCN=   2627.592     FROM HESSE     STATUS=OK           313 CALLS     2230 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2919        3.2484        .87923E-04   -1.5345    
   2  norm          .10001E-03    7.9783        .14130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10039E-03    44.622        .35519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.848        16.013        .77315E-04   -1.4671    
   5  Prefactor     37.242        23.549        .65676E-04   -1.4487    
   6  Prefactor     .10001E-03    8.0570        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8096        .83493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.981        .16567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6250        4.8722        .11123E-03   -1.5278    
  10  Prefactor     .10000E-03    3.7449        .96838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1997        7.9324        .14169E-03   -1.5171    
  12  Prefactor     .10000E-03    12.714        .17854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    71.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.531        18.972        .79280E-04   -1.4697    
  16  Prefactor     77.707        73.057        .45555E-04   -1.3943    
  17  norm          2.6652        1.8440        .53874E-04   -1.5381    
  18  Prefactor     6.0585        14.503        .81557E-03   -1.5216    
  19  Prefactor     .10000E-03    3.5311        .93915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .44931        .35640        .38773E-03   -1.1483    
  21  Prefactor     .96252        .19870        .16069E-03   -.93989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76381e-08
Minuit parameter uncertainties:
  1  3.24858
  2  0.000481185
  3  0.00838538
  4  16.0151
  5  23.5553
  6  0.000507699
  7  1.06741e-06
  8  4.52595e-05
  9  4.87266
  10  7.73814e-07
  11  7.93359
  12  1.06703e-05
  13  0.000758149
  14  0.00073758
  15  18.9762
  16  73.142
  17  1.84401
  18  14.5115
  19  8.01443e-07
  20  0.358223
  21  0.198853
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.200e+00  7.934e+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:  9.625e-01  1.989e-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:  4.493e-01  3.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 6.76e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.95e-05

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

Saving results to:
/scratch/kocevski/305525/likelihoodResults_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.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) = 2627.09989245
delta logL = 0.491941381383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2627.05116505
delta logL = 0.540668782292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90814       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2080       1.0000          .0000       10.000    
     3 'Normalizat'    .37414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99745       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=   2627.051     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90638        17.166        .86632E-02    .12485E-03
   2  Index         4.2093        3.9892        .10973        .50048E-04
   3  Normalizat    .37402        .90580E-01    .95602E-01    .39628E-06
   4  Prefactor     .99760        .53753E-01    .46235E-01   -.61359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.906385
  Index      = 4.20928
  Normalizat = 0.374024
  Prefactor  = 0.997597
 **********
 **   18 **HESSE 
 **********

 FCN=   2627.051     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90638        30.526        .38999E-04   -1.5518    
   2  Index         4.2093        7.1046        .44242E-02   -.15881    
   3  Normalizat    .37402        .31299        .42344E-03   -1.1867    
   4  Prefactor     .99760        .18853        .15810E-03   -.92810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11508e-07
Minuit parameter uncertainties:
  1  10.5254
  2  6.93225
  3  0.314463
  4  0.188652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305525': 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) = 2627.05116444
delta logL = 0.540669396962

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  9.064e-01  1.053e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.209e+00  6.932e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.976e-01  1.887e-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:  3.740e-01  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 4.21 +/- 6.93
Photon Flux (Free Index): 9.88e-08 +/- 8.71e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.19e-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/305525/cmap_HighResolution_352857601_353116801_4FGL_J1057.3-2341_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='1.43e-05', photon_flux_error='6.76e-08', dlogl='5.41e-01', energy_flux='1.77e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-02 21:22:58.981813', photon_index_error2='6.93', photon_index2='4.21', ts='1.13', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='2.19e-05', EG='0.45', time_epoch_completed='1630642978.98', return_code='0', job_id='305525', GAL2='1.00', EG2='0.37', return_code2='102', energy_flux_error='1.95e-05', photon_flux_error2='8.71e-08', ts2='2.34', photon_index='2.51' WHERE bin_id='438' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:22:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 305525: <4FGL_J1057.3-2341_daily_bin438> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin438> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 21:11:02 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:12:16 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:12:16 2021
Terminated at Thu Sep  2 21:22:59 2021
Results reported at Thu Sep  2 21:22:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin438 164.342 -23.6889 352857601 353116801 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 :                                   469.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            717 sec.

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

