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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin978
RA = 179.751, Dec = 9.6603
tmin = 492825601, tmax = 493084801
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='208772', job_status='RUN', time_executed='2021-09-04 18:10:05.000865', time_epoch_executed='1630804205.0' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208772

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208772/ft1_4FGL_J1159.0+0939_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208772/ft2_4FGL_J1159.0+0939_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208772/ft1_4FGL_J1159.0+0939_daily_bin978.fits outfile=/scratch/kocevski/208772/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin978.fits ra=179.751 dec=9.6603 rad=12.0 tmin=492825601.0 tmax=493084801.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.70
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208772/ft1_filtered_4FGL_J1159.0+0939_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/208772/ft2_4FGL_J1159.0+0939_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/208772/ltcube_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.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/208772/ft2_4FGL_J1159.0+0939_daily_bin978.fits
.....................!
real 11.60
user 11.30
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208772/ft1_filtered_4FGL_J1159.0+0939_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/208772/ft2_4FGL_J1159.0+0939_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/208772/ltcube_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.fits outfile=/scratch/kocevski/208772/expmap_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.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/208772/ltcube_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.fits
.....................!
real 193.75
user 189.34
sys 4.07

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/208772/ft1_filtered_4FGL_J1159.0+0939_daily_bin978.fits scfile=/scratch/kocevski/208772/ft2_4FGL_J1159.0+0939_daily_bin978.fits outfile=/scratch/kocevski/208772/cmap_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208772/ft1_filtered_4FGL_J1159.0+0939_daily_bin978.fits scfile=/scratch/kocevski/208772/ft2_4FGL_J1159.0+0939_daily_bin978.fits outfile=/scratch/kocevski/208772/cmap_HighResolution_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.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.56
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9842       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4641       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-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 '    3.4627       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1676       1.0000         .10000E-03   10000.    
    18 'norm      '    3.3763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9730       1.0000         .10000E-03   10000.    
    20 'norm      '    8.2230       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.759       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6449       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3376       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95919       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=   6064.596     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3318 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.903        18.494       -.85122E-07   -.19216E-04
   2  Prefactor     13.592        38.623        .25391E-05   -.58635E-05
   3  Prefactor     1.3329        1.6103        .34463E-07    .85078E-06
   4  Prefactor     8.9804        10.994        .11558E-06   -.11713E-04
   5  Prefactor     .10000E-03    9.0968        .11571E-07** at limit **
   6  Prefactor     .10000E-03    58.420       -.13072E-05** at limit **
   7  Prefactor     21.715        15.102       -.39277E-06   -.33451E-04
   8  Prefactor     4.4643        8.9190       -.25514E-08   -.17568E-04
   9  Prefactor     .10000E-03    22.480       -.10534E-05** at limit **
  10  Prefactor     .10000E-03    3.4030        .48299E-07** at limit **
  11  Prefactor     71.275        107.00        .56044E-05   -.22080E-04
  12  Prefactor     .10000E-03    14.393        .88326E-06** at limit **
  13  Prefactor     .10000E-03    21.888        .74601E-06** at limit **
  14  Prefactor     .10000E-03    1.2393        .12792E-07** at limit **
  15  Prefactor     3.4620        3.5155        .86924E-07   -.29916E-04
  16  Prefactor     .10000E-03    20.103       -.20115E-05** at limit **
  17  Prefactor     2.1675        21.745        .93881E-05   -.50664E-05
  18  norm          3.3760        3.6101        .11111E-06    .73179E-04
  19  Prefactor     5.9913        26.853       -.66277E-06    .21928E-05
  20  norm          8.2265        59.740       -.30926E-06    .22216E-05
  21  Prefactor     .10000E-03    84.938        .11156E-05** at limit **
  22  norm          1.7819        .76141       -.71285E-07   -.10254E-03
  23  Prefactor     12.759        10.917        .12634E-06    .79571E-05
  24  Prefactor     .10000E-03    13.403       -.45921E-06** at limit **
  25  norm          5.6449        2.3420        .31430E-07   -.13233E-04
  26  Normalizat    1.3377        .22638        .46300E-07    .33340E-04
  27  Prefactor     .95907        .19593       -.11640E-05   -.45866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 55.9028
  Prefactor  = 13.5918
  Prefactor  = 1.33289
  Prefactor  = 8.98035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7146
  Prefactor  = 4.46433
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 71.2752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46204
  Prefactor  = 0.0001
  Prefactor  = 2.16751
  norm       = 3.37601
  Prefactor  = 5.99134
  norm       = 8.22653
  Prefactor  = 0.0001
  norm       = 1.78189
  Prefactor  = 12.7589
  Prefactor  = 0.0001
  norm       = 5.64487
  Normalizat = 1.33767
  Prefactor  = 0.959071
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.596     FROM HESSE     STATUS=OK           494 CALLS     3812 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.903        18.510        .53652E-04   -1.4211    
   2  Prefactor     13.592        38.735        .10858E-03   -1.4970    
   3  Prefactor     1.3329        1.5910        .10574E-03   -1.5477    
   4  Prefactor     8.9804        11.027        .13372E-03   -1.5109    
   5  Prefactor     .10000E-03    9.1039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.715        15.150        .85956E-04   -1.4776    
   8  Prefactor     4.4643        8.9093        .19058E-03   -1.5285    
   9  Prefactor     .10000E-03    22.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5518        .28021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     71.275        106.80        .47535E-04   -1.4017    
  12  Prefactor     .10000E-03    14.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2549        .84438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4620        3.5078        .13871E-03   -1.5336    
  16  Prefactor     .10000E-03    20.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1675        21.958        .13986E-02   -1.5414    
  18  norm          3.3760        3.5845        .13594E-03   -1.5340    
  19  Prefactor     5.9913        26.838        .16430E-03   -1.5218    
  20  norm          8.2265        59.770        .13981E-03   -1.5134    
  21  Prefactor     .10000E-03    84.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7819        .75978        .39828E-04   -1.5441    
  23  Prefactor     12.759        10.921        .11214E-03   -1.4993    
  24  Prefactor     .10000E-03    13.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6449        2.3412        .73353E-04   -1.5233    
  26  Normalizat    1.3377        .26786        .27065E-03   -.82449    
  27  Prefactor     .95907        .22903        .28576E-03   -.94107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37496e-10
