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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin559
RA = 179.751, Dec = 9.6603
tmin = 384220801, tmax = 384480001
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='205311', job_status='RUN', time_executed='2021-09-04 18:00:05.388952', time_epoch_executed='1630803605.39' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205311/ft1_4FGL_J1159.0+0939_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205311/ft2_4FGL_J1159.0+0939_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205311/ft1_4FGL_J1159.0+0939_daily_bin559.fits outfile=/scratch/kocevski/205311/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin559.fits ra=179.751 dec=9.6603 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.67
user 13.27
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205311/ft2_4FGL_J1159.0+0939_daily_bin559.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/205311/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/205311/ft1_filtered_4FGL_J1159.0+0939_daily_bin559.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205311/ft1_filtered_4FGL_J1159.0+0939_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/205311/ft2_4FGL_J1159.0+0939_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/205311/ltcube_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.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/205311/ft2_4FGL_J1159.0+0939_daily_bin559.fits
.....................!
real 10.57
user 10.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205311/ft1_filtered_4FGL_J1159.0+0939_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/205311/ft2_4FGL_J1159.0+0939_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/205311/ltcube_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.fits outfile=/scratch/kocevski/205311/expmap_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.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/205311/ltcube_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.fits
.....................!
real 190.87
user 185.21
sys 5.30

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/205311/ft1_filtered_4FGL_J1159.0+0939_daily_bin559.fits scfile=/scratch/kocevski/205311/ft2_4FGL_J1159.0+0939_daily_bin559.fits outfile=/scratch/kocevski/205311/cmap_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205311/ft1_filtered_4FGL_J1159.0+0939_daily_bin559.fits scfile=/scratch/kocevski/205311/ft2_4FGL_J1159.0+0939_daily_bin559.fits outfile=/scratch/kocevski/205311/cmap_HighResolution_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.623       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16292E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6855       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11877E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4776       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    101.87       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13929E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .19238       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.267       1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.400       1.0000         .10000E-03   10000.    
    25 'norm      '    6.0968       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96601       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=   2734.464     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3486 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.382        .15396E-07** at limit **
   2  Prefactor     .19430E-03    78.364       -.37968E-07** at limit **
   3  Prefactor     .10000E-03    1.8791       -.59924E-08** at limit **
   4  Prefactor     13.616        21.128        .79512E-06    .12921E-04
   5  Prefactor     .10000E-03    48.101       -.21260E-07** at limit **
   6  Prefactor     .10000E-03    137.00        .33028E-05** at limit **
   7  Prefactor     1.6360        21.022        .25789E-05   -.60720E-05
   8  Prefactor     .10000E-03    9.3784       -.75540E-07** at limit **
   9  Prefactor     1.7031        75.540        .80300E-05    .51561E-04
  10  Prefactor     .10000E-03    4.8982       -.22305E-06** at limit **
  11  Prefactor     .10000E-03    290.39        .80270E-05** at limit **
  12  Prefactor     .10001E-03    26.722        .57440E-05** at limit **
  13  Prefactor     25.897        38.112       -.70853E-07   -.54485E-05
  14  Prefactor     .56847        5.7692        .15439E-05   -.58791E-04
  15  Prefactor     3.1875        4.5140       -.18880E-06   -.18485E-03
  16  Prefactor     .10000E-03    28.140       -.27165E-05** at limit **
  17  Prefactor     .10000E-03    12.326       -.61100E-07** at limit **
  18  norm          5.4770        9.2978        .53541E-05   -.46152E-03
  19  Prefactor     .10001E-03    27.273       -.38261E-05** at limit **
  20  norm          101.97        122.49       -.85015E-05    .67057E-04
  21  Prefactor     .10002E-03    185.47       -.67466E-05** at limit **
  22  norm          .19257        .75036       -.17980E-06   -.74887E-03
  23  Prefactor     31.262        23.709        .55188E-06    .23053E-04
  24  Prefactor     28.407        48.606       -.16461E-05   -.85061E-04
  25  norm          6.0997        4.6011       -.16046E-06    .31901E-06
  26  Normalizat    1.0402        .30014       -.22943E-05   -.62315E-04
  27  Prefactor     .96574        .25659       -.42161E-07   -.11875E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000194301
  Prefactor  = 0.0001
  Prefactor  = 13.6165
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.63597
  Prefactor  = 0.0001
  Prefactor  = 1.70314
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100013
  Prefactor  = 25.897
  Prefactor  = 0.568469
  Prefactor  = 3.18747
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 5.47703
  Prefactor  = 0.000100006
  norm       = 101.968
  Prefactor  = 0.000100018
  norm       = 0.192573
  Prefactor  = 31.2616
  Prefactor  = 28.4068
  norm       = 6.09972
  Normalizat = 1.04023
  Prefactor  = 0.965742
 **********
 **   18 **HESSE 
 **********

 FCN=   2734.464     FROM HESSE     STATUS=OK           494 CALLS     3980 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19430E-03    93.102        .11866       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8843        .70001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.616        20.809        .10852E-03   -1.4970    
   5  Prefactor     .10000E-03    48.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    137.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6360        20.901        .32983E-03   -1.5452    
   8  Prefactor     .10000E-03    9.4195        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7031        75.666        .32436E-03   -1.5447    
  10  Prefactor     .10000E-03    15.340        .21189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    290.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    28.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.897        38.131        .78750E-04   -1.4690    
  14  Prefactor     .56847        5.3454        .21481E-03   -1.5557    
  15  Prefactor     3.1875        4.3529        .11602E-03   -1.5351    
  16  Prefactor     .10000E-03    28.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.337        .17933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4770        9.6306        .79012E-03   -1.5240    
  19  Prefactor     .10001E-03    27.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          101.97        125.27        .39834E-04   -1.3685    
  21  Prefactor     .10002E-03    187.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .19257        .72648        .84317E-04   -1.5620    
  23  Prefactor     31.262        23.765        .71657E-04   -1.4589    
  24  Prefactor     28.407        48.781        .75177E-04   -1.4641    
  25  norm          6.0997        4.5774        .92995E-04   -1.5214    
  26  Normalizat    1.0402        .35624        .26848E-03   -.91695    
  27  Prefactor     .96574        .30471        .25131E-03   -.93880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03685e-09
