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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin750
RA = 179.751, Dec = 9.6603
tmin = 433728001, tmax = 433987201
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='207136', job_status='RUN', time_executed='2021-09-04 18:03:25.093521', time_epoch_executed='1630803805.09' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207136/ft1_4FGL_J1159.0+0939_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207136/ft2_4FGL_J1159.0+0939_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207136/ft1_4FGL_J1159.0+0939_daily_bin750.fits outfile=/scratch/kocevski/207136/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin750.fits ra=179.751 dec=9.6603 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.12
user 5.80
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207136/ft1_filtered_4FGL_J1159.0+0939_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/207136/ft2_4FGL_J1159.0+0939_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/207136/ltcube_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.fits outfile=/scratch/kocevski/207136/expmap_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.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/207136/ltcube_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.fits
.....................!
real 189.48
user 184.35
sys 4.79

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/207136/ft1_filtered_4FGL_J1159.0+0939_daily_bin750.fits scfile=/scratch/kocevski/207136/ft2_4FGL_J1159.0+0939_daily_bin750.fits outfile=/scratch/kocevski/207136/cmap_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.751 yref=9.6603 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207136/ft1_filtered_4FGL_J1159.0+0939_daily_bin750.fits scfile=/scratch/kocevski/207136/ft2_4FGL_J1159.0+0939_daily_bin750.fits outfile=/scratch/kocevski/207136/cmap_HighResolution_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.751 yref=9.6603 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6221       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13110E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14317E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4814       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.292       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3810       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .95730       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8934       1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.230       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.7443       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .51315       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=   5140.304     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3308 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3131        13.514        .18333E-05   -.28377E-03
   2  Prefactor     .10001E-03    29.896        .42908E-05** at limit **
   3  Prefactor     9.6223        4.1885        .28068E-07    .10977E-04
   4  Prefactor     .10000E-03    4.9829        .25976E-07** at limit **
   5  Prefactor     19.491        22.143        .85809E-07    .71856E-05
   6  Prefactor     .10000E-03    34.847       -.18454E-05** at limit **
   7  Prefactor     .10000E-03    16.525        .57248E-06** at limit **
   8  Prefactor     12.644        11.232        .28836E-06    .86156E-04
   9  Prefactor     .10000E-03    20.031       -.17441E-06** at limit **
  10  Prefactor     .10007E-03    2.4732       -.65414E-06** at limit **
  11  Prefactor     .10000E-03    64.775        .19951E-05** at limit **
  12  Prefactor     .10000E-03    100.57       -.61306E-06** at limit **
  13  Prefactor     23.577        24.788        .60696E-07   -.17887E-05
  14  Prefactor     .91962        3.3517        .82820E-06   -.11245E-03
  15  Prefactor     1.4821        3.1143       -.27571E-07   -.18769E-03
  16  Prefactor     .10000E-03    11.035        .19592E-08** at limit **
  17  Prefactor     12.293        14.122        .13413E-06    .46361E-05
  18  norm          2.3802        3.9543        .27370E-06   -.95837E-04
  19  Prefactor     .10002E-03    83.043        .56780E-05** at limit **
  20  norm          .10001E-03    35.111       -.37160E-05** at limit **
  21  Prefactor     .10002E-03    106.06       -.65419E-05** at limit **
  22  norm          .95730        .55196       -.52683E-08   -.13644E-03
  23  Prefactor     6.8947        17.548        .50114E-05   -.32473E-03
  24  Prefactor     52.227        44.833       -.27818E-05   -.97941E-04
  25  norm          .10000E-03    1.3321        .10809E-06** at limit **
  26  Normalizat    1.7441        .24030       -.19608E-06   -.13331E-04
  27  Prefactor     .51319        .20524       -.10968E-05   -.21843E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.31312
  Prefactor  = 0.00010001
  Prefactor  = 9.62232
  Prefactor  = 0.0001
  Prefactor  = 19.4915
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.6439
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.577
  Prefactor  = 0.919618
  Prefactor  = 1.48214
  Prefactor  = 0.0001
  Prefactor  = 12.2928
  norm       = 2.38022
  Prefactor  = 0.000100016
  norm       = 0.000100007
  Prefactor  = 0.000100023
  norm       = 0.957295
  Prefactor  = 6.89466
  Prefactor  = 52.2271
  norm       = 0.0001
  Normalizat = 1.74411
  Prefactor  = 0.513187
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.304     FROM HESSE     STATUS=OK           492 CALLS     3800 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3131        13.767        .69532E-03   -1.5131    
   2  Prefactor     .10001E-03    31.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6223        4.1887        .93978E-04   -1.5087    
   4  Prefactor     .10000E-03    4.9908        .15630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.491        22.137        .90721E-04   -1.4825    
   6  Prefactor     .10000E-03    35.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.644        11.226        .11261E-03   -1.4997    
   9  Prefactor     .10000E-03    20.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    22.224        .21283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    101.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.577        24.764        .82492E-04   -1.4736    
  14  Prefactor     .91962        3.2341        .21790E-03   -1.5516    
  15  Prefactor     1.4821        2.9669        .16086E-03   -1.5464    
  16  Prefactor     .10000E-03    11.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.293        14.093        .11426E-03   -1.5007    
  18  norm          2.3802        3.8981        .16457E-03   -1.5399    
  19  Prefactor     .10002E-03    86.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    36.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    110.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .95730        .53774        .37097E-04   -1.5512    
  23  Prefactor     6.8947        18.283        .76404E-03   -1.5183    
  24  Prefactor     52.227        45.026        .55496E-04   -1.4261    
  25  norm          .10000E-03    2.4708        .15660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.7441        .27625        .23830E-03   -.71131    
  27  Prefactor     .51319        .23188        .35155E-03   -1.1138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60428e-09