Minuit parameter uncertainties:
  1  18.5118
  2  38.8072
  3  1.59101
  4  11.0297
  5  1.81632e-06
  6  2.04429e-05
  7  15.1526
  8  8.91198
  9  0.000496821
  10  5.90168e-06
  11  107.094
  12  2.84134e-06
  13  2.58665e-06
  14  6.41289e-07
  15  3.50806
  16  2.10976e-05
  17  13.8039
  18  3.58475
  19  25.3799
  20  44.4111
  21  1.34944e-05
  22  0.759787
  23  10.9222
  24  7.15594e-06
  25  2.34122
  26  0.268138
  27  0.229261
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.171e+01  1.515e+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.591e-01  2.293e-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.338e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 4.32e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 2.22e-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) = 6063.38599558
delta logL = 1.20965386756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6063.36308055
delta logL = 1.23256889267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5732       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0799       1.0000          .0000       10.000    
     3 'Normalizat'    1.2344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0209       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=   6063.363     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5478        51.565        .39131E-02    .18823E-03
   2  Index         3.0818        2.3066        .82582E-01    .18460E-03
   3  Normalizat    1.2344        .93403E-01    .63224E-01    .81645E-05
   4  Prefactor     1.0210        .78441E-01    .62895E-01    .97273E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5478
  Index      = 3.08182
  Normalizat = 1.23437
  Prefactor  = 1.021
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.363     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5478        14.878        .90770E-04   -1.5196    
   2  Index         3.0818        1.0924        .32901E-02   -.39373    
   3  Normalizat    1.2344        .26332        .27966E-03   -.85547    
   4  Prefactor     1.0210        .23516        .27816E-03   -.92033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40596e-11
Minuit parameter uncertainties:
  1  14.8863
  2  1.10283
  3  0.263606
  4  0.235401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208772': 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) = 6063.36307633
delta logL = 1.23257311401

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  6.548e+00  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.082e+00  1.103e+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:  1.021e+00  2.354e-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.234e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.78
Ra Dec: 179.751 9.660
Photon Index (Free Index): 3.08 +/- 1.10
Photon Flux (Free Index): 1.33e-07 +/- 7.24e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.40e-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/208772/cmap_HighResolution_492825601_493084801_4FGL_J1159.0+0939_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='2.56e-05', photon_flux_error='4.32e-08', dlogl='1.23e+00', energy_flux='3.18e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-04 18:22:01.732069', photon_index_error2='1.10', photon_index2='3.08', ts='5.13', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.34', time_epoch_completed='1630804921.73', return_code='0', job_id='208772', GAL2='1.02', EG2='1.23', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='7.24e-08', ts2='7.78', photon_index='2.13' WHERE bin_id='978' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 208772: <4FGL_J1159.0+0939_daily_bin978> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin978> 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) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:06:05 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:05 2021
Terminated at Sat Sep  4 18:22:02 2021
Results reported at Sat Sep  4 18:22:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin978 179.751 9.6603 492825601 493084801 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 :                                   714.26 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             265.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