Minuit parameter uncertainties:
  1  5.47647e-05
  2  0.187692
  3  2.0567e-06
  4  20.8197
  5  2.8455e-05
  6  0.00154398
  7  11.6997
  8  1.56908e-06
  9  22.7341
  10  2.39786e-05
  11  0.00227138
  12  0.001227
  13  38.1666
  14  3.48648
  15  4.35335
  16  0.000570207
  17  4.78037e-06
  18  9.63336
  19  0.000805438
  20  125.597
  21  0.00370164
  22  0.726511
  23  23.7727
  24  48.8498
  25  4.57766
  26  0.357056
  27  0.305257
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.636e+00  1.170e+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:  9.657e-01  3.053e-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.040e+00  3.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205311/likelihoodResults_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.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) = 2734.46294743
delta logL = 0.000908949166387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2734.46236531
delta logL = 0.00149106417894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2881       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3735       1.0000          .0000       10.000    
     3 'Normalizat'    1.0394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96608       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=   2734.462     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      234 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2910        117.49        .97601E-02    .48830E-03
   2  Index         2.3726        1.1986        .50000        .53700E-05
   3  Normalizat    1.0394        .20980E-01    .60731E-01    .32963E-04
   4  Prefactor     .96606        .19072E-01    .45842E-01    .44762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.291
  Index      = 2.3726
  Normalizat = 1.03936
  Prefactor  = 0.966064
 **********
 **   18 **HESSE 
 **********

 FCN=   2734.462     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2910        26.132        .38115E-03   -1.5481    
   2  Index         2.3726        3.5254        .50115E-02   -.55328    
   3  Normalizat    1.0394        .32974        .26859E-03   -.91723    
   4  Prefactor     .96606        .29912        .25127E-03   -.93869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1452e-11
Minuit parameter uncertainties:
  1  11.6219
  2  4.15543
  3  0.330393
  4  0.299635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205311': 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) = 2734.46236524
delta logL = 0.00149113211774

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.291e+00  1.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.373e+00  4.155e+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:  9.661e-01  2.996e-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.039e+00  3.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/205311/cmap_HighResolution_384220801_384480001_4FGL_J1159.0+0939_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-04 18:09:44.291183', job_id='205311', GAL2='0.97', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630804184.29', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.49e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='559' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:09:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 205311: <4FGL_J1159.0+0939_daily_bin559> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin559> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 17:56:21 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:56:23 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:56:23 2021
Terminated at Sat Sep  4 18:09:45 2021
Results reported at Sat Sep  4 18:09:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin559 179.751 9.6603 384220801 384480001 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             201.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

