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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin925
RA = 179.751, Dec = 9.6603
tmin = 479088001, tmax = 479347201
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='208692', job_status='RUN', time_executed='2021-09-04 18:08:50.901617', time_epoch_executed='1630804130.9' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208692/ft1_4FGL_J1159.0+0939_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208692/ft2_4FGL_J1159.0+0939_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208692/ft1_4FGL_J1159.0+0939_daily_bin925.fits outfile=/scratch/kocevski/208692/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin925.fits ra=179.751 dec=9.6603 rad=12.0 tmin=479088001.0 tmax=479347201.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.46
user 3.19
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208692/ft1_filtered_4FGL_J1159.0+0939_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/208692/ft2_4FGL_J1159.0+0939_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/208692/ltcube_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.fits outfile=/scratch/kocevski/208692/expmap_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.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/208692/ltcube_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.fits
.....................!
real 189.84
user 185.14
sys 4.34

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/208692/ft1_filtered_4FGL_J1159.0+0939_daily_bin925.fits scfile=/scratch/kocevski/208692/ft2_4FGL_J1159.0+0939_daily_bin925.fits outfile=/scratch/kocevski/208692/cmap_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208692/ft1_filtered_4FGL_J1159.0+0939_daily_bin925.fits scfile=/scratch/kocevski/208692/ft2_4FGL_J1159.0+0939_daily_bin925.fits outfile=/scratch/kocevski/208692/cmap_HighResolution_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12233E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22630E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6791       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66286       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-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 '    84.768       1.0000         .10000E-03   10000.    
    22 'norm      '    2.7422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7483       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4095       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75187       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=   5267.309     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3257 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.249        11.483        .68238E-06    .66282E-04
   2  Prefactor     .10000E-03    47.989       -.35236E-05** at limit **
   3  Prefactor     3.1105        2.7192        .69506E-07   -.22355E-04
   4  Prefactor     .10000E-03    5.3225        .36539E-07** at limit **
   5  Prefactor     2.1163        49.323        .99872E-05    .14634E-04
   6  Prefactor     .10000E-03    49.534       -.42083E-05** at limit **
   7  Prefactor     .10006E-03    7.1269       -.19940E-05** at limit **
   8  Prefactor     2.8036        8.8096        .55901E-05    .66924E-05
   9  Prefactor     .10000E-03    6.9702       -.28857E-06** at limit **
  10  Prefactor     .10000E-03    1.7865        .29926E-07** at limit **
  11  Prefactor     .10000E-03    36.065        .16310E-05** at limit **
  12  Prefactor     .10000E-03    76.294        .42166E-05** at limit **
  13  Prefactor     1.6310        98.070        .69837E-05    .22877E-06
  14  Prefactor     2.1497        2.1484        .74771E-07   -.14066E-06
  15  Prefactor     .66364        2.1631        .42278E-06    .44395E-04
  16  Prefactor     .10000E-03    15.860       -.10466E-05** at limit **
  17  Prefactor     .10000E-03    8.0878       -.16620E-05** at limit **
  18  norm          .10000E-03    2.3361        .12885E-07** at limit **
  19  Prefactor     .10000E-03    11.627        .64258E-06** at limit **
  20  norm          .10000E-03    13.828        .24146E-06** at limit **
  21  Prefactor     84.776        94.617       -.97375E-06   -.60277E-05
  22  norm          2.7423        .77561       -.48466E-08   -.39114E-03
  23  Prefactor     .10000E-03    7.5839        .10961E-05** at limit **
  24  Prefactor     .10000E-03    34.485        .19735E-05** at limit **
  25  norm          1.7489        1.9049        .13886E-06    .31605E-05
  26  Normalizat    1.4093        .20211       -.81605E-06   -.13932E-03
  27  Prefactor     .75195        .18320       -.14274E-05   -.10909E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2494
  Prefactor  = 0.0001
  Prefactor  = 3.11052
  Prefactor  = 0.0001
  Prefactor  = 2.11628
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 2.80356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63097
  Prefactor  = 2.14971
  Prefactor  = 0.663642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 84.7764
  norm       = 2.7423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74891
  Normalizat = 1.40928
  Prefactor  = 0.751948
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.309     FROM HESSE     STATUS=OK           482 CALLS     3739 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.249        11.490        .55025E-03   -1.4980    
   2  Prefactor     .10000E-03    48.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1105        2.7142        .10817E-03   -1.5355    
   4  Prefactor     .10000E-03    5.3459        .16351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1163        49.196        .14165E-02   -1.5417    
   6  Prefactor     .10000E-03    49.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10006E-03    37.068        .35365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8036        8.8316        .12122E-02   -1.5373    
   9  Prefactor     .10000E-03    6.9964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8093        .94686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    77.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6310        99.583        .32513E-03   -1.5453    
  14  Prefactor     2.1497        2.1293        .10087E-03   -1.5415    
  15  Prefactor     .66364        2.0972        .18192E-03   -1.5545    
  16  Prefactor     .10000E-03    15.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3938        .21618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     84.776        94.595        .43631E-04   -1.3864    
  22  norm          2.7423        .77357        .32295E-04   -1.5377    
  23  Prefactor     .10000E-03    7.6473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7489        1.8867        .99681E-04   -1.5443    
  26  Normalizat    1.4093        .23921        .23164E-03   -.80361    
  27  Prefactor     .75195        .21690        .27818E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75494e-09
