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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin1300
RA = 234.902, Dec = 27.7277
tmin = 576288001, tmax = 576547201
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='646226', job_status='RUN', time_executed='2021-09-12 09:59:08.452579', time_epoch_executed='1631465948.45' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646226

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646226/ft1_4FGL_J1539.6+2743_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646226/ft1_4FGL_J1539.6+2743_daily_bin1300.fits outfile=/scratch/kocevski/646226/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1300.fits ra=234.902 dec=27.7277 rad=12.0 tmin=576288001.0 tmax=576547201.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.31
user 3.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.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/646226/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/646226/ltcube_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.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/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits
.....................!
real 12.07
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/646226/ltcube_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.fits outfile=/scratch/kocevski/646226/expmap_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.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/646226/ltcube_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.fits
.....................!
real 193.53
user 187.84
sys 5.33

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/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits scfile=/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits outfile=/scratch/kocevski/646226/cmap_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits scfile=/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits outfile=/scratch/kocevski/646226/cmap_HighResolution_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits', '/scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits', expMap='/scratch/kocevski/646226/expmap_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.fits', expCube='/scratch/kocevski/646226/ltcube_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646226/Model_4FGL_J1539.6+2743_daily_bin1300.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/646226/ft1_filtered_4FGL_J1539.6+2743_daily_bin1300.fits
Spacecraft file(s): /scratch/kocevski/646226/ft2_4FGL_J1539.6+2743_daily_bin1300.fits
Exposure map: /scratch/kocevski/646226/expmap_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.fits
Exposure cube: /scratch/kocevski/646226/ltcube_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646226/Model_4FGL_J1539.6+2743_daily_bin1300.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) = 7188.78682073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0044       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8462       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3400       1.0000         .10000E-03   10000.    
    11 'Prefactor '    104.72       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13580E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0925       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .95600       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1216       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=   7188.784     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1595 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8154        .10584E-06** at limit **
   2  Prefactor     .10000E-03    13.820       -.35233E-06** at limit **
   3  Prefactor     .10000E-03    12.704        .31570E-06** at limit **
   4  Prefactor     .10000E-03    3.7764        .12150E-06** at limit **
   5  norm          2.0045        1.2280       -.72397E-06   -.23468E-03
   6  Prefactor     3.8515        9.0442        .12021E-04   -.55847E-03
   7  Prefactor     16.739        45.443       -.16408E-04   -.17016E-03
   8  Prefactor     .10000E-03    9.4268       -.57339E-06** at limit **
   9  norm          3.6328        12.309       -.12059E-05   -.14425E-03
  10  Prefactor     2.3408        2.3889        .24869E-07   -.63217E-04
  11  Prefactor     104.62        43.157       -.38620E-05   -.94720E-03
  12  Prefactor     .10005E-03    145.30       -.27101E-06** at limit **
  13  Prefactor     11.243        8.8118       -.13174E-07    .88761E-05
  14  Prefactor     3.1944        3.6133        .10234E-06   -.60514E-04
  15  Prefactor     4.0943        13.822       -.38914E-06   -.73735E-04
  16  Normalizat    .95605        .20338       -.56163E-06   -.88270E-05
  17  Prefactor     1.1215        .13732        .71121E-06   -.11619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0045
  Prefactor  = 3.85149
  Prefactor  = 16.7392
  Prefactor  = 0.0001
  norm       = 3.63284
  Prefactor  = 2.34081
  Prefactor  = 104.617
  Prefactor  = 0.00010005
  Prefactor  = 11.243
  Prefactor  = 3.19435
  Prefactor  = 4.09428
  Normalizat = 0.95605
  Prefactor  = 1.12145
 **********
 **   18 **HESSE 
 **********

 FCN=   7188.784     FROM HESSE     STATUS=OK           221 CALLS     1816 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8194        .13893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7878        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0045        1.2257        .66343E-04   -1.5425    
   6  Prefactor     3.8515        9.1408        .10289E-02   -1.5315    
   7  Prefactor     16.739        45.531        .97788E-04   -1.4889    
   8  Prefactor     .10000E-03    9.4279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6328        12.340        .21207E-03   -1.5327    
  10  Prefactor     2.3408        2.3770        .12602E-03   -1.5402    
  11  Prefactor     104.62        45.134        .19648E-03   -1.3659    
  12  Prefactor     .10005E-03    151.27        .41095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.243        8.8096        .11948E-03   -1.5037    
  14  Prefactor     3.1944        3.6141        .16341E-03   -1.5350    
  15  Prefactor     4.0943        13.838        .19929E-03   -1.5303    
  16  Normalizat    .95605        .23644        .31446E-03   -.94518    
  17  Prefactor     1.1215        .15999        .20159E-03   -.88784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93038e-09
