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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin660
RA = 164.342, Dec = -23.6889
tmin = 410400001, tmax = 410659201
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='307325', job_status='RUN', time_executed='2021-09-02 21:20:11.242850', time_epoch_executed='1630642811.24' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307325/ft1_4FGL_J1057.3-2341_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307325/ft1_4FGL_J1057.3-2341_daily_bin660.fits outfile=/scratch/kocevski/307325/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin660.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=410400001.0 tmax=410659201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.61
user 6.32
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307325/ft1_filtered_4FGL_J1057.3-2341_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/307325/ltcube_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.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/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits
.....................!
real 15.96
user 15.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307325/ft1_filtered_4FGL_J1057.3-2341_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/307325/ltcube_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.fits outfile=/scratch/kocevski/307325/expmap_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.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/307325/ltcube_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.fits
.....................!
real 191.96
user 187.22
sys 3.78

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/307325/ft1_filtered_4FGL_J1057.3-2341_daily_bin660.fits scfile=/scratch/kocevski/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits outfile=/scratch/kocevski/307325/cmap_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307325/ft1_filtered_4FGL_J1057.3-2341_daily_bin660.fits scfile=/scratch/kocevski/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits outfile=/scratch/kocevski/307325/cmap_HighResolution_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307325/ft1_filtered_4FGL_J1057.3-2341_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/307325/ft2_4FGL_J1057.3-2341_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307325/Model_4FGL_J1057.3-2341_daily_bin660.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/307325/ft1_filtered_4FGL_J1057.3-2341_daily_bin660.fits.....................!
real 43.78
user 42.43
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4980       1.0000         .10000E-03   10000.    
     2 'norm      '    16.226       1.0000         .10000E-03   10000.    
     3 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.597       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8572       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26607E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.094       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0448       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.445       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4209       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .60912       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=   3739.983     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2264 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4981        1.6725       -.26215E-06   -.16066E-04
   2  norm          16.234        15.324       -.49405E-06    .21643E-04
   3  norm          .10000E-03    6.3704        .19381E-07** at limit **
   4  Prefactor     4.7974        9.8212       -.15958E-05    .13035E-04
   5  Prefactor     1.6418        137.88        .45163E-05    .55360E-04
   6  Prefactor     39.599        39.267       -.52464E-05    .13755E-05
   7  norm          6.8584        7.8004        .32073E-06    .15113E-04
   8  Prefactor     3.3772        58.656       -.12045E-04   -.48974E-04
   9  Prefactor     7.4242        10.177        .68369E-06    .64716E-04
  10  Prefactor     7.2423        17.774       -.15685E-06    .24000E-04
  11  Prefactor     .10000E-03    4.7415       -.32108E-06** at limit **
  12  Prefactor     .25784E-03    62.984        .27498E-05** at limit **
  13  Prefactor     66.578        142.46       -.55434E-06   -.16338E-03
  14  Prefactor     .10000E-03    45.810        .52584E-06** at limit **
  15  Prefactor     17.784        17.503       -.64284E-06    .26570E-04
  16  Prefactor     .10000E-03    34.103       -.84556E-06** at limit **
  17  norm          2.0453        1.6748        .55091E-06   -.10818E-03
  18  Prefactor     .10000E-03    16.351       -.45665E-06** at limit **
  19  Prefactor     15.444        11.560       -.83928E-06    .38003E-04
  20  Normalizat    1.4214        .30744        .93325E-05   -.42093E-04
  21  Prefactor     .60875        .15546        .16856E-05    .20120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49806
  norm       = 16.2338
  norm       = 0.0001
  Prefactor  = 4.79736
  Prefactor  = 1.64176
  Prefactor  = 39.5992
  norm       = 6.85835
  Prefactor  = 3.37718
  Prefactor  = 7.42417
  Prefactor  = 7.2423
  Prefactor  = 0.0001
  Prefactor  = 0.000257842
  Prefactor  = 66.5779
  Prefactor  = 0.0001
  Prefactor  = 17.7839
  Prefactor  = 0.0001
  norm       = 2.04526
  Prefactor  = 0.0001
  Prefactor  = 15.444
  Normalizat = 1.42141
  Prefactor  = 0.608754
 **********
 **   18 **HESSE 
 **********

 FCN=   3739.983     FROM HESSE     STATUS=OK           333 CALLS     2597 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4981        1.6658        .81066E-04   -1.5463    
   2  norm          16.234        15.321        .99428E-04   -1.4902    
   3  norm          .10000E-03    6.3970        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7974        9.8121        .18373E-03   -1.5270    
   5  Prefactor     1.6418        110.10        .32914E-03   -1.5452    
   6  Prefactor     39.599        39.058        .63698E-04   -1.4449    
   7  norm          6.8584        7.6882        .14372E-03   -1.5184    
   8  Prefactor     3.3772        49.092        .22037E-03   -1.5340    
   9  Prefactor     7.4242        10.053        .14706E-03   -1.5163    
  10  Prefactor     7.2423        17.622        .14949E-03   -1.5170    
  11  Prefactor     .10000E-03    4.7837        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25784E-03    76.033        .12569       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     66.578        172.77        .24500E-03   -1.4074    
  14  Prefactor     .10000E-03    45.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.784        17.503        .95009E-04   -1.4864    
  16  Prefactor     .10000E-03    34.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0453        1.6691        .67979E-04   -1.5422    
  18  Prefactor     .10000E-03    16.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.444        11.572        .10191E-03   -1.4922    
  20  Normalizat    1.4214        .35671        .28079E-03   -.80011    
  21  Prefactor     .60875        .18562        .21912E-03   -1.0722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84128e-09