Minuit parameter uncertainties:
  1  11.4917
  2  6.98701e-05
  3  2.71434
  4  7.98438e-06
  5  20.4255
  6  8.9446e-05
  7  0.00305355
  8  8.83566
  9  7.11318e-06
  10  3.01465e-06
  11  5.77952e-05
  12  0.000125726
  13  25.5325
  14  2.1294
  15  2.0974
  16  3.68143e-06
  17  8.28211e-05
  18  3.00467e-06
  19  1.32425e-05
  20  5.68999e-06
  21  94.7641
  22  0.77357
  23  1.69881e-06
  24  1.68526e-05
  25  1.88677
  26  0.2394
  27  0.217143
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  3.054e-03  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.519e-01  2.171e-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.409e+00  2.394e-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: 7.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208692/likelihoodResults_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.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) = 5267.30931691
delta logL = -0.000127708469336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5267.30931688
delta logL = -0.000127680260448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96340E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1322       1.0000          .0000       10.000    
     3 'Normalizat'    1.4093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75195       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5267.293     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      298 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66824        12.187        .30898E-03   -.21340E-03
   2  Index         2.7969        2.6054        .12169E-01    .70963E-04
   3  Normalizat    1.4014        .23898        .23220E-03    .12122E-03
   4  Prefactor     .75464        .21512        .27773E-03    .60584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.66824
  Index      = 2.79693
  Normalizat = 1.40141
  Prefactor  = 0.754643
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.293     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66824        8.6532        .12359E-04   -1.5871    
   2  Index         2.7969        2.2379        .48675E-03   -.45628    
   3  Normalizat    1.4014        .23934        .46440E-04   -.80588    
   4  Prefactor     .75464        .21530        .11109E-04   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0645e-10
Minuit parameter uncertainties:
  1  4.80983
  2  2.34287
  3  0.239527
  4  0.215543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208692': 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) = 5267.29252813
delta logL = 0.016661074178

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  6.682e-01  4.810e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.797e+00  2.343e+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:  7.546e-01  2.155e-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.401e+00  2.395e-01  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/208692/cmap_HighResolution_479088001_479347201_4FGL_J1159.0+0939_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-09-04 18:21:12.120572', job_id='208692', GAL2='0.75', fit_tolerance='1e-08', EG2='1.40', EG='1.41', time_epoch_completed='1630804872.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.67e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='925' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 208692: <4FGL_J1159.0+0939_daily_bin925> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin925> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:05:58 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:06:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:06:01 2021
Terminated at Sat Sep  4 18:21:12 2021
Results reported at Sat Sep  4 18:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin925 179.751 9.6603 479088001 479347201 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

