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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin551
RA = 179.751, Dec = 9.6603
tmin = 382147201, tmax = 382406401
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='205300', job_status='RUN', time_executed='2021-09-04 17:56:44.167629', time_epoch_executed='1630803404.17' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205300/ft1_4FGL_J1159.0+0939_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205300/ft2_4FGL_J1159.0+0939_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205300/ft1_4FGL_J1159.0+0939_daily_bin551.fits outfile=/scratch/kocevski/205300/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin551.fits ra=179.751 dec=9.6603 rad=12.0 tmin=382147201.0 tmax=382406401.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.42
user 3.15
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205300/ft1_filtered_4FGL_J1159.0+0939_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/205300/ft2_4FGL_J1159.0+0939_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/205300/ltcube_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.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/205300/ft2_4FGL_J1159.0+0939_daily_bin551.fits
.....................!
real 11.73
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205300/ft1_filtered_4FGL_J1159.0+0939_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/205300/ft2_4FGL_J1159.0+0939_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/205300/ltcube_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.fits outfile=/scratch/kocevski/205300/expmap_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.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/205300/ltcube_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.fits
.....................!
real 191.05
user 185.86
sys 4.85

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/205300/ft1_filtered_4FGL_J1159.0+0939_daily_bin551.fits scfile=/scratch/kocevski/205300/ft2_4FGL_J1159.0+0939_daily_bin551.fits outfile=/scratch/kocevski/205300/cmap_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205300/ft1_filtered_4FGL_J1159.0+0939_daily_bin551.fits scfile=/scratch/kocevski/205300/ft2_4FGL_J1159.0+0939_daily_bin551.fits outfile=/scratch/kocevski/205300/cmap_HighResolution_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4178       1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8080       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44618E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6944       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .61238       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    33.621       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1597       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83193       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=   6089.599     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3280 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4192        9.0888       -.11902E-05   -.25860E-03
   2  Prefactor     79.903        51.527       -.74039E-07    .48579E-05
   3  Prefactor     2.4647        2.0425       -.54845E-07    .56075E-04
   4  Prefactor     .10000E-03    3.7314       -.55120E-07** at limit **
   5  Prefactor     .10000E-03    10.782        .49282E-06** at limit **
   6  Prefactor     3.7158        144.08       -.20343E-03    .20936E-04
   7  Prefactor     .10000E-03    2.7440        .46979E-07** at limit **
   8  Prefactor     .10107E-03    5.1666       -.16156E-05** at limit **
   9  Prefactor     .10000E-03    6.7164       -.15588E-07** at limit **
  10  Prefactor     .10000E-03    1.0216        .92132E-08** at limit **
  11  Prefactor     .10000E-03    52.624        .17375E-04** at limit **
  12  Prefactor     48.468        43.811        .18982E-04    .19736E-03
  13  Prefactor     .10000E-03    18.709       -.10729E-04** at limit **
  14  Prefactor     .10000E-03    .97088        .18302E-08** at limit **
  15  Prefactor     6.6946        3.3946       -.72879E-07   -.44186E-04
  16  Prefactor     .10000E-03    12.993       -.72020E-05** at limit **
  17  Prefactor     .10000E-03    22.377        .25942E-05** at limit **
  18  norm          .10000E-03    2.0077       -.15194E-06** at limit **
  19  Prefactor     .10000E-03    14.202        .10678E-04** at limit **
  20  norm          .10000E-03    26.936        .11544E-04** at limit **
  21  Prefactor     .10000E-03    43.787       -.12153E-04** at limit **
  22  norm          .61237        .58119       -.20940E-06   -.19733E-02
  23  Prefactor     25.971        15.580        .22335E-06    .15317E-03
  24  Prefactor     .10000E-03    41.297       -.14391E-04** at limit **
  25  norm          33.621        4.2434       -.39949E-07    .11982E-03
  26  Normalizat    1.1594        .20288       -.17265E-05    .47970E-03
  27  Prefactor     .83223        .17352        .33461E-05    .19789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41915
  Prefactor  = 79.9028
  Prefactor  = 2.46472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71583
  Prefactor  = 0.0001
  Prefactor  = 0.000101074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.612371
  Prefactor  = 25.9713
  Prefactor  = 0.0001
  norm       = 33.6212
  Normalizat = 1.1594
  Prefactor  = 0.832234
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.599     FROM HESSE     STATUS=OK           488 CALLS     3768 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4192        9.0568        .26325E-03   -1.5397    
   2  Prefactor     79.903        51.777        .44930E-04   -1.3918    
   3  Prefactor     2.4647        2.0414        .98612E-04   -1.5394    
   4  Prefactor     .10000E-03    3.7393        .14721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7158        145.16        .20684E-03   -1.5322    
   7  Prefactor     .10000E-03    2.7476        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10107E-03    8.0375        .62013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0272        .77015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    52.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.468        43.983        .57608E-04   -1.4314    
  13  Prefactor     .10000E-03    18.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .97879        .75009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6946        3.3957        .98004E-04   -1.5190    
  16  Prefactor     .10000E-03    13.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0375        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    26.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    43.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .61237        .55281        .54738E-03   -1.5551    
  23  Prefactor     25.971        15.600        .78599E-04   -1.4688    
  24  Prefactor     .10000E-03    41.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          33.621        4.2329        .54503E-04   -1.4548    
  26  Normalizat    1.1594        .23728        .26806E-03   -.87867    
  27  Prefactor     .83223        .20162        .27604E-03   -.98551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58022e-09
