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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin292
RA = 179.751, Dec = 9.6603
tmin = 315014401, tmax = 315273601
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='203619', job_status='RUN', time_executed='2021-09-04 17:54:45.033293', time_epoch_executed='1630803285.03' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203619/ft1_4FGL_J1159.0+0939_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203619/ft1_4FGL_J1159.0+0939_daily_bin292.fits outfile=/scratch/kocevski/203619/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin292.fits ra=179.751 dec=9.6603 rad=12.0 tmin=315014401.0 tmax=315273601.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.55
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203619/ft1_filtered_4FGL_J1159.0+0939_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/203619/ltcube_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.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/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits
.....................!
real 11.76
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203619/ft1_filtered_4FGL_J1159.0+0939_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/203619/ltcube_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.fits outfile=/scratch/kocevski/203619/expmap_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.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/203619/ltcube_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.fits
.....................!
real 190.14
user 185.14
sys 4.55

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/203619/ft1_filtered_4FGL_J1159.0+0939_daily_bin292.fits scfile=/scratch/kocevski/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits outfile=/scratch/kocevski/203619/cmap_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203619/ft1_filtered_4FGL_J1159.0+0939_daily_bin292.fits scfile=/scratch/kocevski/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits outfile=/scratch/kocevski/203619/cmap_HighResolution_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.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/203619/ft1_filtered_4FGL_J1159.0+0939_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/203619/ft2_4FGL_J1159.0+0939_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/203619/Model_4FGL_J1159.0+0939_daily_bin292.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/203619/ft1_filtered_4FGL_J1159.0+0939_daily_bin292.fits.....................!
real 54.01
user 52.50
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    285.20       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12875E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0093       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.950       1.0000         .10000E-03   10000.    
    18 'norm      '    11.491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5728       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.769       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3874       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0728       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77912       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=   5575.568     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3327 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8824        .49500E-07** at limit **
   2  Prefactor     .10000E-03    20.406       -.10954E-06** at limit **
   3  Prefactor     1.6148        2.3297        .32141E-06    .94426E-04
   4  Prefactor     3.1542        10.767        .12707E-04   -.99997E-04
   5  Prefactor     .10000E-03    9.0294        .42380E-06** at limit **
   6  Prefactor     285.23        155.38       -.34483E-05    .34512E-04
   7  Prefactor     .10000E-03    4.1343        .53255E-07** at limit **
   8  Prefactor     13.168        15.189       -.99867E-06    .40001E-03
   9  Prefactor     .10000E-03    5.2454        .19708E-07** at limit **
  10  Prefactor     5.0297        4.2303       -.54923E-06   -.12563E-03
  11  Prefactor     .10000E-03    28.646       -.26017E-05** at limit **
  12  Prefactor     1.8544        516.79       -.54091E-04   -.37698E-04
  13  Prefactor     .10000E-03    52.624        .17343E-05** at limit **
  14  Prefactor     5.4512        3.5795        .83061E-08   -.95645E-05
  15  Prefactor     4.0098        3.9682       -.61943E-07   -.10289E-03
  16  Prefactor     .10000E-03    14.624       -.18059E-05** at limit **
  17  Prefactor     14.946        12.681        .14620E-06    .43718E-04
  18  norm          11.492        4.9781       -.25205E-06    .23127E-03
  19  Prefactor     .10000E-03    16.788        .18831E-05** at limit **
  20  norm          .10000E-03    20.051        .79963E-07** at limit **
  21  Prefactor     .10000E-03    53.230       -.97590E-08** at limit **
  22  norm          3.5728        .87653       -.65302E-08    .48449E-03
  23  Prefactor     11.769        9.6402        .18330E-06   -.25701E-04
  24  Prefactor     .10000E-03    41.649        .34295E-05** at limit **
  25  norm          1.3876        1.6040        .19068E-06    .63426E-04
  26  Normalizat    1.0724        .21565        .20566E-05   -.61204E-04
  27  Prefactor     .77938        .18136       -.39904E-05    .15939E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6148
  Prefactor  = 3.1542
  Prefactor  = 0.0001
  Prefactor  = 285.225
  Prefactor  = 0.0001
  Prefactor  = 13.1676
  Prefactor  = 0.0001
  Prefactor  = 5.02967
  Prefactor  = 0.0001
  Prefactor  = 1.85439
  Prefactor  = 0.000100001
  Prefactor  = 5.45124
  Prefactor  = 4.00977
  Prefactor  = 0.0001
  Prefactor  = 14.9459
  norm       = 11.4923
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57283
  Prefactor  = 11.7686
  Prefactor  = 0.000100001
  norm       = 1.38758
  Normalizat = 1.07242
  Prefactor  = 0.77938
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.568     FROM HESSE     STATUS=OK           490 CALLS     3817 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8841        .12381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6148        2.3081        .13182E-03   -1.5454    
   4  Prefactor     3.1542        11.083        .11415E-02   -1.5353    
   5  Prefactor     .10000E-03    9.0340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     285.23        155.36        .12015E-03   -1.2314    
   7  Prefactor     .10000E-03    4.1429        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.168        15.333        .11038E-03   -1.4982    
   9  Prefactor     .10000E-03    5.2496        .16702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0297        4.2261        .13385E-03   -1.5259    
  11  Prefactor     .10000E-03    28.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8544        597.07        .29483E-02   -1.5436    
  13  Prefactor     .10000E-03    53.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4512        3.5665        .10328E-03   -1.5241    
  15  Prefactor     4.0098        3.9537        .13335E-03   -1.5307    
  16  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.946        12.678        .10359E-03   -1.4935    
  18  norm          11.492        4.9793        .98746E-04   -1.5030    
  19  Prefactor     .10000E-03    16.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    20.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5728        .87739        .31545E-04   -1.5330    
  23  Prefactor     11.769        9.6394        .11677E-03   -1.5022    
  24  Prefactor     .10000E-03    42.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3876        1.5771        .96958E-04   -1.5472    
  26  Normalizat    1.0724        .25388        .26981E-03   -.90642    
  27  Prefactor     .77938        .21128        .27213E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31521e-09
