/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 1 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin126
RA = 179.884, Dec = 29.2448
tmin = 271987201, tmax = 272246401
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='232991', job_status='RUN', time_executed='2021-09-04 19:15:37.034222', time_epoch_executed='1630808137.03' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232991/ft1_4FGL_J1159.5+2914_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232991/ft2_4FGL_J1159.5+2914_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232991/ft1_4FGL_J1159.5+2914_daily_bin126.fits outfile=/scratch/kocevski/232991/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin126.fits ra=179.884 dec=29.2448 rad=12.0 tmin=271987201.0 tmax=272246401.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.62
user 1.43
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232991/ft2_4FGL_J1159.5+2914_daily_bin126.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/232991/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin126.fits evtable="EVENTS" outfile="/scratch/kocevski/232991/ft1_filtered_4FGL_J1159.5+2914_daily_bin126.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/232991/ft1_filtered_4FGL_J1159.5+2914_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/232991/ft2_4FGL_J1159.5+2914_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/232991/ltcube_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.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/232991/ft2_4FGL_J1159.5+2914_daily_bin126.fits
.....................!
real 13.30
user 12.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232991/ft1_filtered_4FGL_J1159.5+2914_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/232991/ft2_4FGL_J1159.5+2914_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/232991/ltcube_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.fits outfile=/scratch/kocevski/232991/expmap_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.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/232991/ltcube_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.fits
.....................!
real 191.68
user 185.90
sys 4.94

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/232991/ft1_filtered_4FGL_J1159.5+2914_daily_bin126.fits scfile=/scratch/kocevski/232991/ft2_4FGL_J1159.5+2914_daily_bin126.fits outfile=/scratch/kocevski/232991/cmap_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232991/ft1_filtered_4FGL_J1159.5+2914_daily_bin126.fits scfile=/scratch/kocevski/232991/ft2_4FGL_J1159.5+2914_daily_bin126.fits outfile=/scratch/kocevski/232991/cmap_HighResolution_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.229       1.0000         .10000E-03   10000.    
     3 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.225       1.0000         .10000E-03   10000.    
     8 'norm      '    .10986E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.923       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51765E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12279E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77677E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2563       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17572E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7370       1.0000         .10000E-03   10000.    
    26 'norm      '    .84348       1.0000         .10000E-03   10000.    
    27 'norm      '    .15603E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.265       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10924E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3554       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78906       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=   5998.466     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4233 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2408        .33092E-07** at limit **
   2  norm          15.227        13.428        .49663E-06   -.44929E-04
   3  norm          .10000E-03    8.8184        .14646E-05** at limit **
   4  Prefactor     .10000E-03    12.908       -.55728E-05** at limit **
   5  Prefactor     .10000E-03    1.1064       -.53082E-08** at limit **
   6  Prefactor     .10000E-03    20.047       -.93879E-05** at limit **
   7  Prefactor     12.206        21.671       -.48304E-05    .82473E-04
   8  norm          .10004E-03    1.1093        .35760E-06** at limit **
   9  Prefactor     .10000E-03    8.3518       -.58749E-06** at limit **
  10  Prefactor     .10000E-03    2.4705        .73815E-08** at limit **
  11  norm          4.3642        1.3445       -.31088E-07   -.15589E-03
  12  Prefactor     38.958        21.929        .58931E-05    .39535E-05
  13  Prefactor     .10002E-03    6.8190        .54599E-06** at limit **
  14  Prefactor     .25399        1.2510       -.16526E-05   -.94733E-03
  15  Prefactor     .10000E-03    15.833        .42891E-05** at limit **
  16  Prefactor     .10000E-03    17.513       -.63082E-07** at limit **
  17  norm          .10000E-03    .38339       -.68496E-07** at limit **
  18  Prefactor     .10000E-03    1.3124       -.33838E-07** at limit **
  19  Prefactor     44.598        31.224        .27752E-05   -.14276E-03
  20  Prefactor     .78665E-01    1.4136       -.18637E-06   -.21184E-04
  21  norm          6.2564        2.6842       -.88834E-08    .63420E-04
  22  Prefactor     .10003E-03    3.9041        .36790E-06** at limit **
  23  Prefactor     .10000E-03    .54112       -.13574E-06** at limit **
  24  Prefactor     5.0107        2.3343       -.15313E-07   -.93873E-04
  25  Prefactor     3.7371        3.6503       -.27938E-06    .17685E-03
  26  norm          .84353        .28428        .24772E-07   -.27214E-03
  27  norm          .10001E-03    3.0955        .52491E-06** at limit **
  28  Prefactor     11.263        9.3833       -.20944E-07   -.36414E-04
  29  Prefactor     .10000E-03    70.758        .20567E-05** at limit **
  30  Normalizat    1.3554        .19449       -.13035E-05    .20667E-03
  31  Prefactor     .78944        .20889        .12073E-05   -.72700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.2267
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.2063
  norm       = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.36422
  Prefactor  = 38.9583
  Prefactor  = 0.000100016
  Prefactor  = 0.253987
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5978
  Prefactor  = 0.0786647
  norm       = 6.25639
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 5.01072
  Prefactor  = 3.73713
  norm       = 0.843528
  norm       = 0.000100008
  Prefactor  = 11.2633
  Prefactor  = 0.0001
  Normalizat = 1.35544
  Prefactor  = 0.789436
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.466     FROM HESSE     STATUS=OK           632 CALLS     4865 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2744        .11317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.227        13.408        .10263E-03   -1.4927    
   3  norm          .10000E-03    8.8937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9049        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.206        21.810        .11457E-03   -1.5009    
   8  norm          .10004E-03    15.656        .15569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4990        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3642        1.3421        .48234E-04   -1.5290    
  12  Prefactor     38.958        22.225        .64245E-04   -1.4459    
  13  Prefactor     .10002E-03    41.988        .39103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .25399        2.2194        .16406E-02   -1.5607    
  15  Prefactor     .10000E-03    15.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .39113        .46807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3241        .86604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.598        31.136        .60038E-04   -1.4371    
  20  Prefactor     .78665E-01    18.361        .17728E-02   -1.5652    
  21  norm          6.2564        2.6835        .80548E-04   -1.5208    
  22  Prefactor     .10003E-03    28.774        .29694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .54198        .55615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0107        2.3335        .77299E-04   -1.5260    
  25  Prefactor     3.7371        3.6436        .14170E-03   -1.5321    
  26  norm          .84353        .28399        .22936E-04   -1.5524    
  27  norm          .10001E-03    13.954        .26223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.263        9.3769        .11937E-03   -1.5037    
  29  Prefactor     .10000E-03    70.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3554        .23218        .22882E-03   -.81926    
  31  Prefactor     .78944        .24781        .32849E-03   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16263e-08
