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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin1505
RA = 234.902, Dec = 27.7277
tmin = 629424001, tmax = 629683201
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='646515', job_status='RUN', time_executed='2021-09-12 09:59:45.669635', time_epoch_executed='1631465985.67' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646515/ft1_4FGL_J1539.6+2743_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646515/ft2_4FGL_J1539.6+2743_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646515/ft1_4FGL_J1539.6+2743_daily_bin1505.fits outfile=/scratch/kocevski/646515/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1505.fits ra=234.902 dec=27.7277 rad=12.0 tmin=629424001.0 tmax=629683201.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.56
user 3.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646515/ft1_filtered_4FGL_J1539.6+2743_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/646515/ft2_4FGL_J1539.6+2743_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/646515/ltcube_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.fits outfile=/scratch/kocevski/646515/expmap_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.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/646515/ltcube_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.fits
.....................!
real 194.82
user 188.20
sys 5.11

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/646515/ft1_filtered_4FGL_J1539.6+2743_daily_bin1505.fits scfile=/scratch/kocevski/646515/ft2_4FGL_J1539.6+2743_daily_bin1505.fits outfile=/scratch/kocevski/646515/cmap_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646515/ft1_filtered_4FGL_J1539.6+2743_daily_bin1505.fits scfile=/scratch/kocevski/646515/ft2_4FGL_J1539.6+2743_daily_bin1505.fits outfile=/scratch/kocevski/646515/cmap_HighResolution_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .31932       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.5993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10700E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65014E-02   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .98763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90035       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=   5800.236     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1639 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3383        4.5732       -.87786E-07    .61257E-03
   2  Prefactor     63.859        65.751        .16573E-05    .99983E-05
   3  Prefactor     28.213        42.985        .19298E-05   -.14027E-04
   4  Prefactor     .10000E-03    3.0206       -.21344E-07** at limit **
   5  norm          .31938        .64136       -.64164E-06   -.11778E-02
   6  Prefactor     .10000E-03    3.3297        .20985E-06** at limit **
   7  Prefactor     18.484        21.843        .36494E-06    .31171E-04
   8  Prefactor     .10000E-03    8.5979        .60494E-06** at limit **
   9  norm          8.5976        11.185       -.11873E-06    .30431E-05
  10  Prefactor     1.7852        2.0177       -.44307E-07    .38695E-03
  11  Prefactor     .10000E-03    11.781        .16101E-05** at limit **
  12  Prefactor     .10000E-03    7.3845       -.17231E-06** at limit **
  13  Prefactor     .10000E-03    11.826        .39315E-05** at limit **
  14  Prefactor     .10000E-03    9.1378        .53062E-05** at limit **
  15  Prefactor     .10000E-03    7.7978       -.16942E-05** at limit **
  16  Normalizat    .98769        .18110        .15025E-05    .12740E-03
  17  Prefactor     .90038        .12554       -.10284E-06    .24199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33826
  Prefactor  = 63.8585
  Prefactor  = 28.213
  Prefactor  = 0.0001
  norm       = 0.319384
  Prefactor  = 0.0001
  Prefactor  = 18.4842
  Prefactor  = 0.0001
  norm       = 8.5976
  Prefactor  = 1.78524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Normalizat = 0.987692
  Prefactor  = 0.900383
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.236     FROM HESSE     STATUS=OK           227 CALLS     1866 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3383        4.6769        .30166E-03   -1.5477    
   2  Prefactor     63.859        65.897        .50214E-04   -1.4108    
   3  Prefactor     28.213        42.730        .75409E-04   -1.4645    
   4  Prefactor     .10000E-03    3.0414        .12926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .31938        .62265        .91897E-03   -1.5595    
   6  Prefactor     .10000E-03    3.3551        .13571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.484        21.827        .93148E-04   -1.4848    
   8  Prefactor     .10000E-03    8.5930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.5976        11.184        .13670E-03   -1.5121    
  10  Prefactor     1.7852        2.0019        .11039E-03   -1.5441    
  11  Prefactor     .10000E-03    11.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.231        .40433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.653        .19894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    86.514        .39220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .98769        .20743        .25458E-03   -.93444    
  17  Prefactor     .90038        .14585        .18857E-03   -.96128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11168e-09
Minuit parameter uncertainties:
  1  4.6782
  2  65.9722
  3  42.776
  4  3.34559e-06
  5  0.622664
  6  1.47168e-05
  7  21.8368
  8  1.6168e-05
  9  11.1872
  10  2.00198
  11  3.65583e-05
  12  1.50292e-06
  13  0.000717685
  14  0.000308307
  15  0.000495525
  16  0.207601
  17  0.145913
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.785e+00  2.002e+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:  9.004e-01  1.459e-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.877e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Saving results to:
/scratch/kocevski/646515/likelihoodResults_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.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) = 5799.90453505
delta logL = 0.331122053933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5799.88766885
delta logL = 0.347988249218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61008       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4055       1.0000          .0000       10.000    
     3 'Normalizat'    .95048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91666       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=   5799.888     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      250 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60865        8.9688        .10888E-01    .79821E-03
   2  Index         3.4069        3.3411        .12427        .12506E-03
   3  Normalizat    .95060        .46195E-01    .45543E-01    .89145E-05
   4  Prefactor     .91654        .32098E-01    .45217E-01    .11085E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.608647
  Index      = 3.40691
  Normalizat = 0.950604
  Prefactor  = 0.916545
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.888     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      285 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60865        21.380        .50045E-03   -1.5552    
   2  Index         3.4069        6.5937        .65304E-02   -.32427    
   3  Normalizat    .95060        .20721        .25889E-03   -.94704    
   4  Prefactor     .91654        .13437        .18706E-03   -.95565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32687e-07
Minuit parameter uncertainties:
  1  7.21685
  2  7.31738
  3  0.207389
  4  0.13442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646515': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5799.88766801
delta logL = 0.347989090662

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  6.086e-01  7.217e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  3.407e+00  7.317e+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:  9.165e-01  1.344e-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.506e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 234.902 27.728
Photon Index (Free Index): 3.41 +/- 7.32
Photon Flux (Free Index): 5.26e-08 +/- 9.16e-08
Energy Flux (Free Index): 8.99e-06 +/- 9.27e-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/646515/cmap_HighResolution_629424001_629683201_4FGL_J1539.6+2743_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='8.99e-06', photon_flux_error='2.80e-08', dlogl='3.48e-01', energy_flux='9.02e-06', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-12 10:10:17.015699', photon_index_error2='7.32', photon_index2='3.41', ts='1.29', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.43e-08', energy_flux_error2='9.27e-06', EG='0.99', time_epoch_completed='1631466617.02', return_code='0', job_id='646515', GAL2='0.92', EG2='0.95', return_code2='102', energy_flux_error='1.01e-05', photon_flux_error2='9.16e-08', ts2='2.03', photon_index='2.33' WHERE bin_id='1505' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 646515: <4FGL_J1539.6+2743_daily_bin1505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1505 234.902 27.7277 629424001 629683201 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 :                                   540.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            882 sec.

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