Minuit parameter uncertainties:
  1  13.7724
  2  0.00111315
  3  4.18879
  4  3.29379e-06
  5  22.1459
  6  0.000515169
  7  9.57914e-05
  8  11.228
  9  4.17415e-05
  10  0.00248846
  11  0.000744463
  12  0.000387576
  13  24.7749
  14  3.23473
  15  2.96716
  16  2.96658e-07
  17  14.0966
  18  3.89854
  19  0.00237834
  20  0.00102562
  21  0.00322256
  22  0.537739
  23  18.2974
  24  45.0552
  25  1.75429e-06
  26  0.276499
  27  0.23231
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.579e-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:  5.132e-01  2.323e-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.744e+00  2.765e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207136/likelihoodResults_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.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) = 5140.30389803
delta logL = -0.000284803430986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5140.30361282
delta logL = 4.10384018323e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3931       1.0000          .0000       10.000    
     3 'Normalizat'    1.7441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51319       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=   5140.304     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      257 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0110        .90712E-02** at limit **
   2  Index         2.4004        8.2359        .50000       -.26792E-05
   3  Normalizat    1.7441        .34343E-02    .53903E-01    .65358E-05
   4  Prefactor     .51319        .29545E-02    .79374E-01    .31206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40042
  Normalizat = 1.74411
  Prefactor  = 0.513188
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.304     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    453.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4004        6.1453        .50000       -.54675    
   3  Normalizat    1.7441        .28028E-01    .23830E-03   -.71131    
   4  Prefactor     .51319        .24051E-01    .35155E-03   -1.1138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.153e-08
Minuit parameter uncertainties:
  1  0.000415255
  2  379.181
  3  0.0280281
  4  0.0240513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207136': 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) = 5140.3036127
delta logL = 5.28672899236e-07

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.153e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.400e+00  3.792e+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:  5.132e-01  2.405e-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.744e+00  2.803e-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/207136/cmap_HighResolution_433728001_433987201_4FGL_J1159.0+0939_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-09-04 18:15:29.190067', job_id='207136', GAL2='0.51', fit_tolerance='1e-08', EG2='1.74', EG='1.74', time_epoch_completed='1630804529.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='5.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='750' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 207136: <4FGL_J1159.0+0939_daily_bin750> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:01:06 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:01:07 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:01:07 2021
Terminated at Sat Sep  4 18:15:29 2021
Results reported at Sat Sep  4 18:15:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin750 179.751 9.6603 433728001 433987201 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 :                                   722.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

