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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin414
RA = 179.751, Dec = 9.6603
tmin = 346636801, tmax = 346896001
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='205057', job_status='RUN', time_executed='2021-09-04 18:00:10.752108', time_epoch_executed='1630803610.75' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205057

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205057/ft1_4FGL_J1159.0+0939_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205057/ft2_4FGL_J1159.0+0939_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205057/ft1_4FGL_J1159.0+0939_daily_bin414.fits outfile=/scratch/kocevski/205057/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin414.fits ra=179.751 dec=9.6603 rad=12.0 tmin=346636801.0 tmax=346896001.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.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205057/ft2_4FGL_J1159.0+0939_daily_bin414.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/205057/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin414.fits evtable="EVENTS" outfile="/scratch/kocevski/205057/ft1_filtered_4FGL_J1159.0+0939_daily_bin414.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/205057/ft1_filtered_4FGL_J1159.0+0939_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/205057/ft2_4FGL_J1159.0+0939_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/205057/ltcube_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.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/205057/ft2_4FGL_J1159.0+0939_daily_bin414.fits
.....................!
real 12.15
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205057/ft1_filtered_4FGL_J1159.0+0939_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/205057/ft2_4FGL_J1159.0+0939_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/205057/ltcube_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.fits outfile=/scratch/kocevski/205057/expmap_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.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/205057/ltcube_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.fits
.....................!
real 190.31
user 185.13
sys 4.80

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/205057/ft1_filtered_4FGL_J1159.0+0939_daily_bin414.fits scfile=/scratch/kocevski/205057/ft2_4FGL_J1159.0+0939_daily_bin414.fits outfile=/scratch/kocevski/205057/cmap_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7863       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51286E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18452E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.395       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14862E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .57183       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.081       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90356       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0662       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=   5829.660     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     2834 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9216       -.41119E-08** at limit **
   2  Prefactor     .10000E-03    10.025        .10287E-07** at limit **
   3  Prefactor     2.3381        2.1803        .88001E-07    .63645E-06
   4  Prefactor     6.6019        7.8227        .68820E-07   -.11317E-04
   5  Prefactor     .10000E-03    9.9075        .65262E-06** at limit **
   6  Prefactor     .10000E-03    92.404        .53225E-05** at limit **
   7  Prefactor     2.7556        10.306        .54547E-05   -.56416E-04
   8  Prefactor     5.3264        6.7816        .95071E-07   -.18959E-06
   9  Prefactor     .10001E-03    10.875       -.97000E-06** at limit **
  10  Prefactor     3.0010        5.1559        .24703E-06   -.12723E-04
  11  Prefactor     .10000E-03    157.88        .13837E-04** at limit **
  12  Prefactor     .10000E-03    37.507       -.56496E-06** at limit **
  13  Prefactor     12.139        14.189        .11820E-06    .12586E-04
  14  Prefactor     4.6011        3.2471        .29756E-06   -.17370E-03
  15  Prefactor     .10000E-03    1.7364       -.42968E-07** at limit **
  16  Prefactor     .10000E-03    80.910       -.21198E-05** at limit **
  17  Prefactor     .10000E-03    10.445       -.11445E-05** at limit **
  18  norm          13.391        4.7913        .13976E-06    .79818E-04
  19  Prefactor     .10000E-03    13.342        .15881E-05** at limit **
  20  norm          .10000E-03    27.651        .18503E-05** at limit **
  21  Prefactor     .10000E-03    76.108       -.54175E-05** at limit **
  22  norm          .57195        .59108        .25195E-07   -.24041E-04
  23  Prefactor     16.069        12.091        .27424E-06    .28095E-04
  24  Prefactor     .10000E-03    17.052       -.17492E-05** at limit **
  25  norm          .10000E-03    1.0500        .55616E-07** at limit **
  26  Normalizat    .90358        .20099       -.17863E-05   -.40658E-04
  27  Prefactor     1.0661        .17332        .25411E-06   -.99664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33808
  Prefactor  = 6.60186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75556
  Prefactor  = 5.32637
  Prefactor  = 0.000100005
  Prefactor  = 3.00101
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.1394
  Prefactor  = 4.60115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.571949
  Prefactor  = 16.0686
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.903576
  Prefactor  = 1.06612
 **********
 **   18 **HESSE 
 **********

 FCN=   5829.660     FROM HESSE     STATUS=OK           494 CALLS     3328 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9373        .14766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3381        2.1685        .10519E-03   -1.5402    
   4  Prefactor     6.6019        7.8023        .15619E-03   -1.5194    
   5  Prefactor     .10000E-03    9.9198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    92.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7556        10.304        .12188E-02   -1.5376    
   8  Prefactor     5.3264        6.7712        .17416E-03   -1.5246    
   9  Prefactor     .10001E-03    114.88        .47335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0010        5.1119        .20162E-03   -1.5361    
  11  Prefactor     .10000E-03    158.57        .20300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.139        14.182        .11494E-03   -1.5011    
  14  Prefactor     4.6011        3.0893        .50544E-03   -1.5279    
  15  Prefactor     .10000E-03    7.3843        .18287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    81.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.391        4.7247        .86618E-04   -1.4976    
  19  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    27.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .57195        .55633        .52365E-03   -1.5557    
  23  Prefactor     16.069        12.091        .99876E-04   -1.4906    
  24  Prefactor     .10000E-03    17.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.3714        .15060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .90358        .22459        .27040E-03   -.96335    
  27  Prefactor     1.0661        .19772        .23355E-03   -.90557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26658e-09