Minuit parameter uncertainties:
  1  9.06196
  2  51.8063
  3  2.04151
  4  1.03972e-06
  5  9.33548e-06
  6  46.5707
  7  6.49796e-06
  8  0.00587822
  9  4.71931e-07
  10  1.00823e-07
  11  4.3619e-06
  12  44.0125
  13  3.61611e-05
  14  5.17073e-07
  15  3.39584
  16  5.40605e-05
  17  0.000165506
  18  2.29555e-05
  19  9.81165e-06
  20  2.86447e-05
  21  9.12406e-06
  22  0.552816
  23  15.6026
  24  9.68326e-06
  25  4.2329
  26  0.237501
  27  0.201799
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.498e-06  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:  8.322e-01  2.018e-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.159e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 4.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205300/likelihoodResults_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.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) = 6089.60102922
delta logL = -0.00168908318301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6089.59934002
delta logL = 1.15917828225e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1160       1.0000          .0000       10.000    
     3 'Normalizat'    1.1594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83225       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6089.599     FROM MIGRAD    STATUS=FAILED        86 CALLS      239 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    62.537        .12764E-02** at limit **
   2  Index         2.0248        8.9642        .50000        .39955E-04
   3  Normalizat    1.1594        .23632E-01    .26806E-03    .29348E-04
   4  Prefactor     .83224        .21095E-01    .27603E-03    .24217E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6089.599     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      369 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    62.537        .26175E-03** at limit **
   2  Index         2.0248        8.9642        .33413E-03    .39955E-04
   3  Normalizat    1.1594        .23632E-01    .63386E-05    .29348E-04
   4  Prefactor     .83224        .21095E-01    .45678E-05    .24217E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6089.599     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      414 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.462        .25528E-02** at limit **
   2  Index         1.6295        5.3246        .50000       -.77853E-07
   3  Normalizat    1.1594        .23960E-01    .10722E-04   -.19806E-03
   4  Prefactor     .83224        .21388E-01    .11041E-04   -.19007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.6295
  Normalizat = 1.1594
  Prefactor  = 0.832236
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.599     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      443 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    312.43        .51056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6295        8.9174        .50000       -.73975    
   3  Normalizat    1.1594        .55394E-01    .21445E-05   -.87867    
   4  Prefactor     .83224        .49448E-01    .22083E-05   -.98551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.13999e-11
Minuit parameter uncertainties:
  1  0.000126408
  2  1126.79
  3  0.055397
  4  0.0494509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205300': 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): 102
logL (Free Index) = 6089.599337
delta logL = 3.13078180625e-06

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.264e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.629e+00  1.127e+03  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:  8.322e-01  4.945e-02  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.159e+00  5.540e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.751 9.660

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/205300/cmap_HighResolution_382147201_382406401_4FGL_J1159.0+0939_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2021-09-04 18:10:05.127939', job_id='205300', GAL2='0.83', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630804205.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='551' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 205300: <4FGL_J1159.0+0939_daily_bin551> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin551> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 17:56:20 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:56:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:56:21 2021
Terminated at Sat Sep  4 18:10:05 2021
Results reported at Sat Sep  4 18:10:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin551 179.751 9.6603 382147201 382406401 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 :                                   800.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            825 sec.

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

