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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin967
RA = 179.751, Dec = 9.6603
tmin = 489974401, tmax = 490233601
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='208753', job_status='RUN', time_executed='2021-09-04 18:09:31.388948', time_epoch_executed='1630804171.39' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208753/ft1_4FGL_J1159.0+0939_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208753/ft2_4FGL_J1159.0+0939_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208753/ft1_4FGL_J1159.0+0939_daily_bin967.fits outfile=/scratch/kocevski/208753/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin967.fits ra=179.751 dec=9.6603 rad=12.0 tmin=489974401.0 tmax=490233601.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.72
user 3.49
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208753/ft1_filtered_4FGL_J1159.0+0939_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/208753/ft2_4FGL_J1159.0+0939_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/208753/ltcube_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.fits outfile=/scratch/kocevski/208753/expmap_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.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/208753/ltcube_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.fits
.....................!
real 190.61
user 185.58
sys 4.72

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/208753/ft1_filtered_4FGL_J1159.0+0939_daily_bin967.fits scfile=/scratch/kocevski/208753/ft2_4FGL_J1159.0+0939_daily_bin967.fits outfile=/scratch/kocevski/208753/cmap_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208753/ft1_filtered_4FGL_J1159.0+0939_daily_bin967.fits scfile=/scratch/kocevski/208753/ft2_4FGL_J1159.0+0939_daily_bin967.fits outfile=/scratch/kocevski/208753/cmap_HighResolution_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5149       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73167       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20524E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2467       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8558       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    144.53       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0723       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3714       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2777       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2119       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72012       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=   5951.470     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3335 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.210        15.045        .14547E-07   -.58868E-04
   2  Prefactor     .10000E-03    10.930        .19693E-07** at limit **
   3  Prefactor     2.5148        2.0159        .65797E-07    .48074E-05
   4  Prefactor     .72614        13.525        .61629E-05   -.80367E-03
   5  Prefactor     .10000E-03    7.2479       -.49821E-10** at limit **
   6  Prefactor     .10000E-03    70.339       -.75699E-06** at limit **
   7  Prefactor     .10000E-03    3.2846       -.20517E-06** at limit **
   8  Prefactor     .10000E-03    3.5056       -.46468E-06** at limit **
   9  Prefactor     16.161        22.154       -.77010E-06   -.17465E-03
  10  Prefactor     .10000E-03    2.1327        .20084E-07** at limit **
  11  Prefactor     .10008E-03    970.15       -.22104E-04** at limit **
  12  Prefactor     9.2691        47.370       -.38355E-05   -.89579E-04
  13  Prefactor     .10000E-03    12.027        .20986E-06** at limit **
  14  Prefactor     1.8552        2.8819        .36651E-06    .16861E-04
  15  Prefactor     .10000E-03    2.1479       -.93764E-07** at limit **
  16  Prefactor     .10000E-03    25.624       -.86931E-06** at limit **
  17  Prefactor     .10000E-03    3.3086       -.55615E-07** at limit **
  18  norm          7.9783        4.3408        .19091E-05    .18110E-02
  19  Prefactor     .10000E-03    19.556        .60458E-06** at limit **
  20  norm          .10000E-03    40.382       -.54684E-06** at limit **
  21  Prefactor     144.66        112.97        .86751E-06    .19295E-03
  22  norm          2.0723        .70710       -.19294E-06    .76065E-04
  23  Prefactor     4.3697        7.4582        .53887E-06    .19877E-03
  24  Prefactor     .10000E-03    21.435        .98077E-06** at limit **
  25  norm          6.2775        2.2319       -.53164E-07   -.90447E-04
  26  Normalizat    1.2120        .19903        .13890E-05   -.30092E-03
  27  Prefactor     .72011        .16621       -.27063E-05   -.25955E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 35.2099
  Prefactor  = 0.0001
  Prefactor  = 2.51478
  Prefactor  = 0.726139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1612
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 9.26909
  Prefactor  = 0.0001
  Prefactor  = 1.85522
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.9783
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 144.661
  norm       = 2.0723
  Prefactor  = 4.36974
  Prefactor  = 0.0001
  norm       = 6.27747
  Normalizat = 1.21196
  Prefactor  = 0.720111
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.470     FROM HESSE     STATUS=OK           486 CALLS     3821 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.210        15.069        .67534E-04   -1.4521    
   2  Prefactor     .10000E-03    10.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5148        2.0114        .94995E-04   -1.5391    
   4  Prefactor     .72614        25.531        .41949E-02   -1.5538    
   5  Prefactor     .10000E-03    7.2546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2869        .13653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5257        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.161        22.276        .99733E-04   -1.4904    
  10  Prefactor     .10000E-03    2.1558        .10993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10008E-03    989.01        .18250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2691        47.906        .13180E-03   -1.5099    
  13  Prefactor     .10000E-03    54.379        .51891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8552        2.8633        .15445E-03   -1.5436    
  15  Prefactor     .10000E-03    2.1763        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3152        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.9783        4.5688        .54640E-03   -1.5143    
  19  Prefactor     .10000E-03    19.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    40.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     144.66        113.80        .16758E-03   -1.3297    
  22  norm          2.0723        .70833        .34185E-04   -1.5420    
  23  Prefactor     4.3697        7.4497        .19264E-03   -1.5290    
  24  Prefactor     .10000E-03    21.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2775        2.2320        .65586E-04   -1.5207    
  26  Normalizat    1.2120        .23595        .24986E-03   -.86234    
  27  Prefactor     .72011        .19391        .27379E-03   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82386e-09