Minuit parameter uncertainties:
  1  1.69941e-06
  2  3.17943e-06
  3  2.16861
  4  7.80351
  5  1.53835e-05
  6  0.000349071
  7  10.3103
  8  6.7722
  9  0.00157396
  10  5.11265
  11  0.000659982
  12  5.90427e-06
  13  14.1864
  14  3.08943
  15  2.58743e-06
  16  9.30111e-05
  17  5.74978e-06
  18  4.72478
  19  3.93034e-05
  20  5.4629e-05
  21  0.000316731
  22  0.556339
  23  12.0925
  24  4.21021e-05
  25  7.16315e-06
  26  0.224827
  27  0.197859
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.756e+00  1.031e+01  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.066e+00  1.979e-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:  9.036e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/205057/likelihoodResults_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.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) = 5828.9514049
delta logL = 0.708550521398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5828.94613483
delta logL = 0.713820591484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73740       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6357       1.0000          .0000       10.000    
     3 'Normalizat'    .83915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1012       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=   5828.946     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      233 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73745        11.905        .12204E-01    .26588E-02
   2  Index         3.6358        2.6621        .99070E-01    .10612E-03
   3  Normalizat    .83915        .44338E-01    .63273E-01    .14892E-04
   4  Prefactor     1.1012        .41180E-01    .37543E-01    .95140E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.737452
  Index      = 3.63578
  Normalizat = 0.839147
  Prefactor  = 1.10118
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.946     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      268 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73745        30.170        .59498E-03   -1.5536    
   2  Index         3.6358        6.7992        .50536E-02   -.27635    
   3  Normalizat    .83915        .17277        .27987E-03   -.98633    
   4  Prefactor     1.1012        .15859        .23024E-03   -.89429    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.0751e-08
Minuit parameter uncertainties:
  1  9.4382
  2  5.63777
  3  0.17288
  4  0.158662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205057': 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) = 5828.94613476
delta logL = 0.713820658071

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  7.375e-01  9.438e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.636e+00  5.638e+00  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.101e+00  1.587e-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:  8.391e-01  1.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 179.751 9.660
Photon Index (Free Index): 3.64 +/- 5.64
Photon Flux (Free Index): 5.33e-08 +/- 5.13e-08
Energy Flux (Free Index): 8.58e-06 +/- 1.11e-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/205057/cmap_HighResolution_346636801_346896001_4FGL_J1159.0+0939_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', comment='SUCCESS', energy_flux2='8.58e-06', dlogl='7.14e-01', photon_flux2='5.33e-08', job_status='DONE', time_completed='2021-09-04 18:12:38.152047', photon_index_error2='5.64', photon_index2='3.64', ts='0.08', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.08e-08', energy_flux_error2='1.11e-05', EG='0.90', time_epoch_completed='1630804358.15', return_code='0', job_id='205057', GAL2='1.10', EG2='0.84', return_code2='102', photon_flux_error2='5.13e-08', ts2='1.59', photon_index='2.13' WHERE bin_id='414' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 205057: <4FGL_J1159.0+0939_daily_bin414> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin414> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 17:56:07 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:56:08 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:08 2021
Terminated at Sat Sep  4 18:12:38 2021
Results reported at Sat Sep  4 18:12:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin414 179.751 9.6603 346636801 346896001 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 :                                   746.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            991 sec.

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