Minuit parameter uncertainties:
  1  9.01849e-07
  2  2.41288e-05
  3  2.30822
  4  11.0903
  5  2.04906e-05
  6  155.589
  7  1.34588e-05
  8  15.3375
  9  2.57862e-06
  10  4.22635
  11  0.000187093
  12  67.2346
  13  0.000427577
  14  3.56669
  15  3.95399
  16  1.76776e-05
  17  12.6807
  18  4.97953
  19  0.000135782
  20  4.28805e-05
  21  2.20426e-05
  22  0.877392
  23  9.6407
  24  0.000304224
  25  1.57716
  26  0.254172
  27  0.211499
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.346e-05  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:  7.794e-01  2.115e-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.072e+00  2.542e-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: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/203619/likelihoodResults_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.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) = 5575.56881365
delta logL = -0.00114303312967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5575.56767053
delta logL = 8.32014848129e-08

Fit tolerance = 1e-08

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

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

 FCN=   5575.568     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    56.896        .14970E-02** at limit **
   2  Index         2.0628        8.1657        .50000        .25333E-04
   3  Normalizat    1.0724        .18737E-01    .26980E-03   -.38766E-05
   4  Prefactor     .77938        .16459E-01    .27213E-03   -.33003E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010103
  Index      = 2.06284
  Normalizat = 1.07242
  Prefactor  = 0.779377
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.568     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10103E-03    236.57        .29939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0628        8.5673        .50000       -.62788    
   3  Normalizat    1.0724        .40322E-01    .10792E-04   -.90642    
   4  Prefactor     .77938        .35414E-01    .10885E-04   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.46994e-08
Minuit parameter uncertainties:
  1  0.0313385
  2  598.957
  3  0.0403228
  4  0.0354154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203619': 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) = 5575.56767025
delta logL = 3.61063030141e-07

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.010e-04  3.134e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.063e+00  5.990e+02  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:  7.794e-01  3.542e-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.072e+00  4.032e-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/203619/cmap_HighResolution_315014401_315273601_4FGL_J1159.0+0939_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-04 18:07:19.820868', job_id='203619', GAL2='0.78', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630804039.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='292' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 203619: <4FGL_J1159.0+0939_daily_bin292> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin292 179.751 9.6603 315014401 315273601 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 :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