Minuit parameter uncertainties:
  1  15.0702
  2  5.52531e-07
  3  2.01149
  4  8.61477
  5  1.85128e-06
  6  0.000311667
  7  8.47133e-06
  8  1.86745e-05
  9  22.2871
  10  7.59955e-06
  11  0.0180116
  12  42.1981
  13  1.09476e-05
  14  2.86355
  15  9.84984e-06
  16  0.000244771
  17  3.14705e-06
  18  4.56901
  19  5.89535e-06
  20  0.000201452
  21  113.977
  22  0.708334
  23  7.45131
  24  0.000199427
  25  2.23205
  26  0.236156
  27  0.19409
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.471e-06  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:  7.201e-01  1.941e-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.212e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208753/likelihoodResults_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.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) = 5951.47104953
delta logL = -0.00142632907864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.46962314
delta logL = 6.7376277002e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1213       1.0000          .0000       10.000    
     3 'Normalizat'    1.2120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72011       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=   5951.470     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4210        .13720E-02** at limit **
   2  Index         2.1103        6.0051        .50000        .26630E-04
   3  Normalizat    1.2120        .21817        .24986E-03   -.14560E-04
   4  Prefactor     .72011        .18996        .27379E-03   -.17440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.11029
  Normalizat = 1.21196
  Prefactor  = 0.720112
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.470     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3522        .27439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1103        6.0519        .50000       -.61620    
   3  Normalizat    1.2120        .21840        .99943E-05   -.86234    
   4  Prefactor     .72011        .19015        .10952E-04   -1.0274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59106e-09
Minuit parameter uncertainties:
  1  0.000178161
  2  4.10362
  3  0.21856
  4  0.190326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208753': 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) = 5951.46962306
delta logL = 1.45779267768e-07

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.782e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.110e+00  4.104e+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:  7.201e-01  1.903e-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.212e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/208753/cmap_HighResolution_489974401_490233601_4FGL_J1159.0+0939_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-04 18:22:22.514553', job_id='208753', GAL2='0.72', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630804942.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='967' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:22:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 208753: <4FGL_J1159.0+0939_daily_bin967> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin967> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:06:03 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:06:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:06:04 2021
Terminated at Sat Sep  4 18:22:23 2021
Results reported at Sat Sep  4 18:22:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin967 179.751 9.6603 489974401 490233601 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 :                                   769.21 sec.
    Max Memory :                                 1194 MB
    Average Memory :                             286.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

