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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin428
RA = 179.164, Dec = 6.6728
tmin = 350265601, tmax = 350524801
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='188053', job_status='RUN', time_executed='2021-09-04 17:08:26.610833', time_epoch_executed='1630800506.61' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188053/ft1_4FGL_J1156.6+0640_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188053/ft1_4FGL_J1156.6+0640_daily_bin428.fits outfile=/scratch/kocevski/188053/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin428.fits ra=179.164 dec=6.6728 rad=12.0 tmin=350265601.0 tmax=350524801.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 2.67
user 2.45
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.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/188053/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin428.fits evtable="EVENTS" outfile="/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.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.44
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/188053/ltcube_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.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/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits
.....................!
real 9.59
user 9.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/188053/ltcube_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.fits outfile=/scratch/kocevski/188053/expmap_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.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/188053/ltcube_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.fits
.....................!
real 149.53
user 145.41
sys 3.81

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits scfile=/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits outfile=/scratch/kocevski/188053/cmap_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.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.164 yref=6.6728 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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits scfile=/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits outfile=/scratch/kocevski/188053/cmap_HighResolution_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.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.164 yref=6.6728 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.47
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/188053/Model_4FGL_J1156.6+0640_daily_bin428.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/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits.....................!
real 42.94
user 41.82
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits', '/scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits', expMap='/scratch/kocevski/188053/expmap_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.fits', expCube='/scratch/kocevski/188053/ltcube_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/188053/Model_4FGL_J1156.6+0640_daily_bin428.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1156.6+0640'

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.059e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/188053/ft1_filtered_4FGL_J1156.6+0640_daily_bin428.fits
Spacecraft file(s): /scratch/kocevski/188053/ft2_4FGL_J1156.6+0640_daily_bin428.fits
Exposure map: /scratch/kocevski/188053/expmap_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.fits
Exposure cube: /scratch/kocevski/188053/ltcube_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/188053/Model_4FGL_J1156.6+0640_daily_bin428.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) = 5769.26583823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .79248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8946       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 '    50.537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1656       1.0000         .10000E-03   10000.    
    16 'norm      '    .59480       1.0000         .10000E-03   10000.    
    17 'norm      '    14.226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.06       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0232       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0451       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1541       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   5769.231     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     3594 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0810        .13012E-02** at limit **
   2  Prefactor     .10000E-03    19.013        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.3737        .22312E-03** at limit **
   4  Prefactor     .10000E-03    7.3377        .18142E-02** at limit **
   5  Prefactor     .10000E-03    22.797        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.5403        .28110E-02** at limit **
   7  Prefactor     .79442        6.6529        .37817E-03   -.16414E-04
   8  Prefactor     3.8964        14.599        .20445E-03    .17794E-04
   9  Prefactor     .10000E-03    24.800        .18142E-02** at limit **
  10  Prefactor     .10000E-03    11.687        .18142E-02** at limit **
  11  Prefactor     50.523        28.888        .56413E-04   -.12402E-03
  12  Prefactor     3.2978        5.0974        .20064E-03    .51177E-03
  13  Prefactor     .10000E-03    11.368        .19804E-02** at limit **
  14  Prefactor     .10000E-03    8.9428        .18142E-02** at limit **
  15  Prefactor     1.1663        43.616        .21296E-02   -.79360E-04
  16  norm          .59565        4.9504        .22200E-03   -.25164E-03
  17  norm          14.227        4.8764        .88109E-04   -.56386E-04
  18  Prefactor     .10000E-03    14.321        .18142E-02** at limit **
  19  norm          .10000E-03    21.785        .18142E-02** at limit **
  20  Prefactor     103.77        151.83        .19709E-03    .34726E-04
  21  norm          1.0232        .65110        .44937E-04   -.84930E-03
  22  Prefactor     15.232        10.277        .10263E-03    .31682E-04
  23  Prefactor     .10000E-03    9.4754        .18142E-02** at limit **
  24  norm          4.0451        1.9875        .71474E-04   -.24018E-03
  25  Normalizat    1.1538        .24361        .26083E-03   -.55354E-04
  26  Prefactor     .89970        .20538        .25515E-03    .21627E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.794419
  Prefactor  = 3.89641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.5234
  Prefactor  = 3.29777
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.16626
  norm       = 0.595652
  norm       = 14.2272
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 103.769
  norm       = 1.02319
  Prefactor  = 15.2321
  Prefactor  = 0.0001
  norm       = 4.04509
  Normalizat = 1.15384
  Prefactor  = 0.899697
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.231     FROM HESSE     STATUS=OK           432 CALLS     4026 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0810        .26024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3738        .44625E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5777        .56220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .79442        6.6514        .15127E-04   -1.5530    
   8  Prefactor     3.8964        14.598        .81780E-05   -1.5313    
   9  Prefactor     .10000E-03    24.801        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.523        28.839        .11283E-04   -1.4285    
  12  Prefactor     3.2978        5.0914        .80256E-05   -1.5345    
  13  Prefactor     .10000E-03    11.437        .39608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1663        39.861        .85185E-04   -1.5492    
  16  norm          .59565        4.5471        .88801E-05   -1.5554    
  17  norm          14.227        4.8762        .35244E-05   -1.4953    
  18  Prefactor     .10000E-03    14.322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    21.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     103.77        151.85        .78834E-05   -1.3667    
  21  norm          1.0232        .65077        .17975E-05   -1.5506    
  22  Prefactor     15.232        10.277        .20526E-04   -1.4927    
  23  Prefactor     .10000E-03    9.4756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0451        1.9874        .28590E-05   -1.5306    
  25  Normalizat    1.1538        .24377        .10433E-04   -.88041    
  26  Prefactor     .89970        .20556        .10206E-04   -.96152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54085e-10
