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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin327
RA = 179.751, Dec = 9.6603
tmin = 324086401, tmax = 324345601
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='203661', job_status='RUN', time_executed='2021-09-04 17:55:19.746321', time_epoch_executed='1630803319.75' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203661/ft1_4FGL_J1159.0+0939_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203661/ft2_4FGL_J1159.0+0939_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203661/ft1_4FGL_J1159.0+0939_daily_bin327.fits outfile=/scratch/kocevski/203661/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin327.fits ra=179.751 dec=9.6603 rad=12.0 tmin=324086401.0 tmax=324345601.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 4.31
user 4.05
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203661/ft1_filtered_4FGL_J1159.0+0939_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/203661/ft2_4FGL_J1159.0+0939_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/203661/ltcube_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.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/203661/ft2_4FGL_J1159.0+0939_daily_bin327.fits
.....................!
real 13.86
user 13.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203661/ft1_filtered_4FGL_J1159.0+0939_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/203661/ft2_4FGL_J1159.0+0939_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/203661/ltcube_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.fits outfile=/scratch/kocevski/203661/expmap_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.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/203661/ltcube_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.fits
.....................!
real 190.72
user 185.60
sys 4.76

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/203661/ft1_filtered_4FGL_J1159.0+0939_daily_bin327.fits scfile=/scratch/kocevski/203661/ft2_4FGL_J1159.0+0939_daily_bin327.fits outfile=/scratch/kocevski/203661/cmap_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203661/ft1_filtered_4FGL_J1159.0+0939_daily_bin327.fits scfile=/scratch/kocevski/203661/ft2_4FGL_J1159.0+0939_daily_bin327.fits outfile=/scratch/kocevski/203661/cmap_HighResolution_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32264E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.444       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34058E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.782       1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-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      '    5.0862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    80.465       1.0000         .10000E-03   10000.    
    25 'norm      '    2.9082       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76495       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0693       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=   5241.728     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3333 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6147        12.633        .44193E-05   -.43474E-03
   2  Prefactor     .10000E-03    19.955        .87194E-06** at limit **
   3  Prefactor     2.6213        3.2538        .21466E-06   -.10127E-03
   4  Prefactor     .10000E-03    6.7837        .25155E-07** at limit **
   5  Prefactor     .10000E-03    30.470        .33813E-05** at limit **
   6  Prefactor     .10000E-03    42.200       -.17859E-05** at limit **
   7  Prefactor     .10193E-03    9.8824       -.20532E-06** at limit **
   8  Prefactor     .10000E-03    2.9261        .22388E-07** at limit **
   9  Prefactor     15.439        14.807        .36524E-07   -.23529E-04
  10  Prefactor     11.771        5.6933        .36038E-07   -.12411E-03
  11  Prefactor     .10001E-03    62.912        .52130E-05** at limit **
  12  Prefactor     .10000E-03    10.312        .18789E-05** at limit **
  13  Prefactor     .10000E-03    7.7412        .27873E-07** at limit **
  14  Prefactor     .10003E-03    1.4834        .47488E-07** at limit **
  15  Prefactor     .10000E-03    2.7117        .55777E-07** at limit **
  16  Prefactor     .10000E-03    10.831       -.13196E-05** at limit **
  17  Prefactor     14.781        13.854        .11285E-06   -.10715E-04
  18  norm          .10000E-03    4.0900        .68991E-07** at limit **
  19  Prefactor     .10000E-03    24.209       -.24111E-05** at limit **
  20  norm          .10000E-03    17.433       -.84195E-07** at limit **
  21  Prefactor     .10001E-03    56.883       -.40185E-05** at limit **
  22  norm          5.0855        1.0395        .14457E-07    .17296E-05
  23  Prefactor     .10000E-03    9.9706       -.55133E-06** at limit **
  24  Prefactor     80.459        38.249        .31437E-06    .44142E-04
  25  norm          2.9078        2.2233        .62403E-07   -.30046E-04
  26  Normalizat    .76492        .20857       -.10185E-05   -.38467E-05
  27  Prefactor     1.0694        .18018       -.20857E-06   -.27995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.6147
  Prefactor  = 0.0001
  Prefactor  = 2.62126
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000101925
  Prefactor  = 0.0001
  Prefactor  = 15.4392
  Prefactor  = 11.7715
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.7814
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 5.08555
  Prefactor  = 0.0001
  Prefactor  = 80.4592
  norm       = 2.90783
  Normalizat = 0.764923
  Prefactor  = 1.06938
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.728     FROM HESSE     STATUS=OK           492 CALLS     3825 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6147        13.653        .84727E-03   -1.5234    
   2  Prefactor     .10000E-03    20.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6213        3.2479        .13860E-03   -1.5384    
   4  Prefactor     .10000E-03    6.8296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10193E-03    18.696        .65225E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9319        .12095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.439        14.838        .10192E-03   -1.4922    
  10  Prefactor     11.771        5.6044        .11215E-03   -1.5022    
  11  Prefactor     .10001E-03    65.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    68.974        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7959        .23171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.781        13.850        .10418E-03   -1.4939    
  18  norm          .10000E-03    4.2019        .28475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    58.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0855        1.0365        .17828E-04   -1.5257    
  23  Prefactor     .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     80.459        38.261        .44773E-04   -1.3912    
  25  norm          2.9078        2.2166        .89300E-04   -1.5367    
  26  Normalizat    .76492        .23929        .29917E-03   -1.0138    
  27  Prefactor     1.0694        .20652        .23425E-03   -.90451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85202e-09
