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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin981
RA = 179.751, Dec = 9.6603
tmin = 493603201, tmax = 493862401
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='208777', job_status='RUN', time_executed='2021-09-04 18:09:22.007901', time_epoch_executed='1630804162.01' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208777

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208777/ft1_4FGL_J1159.0+0939_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208777/ft2_4FGL_J1159.0+0939_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208777/ft1_4FGL_J1159.0+0939_daily_bin981.fits outfile=/scratch/kocevski/208777/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin981.fits ra=179.751 dec=9.6603 rad=12.0 tmin=493603201.0 tmax=493862401.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.48
user 3.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208777/ft1_filtered_4FGL_J1159.0+0939_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/208777/ft2_4FGL_J1159.0+0939_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/208777/ltcube_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.fits outfile=/scratch/kocevski/208777/expmap_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.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/208777/ltcube_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.fits
.....................!
real 189.51
user 184.88
sys 4.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/208777/ft1_filtered_4FGL_J1159.0+0939_daily_bin981.fits scfile=/scratch/kocevski/208777/ft2_4FGL_J1159.0+0939_daily_bin981.fits outfile=/scratch/kocevski/208777/cmap_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.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/208777/ft1_filtered_4FGL_J1159.0+0939_daily_bin981.fits scfile=/scratch/kocevski/208777/ft2_4FGL_J1159.0+0939_daily_bin981.fits outfile=/scratch/kocevski/208777/cmap_HighResolution_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.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.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.547       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1592       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11822E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84893       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.077       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4729       1.0000         .10000E-03   10000.    
    18 'norm      '    13.321       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .49299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.003       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.092       1.0000         .10000E-03   10000.    
    25 'norm      '    2.6555       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78327       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=   5312.074     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3354 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.547        15.471        .29262E-06   -.49786E-06
   2  Prefactor     20.330        33.966        .17492E-05   -.22244E-05
   3  Prefactor     2.1593        2.3078       -.12333E-06   -.36613E-03
   4  Prefactor     14.200        12.059        .25390E-05    .11014E-05
   5  Prefactor     17.471        24.624       -.15368E-06   -.36231E-04
   6  Prefactor     50.219        82.696       -.22884E-04   -.32126E-04
   7  Prefactor     18.080        13.632       -.26220E-05    .47799E-04
   8  Prefactor     .10000E-03    8.8350       -.28540E-06** at limit **
   9  Prefactor     .10000E-03    6.3234        .73241E-06** at limit **
  10  Prefactor     .10000E-03    .96512       -.27518E-08** at limit **
  11  Prefactor     .10000E-03    103.17       -.34405E-04** at limit **
  12  Prefactor     1.5128        184.90        .64567E-04   -.28891E-04
  13  Prefactor     .10000E-03    6.5078       -.66810E-06** at limit **
  14  Prefactor     .86529        2.0971       -.44931E-06   -.11257E-02
  15  Prefactor     .84989        2.5726       -.58219E-06   -.94276E-03
  16  Prefactor     12.077        19.706       -.86482E-06   -.77787E-04
  17  Prefactor     9.4733        9.4121        .58325E-06   -.10646E-03
  18  norm          13.320        5.3376       -.30860E-05   -.15206E-02
  19  Prefactor     .10000E-03    12.970        .14918E-08** at limit **
  20  norm          .10000E-03    55.531        .59394E-04** at limit **
  21  Prefactor     .10000E-03    48.778       -.37693E-04** at limit **
  22  norm          .49273        .63677        .48688E-06   -.19470E-02
  23  Prefactor     12.002        9.9928       -.34225E-06   -.25200E-05
  24  Prefactor     10.093        22.925        .85316E-06   -.10468E-04
  25  norm          2.6556        2.0592        .26621E-06   -.55242E-03
  26  Normalizat    1.1397        .21175        .73240E-06   -.24317E-03
  27  Prefactor     .78337        .18154       -.18927E-06   -.18996E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 39.547
  Prefactor  = 20.3303
  Prefactor  = 2.15934
  Prefactor  = 14.2003
  Prefactor  = 17.4712
  Prefactor  = 50.219
  Prefactor  = 18.0805
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.51281
  Prefactor  = 0.0001
  Prefactor  = 0.865292
  Prefactor  = 0.849888
  Prefactor  = 12.0773
  Prefactor  = 9.47325
  norm       = 13.3202
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.492733
  Prefactor  = 12.0023
  Prefactor  = 10.0931
  norm       = 2.65555
  Normalizat = 1.13967
  Prefactor  = 0.783365
 **********
 **   18 **HESSE 
 **********

 FCN=   5312.074     FROM HESSE     STATUS=OK           498 CALLS     3852 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.547        15.478        .63738E-04   -1.4449    
   2  Prefactor     20.330        33.987        .88833E-04   -1.4806    
   3  Prefactor     2.1593        2.2951        .11074E-03   -1.5414    
   4  Prefactor     14.200        12.109        .10630E-03   -1.4954    
   5  Prefactor     17.471        24.625        .95823E-04   -1.4872    
   6  Prefactor     50.219        82.802        .56580E-04   -1.4289    
   7  Prefactor     18.080        13.636        .94175E-04   -1.4857    
   8  Prefactor     .10000E-03    8.9196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3306        .17899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .96715        .69905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    103.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5128        183.34        .35162E-03   -1.5462    
  13  Prefactor     .10000E-03    6.5107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .86529        1.7781        .14757E-02   -1.5522    
  15  Prefactor     .84989        2.4255        .18217E-03   -1.5524    
  16  Prefactor     12.077        19.699        .11527E-03   -1.5013    
  17  Prefactor     9.4733        9.4051        .13021E-03   -1.5092    
  18  norm          13.320        5.2940        .91595E-04   -1.4978    
  19  Prefactor     .10000E-03    12.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    55.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .49273        .59979        .57512E-03   -1.5568    
  23  Prefactor     12.002        9.9830        .11563E-03   -1.5015    
  24  Prefactor     10.093        22.907        .12613E-03   -1.5072    
  25  norm          2.6556        2.0439        .87037E-04   -1.5382    
  26  Normalizat    1.1397        .24698        .25265E-03   -.88488    
  27  Prefactor     .78337        .21076        .26981E-03   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38967e-09
