/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 134 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin61
RA = 179.884, Dec = 29.2448
tmin = 255139201, tmax = 255398401
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='230425', job_status='RUN', time_executed='2021-09-04 19:08:46.393290', time_epoch_executed='1630807726.39' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230425

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230425/ft1_4FGL_J1159.5+2914_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230425/ft1_4FGL_J1159.5+2914_daily_bin61.fits outfile=/scratch/kocevski/230425/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin61.fits ra=179.884 dec=29.2448 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.45
user 7.14
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.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/230425/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/230425/ltcube_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.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/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits
.....................!
real 11.48
user 11.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/230425/ltcube_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.fits outfile=/scratch/kocevski/230425/expmap_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.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/230425/ltcube_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.fits
.....................!
real 191.14
user 186.37
sys 4.26

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits scfile=/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits outfile=/scratch/kocevski/230425/cmap_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.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.884 yref=29.2448 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits scfile=/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits outfile=/scratch/kocevski/230425/cmap_HighResolution_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.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.884 yref=29.2448 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/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230425/Model_4FGL_J1159.5+2914_daily_bin61.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/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits.....................!
real 44.63
user 43.27
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits', '/scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits', expMap='/scratch/kocevski/230425/expmap_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.fits', expCube='/scratch/kocevski/230425/ltcube_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230425/Model_4FGL_J1159.5+2914_daily_bin61.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/230425/ft1_filtered_4FGL_J1159.5+2914_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/230425/ft2_4FGL_J1159.5+2914_daily_bin61.fits
Exposure map: /scratch/kocevski/230425/expmap_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.fits
Exposure cube: /scratch/kocevski/230425/ltcube_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230425/Model_4FGL_J1159.5+2914_daily_bin61.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) = 4687.64958057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2883       1.0000         .10000E-03   10000.    
     2 'norm      '    9.7307       1.0000         .10000E-03   10000.    
     3 'norm      '    .12939E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96697E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7204       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57884E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .12984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66293E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53643E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4545       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.377       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1043       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0218       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2955       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6137       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7360       1.0000         .10000E-03   10000.    
    26 'norm      '    .39912       1.0000         .10000E-03   10000.    
    27 'norm      '    .10507E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.699       1.0000         .10000E-03   10000.    
    29 'Prefactor '    88.168       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4687.559     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     2968 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2723        3.0856       -.54459E-06    .27613E-03
   2  norm          9.6112        13.463        .32738E-04    .35861E-03
   3  norm          .10000E-03    4.4584        .78233E-06** at limit **
   4  Prefactor     16.900        20.278       -.15307E-05    .14707E-03
   5  Prefactor     .10000E-03    2.0695        .10443E-06** at limit **
   6  Prefactor     .10000E-03    22.700       -.36723E-05** at limit **
   7  Prefactor     .10000E-03    5.5008       -.81824E-07** at limit **
   8  norm          .10000E-03    1.0782        .12550E-06** at limit **
   9  Prefactor     6.6958        7.8148        .23173E-05   -.31813E-03
  10  Prefactor     .10000E-03    39.340       -.54814E-04** at limit **
  11  norm          .12409        .65190        .80673E-07    .25376E-04
  12  Prefactor     .10000E-03    11.169       -.96858E-06** at limit **
  13  Prefactor     .10000E-03    15.799       -.23174E-05** at limit **
  14  Prefactor     .63566        1.2516        .18939E-07    .10317E-03
  15  Prefactor     23.743        26.545        .21258E-05    .18443E-02
  16  Prefactor     16.850        40.653       -.10592E-05   -.19233E-02
  17  norm          1.4548        1.1297        .15798E-06   -.15325E-03
  18  Prefactor     .12959        27.656       -.50295E-05   -.67453E-04
  19  Prefactor     20.922        25.222        .50126E-05   -.30810E-02
  20  Prefactor     2.1117        3.0885        .50250E-06   -.10838E-03
  21  norm          5.0244        2.9461        .12617E-07   -.92624E-04
  22  Prefactor     11.147        9.9943        .21019E-05   -.15574E-03
  23  Prefactor     1.2954        1.3713        .68666E-07   -.12501E-03
  24  Prefactor     6.6124        3.2266       -.47200E-06   -.87354E-04
  25  Prefactor     3.7232        4.8835        .16013E-06    .62689E-05
  26  norm          .39919        .24750        .70691E-07   -.81326E-04
  27  norm          .10000E-03    2.6525        .78229E-06** at limit **
  28  Prefactor     25.807        14.507        .71633E-05    .16699E-03
  29  Prefactor     89.055        86.709        .13523E-04   -.41014E-03
  30  Normalizat    1.0131        .23474       -.39962E-05   -.24520E-03
  31  Prefactor     .87291        .25006       -.82201E-06   -.17218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27229
  norm       = 9.61118
  norm       = 0.0001
  Prefactor  = 16.9
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.69584
  Prefactor  = 0.000100002
  norm       = 0.124095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.635662
  Prefactor  = 23.7425
  Prefactor  = 16.8497
  norm       = 1.45485
  Prefactor  = 0.129592
  Prefactor  = 20.9219
  Prefactor  = 2.11173
  norm       = 5.02438
  Prefactor  = 11.1466
  Prefactor  = 1.29538
  Prefactor  = 6.61243
  Prefactor  = 3.72322
  norm       = 0.399186
  norm       = 0.0001
  Prefactor  = 25.8066
  Prefactor  = 89.0552
  Normalizat = 1.01306
  Prefactor  = 0.872913
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.559     FROM HESSE     STATUS=OK           720 CALLS     3688 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2723        3.0789        .55820E-02   -1.5346    
   2  norm          9.6112        13.474        .32116E-02   -1.5088    
   3  norm          .10000E-03    4.4395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.900        20.250        .23929E-02   -1.4886    
   5  Prefactor     .10000E-03    1.3847        .32052E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.659        .10392E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6958        7.8281        .38696E-02   -1.5190    
  10  Prefactor     .10000E-03    2.9809        .67290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12409        .49546        .24672E-01   -1.5638    
  12  Prefactor     .10000E-03    11.130        .93932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.312        .10561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .63566        1.4757        .24747E-01   -1.5549    
  15  Prefactor     23.743        32.478        .21033E-02   -1.4733    
  16  Prefactor     16.850        48.692        .26618E-02   -1.4887    
  17  norm          1.4548        1.1384        .89264E-02   -1.5467    
  18  Prefactor     .12959        2.4272        .64924E-01   -1.5636    
  19  Prefactor     20.922        41.900        .21169E-02   -1.4793    
  20  Prefactor     2.1117        3.1278        .71113E-02   -1.5417    
  21  norm          5.0244        2.9484        .44861E-02   -1.5260    
  22  Prefactor     11.147        10.014        .29929E-02   -1.5040    
  23  Prefactor     1.2954        1.3560        .97159E-02   -1.5480    
  24  Prefactor     6.6124        3.2264        .39010E-02   -1.5194    
  25  Prefactor     3.7232        4.9005        .52225E-02   -1.5322    
  26  norm          .39919        .24958        .57605E-02   -1.5582    
  27  norm          .10000E-03    2.6252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.807        14.509        .19755E-02   -1.4692    
  29  Prefactor     89.055        86.923        .10697E-02   -1.3818    
  30  Normalizat    1.0131        .20264        .44815E-01   -.92594    
  31  Prefactor     .87291        .21311        .64539E-01   -.97094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84263e-07
