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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin210
RA = 179.751, Dec = 9.6603
tmin = 293760001, tmax = 294019201
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='203489', job_status='RUN', time_executed='2021-09-04 17:51:58.427715', time_epoch_executed='1630803118.43' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203489/ft1_4FGL_J1159.0+0939_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203489/ft1_4FGL_J1159.0+0939_daily_bin210.fits outfile=/scratch/kocevski/203489/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin210.fits ra=179.751 dec=9.6603 rad=12.0 tmin=293760001.0 tmax=294019201.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.50
user 3.29
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.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/203489/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin210.fits evtable="EVENTS" outfile="/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/203489/ltcube_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.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/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits
.....................!
real 12.44
user 12.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/203489/ltcube_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.fits outfile=/scratch/kocevski/203489/expmap_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.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/203489/ltcube_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.fits
.....................!
real 189.89
user 184.58
sys 4.38

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.0+0939 @ 179.751 9.6603

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits scfile=/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits outfile=/scratch/kocevski/203489/cmap_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.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=179.751 yref=9.6603 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits scfile=/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits outfile=/scratch/kocevski/203489/cmap_HighResolution_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.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=179.751 yref=9.6603 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/203489/Model_4FGL_J1159.0+0939_daily_bin210.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/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits.....................!
real 69.98
user 68.63
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits', '/scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits', expMap='/scratch/kocevski/203489/expmap_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.fits', expCube='/scratch/kocevski/203489/ltcube_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203489/Model_4FGL_J1159.0+0939_daily_bin210.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.0+0939'

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/203489/ft1_filtered_4FGL_J1159.0+0939_daily_bin210.fits
Spacecraft file(s): /scratch/kocevski/203489/ft2_4FGL_J1159.0+0939_daily_bin210.fits
Exposure map: /scratch/kocevski/203489/expmap_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.fits
Exposure cube: /scratch/kocevski/203489/ltcube_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203489/Model_4FGL_J1159.0+0939_daily_bin210.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) = 7643.3695552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0764       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92022E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2701       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2095       1.0000         .10000E-03   10000.    
    18 'norm      '    .11205E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11462E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1039       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.024       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0628       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4841       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+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.

 FCN=   7643.356     FROM MIGRAD    STATUS=CONVERGED   1217 CALLS     3874 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6468        .18142E-02** at limit **
   2  Prefactor     .10000E-03    18.376        .18142E-02** at limit **
   3  Prefactor     1.6886        2.0231        .13224E-03   -.17194E-04
   4  Prefactor     .10000E-03    3.6508        .16294E-02** at limit **
   5  Prefactor     .10000E-03    7.5441        .18142E-02** at limit **
   6  Prefactor     .10000E-03    25.659        .18142E-02** at limit **
   7  Prefactor     2.0746        5.6850        .14331E-02   -.23675E-03
   8  Prefactor     3.2633        4.1345        .19429E-03   -.30661E-04
   9  Prefactor     .10000E-03    3.0707        .14960E-02** at limit **
  10  Prefactor     12.275        7.1711        .11436E-03    .28859E-03
  11  Prefactor     .10000E-03    19.028        .18142E-02** at limit **
  12  Prefactor     .10000E-03    35.014        .13324    ** at limit **
  13  Prefactor     .10000E-03    5.9632        .18142E-02** at limit **
  14  Prefactor     9.2666        5.3778        .13163E-03    .96957E-03
  15  Prefactor     .10000E-03    2.1453        .12413E-02** at limit **
  16  Prefactor     14.648        25.409        .10468E-03   -.36165E-04
  17  Prefactor     7.2080        11.009        .74694E-03   -.61277E-04
  18  norm          .10000E-03    4.6388        .23487E-02** at limit **
  19  Prefactor     .10000E-03    27.456        .18142E-02** at limit **
  20  norm          .10001E-03    191.37        .82519E-02** at limit **
  21  Prefactor     .10000E-03    149.18        .18142E-02** at limit **
  22  norm          2.1044        .67532        .38095E-04   -.44974E-03
  23  Prefactor     .10000E-03    4.7629        .18142E-02** at limit **
  24  Prefactor     50.008        37.277        .56700E-04    .60753E-04
  25  norm          2.0625        1.6743        .97936E-04   -.95188E-04
  26  Normalizat    1.4840        .23327        .26490E-03    .59525E-04
  27  Prefactor     .83134        .19134        .29517E-03    .93247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07458
  Prefactor  = 3.26331
  Prefactor  = 0.0001
  Prefactor  = 12.2749
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.26661
  Prefactor  = 0.0001
  Prefactor  = 14.6478
  Prefactor  = 7.20805
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.000100003
  norm       = 2.10441
  Prefactor  = 0.0001
  Prefactor  = 50.0081
  norm       = 2.06251
  Normalizat = 1.48398
  Prefactor  = 0.831341
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.356     FROM HESSE     STATUS=OK           472 CALLS     4346 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6886        2.0230        .52897E-05   -1.5448    
   4  Prefactor     .10000E-03    3.6511        .32589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0746        5.6828        .57325E-04   -1.5420    
   8  Prefactor     3.2633        4.1345        .77717E-05   -1.5347    
   9  Prefactor     .10000E-03    3.0708        .29919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.275        7.1706        .45744E-05   -1.5007    
  11  Prefactor     .10000E-03    19.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.999        .13095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2666        5.3771        .52652E-05   -1.5099    
  15  Prefactor     .10000E-03    2.1456        .24825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.648        25.403        .41872E-05   -1.4942    
  17  Prefactor     7.2080        11.006        .29878E-04   -1.5171    
  18  norm          .10000E-03    4.6684        .46975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    198.95        .33007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    149.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1044        .67407        .15238E-05   -1.5418    
  23  Prefactor     .10000E-03    4.7634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.008        37.276        .11340E-04   -1.4292    
  25  norm          2.0625        1.6743        .39174E-05   -1.5421    
  26  Normalizat    1.4840        .23347        .10596E-04   -.78229    
  27  Prefactor     .83134        .19151        .11807E-04   -.98583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11855e-09
