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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin46
RA = 234.902, Dec = 27.7277
tmin = 251251201, tmax = 251510401
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='640300', job_status='RUN', time_executed='2021-09-12 09:37:28.525108', time_epoch_executed='1631464648.53' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640300/ft1_4FGL_J1539.6+2743_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640300/ft2_4FGL_J1539.6+2743_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640300/ft1_4FGL_J1539.6+2743_daily_bin46.fits outfile=/scratch/kocevski/640300/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin46.fits ra=234.902 dec=27.7277 rad=12.0 tmin=251251201.0 tmax=251510401.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.52
user 1.32
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640300/ft1_filtered_4FGL_J1539.6+2743_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/640300/ft2_4FGL_J1539.6+2743_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/640300/ltcube_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.fits outfile=/scratch/kocevski/640300/expmap_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.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/640300/ltcube_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.fits
.....................!
real 194.06
user 187.38
sys 5.55

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/640300/ft1_filtered_4FGL_J1539.6+2743_daily_bin46.fits scfile=/scratch/kocevski/640300/ft2_4FGL_J1539.6+2743_daily_bin46.fits outfile=/scratch/kocevski/640300/cmap_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640300/ft1_filtered_4FGL_J1539.6+2743_daily_bin46.fits scfile=/scratch/kocevski/640300/ft2_4FGL_J1539.6+2743_daily_bin46.fits outfile=/scratch/kocevski/640300/cmap_HighResolution_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6648       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.313       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.2032       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7449       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1109       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22602E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.151       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .91448       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1126       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=   10676.61     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1616 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6637        7.3129       -.63600E-06   -.12085E-03
   2  Prefactor     .10000E-03    16.200       -.42332E-06** at limit **
   3  Prefactor     54.302        38.102       -.11190E-04    .10796E-04
   4  Prefactor     .10000E-03    2.5249       -.14761E-07** at limit **
   5  norm          8.2022        1.5184       -.65869E-07    .55011E-04
   6  Prefactor     .10000E-03    3.0430       -.19132E-07** at limit **
   7  Prefactor     6.2112        15.818       -.53926E-06   -.33007E-04
   8  Prefactor     .10000E-03    6.2939       -.15137E-07** at limit **
   9  norm          .10000E-03    4.4591       -.26102E-07** at limit **
  10  Prefactor     1.7446        1.7392       -.26936E-06   -.92392E-03
  11  Prefactor     9.1077        22.179       -.72338E-05   -.13663E-04
  12  Prefactor     .10000E-03    8.9197       -.29398E-08** at limit **
  13  Prefactor     .10000E-03    14.415        .91352E-07** at limit **
  14  Prefactor     .10000E-03    1.3429       -.32505E-06** at limit **
  15  Prefactor     12.149        11.630       -.12901E-07   -.46452E-04
  16  Normalizat    .91475        .16369        .14379E-05    .99918E-04
  17  Prefactor     1.1124        .11064        .69095E-06    .15142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66374
  Prefactor  = 0.0001
  Prefactor  = 54.3022
  Prefactor  = 0.0001
  norm       = 8.20222
  Prefactor  = 0.0001
  Prefactor  = 6.21121
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.74462
  Prefactor  = 9.10768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.1487
  Normalizat = 0.914751
  Prefactor  = 1.11243
 **********
 **   18 **HESSE 
 **********

 FCN=   10676.61     FROM HESSE     STATUS=OK           231 CALLS     1847 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6637        7.3227        .15543E-03   -1.5192    
   2  Prefactor     .10000E-03    16.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.302        38.007        .54427E-04   -1.4233    
   4  Prefactor     .10000E-03    2.5473        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.2022        1.5273        .51343E-04   -1.5135    
   6  Prefactor     .10000E-03    3.0528        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2112        15.810        .16106E-03   -1.5209    
   8  Prefactor     .10000E-03    6.3067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.4707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7446        1.7335        .13118E-03   -1.5444    
  11  Prefactor     9.1077        22.243        .13278E-03   -1.5104    
  12  Prefactor     .10000E-03    8.9256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2766        .38244E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.149        11.642        .11492E-03   -1.5011    
  16  Normalizat    .91475        .19079        .31329E-03   -.95944    
  17  Prefactor     1.1124        .12910        .19890E-03   -.89070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16072e-10
Minuit parameter uncertainties:
  1  7.32369
  2  6.83972e-06
  3  38.0241
  4  1.99209e-06
  5  1.52726
  6  1.23663e-06
  7  15.8204
  8  7.1677e-06
  9  6.1355e-06
  10  1.73356
  11  22.2634
  12  1.59317e-05
  13  7.18234e-05
  14  0.000128173
  15  11.6439
  16  0.190929
  17  0.12914
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.745e+00  1.734e+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.112e+00  1.291e-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.148e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 234.902 27.728
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.44e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 8.81e-06 +/- 8.75e-06

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

Saving results to:
/scratch/kocevski/640300/likelihoodResults_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.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) = 10676.5625389
delta logL = 0.0457154534815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10676.5495266
delta logL = 0.0587277979648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4498       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6059       1.0000          .0000       10.000    
     3 'Normalizat'    .90633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1158       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=   10676.55     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4492        23.111        .89463E-02    .10921E-02
   2  Index         2.6060        3.0451        .23180        .94819E-04
   3  Normalizat    .90635        .39707E-01    .71100E-01    .32455E-04
   4  Prefactor     1.1158        .26138E-01    .37014E-01   -.33883E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44923
  Index      = 2.60601
  Normalizat = 0.906353
  Prefactor  = 1.11583
 **********
 **   18 **HESSE 
 **********

 FCN=   10676.55     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4492        1.9643        .11330E-03   -1.5467    
   2  Index         2.6060        .91715        .90211E-02   -.49929    
   3  Normalizat    .90635        .18409        .31459E-03   -.96237    
   4  Prefactor     1.1158        .12695        .19863E-03   -.88962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37758e-09
Minuit parameter uncertainties:
  1  1.96434
  2  0.923953
  3  0.18422
  4  0.126982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640300': 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) = 10676.5495265
delta logL = 0.0587278854673

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.449e+00  1.964e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.606e+00  9.240e-01  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.116e+00  1.270e-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.064e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 234.902 27.728
Photon Index (Free Index): 2.61 +/- 0.92
Photon Flux (Free Index): 3.11e-08 +/- 3.35e-08
Energy Flux (Free Index): 8.12e-06 +/- 8.10e-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/640300/cmap_HighResolution_251251201_251510401_4FGL_J1539.6+2743_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', comment='SUCCESS', photon_flux='2.44e-08', energy_flux2='8.12e-06', photon_flux_error='2.42e-08', dlogl='5.87e-02', energy_flux='8.81e-06', photon_flux2='3.11e-08', job_status='DONE', time_completed='2021-09-12 09:49:16.680718', photon_index_error2='0.92', photon_index2='2.61', ts='1.47', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.94e-08', energy_flux_error2='8.10e-06', EG='0.91', time_epoch_completed='1631465356.68', return_code='0', job_id='640300', GAL2='1.12', EG2='0.91', return_code2='0', energy_flux_error='8.75e-06', photon_flux_error2='3.35e-08', ts2='1.59', photon_index='2.33' WHERE bin_id='46' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:49:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 640300: <4FGL_J1539.6+2743_daily_bin46> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin46> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 09:35:15 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 09:35: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:35:16 2021
Terminated at Sun Sep 12 09:49:17 2021
Results reported at Sun Sep 12 09:49:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin46 234.902 27.7277 251251201 251510401 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 :                                   706.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