Minuit parameter uncertainties:
  1  3.07909
  2  13.4786
  3  2.29573e-05
  4  20.2585
  5  1.13987e-06
  6  0.00022126
  7  4.64717e-06
  8  1.44617e-06
  9  7.82926
  10  0.000135958
  11  0.495481
  12  5.73161e-05
  13  0.000122464
  14  1.47576
  15  32.5023
  16  48.8068
  17  1.13844
  18  1.1213
  19  41.9585
  20  3.128
  21  2.94844
  22  10.0154
  23  1.35607
  24  3.22651
  25  4.90106
  26  0.249578
  27  1.50773e-05
  28  14.5106
  29  87.047
  30  0.202795
  31  0.213313
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.455e+00  1.138e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  8.729e-01  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.013e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.38e-05

TS (Fixed Index): 3.51
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230425/likelihoodResults_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.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) = 4687.54010728
delta logL = 0.018592967147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4687.53971112
delta logL = 0.0189891231021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4709       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2242       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4687.540     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      197 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4709        43.477        .88579E-02   -.69206E-03
   2  alpha         2.2242        2.7600        .37589       -.11677E-04
   3  Normalizat    1.0085        .13258        .46273E-01   -.52568E-04
   4  Prefactor     .87567        .18786        .64445E-01   -.75539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4709
  alpha      = 2.22421
  Normalizat = 1.00846
  Prefactor  = 0.875665
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.540     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4709        1.1201        .61126E-04   -1.5465    
   2  alpha         2.2242        .61807        .14542E-01   -.11054    
   3  Normalizat    1.0085        .21814        .23749E-03   -.92748    
   4  Prefactor     .87567        .24520        .28504E-03   -.96997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21813e-11
Minuit parameter uncertainties:
  1  1.12013
  2  0.624625
  3  0.218331
  4  0.245508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230425': 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) = 4687.53971112
delta logL = 0.0189891231184

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.471e+00  1.120e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.224e+00  6.246e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  8.757e-01  2.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.008e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.22 +/- 0.62
Photon Flux (Free Index): 4.40e-08 +/- 3.95e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.38e-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/230425/cmap_HighResolution_255139201_255398401_4FGL_J1159.5+2914_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-05', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.66e-05', photon_flux_error='3.09e-08', dlogl='1.90e-02', energy_flux='1.77e-05', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-04 19:20:51.173640', photon_index_error2='0.62', photon_index2='2.22', ts='3.51', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.38e-05', EG='1.01', time_epoch_completed='1630808451.17', return_code='0', job_id='230425', GAL2='0.88', EG2='1.01', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.95e-08', ts2='3.54', photon_index='2.10' WHERE bin_id='61' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 230425: <4FGL_J1159.5+2914_daily_bin61> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin61> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:22 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06: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 19:06:23 2021
Terminated at Sat Sep  4 19:20:51 2021
Results reported at Sat Sep  4 19:20:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin61 179.884 29.2448 255139201 255398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             280.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

