/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 176 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.0+0939_daily_bin240
RA = 179.751, Dec = 9.6603
tmin = 301536001, tmax = 301795201
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='203537', job_status='RUN', time_executed='2021-09-04 17:54:57.288148', time_epoch_executed='1630803297.29' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203537/ft1_4FGL_J1159.0+0939_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203537/ft1_4FGL_J1159.0+0939_daily_bin240.fits outfile=/scratch/kocevski/203537/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin240.fits ra=179.751 dec=9.6603 rad=12.0 tmin=301536001.0 tmax=301795201.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 4.55
user 4.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.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/203537/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/203537/ltcube_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.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/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits
.....................!
real 11.75
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/203537/ltcube_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.fits outfile=/scratch/kocevski/203537/expmap_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.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/203537/ltcube_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.fits
.....................!
real 190.23
user 184.88
sys 5.00

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/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.fits scfile=/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits outfile=/scratch/kocevski/203537/cmap_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.fits scfile=/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits outfile=/scratch/kocevski/203537/cmap_HighResolution_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.fits', '/scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits', expMap='/scratch/kocevski/203537/expmap_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.fits', expCube='/scratch/kocevski/203537/ltcube_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203537/Model_4FGL_J1159.0+0939_daily_bin240.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/203537/ft1_filtered_4FGL_J1159.0+0939_daily_bin240.fits
Spacecraft file(s): /scratch/kocevski/203537/ft2_4FGL_J1159.0+0939_daily_bin240.fits
Exposure map: /scratch/kocevski/203537/expmap_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.fits
Exposure cube: /scratch/kocevski/203537/ltcube_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203537/Model_4FGL_J1159.0+0939_daily_bin240.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) = 6774.15628602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31448E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2245       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.996       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3186       1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .31347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.9996       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0635       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.

 FCN=   6774.013     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     2865 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2957        7.0604        .16824E-05    .87222E-04
   2  Prefactor     .10123E-03    42.478       -.30562E-05** at limit **
   3  Prefactor     .57975        1.9744        .12347E-06   -.52011E-06
   4  Prefactor     3.2223        11.388        .25419E-05    .41113E-04
   5  Prefactor     .10000E-03    7.9192       -.19941E-06** at limit **
   6  Prefactor     .10000E-03    322.86        .24429E-04** at limit **
   7  Prefactor     25.997        11.452       -.51228E-07   -.47712E-04
   8  Prefactor     1.6560        6.3765        .33665E-06    .22465E-05
   9  Prefactor     .10000E-03    6.2583       -.44263E-07** at limit **
  10  Prefactor     9.3188        5.4105       -.34230E-07    .17547E-04
  11  Prefactor     64.353        59.114       -.42823E-07   -.78112E-06
  12  Prefactor     .10000E-03    17.491       -.95309E-06** at limit **
  13  Prefactor     .10000E-03    7.1995        .85414E-07** at limit **
  14  Prefactor     .10000E-03    2.7414        .38262E-07** at limit **
  15  Prefactor     2.4450        4.2184        .17215E-06   -.19526E-05
  16  Prefactor     3.1828        42.707       -.53786E-06    .27095E-05
  17  Prefactor     .10000E-03    9.4424        .36950E-07** at limit **
  18  norm          17.564        5.7261        .37611E-06    .55772E-03
  19  Prefactor     .10000E-03    12.734       -.57105E-06** at limit **
  20  norm          .10000E-03    147.66       -.11743E-04** at limit **
  21  Prefactor     .10000E-03    79.928        .25158E-05** at limit **
  22  norm          .31324        .67078       -.32379E-07    .52502E-04
  23  Prefactor     .10000E-03    9.3150       -.42363E-07** at limit **
  24  Prefactor     .10000E-03    15.591        .11058E-05** at limit **
  25  norm          4.0000        1.8848        .74467E-07    .16587E-03
  26  Normalizat    1.0562        .19955       -.80840E-06    .15125E-03
  27  Prefactor     1.0633        .16700        .90400E-07    .11824E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.29571
  Prefactor  = 0.000101226
  Prefactor  = 0.579751
  Prefactor  = 3.22231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9965
  Prefactor  = 1.65604
  Prefactor  = 0.0001
  Prefactor  = 9.31884
  Prefactor  = 64.3534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44498
  Prefactor  = 3.1828
  Prefactor  = 0.0001
  norm       = 17.5643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.313235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99996
  Normalizat = 1.05621
  Prefactor  = 1.06325
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.013     FROM HESSE     STATUS=OK           496 CALLS     3361 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2957        7.0664        .11148E-02   -1.5345    
   2  Prefactor     .10123E-03    42.140        .13460       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57975        1.9504        .20488E-03   -1.5556    
   4  Prefactor     3.2223        11.395        .11280E-02   -1.5349    
   5  Prefactor     .10000E-03    7.9252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    320.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.997        11.463        .78569E-04   -1.4688    
   8  Prefactor     1.6560        6.3703        .32791E-03   -1.5451    
   9  Prefactor     .10000E-03    6.2646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3188        5.4093        .13129E-03   -1.5097    
  11  Prefactor     64.353        59.135        .50026E-04   -1.4102    
  12  Prefactor     .10000E-03    17.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7968        .26389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4450        4.1787        .20303E-03   -1.5395    
  16  Prefactor     3.1828        42.414        .22662E-03   -1.5351    
  17  Prefactor     .10000E-03    9.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.564        5.4564        .88343E-04   -1.4870    
  19  Prefactor     .10000E-03    12.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    150.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    79.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .31324        .63138        .77894E-04   -1.5596    
  23  Prefactor     .10000E-03    9.4925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0000        1.8744        .36805E-03   -1.5308    
  26  Normalizat    1.0562        .23589        .28686E-03   -.91170    
  27  Prefactor     1.0633        .19797        .25442E-03   -.90650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9028e-10
