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


Performing analysis on: 4FGL_J1539.6+2743_daily_bin77
RA = 234.902, Dec = 27.7277
tmin = 259286401, tmax = 259545601
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='639014', job_status='RUN', time_executed='2021-09-12 09:31:27.215569', time_epoch_executed='1631464287.22' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639014/ft1_4FGL_J1539.6+2743_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639014/ft2_4FGL_J1539.6+2743_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639014/ft1_4FGL_J1539.6+2743_daily_bin77.fits outfile=/scratch/kocevski/639014/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin77.fits ra=234.902 dec=27.7277 rad=12.0 tmin=259286401.0 tmax=259545601.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 2.26
user 2.04
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639014/ft1_filtered_4FGL_J1539.6+2743_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/639014/ft2_4FGL_J1539.6+2743_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/639014/ltcube_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.fits outfile=/scratch/kocevski/639014/expmap_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.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/639014/ltcube_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.fits
.....................!
real 192.39
user 186.55
sys 4.96

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/639014/ft1_filtered_4FGL_J1539.6+2743_daily_bin77.fits scfile=/scratch/kocevski/639014/ft2_4FGL_J1539.6+2743_daily_bin77.fits outfile=/scratch/kocevski/639014/cmap_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639014/ft1_filtered_4FGL_J1539.6+2743_daily_bin77.fits scfile=/scratch/kocevski/639014/ft2_4FGL_J1539.6+2743_daily_bin77.fits outfile=/scratch/kocevski/639014/cmap_HighResolution_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=234.902 yref=27.7277 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21593E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0262       1.0000         .10000E-03   10000.    
     5 'norm      '    13.948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7218       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .90471       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0388       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=   10257.52     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1384 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.873        8.4831        .42668E-07    .65374E-05
   2  Prefactor     .10000E-03    40.473        .33821E-06** at limit **
   3  Prefactor     .10000E-03    111.28       -.55083E-06** at limit **
   4  Prefactor     3.0265        7.4296        .48611E-06   -.64242E-04
   5  norm          13.946        1.8373       -.30039E-07    .79850E-03
   6  Prefactor     .10000E-03    12.758       -.19595E-05** at limit **
   7  Prefactor     .10000E-03    18.658       -.55758E-06** at limit **
   8  Prefactor     .10000E-03    4.8031        .10787E-07** at limit **
   9  norm          .10000E-03    4.4383        .18205E-07** at limit **
  10  Prefactor     .10000E-03    .63798        .59355E-08** at limit **
  11  Prefactor     .10000E-03    11.476        .17044E-06** at limit **
  12  Prefactor     .10000E-03    13.054        .22451E-05** at limit **
  13  Prefactor     .10000E-03    2.7338       -.14941E-07** at limit **
  14  Prefactor     6.2170        3.3178        .55734E-07   -.41870E-04
  15  Prefactor     9.7239        9.3159        .15530E-05   -.40318E-03
  16  Normalizat    .90470        .16177       -.24101E-06    .15093E-04
  17  Prefactor     1.0387        .10748       -.16605E-06    .13722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02648
  norm       = 13.946
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.21702
  Prefactor  = 9.72389
  Normalizat = 0.904703
  Prefactor  = 1.03873
 **********
 **   18 **HESSE 
 **********

 FCN=   10257.52     FROM HESSE     STATUS=OK           217 CALLS     1601 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.873        8.4840        .94736E-04   -1.4862    
   2  Prefactor     .10000E-03    40.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    115.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0265        7.4509        .23328E-03   -1.5360    
   5  norm          13.946        1.8391        .46779E-04   -1.4961    
   6  Prefactor     .10000E-03    13.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.4466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .64624        .78960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7461        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2170        3.3309        .12862E-03   -1.5209    
  15  Prefactor     9.7239        9.8249        .64261E-03   -1.5084    
  16  Normalizat    .90470        .18985        .30993E-03   -.96295    
  17  Prefactor     1.0387        .12635        .19906E-03   -.91449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38305e-10
Minuit parameter uncertainties:
  1  8.48459
  2  9.24062e-05
  3  0.000189564
  4  7.45314
  5  1.8391
  6  0.000256849
  7  9.40151e-05
  8  1.17934e-06
  9  1.80947e-06
  10  5.35987e-07
  11  2.30434e-05
  12  0.000361774
  13  9.80633e-07
  14  3.33098
  15  9.82652
  16  0.189989
  17  0.126388
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  5.360e-07  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.039e+00  1.264e-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.047e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/639014/likelihoodResults_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.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): 102
logL (Free Index) = 10257.5272634
delta logL = -0.00732080432863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10257.5199425
delta logL = 1.56305759447e-08

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 'Index     '    2.3279       1.0000          .0000       10.000    
     3 'Normalizat'    .90470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10257.52     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    .79389        .78985E-03** at limit **
   2  Index         2.2755        5.3800        .50000        .19639E-04
   3  Normalizat    .90470        .18036        .30993E-03   -.15700E-04
   4  Prefactor     1.0387        .12410        .19906E-03   -.16791E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10257.52     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      353 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    .79389        .86193E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2755        5.3800        .20095E-02   -.57626    
   3  Normalizat    .90470        .18036        .12218E-03   -.96295    
   4  Prefactor     1.0387        .12410        .60797E-04   -.91449    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10257.52     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      388 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .65128        .15797E-03** at limit **
   2  Index         2.1824        5.9019        .50000       -.65393E-06
   3  Normalizat    .90471        .18049        .12397E-04    .37415E-03
   4  Prefactor     1.0387        .12421        .79625E-05    .34095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18241
  Normalizat = 0.904705
  Prefactor  = 1.03873
 **********
 **   18 **HESSE 
 **********

 FCN=   10257.52     FROM HESSE     STATUS=OK            29 CALLS      417 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .65094        .31594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1824        5.9070        .50000       -.59864    
   3  Normalizat    .90471        .18037        .24794E-05   -.96295    
   4  Prefactor     1.0387        .12415        .15925E-05   -.91449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63524e-10
Minuit parameter uncertainties:
  1  3.73968e-07
  2  83.4693
  3  0.180495
  4  0.124188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639014': 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) = 10257.519942
delta logL = 5.5000964494e-07

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.740e-07  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.182e+00  8.347e+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.039e+00  1.242e-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.047e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 234.902 27.728

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/639014/cmap_HighResolution_259286401_259545601_4FGL_J1539.6+2743_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-12 09:42:50.853633', job_id='639014', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631464970.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='77' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 09:42:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 639014: <4FGL_J1539.6+2743_daily_bin77> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin77 234.902 27.7277 259286401 259545601 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             394.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            749 sec.

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

