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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin56
RA = 179.884, Dec = 29.2448
tmin = 253843201, tmax = 254102401
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='230418', job_status='RUN', time_executed='2021-09-04 19:08:16.465061', time_epoch_executed='1630807696.47' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230418/ft1_4FGL_J1159.5+2914_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230418/ft1_4FGL_J1159.5+2914_daily_bin56.fits outfile=/scratch/kocevski/230418/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin56.fits ra=179.884 dec=29.2448 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.50
user 1.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.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/230418/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/230418/ltcube_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.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/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits
.....................!
real 12.38
user 11.97
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/230418/ltcube_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.fits outfile=/scratch/kocevski/230418/expmap_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.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/230418/ltcube_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.fits
.....................!
real 190.98
user 185.59
sys 5.02

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/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits scfile=/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits outfile=/scratch/kocevski/230418/cmap_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits scfile=/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits outfile=/scratch/kocevski/230418/cmap_HighResolution_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230418/Model_4FGL_J1159.5+2914_daily_bin56.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/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits.....................!
real 49.07
user 47.78
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits', '/scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits', expMap='/scratch/kocevski/230418/expmap_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.fits', expCube='/scratch/kocevski/230418/ltcube_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230418/Model_4FGL_J1159.5+2914_daily_bin56.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/230418/ft1_filtered_4FGL_J1159.5+2914_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/230418/ft2_4FGL_J1159.5+2914_daily_bin56.fits
Exposure map: /scratch/kocevski/230418/expmap_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.fits
Exposure cube: /scratch/kocevski/230418/ltcube_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230418/Model_4FGL_J1159.5+2914_daily_bin56.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) = 5277.8644122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20109E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .35957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13079E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2511       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.482       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.836       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1279       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.916       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4524       1.0000         .10000E-03   10000.    
    21 'norm      '    7.1329       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2264       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.6743       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7901       1.0000         .10000E-03   10000.    
    26 'norm      '    .19211       1.0000         .10000E-03   10000.    
    27 'norm      '    2.2433       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.707       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2514       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71737       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5277.851     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4138 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8625        .66390E-05** at limit **
   2  norm          .10000E-03    3.8701       -.29783E-07** at limit **
   3  norm          .33357        42.993       -.16040E-04    .13161E-03
   4  Prefactor     .10000E-03    11.173       -.23528E-06** at limit **
   5  Prefactor     1.1898        1.7539       -.25270E-06   -.22949E-03
   6  Prefactor     .10000E-03    11.043        .65507E-07** at limit **
   7  Prefactor     .10000E-03    23.069       -.45107E-06** at limit **
   8  norm          .10000E-03    .69282       -.79866E-07** at limit **
   9  Prefactor     11.103        14.996        .42302E-06    .44869E-04
  10  Prefactor     .10000E-03    1.6389       -.68922E-07** at limit **
  11  norm          .71582        .90566        .45599E-06    .69836E-03
  12  Prefactor     .10000E-03    26.863       -.55254E-06** at limit **
  13  Prefactor     8.2479        10.272       -.16626E-06    .53256E-04
  14  Prefactor     2.0256        1.6513       -.18147E-07    .18058E-03
  15  Prefactor     12.477        24.799       -.20170E-06    .33113E-04
  16  Prefactor     27.718        62.439       -.14073E-06    .95714E-04
  17  norm          3.1278        1.4282       -.11802E-07    .24898E-03
  18  Prefactor     .10000E-03    1.1545       -.38099E-07** at limit **
  19  Prefactor     13.921        26.367       -.22856E-06    .90483E-05
  20  Prefactor     1.4518        2.1926       -.13578E-06    .16223E-03
  21  norm          7.1326        3.6009       -.13789E-07   -.12091E-04
  22  Prefactor     .10000E-03    2.4471       -.55149E-07** at limit **
  23  Prefactor     1.2263        2.0737       -.12480E-06    .84940E-04
  24  Prefactor     7.6740        3.0942        .23936E-08    .17361E-03
  25  Prefactor     3.7899        4.0457        .35380E-07    .10821E-04
  26  norm          .19209        .15637       -.30366E-08    .47642E-03
  27  norm          2.2424        4.9138       -.30274E-06    .27254E-03
  28  Prefactor     23.706        13.479        .71146E-08    .66672E-04
  29  Prefactor     .10000E-03    37.104       -.21742E-06** at limit **
  30  Normalizat    1.2510        .19372       -.76162E-06    .11545E-04
  31  Prefactor     .71801        .21458        .29269E-05    .26975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.333571
  Prefactor  = 0.0001
  Prefactor  = 1.18975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1027
  Prefactor  = 0.0001
  norm       = 0.715815
  Prefactor  = 0.0001
  Prefactor  = 8.24787
  Prefactor  = 2.02565
  Prefactor  = 12.4766
  Prefactor  = 27.7179
  norm       = 3.12776
  Prefactor  = 0.0001
  Prefactor  = 13.9206
  Prefactor  = 1.45181
  norm       = 7.1326
  Prefactor  = 0.0001
  Prefactor  = 1.22633
  Prefactor  = 7.67402
  Prefactor  = 3.78991
  norm       = 0.192088
  norm       = 2.24239
  Prefactor  = 23.7062
  Prefactor  = 0.0001
  Normalizat = 1.25103
  Prefactor  = 0.718011
 **********
 **   18 **HESSE 
 **********

 FCN=   5277.851     FROM HESSE     STATUS=OK           632 CALLS     4770 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.181        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8720        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .33357        75.197        .41992E-02   -1.5592    
   4  Prefactor     .10000E-03    11.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1898        1.7174        .11305E-03   -1.5490    
   6  Prefactor     .10000E-03    11.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .69757        .59067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.103        15.031        .12022E-03   -1.5041    
  10  Prefactor     .10000E-03    1.6452        .90816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .71582        .89496        .74760E-03   -1.5539    
  12  Prefactor     .10000E-03    27.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2479        10.266        .13957E-03   -1.5134    
  14  Prefactor     2.0256        1.6547        .81080E-04   -1.5423    
  15  Prefactor     12.477        24.834        .11338E-03   -1.5001    
  16  Prefactor     27.718        62.451        .75933E-04   -1.4655    
  17  norm          3.1278        1.4268        .55986E-04   -1.5354    
  18  Prefactor     .10000E-03    1.1622        .76211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.921        26.356        .10737E-03   -1.4962    
  20  Prefactor     1.4518        2.1643        .12774E-03   -1.5467    
  21  norm          7.1326        3.6126        .87240E-04   -1.5174    
  22  Prefactor     .10000E-03    2.4525        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2263        2.0357        .12212E-03   -1.5486    
  24  Prefactor     7.6740        3.0896        .76107E-04   -1.5154    
  25  Prefactor     3.7899        4.0405        .14528E-03   -1.5319    
  26  norm          .19209        .15368        .25074E-04   -1.5620    
  27  norm          2.2424        4.8786        .22366E-03   -1.5408    
  28  Prefactor     23.706        13.475        .82269E-04   -1.4734    
  29  Prefactor     .10000E-03    37.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2510        .22965        .22313E-03   -.85040    
  31  Prefactor     .71801        .25211        .32554E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97104e-09