Minuit parameter uncertainties:
  1  1.66588
  2  15.3245
  3  1.61592e-05
  4  9.81534
  5  26.9397
  6  39.0835
  7  7.68926
  8  25.7772
  9  10.0555
  10  17.6349
  11  5.0306e-05
  12  0.219379
  13  174.099
  14  0.000143684
  15  17.5085
  16  0.000109573
  17  1.66916
  18  0.000146108
  19  11.5733
  20  0.357336
  21  0.18581
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  6.088e-01  1.858e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  1.421e+00  3.573e-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: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307325/likelihoodResults_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.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) = 3739.98363543
delta logL = -0.000994373663161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3739.98264119
delta logL = -1.37622464536e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4751       1.0000          .0000       10.000    
     3 'Normalizat'    1.4215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60875       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=   3739.983     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.412        .13508E-01** at limit **
   2  Index         2.0722        5.4548        .50000        .73009E-06
   3  Normalizat    1.4214        .11981E-01    .28078E-03    .68714E-04
   4  Prefactor     .60875        .64259E-02    .21912E-03    .91497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07219
  Normalizat = 1.42141
  Prefactor  = 0.608751
 **********
 **   18 **HESSE 
 **********

 FCN=   3739.983     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    156.73        .15235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0722        8.0575        .50000       -.62557    
   3  Normalizat    1.4214        .36540E-01    .56157E-04   -.80011    
   4  Prefactor     .60875        .19598E-01    .87647E-05   -1.0722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.71347e-09
Minuit parameter uncertainties:
  1  0.000171894
  2  453.062
  3  0.036541
  4  0.0195982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307325': 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) = 3739.98263816
delta logL = 2.89632271233e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  6.088e-01  1.960e-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:  1.421e+00  3.654e-02  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/307325/cmap_HighResolution_410400001_410659201_4FGL_J1057.3-2341_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-02 21:29:22.806172', job_id='307325', GAL2='0.61', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630643362.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='660' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:29:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 307325: <4FGL_J1057.3-2341_daily_bin660> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin660 164.342 -23.6889 410400001 410659201 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 :                                   548.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            767 sec.

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