Minuit parameter uncertainties:
  1  4.48598e-06
  2  5.65065e-05
  3  2.02309
  4  2.65573e-06
  5  4.90358e-06
  6  7.83801e-06
  7  5.68432
  8  4.13488
  9  1.23858e-06
  10  7.17106
  11  5.25905e-05
  12  0.00051428
  13  1.59177e-06
  14  5.37738
  15  1.52161e-05
  16  25.4217
  17  11.0094
  18  0.000235171
  19  2.31245e-05
  20  0.00327737
  21  0.00124842
  22  0.67407
  23  7.98374e-07
  24  37.2933
  25  1.67433
  26  0.23364
  27  0.191662
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.075e+00  5.684e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  8.313e-01  1.917e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.484e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203489/likelihoodResults_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.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) = 7643.35356117
delta logL = 0.0021943607544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7643.35297181
delta logL = 0.00278372794219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3010       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0363       1.0000          .0000       10.000    
     3 'Normalizat'    1.4845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7643.353     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2955        135.73        .67635E-02    .42996E-03
   2  Index         2.0367        2.4226        .40875        .18334E-04
   3  Normalizat    1.4845        .29668E-01    .59892E-01    .46495E-05
   4  Prefactor     .83097        .25285E-01    .66736E-01    .21368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29552
  Index      = 2.03671
  Normalizat = 1.48455
  Prefactor  = 0.830965
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.353     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2955        6.8562        .27054E-03   -1.5405    
   2  Index         2.0367        1.2676        .96431E-02   -.63436    
   3  Normalizat    1.4845        .21850        .26486E-03   -.78213    
   4  Prefactor     .83097        .18959        .29523E-03   -.98597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51566e-12
Minuit parameter uncertainties:
  1  6.85857
  2  1.28957
  3  0.218639
  4  0.189736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203489': 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) = 7643.35297146
delta logL = 0.00278406830967

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.296e+00  6.859e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.037e+00  1.290e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  8.310e-01  1.897e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.485e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 179.751 9.660

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/203489/cmap_HighResolution_293760001_294019201_4FGL_J1159.0+0939_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-04 18:08:11.506032', job_id='203489', GAL2='0.83', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630804091.51', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.78e-03', ts2='0.18', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='210' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:08:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 203489: <4FGL_J1159.0+0939_daily_bin210> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin210> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:51:44 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:51:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:51:46 2021
Terminated at Sat Sep  4 18:08:12 2021
Results reported at Sat Sep  4 18:08:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin210 179.751 9.6603 293760001 294019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.0+0939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   970.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

