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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin89
RA = 234.902, Dec = 27.7277
tmin = 262396801, tmax = 262656001
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='639031', job_status='RUN', time_executed='2021-09-12 09:34:21.106077', time_epoch_executed='1631464461.11' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639031

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639031/ft1_4FGL_J1539.6+2743_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639031/ft1_4FGL_J1539.6+2743_daily_bin89.fits outfile=/scratch/kocevski/639031/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin89.fits ra=234.902 dec=27.7277 rad=12.0 tmin=262396801.0 tmax=262656001.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.41
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.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/639031/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/639031/ltcube_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.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/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits
.....................!
real 14.37
user 13.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/639031/ltcube_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.fits outfile=/scratch/kocevski/639031/expmap_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.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/639031/ltcube_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.fits
.....................!
real 191.64
user 186.29
sys 4.90

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/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.fits scfile=/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits outfile=/scratch/kocevski/639031/cmap_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.fits scfile=/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits outfile=/scratch/kocevski/639031/cmap_HighResolution_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.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/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/639031/ft2_4FGL_J1539.6+2743_daily_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639031/Model_4FGL_J1539.6+2743_daily_bin89.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/639031/ft1_filtered_4FGL_J1539.6+2743_daily_bin89.fits.....................!
real 46.04
user 44.70
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.646       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.419       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9152       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.240       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3491       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .64700       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=   5592.634     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1588 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.204        9.6117       -.37745E-07   -.10203E-04
   2  Prefactor     71.654        88.696        .91384E-05   -.78088E-04
   3  Prefactor     33.417        38.642       -.19109E-05    .36384E-04
   4  Prefactor     .10000E-03    4.5627        .10058E-05** at limit **
   5  norm          11.669        2.1772       -.48418E-07    .78826E-04
   6  Prefactor     .10000E-03    4.3689       -.61289E-06** at limit **
   7  Prefactor     .10000E-03    12.750        .31289E-05** at limit **
   8  Prefactor     .10000E-03    9.6999       -.62394E-05** at limit **
   9  norm          .10000E-03    6.3983        .17527E-05** at limit **
  10  Prefactor     1.9153        2.0094       -.54893E-07   -.12986E-03
  11  Prefactor     .10000E-03    31.683       -.74470E-06** at limit **
  12  Prefactor     10.233        27.576       -.12351E-04    .14602E-03
  13  Prefactor     .10000E-03    5.9680       -.28284E-05** at limit **
  14  Prefactor     .89766        4.2730       -.22410E-05   -.10617E-02
  15  Prefactor     .10000E-03    8.0808        .41655E-05** at limit **
  16  Normalizat    1.3488        .20685        .39310E-07    .10674E-03
  17  Prefactor     .64719        .13233        .91138E-06    .30417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.204
  Prefactor  = 71.6538
  Prefactor  = 33.4174
  Prefactor  = 0.0001
  norm       = 11.6691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.91533
  Prefactor  = 0.0001
  Prefactor  = 10.2328
  Prefactor  = 0.0001
  Prefactor  = 0.89766
  Prefactor  = 0.0001
  Normalizat = 1.34884
  Prefactor  = 0.647187
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.634     FROM HESSE     STATUS=OK           217 CALLS     1805 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.204        9.6118        .96561E-04   -1.4878    
   2  Prefactor     71.654        88.178        .47428E-04   -1.4013    
   3  Prefactor     33.417        38.681        .69317E-04   -1.4551    
   4  Prefactor     .10000E-03    4.5787        .15587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.669        2.1897        .45319E-04   -1.5025    
   6  Prefactor     .10000E-03    4.3769        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.3894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9153        2.0053        .10480E-03   -1.5431    
  11  Prefactor     .10000E-03    31.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.233        27.325        .12522E-03   -1.5068    
  13  Prefactor     .10000E-03    6.0092        .17793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .89766        5.0895        .30675E-02   -1.5518    
  15  Prefactor     .10000E-03    8.0526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3488        .24366        .24646E-03   -.82120    
  17  Prefactor     .64719        .15513        .22763E-03   -1.0563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17527e-09
Minuit parameter uncertainties:
  1  9.61263
  2  88.3394
  3  38.7098
  4  2.42672e-05
  5  2.18967
  6  1.04335e-05
  7  0.000105002
  8  0.000168607
  9  4.77307e-05
  10  2.00536
  11  0.000162083
  12  27.3579
  13  6.7575e-05
  14  4.27521
  15  0.000123657
  16  0.24387
  17  0.155232
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.915e+00  2.005e+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:  6.472e-01  1.552e-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:  1.349e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 234.902 27.728
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 9.67e-06 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/639031/likelihoodResults_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.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) = 5592.52558353
delta logL = 0.108642211682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5592.52200806
delta logL = 0.112217678459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3679       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8630       1.0000          .0000       10.000    
     3 'Normalizat'    1.3265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65568       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=   5592.522     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      241 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3679        28.374        .93238E-02    .39525E-03
   2  Index         2.8631        6.4290        .14225        .10661E-03
   3  Normalizat    1.3265        .68617E-01    .56116E-01    .40134E-05
   4  Prefactor     .65569        .41134E-01    .41808E-01    .15714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36791
  Index      = 2.8631
  Normalizat = 1.3265
  Prefactor  = 0.655687
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.522     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3679        2.4400        .76257E-04   -1.5474    
   2  Index         2.8631        1.3567        .83838E-02   -.44159    
   3  Normalizat    1.3265        .23537        .24814E-03   -.82779    
   4  Prefactor     .65569        .15351        .22627E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69524e-08
Minuit parameter uncertainties:
  1  2.44016
  2  1.37795
  3  0.23556
  4  0.153612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639031': 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) = 5592.52200805
delta logL = 0.112217692187

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.368e+00  2.440e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.863e+00  1.378e+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:  6.557e-01  1.536e-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:  1.327e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 234.902 27.728
Photon Index (Free Index): 2.86 +/- 1.38
Photon Flux (Free Index): 4.51e-08 +/- 5.47e-08
Energy Flux (Free Index): 9.70e-06 +/- 8.76e-06

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/639031/cmap_HighResolution_262396801_262656001_4FGL_J1539.6+2743_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='9.70e-06', photon_flux_error='2.80e-08', dlogl='1.12e-01', energy_flux='9.67e-06', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-09-12 09:42:59.029025', photon_index_error2='1.38', photon_index2='2.86', ts='2.02', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.76e-06', EG='1.35', time_epoch_completed='1631464979.03', return_code='0', job_id='639031', GAL2='0.66', EG2='1.33', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='5.47e-08', ts2='2.25', photon_index='2.33' WHERE bin_id='89' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:42:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 639031: <4FGL_J1539.6+2743_daily_bin89> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin89> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 09:30:23 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:31: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:31:16 2021
Terminated at Sun Sep 12 09:42:59 2021
Results reported at Sun Sep 12 09:42:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin89 234.902 27.7277 262396801 262656001 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 :                                   518.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            756 sec.

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