Minuit parameter uncertainties:
  1  2.3862e-06
  2  5.5395e-05
  3  5.25663e-05
  4  7.6092e-06
  5  1.22569
  6  9.14407
  7  45.6258
  8  2.18585e-05
  9  12.349
  10  2.37714
  11  45.1486
  12  0.00550742
  13  8.81063
  14  3.61435
  15  13.8487
  16  0.236699
  17  0.160064
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  2.341e+00  2.377e+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.121e+00  1.601e-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:  9.560e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 234.902 27.728
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.20e-05

TS (Fixed Index): 1.58
Ra Dec: 234.902 27.728
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646226/likelihoodResults_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.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) = 7188.45208737
delta logL = 0.332295679472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7188.45044869
delta logL = 0.333934359927

Fit tolerance = 1e-08

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

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

 FCN=   7188.450     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      256 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4262        23.042        .90464E-02    .69085E-03
   2  Index         3.0123        3.5544        .13378        .14698E-03
   3  Normalizat    .92331        .61861E-01    .72161E-01    .21879E-04
   4  Prefactor     1.1344        .40914E-01    .36410E-01    .13605E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42618
  Index      = 3.01228
  Normalizat = 0.923313
  Prefactor  = 1.13436
 **********
 **   18 **HESSE 
 **********

 FCN=   7188.450     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4262        2.4831        .77832E-04   -1.5469    
   2  Index         3.0123        1.0870        .71725E-02   -.40884    
   3  Normalizat    .92331        .23303        .31929E-03   -.95646    
   4  Prefactor     1.1344        .15873        .20055E-03   -.88376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96508e-08
Minuit parameter uncertainties:
  1  2.48327
  2  1.09745
  3  0.233283
  4  0.158796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646226': 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) = 7188.4504483
delta logL = 0.3339347434

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.426e+00  2.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  3.012e+00  1.097e+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.134e+00  1.588e-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:  9.233e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 234.902 27.728
Photon Index (Free Index): 3.01 +/- 1.10
Photon Flux (Free Index): 6.08e-08 +/- 5.37e-08
Energy Flux (Free Index): 1.21e-05 +/- 9.88e-06

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/646226/cmap_HighResolution_576288001_576547201_4FGL_J1539.6+2743_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.21e-05', photon_flux_error='3.32e-08', dlogl='3.34e-01', energy_flux='1.18e-05', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-09-12 10:09:08.752533', photon_index_error2='1.10', photon_index2='3.01', ts='1.58', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='9.88e-06', EG='0.96', time_epoch_completed='1631466548.75', return_code='0', job_id='646226', GAL2='1.13', EG2='0.92', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.37e-08', ts2='2.28', photon_index='2.33' WHERE bin_id='1300' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 646226: <4FGL_J1539.6+2743_daily_bin1300> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin1300> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep 12 09:55:18 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:56:16 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:56:16 2021
Terminated at Sun Sep 12 10:09:09 2021
Results reported at Sun Sep 12 10:09:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1300 234.902 27.7277 576288001 576547201 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 :                                   576.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            831 sec.

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