Minuit parameter uncertainties:
  1  6.55328e-06
  2  13.4108
  3  3.52806e-05
  4  0.000178325
  5  1.20469e-05
  6  0.000343679
  7  21.8242
  8  0.00164247
  9  6.40095e-05
  10  6.12489e-06
  11  1.34214
  12  22.2301
  13  0.00164595
  14  1.50138
  15  0.000180492
  16  3.34332e-06
  17  4.51138e-06
  18  1.05629e-06
  19  31.1472
  20  2.40282
  21  2.68356
  22  0.0018656
  23  6.08332e-07
  24  2.33355
  25  3.64382
  26  0.283992
  27  0.000684292
  28  9.37809
  29  0.000131686
  30  0.232363
  31  0.248162
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.000e-04  4.511e-06  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.894e-01  2.482e-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.355e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232991/likelihoodResults_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5998.46614729
delta logL = -8.43915586302e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5998.33998351
delta logL = 0.126079391233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28151E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81240       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5998.340     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      335 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28153E-01    .64939E-01    .24261E-03    .23401E-01
   2  alpha         5.0000        4.4521        .50000    ** at limit **
   3  Normalizat    1.3238        .22705        .23100E-03   -.26576E-04
   4  Prefactor     .81242        .25103        .32427E-03   -.10938E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0281526
  alpha      = 5
  Normalizat = 1.32383
  Prefactor  = 0.81242
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.340     FROM HESSE     STATUS=OK            31 CALLS      366 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28153E-01    .62759E-01    .48522E-04   -1.5674    
   2  alpha         5.0000        4.3793        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3238        .22740        .92401E-05   -.82858    
   4  Prefactor     .81242        .25136        .12971E-04   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9918e-12
Minuit parameter uncertainties:
  1  0.0627589
  2  2.07228e-06
  3  0.227572
  4  0.251714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232991': 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) = 5998.3399835
delta logL = 0.126079399482

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.815e-02  6.276e-02  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  5.000e+00  2.072e-06  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.124e-01  2.517e-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.324e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.884 29.245

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/232991/cmap_HighResolution_271987201_272246401_4FGL_J1159.5+2914_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-04 19:31:11.274905', job_id='232991', GAL2='0.81', fit_tolerance='1e-08', EG2='1.32', EG='1.36', time_epoch_completed='1630809071.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.26e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='126' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 232991: <4FGL_J1159.5+2914_daily_bin126> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin126> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:25 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:27 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:15:27 2021
Terminated at Sat Sep  4 19:31:12 2021
Results reported at Sat Sep  4 19:31:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin126 179.884 29.2448 271987201 272246401 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 :                                   931.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

