/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 4 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1539.6+2743_daily_bin76
RA = 234.902, Dec = 27.7277
tmin = 259027201, tmax = 259286401
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='639012', job_status='RUN', time_executed='2021-09-12 09:31:26.813159', time_epoch_executed='1631464286.81' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639012/ft1_4FGL_J1539.6+2743_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639012/ft1_4FGL_J1539.6+2743_daily_bin76.fits outfile=/scratch/kocevski/639012/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin76.fits ra=234.902 dec=27.7277 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.46
user 1.27
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.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/639012/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/639012/ltcube_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.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/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits
.....................!
real 15.23
user 14.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/639012/ltcube_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.fits outfile=/scratch/kocevski/639012/expmap_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.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/639012/ltcube_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.fits
.....................!
real 192.32
user 186.67
sys 5.19

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1539.6+2743 @ 234.902 27.7277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits scfile=/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits outfile=/scratch/kocevski/639012/cmap_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.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=234.902 yref=27.7277 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits scfile=/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits outfile=/scratch/kocevski/639012/cmap_HighResolution_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.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=234.902 yref=27.7277 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639012/Model_4FGL_J1539.6+2743_daily_bin76.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/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits.....................!
real 64.92
user 63.41
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits', '/scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits', expMap='/scratch/kocevski/639012/expmap_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.fits', expCube='/scratch/kocevski/639012/ltcube_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639012/Model_4FGL_J1539.6+2743_daily_bin76.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1539.6+2743'

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639012/ft1_filtered_4FGL_J1539.6+2743_daily_bin76.fits
Spacecraft file(s): /scratch/kocevski/639012/ft2_4FGL_J1539.6+2743_daily_bin76.fits
Exposure map: /scratch/kocevski/639012/expmap_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.fits
Exposure cube: /scratch/kocevski/639012/ltcube_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639012/Model_4FGL_J1539.6+2743_daily_bin76.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) = 8664.98814597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93677       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13127E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    120.30       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .18619E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53322       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .73054       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8664.956     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1654 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94060        .50541       -.32213E-08   -.33993E-03
   2  Prefactor     .10000E-03    105.38       -.38803E-05** at limit **
   3  Prefactor     120.29        52.647       -.88514E-05   -.54304E-05
   4  Prefactor     .10000E-03    4.2516        .82206E-08** at limit **
   5  norm          12.815        1.9031       -.50231E-08    .10471E-03
   6  Prefactor     .10000E-03    23.424       -.51637E-06** at limit **
   7  Prefactor     .10000E-03    16.513       -.32025E-06** at limit **
   8  Prefactor     .10000E-03    20.417       -.24179E-06** at limit **
   9  norm          .10001E-03    5.4414        .53743E-06** at limit **
  10  Prefactor     .53280        1.5562        .96788E-08   -.20093E-04
  11  Prefactor     25.324        32.418        .81683E-05   -.23209E-04
  12  Prefactor     2.8578        43.108        .80116E-05   -.24250E-04
  13  Prefactor     11.803        9.7206       -.15038E-06   -.13875E-04
  14  Prefactor     1.7707        2.9768       -.58288E-07   -.22762E-04
  15  Prefactor     .10000E-03    9.2323       -.46089E-07** at limit **
  16  Normalizat    .73027        .17496        .93941E-06   -.61358E-04
  17  Prefactor     1.1072        .11782       -.46917E-06    .20142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.9406
  Prefactor  = 0.0001
  Prefactor  = 120.29
  Prefactor  = 0.0001
  norm       = 12.8149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.532801
  Prefactor  = 25.3235
  Prefactor  = 2.85781
  Prefactor  = 11.8033
  Prefactor  = 1.77074
  Prefactor  = 0.0001
  Normalizat = 0.730273
  Prefactor  = 1.10723
 **********
 **   18 **HESSE 
 **********

 FCN=   8664.956     FROM HESSE     STATUS=OK           223 CALLS     1877 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94060        11.338        .25881E-02   -1.5514    
   2  Prefactor     .10000E-03    106.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     120.29        52.749        .36690E-04   -1.3510    
   4  Prefactor     .10000E-03    4.3008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.815        1.8980        .46569E-04   -1.4992    
   6  Prefactor     .10000E-03    24.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    23.582        .41996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .53280        1.5281        .19006E-03   -1.5562    
  11  Prefactor     25.324        32.253        .79604E-04   -1.4701    
  12  Prefactor     2.8578        42.451        .23871E-03   -1.5370    
  13  Prefactor     11.803        9.7341        .11661E-03   -1.5021    
  14  Prefactor     1.7707        2.9644        .19715E-03   -1.5442    
  15  Prefactor     .10000E-03    9.4404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .73027        .19681        .33320E-03   -1.0271    
  17  Prefactor     1.1072        .13463        .19189E-03   -.89236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2254e-10
Minuit parameter uncertainties:
  1  6.53258
  2  2.93515e-06
  3  52.77
  4  5.99e-06
  5  1.89805
  6  3.73119e-06
  7  9.26303e-07
  8  3.5409e-05
  9  0.000967573
  10  1.52823
  11  32.2754
  12  22.0472
  13  9.73544
  14  2.96465
  15  6.42027e-06
  16  0.197004
  17  0.134671
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  5.328e-01  1.528e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.107e+00  1.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  7.303e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 234.902 27.728
Photon Flux Upper Limit: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639012/likelihoodResults_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.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) = 8664.9074824
delta logL = 0.0481322692031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8664.9018609
delta logL = 0.0537537696455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41782       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8784       1.0000          .0000       10.000    
     3 'Normalizat'    .72291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+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=   8664.902     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41772        1.4983        .12621E-03   -.33923E-03
   2  Index         2.8783        2.0135        .86282E-02   -.43790E-04
   3  Normalizat    .72292        .19019        .33476E-03   -.58481E-04
   4  Prefactor     1.1097        .13203        .19170E-03   -.84000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.417721
  Index      = 2.87828
  Normalizat = 0.722921
  Prefactor  = 1.10974
 **********
 **   18 **HESSE 
 **********

 FCN=   8664.902     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41772        1.2809        .50484E-05   -1.5579    
   2  Index         2.8783        1.7374        .34513E-03   -.43824    
   3  Normalizat    .72292        .19021        .13390E-04   -1.0299    
   4  Prefactor     1.1097        .13202        .38339E-04   -.89156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21146e-10
Minuit parameter uncertainties:
  1  1.28102
  2  1.78312
  3  0.190382
  4  0.132055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639012': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8664.90186089
delta logL = 0.0537537845594

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  4.177e-01  1.281e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.878e+00  1.783e+00  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.110e+00  1.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  7.229e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 234.902 27.728

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/639012/cmap_HighResolution_259027201_259286401_4FGL_J1539.6+2743_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-12 09:42:06.818958', job_id='639012', GAL2='1.11', fit_tolerance='1e-08', EG2='0.72', EG='0.73', time_epoch_completed='1631464926.82', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.38e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='76' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 639012: <4FGL_J1539.6+2743_daily_bin76> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin76> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 09:30:22 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:31:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 09:31:11 2021
Terminated at Sun Sep 12 09:42:07 2021
Results reported at Sun Sep 12 09:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin76 234.902 27.7277 259027201 259286401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1539.6+2743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            705 sec.

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

