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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin419
RA = 179.164, Dec = 6.6728
tmin = 347932801, tmax = 348192001
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='188040', job_status='RUN', time_executed='2021-09-04 17:06:44.579719', time_epoch_executed='1630800404.58' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188040

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188040/ft1_4FGL_J1156.6+0640_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188040/ft1_4FGL_J1156.6+0640_daily_bin419.fits outfile=/scratch/kocevski/188040/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin419.fits ra=179.164 dec=6.6728 rad=12.0 tmin=347932801.0 tmax=348192001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.42
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188040/ft1_filtered_4FGL_J1156.6+0640_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/188040/ltcube_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.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/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188040/ft1_filtered_4FGL_J1156.6+0640_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/188040/ltcube_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.fits outfile=/scratch/kocevski/188040/expmap_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.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/188040/ltcube_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.fits
.....................!
real 190.69
user 185.38
sys 4.86

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/188040/ft1_filtered_4FGL_J1156.6+0640_daily_bin419.fits scfile=/scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits outfile=/scratch/kocevski/188040/cmap_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188040/ft1_filtered_4FGL_J1156.6+0640_daily_bin419.fits scfile=/scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits outfile=/scratch/kocevski/188040/cmap_HighResolution_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/188040/ft1_filtered_4FGL_J1156.6+0640_daily_bin419.fits', '/scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits', expMap='/scratch/kocevski/188040/expmap_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.fits', expCube='/scratch/kocevski/188040/ltcube_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/188040/Model_4FGL_J1156.6+0640_daily_bin419.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/188040/ft1_filtered_4FGL_J1156.6+0640_daily_bin419.fits
Spacecraft file(s): /scratch/kocevski/188040/ft2_4FGL_J1156.6+0640_daily_bin419.fits
Exposure map: /scratch/kocevski/188040/expmap_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.fits
Exposure cube: /scratch/kocevski/188040/ltcube_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/188040/Model_4FGL_J1156.6+0640_daily_bin419.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) = 7634.15655103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0462       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    163.03       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22975       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.618       1.0000         .10000E-03   10000.    
    16 'norm      '    .12774E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0468       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .67221       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .19981       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1203       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.

 FCN=   7634.140     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3205 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0318        .13804E-06** at limit **
   2  Prefactor     .10000E-03    66.728        .32806E-06** at limit **
   3  Prefactor     3.2588        1.9867       -.58666E-08    .35256E-05
   4  Prefactor     .10000E-03    6.2942        .74633E-07** at limit **
   5  Prefactor     .10000E-03    48.673       -.25683E-06** at limit **
   6  Prefactor     .10000E-03    5.7401       -.22965E-05** at limit **
   7  Prefactor     3.0460        3.4071       -.81572E-06   -.39508E-03
   8  Prefactor     12.706        21.104       -.78387E-06    .71542E-06
   9  Prefactor     162.86        119.75        .51183E-06   -.55441E-05
  10  Prefactor     .10000E-03    20.135        .65169E-07** at limit **
  11  Prefactor     .10000E-03    15.468        .24375E-06** at limit **
  12  Prefactor     .10001E-03    3.3236       -.10277E-05** at limit **
  13  Prefactor     .21772        1.7277        .16035E-06    .99137E-04
  14  Prefactor     .10000E-03    21.167       -.19916E-07** at limit **
  15  Prefactor     16.608        9.5029       -.81763E-07   -.84700E-04
  16  norm          .10000E-03    .91670        .63296E-07** at limit **
  17  norm          2.7613        2.5228       -.42061E-07   -.79634E-04
  18  Prefactor     5.0477        14.391        .25942E-06    .46478E-05
  19  norm          .10000E-03    32.335       -.77655E-07** at limit **
  20  Prefactor     .10000E-03    30.818       -.41604E-07** at limit **
  21  norm          .67216        .41911       -.19833E-07   -.53596E-03
  22  Prefactor     .10000E-03    8.4293        .26307E-06** at limit **
  23  Prefactor     .10000E-03    49.075        .71827E-06** at limit **
  24  norm          .19990        .62079        .38822E-06   -.10442E-03
  25  Normalizat    1.0932        .18907        .20268E-05   -.45407E-04
  26  Prefactor     1.1198        .16136       -.18565E-05    .70961E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04601
  Prefactor  = 12.7057
  Prefactor  = 162.858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.217716
  Prefactor  = 0.0001
  Prefactor  = 16.6079
  norm       = 0.0001
  norm       = 2.76133
  Prefactor  = 5.04769
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.672159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.199898
  Normalizat = 1.09325
  Prefactor  = 1.11978
 **********
 **   18 **HESSE 
 **********

 FCN=   7634.140     FROM HESSE     STATUS=OK           462 CALLS     3667 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2588        1.9893        .92611E-04   -1.5347    
   4  Prefactor     .10000E-03    6.3016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0460        3.4583        .84323E-03   -1.5359    
   8  Prefactor     12.706        21.018        .11231E-03   -1.4995    
   9  Prefactor     162.86        119.68        .15793E-03   -1.3149    
  10  Prefactor     .10000E-03    20.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    9.1344        .27171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21772        11.203        .21156E-02   -1.5615    
  14  Prefactor     .10000E-03    21.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.608        9.1714        .98251E-04   -1.4893    
  16  norm          .10000E-03    4.3407        .15678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7613        2.4997        .12270E-03   -1.5376    
  18  Prefactor     5.0477        14.378        .17899E-03   -1.5259    
  19  norm          .10000E-03    32.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .67216        .40480        .41055E-04   -1.5544    
  22  Prefactor     .10000E-03    8.5753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .19990        .68480        .11410E-02   -1.5619    
  25  Normalizat    1.0932        .21356        .27400E-03   -.89969    
  26  Prefactor     1.1198        .18125        .23808E-03   -.88837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81491e-08