Minuit parameter uncertainties:
  1  7.06815
  2  0.014387
  3  1.9506
  4  11.4028
  5  1.51537e-06
  6  0.000301938
  7  11.4637
  8  6.37294
  9  6.51413e-08
  10  5.40961
  11  59.1892
  12  1.37513e-05
  13  4.06018e-07
  14  7.40063e-07
  15  4.17916
  16  23.2573
  17  3.14279e-06
  18  5.45658
  19  6.58603e-06
  20  0.000253823
  21  2.75526e-05
  22  0.631397
  23  5.23071e-06
  24  5.08907e-06
  25  1.87439
  26  0.236121
  27  0.198103
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.600e+01  1.146e+01  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:  1.063e+00  1.981e-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.056e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.52
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 1.68e-05

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) = 6773.07335256
delta logL = 0.93933656904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6773.05445836
delta logL = 0.958230775451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.780       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6614       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0468       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=   6773.054     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.786        14.875        .69987E-04   -.11926E-03
   2  Index         1.6619        .31835        .62179E-02   -.71401E-04
   3  Normalizat    1.0901        .21857        .28290E-03   -.64219E-03
   4  Prefactor     1.0464        .19473        .25617E-03   -.65148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.786
  Index      = 1.66192
  Normalizat = 1.09009
  Prefactor  = 1.04644
 **********
 **   18 **HESSE 
 **********

 FCN=   6773.054     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.786        14.872        .13997E-04   -1.4562    
   2  Index         1.6619        .31825        .24872E-03   -.73100    
   3  Normalizat    1.0901        .21871        .56580E-04   -.90070    
   4  Prefactor     1.0464        .19488        .51234E-04   -.91197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32556e-10
Minuit parameter uncertainties:
  1  14.8739
  2  0.31864
  3  0.218896
  4  0.195012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203537': 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) = 6773.05445523
delta logL = 0.958233898999

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  3.279e+01  1.487e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.662e+00  3.186e-01  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:  1.046e+00  1.950e-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.090e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.44
Ra Dec: 179.751 9.660
Photon Index (Free Index): 1.66 +/- 0.32
Photon Flux (Free Index): 4.43e-08 +/- 2.69e-08
Energy Flux (Free Index): 8.18e-05 +/- 6.35e-05

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/203537/cmap_HighResolution_301536001_301795201_4FGL_J1159.0+0939_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='8.18e-05', photon_flux_error='3.27e-08', dlogl='9.58e-01', energy_flux='3.80e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-04 18:06:42.056971', photon_index_error2='0.32', photon_index2='1.66', ts='18.52', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='6.35e-05', EG='1.06', time_epoch_completed='1630804002.06', return_code='0', job_id='203537', GAL2='1.05', EG2='1.09', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='2.69e-08', ts2='20.44', photon_index='2.13' WHERE bin_id='240' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 203537: <4FGL_J1159.0+0939_daily_bin240> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin240> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:51:48 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:51:49 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:49 2021
Terminated at Sat Sep  4 18:06:42 2021
Results reported at Sat Sep  4 18:06:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin240 179.751 9.6603 301536001 301795201 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 :                                   703.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