Minuit parameter uncertainties:
  1  4.29934e-06
  2  1.62123e-05
  3  3.46222e-05
  4  6.46874e-06
  5  1.26917e-06
  6  9.20062e-05
  7  4.59779
  8  14.6111
  9  1.46105e-05
  10  3.30519e-06
  11  28.8474
  12  5.09211
  13  0.00017412
  14  4.6298e-05
  15  13.6458
  16  3.29156
  17  4.87632
  18  0.000177537
  19  4.72145e-05
  20  152.42
  21  0.650779
  22  10.2779
  23  6.96827e-06
  24  1.98744
  25  0.244009
  26  0.205733
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.269e-06  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.997e-01  2.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.154e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188053/likelihoodResults_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.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) = 5769.23150586
delta logL = -0.00020857394702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5769.2312985
delta logL = -1.20830372907e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6207       1.0000          .0000       10.000    
     3 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89969       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   5769.231     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      281 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10392E-03    9.6904        .18142E-01** at limit **
   2  Index         2.5300        5.0428        .50000        .20150E-04
   3  Normalizat    1.1538        .37836E-02    .26084E-03   -.23100E-05
   4  Prefactor     .89969        .33305E-02    .25515E-03   -.47675E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103923
  Index      = 2.52998
  Normalizat = 1.15385
  Prefactor  = 0.899693
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.231     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10392E-03    66.888        .30494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5300        6.6095        .50000       -.51669    
   3  Normalizat    1.1538        .99793E-02    .10433E-04   -.88041    
   4  Prefactor     .89969        .87843E-02    .10206E-04   -.96152    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59224e-09
Minuit parameter uncertainties:
  1  0.0324335
  2  215.619
  3  0.00997933
  4  0.00878435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188053': 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) = 5769.23129817
delta logL = -8.79923391039e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.039e-04  3.243e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.530e+00  2.156e+02  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.997e-01  8.784e-03  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.154e+00  9.979e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.164 6.673

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/188053/cmap_HighResolution_350265601_350524801_4FGL_J1156.6+0640_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2021-09-04 17:18:12.893665', job_id='188053', GAL2='0.90', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630801092.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-8.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='428' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:18:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 188053: <4FGL_J1156.6+0640_daily_bin428> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin428> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:29 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:31 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:06:31 2021
Terminated at Sat Sep  4 17:18:13 2021
Results reported at Sat Sep  4 17:18:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin428 179.164 6.6728 350265601 350524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1156.6+0640 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