Minuit parameter uncertainties:
  1  2.5464e-06
  2  2.92402e-05
  3  1.9893
  4  6.07349e-06
  5  2.1734e-06
  6  0.000105692
  7  3.45857
  8  21.0304
  9  119.856
  10  1.54227e-05
  11  2.38615e-05
  12  0.000565945
  13  3.12342
  14  1.36673e-06
  15  9.17219
  16  3.2394e-06
  17  2.49975
  18  14.3881
  19  1.05534e-05
  20  2.2317e-05
  21  0.4048
  22  1.80169e-05
  23  0.000118649
  24  0.684826
  25  0.213726
  26  0.181353
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.173e-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:  1.120e+00  1.814e-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.093e+00  2.137e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188040/likelihoodResults_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.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) = 7634.14052036
delta logL = -9.77288664217e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7634.14042276
delta logL = -1.31312845042e-07

Fit tolerance = 1e-08

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

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

 FCN=   7634.140     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6830.4        .90712E-02** at limit **
   2  Index         2.2688        7.8383        .50000       -.14530E-05
   3  Normalizat    1.0933        .47368E-01    .61948E-01    .10004E-04
   4  Prefactor     1.1198        .41781E-01    .53847E-01    .74722E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26878
  Normalizat = 1.09325
  Prefactor  = 1.11977
 **********
 **   18 **HESSE 
 **********

 FCN=   7634.140     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8757.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2688        6.7698        .50000       -.57787    
   3  Normalizat    1.0933        .14415        .27400E-03   -.89969    
   4  Prefactor     1.1198        .12723        .23808E-03   -.88837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.98831e-10
Minuit parameter uncertainties:
  1  0.000901452
  2  64.0469
  3  0.144197
  4  0.127262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188040': 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) = 7634.14042265
delta logL = -1.79470589501e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  9.015e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.269e+00  6.405e+01  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:  1.120e+00  1.273e-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.093e+00  1.442e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/188040/cmap_HighResolution_347932801_348192001_4FGL_J1156.6+0640_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-04 17:21:12.184615', job_id='188040', GAL2='1.12', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630801272.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='419' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 188040: <4FGL_J1156.6+0640_daily_bin419> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin419> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:28 2021
Job was executed on host(s) <bullet0083>, 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:21:12 2021
Results reported at Sat Sep  4 17:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin419 179.164 6.6728 347932801 348192001 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 :                                   866.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