Minuit parameter uncertainties:
  1  13.6607
  2  0.000156128
  3  3.24815
  4  4.72025e-06
  5  0.000725232
  6  0.000463877
  7  0.0120029
  8  1.1468e-06
  9  14.8411
  10  5.60468
  11  0.00171502
  12  0.000246548
  13  2.7939e-06
  14  0.00263527
  15  4.92591e-06
  16  0.000174839
  17  13.8529
  18  7.86392e-06
  19  0.000474759
  20  1.34947e-05
  21  0.00123313
  22  1.03652
  23  7.37739e-05
  24  38.2726
  25  2.21666
  26  0.239615
  27  0.206678
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.019e-04  1.200e-02  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:  1.069e+00  2.067e-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:  7.649e-01  2.396e-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: 9.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203661/likelihoodResults_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.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) = 5241.72828651
delta logL = -1.03107431642e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5240.88130475
delta logL = 0.846971450164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3274       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5685       1.0000          .0000       10.000    
     3 'Normalizat'    .66307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1182       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.

 FCN=   5240.881     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      259 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3300        18.103        .95353E-02    .66547E-03
   2  Index         3.5674        2.3755        .11415        .13743E-03
   3  Normalizat    .66358        .51795E-01    .72188E-01    .48313E-04
   4  Prefactor     1.1178        .47120E-01    .36932E-01    .36566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32999
  Index      = 3.56739
  Normalizat = 0.663585
  Prefactor  = 1.11778
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.881     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3300        6838.9        .65598E-04   -1.5477    
   2  Index         3.5674        8.1191        .39963E-02   -.29059    
   3  Normalizat    .66358        .43577        .31953E-03   -1.0535    
   4  Prefactor     1.1178        .54770        .22966E-03   -.88900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32124e-05
Minuit parameter uncertainties:
  1  152.966
  2  49.9404
  3  0.438058
  4  0.550498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203661': 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) = 5240.88130178
delta logL = 0.846974421042

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.330e+00  1.530e+02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.567e+00  4.994e+01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.118e+00  5.505e-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:  6.636e-01  4.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 179.751 9.660
Photon Index (Free Index): 3.57 +/- 49.94
Photon Flux (Free Index): 8.20e-08 +/- 9.98e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.55e-04

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/203661/cmap_HighResolution_324086401_324345601_4FGL_J1159.0+0939_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='8.47e-01', photon_flux2='8.20e-08', job_status='DONE', time_completed='2021-09-04 18:07:31.363919', photon_index_error2='49.94', photon_index2='3.57', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.18e-08', energy_flux_error2='1.55e-04', EG='0.76', time_epoch_completed='1630804051.36', return_code='0', job_id='203661', GAL2='1.12', EG2='0.66', return_code2='0', photon_flux_error2='9.98e-08', ts2='1.85', photon_index='2.13' WHERE bin_id='327' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:07:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 203661: <4FGL_J1159.0+0939_daily_bin327> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin327> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:51:59 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:52:00 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:52:00 2021
Terminated at Sat Sep  4 18:07:31 2021
Results reported at Sat Sep  4 18:07:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin327 179.751 9.6603 324086401 324345601 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 :                                   729.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