Minuit parameter uncertainties:
  1  15.4799
  2  34.0194
  3  2.2952
  4  12.1109
  5  24.6391
  6  82.9927
  7  13.6388
  8  0.000159363
  9  1.58751e-05
  10  2.3626e-06
  11  0.000489506
  12  33.4124
  13  4.27391e-06
  14  1.77826
  15  2.42581
  16  19.7095
  17  9.40654
  18  5.29419
  19  1.76108e-05
  20  0.000379079
  21  4.06267e-05
  22  0.599801
  23  9.98442
  24  22.9272
  25  2.04391
  26  0.247231
  27  0.210977
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.808e+01  1.364e+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:  7.834e-01  2.110e-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.140e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 2.00e-05

TS (Fixed Index): 2.75
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208777/likelihoodResults_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.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) = 5311.91454128
delta logL = 0.159284042519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5311.90083373
delta logL = 0.172991596942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.374       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4577       1.0000          .0000       10.000    
     3 'Normalizat'    1.1193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79576       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=   5311.901     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.373        15.653        .11387E-03    .71083E-04
   2  Index         2.4577        .65606        .47043E-02    .29503E-04
   3  Normalizat    1.1193        .23557        .25462E-03   -.35370E-03
   4  Prefactor     .79575        .21113        .26792E-03   -.40014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3727
  Index      = 2.45774
  Normalizat = 1.11925
  Prefactor  = 0.795754
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.901     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.373        14.121        .45550E-05   -1.5004    
   2  Index         2.4577        .59178        .18817E-03   -.53339    
   3  Normalizat    1.1193        .23536        .50924E-04   -.89136    
   4  Prefactor     .79575        .21092        .53584E-04   -.99885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49662e-10
Minuit parameter uncertainties:
  1  14.1251
  2  0.593658
  3  0.235582
  4  0.211138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208777': 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) = 5311.90083371
delta logL = 0.172991609836

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.237e+01  1.413e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.458e+00  5.937e-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:  7.958e-01  2.111e-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.119e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 179.751 9.660
Photon Index (Free Index): 2.46 +/- 0.59
Photon Flux (Free Index): 6.63e-08 +/- 5.03e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.64e-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/208777/cmap_HighResolution_493603201_493862401_4FGL_J1159.0+0939_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='2.02e-05', photon_flux_error='3.89e-08', dlogl='1.73e-01', energy_flux='2.65e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-09-04 18:21:41.023872', photon_index_error2='0.59', photon_index2='2.46', ts='2.75', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.64e-05', EG='1.14', time_epoch_completed='1630804901.02', return_code='0', job_id='208777', GAL2='0.80', EG2='1.12', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='5.03e-08', ts2='3.08', photon_index='2.13' WHERE bin_id='981' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 208777: <4FGL_J1159.0+0939_daily_bin981> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin981> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:06:04 2021
Job was executed on host(s) <bullet0117>, 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:21:41 2021
Results reported at Sat Sep  4 18:21:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin981 179.751 9.6603 493603201 493862401 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 :                                   738.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