Minuit parameter uncertainties:
  1  0.000330496
  2  1.98345e-06
  3  10.0279
  4  1.99595e-05
  5  1.71744
  6  1.20467e-05
  7  0.000125253
  8  5.6407e-06
  9  15.0363
  10  5.5751e-06
  11  0.894972
  12  8.07769e-05
  13  10.2682
  14  1.65469
  15  24.8545
  16  62.5985
  17  1.42678
  18  8.96494e-07
  19  26.3778
  20  2.16438
  21  3.6127
  22  1.70957e-06
  23  2.03582
  24  3.08967
  25  4.04075
  26  0.15368
  27  4.87943
  28  13.4769
  29  5.63799e-05
  30  0.229839
  31  0.252517
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.128e+00  1.427e+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:  7.180e-01  2.525e-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.251e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.74
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 8.49e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 1.73e-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) = 5277.79524557
delta logL = 0.0560333648837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5277.7935611
delta logL = 0.0577178297672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1831       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2474       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72634       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=   5277.794     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      209 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1831        2.9051        .56783E-02    .26439E-02
   2  alpha         2.2474        .80079        .26633       -.43959E-05
   3  Normalizat    1.2377        .18858        .50674E-01    .52268E-05
   4  Prefactor     .72635        .21361        .73141E-01    .17760E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18312
  alpha      = 2.24736
  Normalizat = 1.23766
  Prefactor  = 0.726352
 **********
 **   18 **HESSE 
 **********

 FCN=   5277.794     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1831        1.3885        .54125E-04   -1.5351    
   2  alpha         2.2474        .42117        .10825E-01   -.10123    
   3  Normalizat    1.2377        .22179        .22403E-03   -.85447    
   4  Prefactor     .72635        .24882        .32372E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91908e-10
Minuit parameter uncertainties:
  1  1.38848
  2  0.423207
  3  0.221963
  4  0.249203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230418': 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) = 5277.7935611
delta logL = 0.0577178341337

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.183e+00  1.388e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.247e+00  4.232e-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:  7.264e-01  2.492e-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.238e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.82
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.25 +/- 0.42
Photon Flux (Free Index): 9.70e-08 +/- 5.38e-08
Energy Flux (Free Index): 3.55e-05 +/- 1.69e-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/230418/cmap_HighResolution_253843201_254102401_4FGL_J1159.5+2914_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.49e-08', energy_flux2='3.55e-05', photon_flux_error='3.87e-08', dlogl='5.77e-02', energy_flux='3.80e-05', photon_flux2='9.70e-08', job_status='DONE', time_completed='2021-09-04 19:20:34.806705', photon_index_error2='0.42', photon_index2='2.25', ts='14.74', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.25', time_epoch_completed='1630808434.81', return_code='0', job_id='230418', GAL2='0.73', EG2='1.24', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.38e-08', ts2='14.82', photon_index='2.10' WHERE bin_id='56' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 230418: <4FGL_J1159.5+2914_daily_bin56> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin56> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:21 2021
Job was executed on host(s) <bullet0076>, 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:35 2021
Results reported at Sat Sep  4 19:20:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin56 179.884 29.2448 253843201 254102401 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 :                                   736.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

