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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin581
RA = 179.164, Dec = 6.6728
tmin = 389923201, tmax = 390182401
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='189501', job_status='RUN', time_executed='2021-09-04 17:13:33.949324', time_epoch_executed='1630800813.95' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189501/ft1_4FGL_J1156.6+0640_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189501/ft2_4FGL_J1156.6+0640_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189501/ft1_4FGL_J1156.6+0640_daily_bin581.fits outfile=/scratch/kocevski/189501/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin581.fits ra=179.164 dec=6.6728 rad=12.0 tmin=389923201.0 tmax=390182401.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.47
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189501/ft1_filtered_4FGL_J1156.6+0640_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/189501/ft2_4FGL_J1156.6+0640_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/189501/ltcube_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.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/189501/ft2_4FGL_J1156.6+0640_daily_bin581.fits
.....................!
real 12.21
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189501/ft1_filtered_4FGL_J1156.6+0640_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/189501/ft2_4FGL_J1156.6+0640_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/189501/ltcube_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.fits outfile=/scratch/kocevski/189501/expmap_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.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/189501/ltcube_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.fits
.....................!
real 193.38
user 188.07
sys 4.93

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/189501/ft1_filtered_4FGL_J1156.6+0640_daily_bin581.fits scfile=/scratch/kocevski/189501/ft2_4FGL_J1156.6+0640_daily_bin581.fits outfile=/scratch/kocevski/189501/cmap_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189501/ft1_filtered_4FGL_J1156.6+0640_daily_bin581.fits scfile=/scratch/kocevski/189501/ft2_4FGL_J1156.6+0640_daily_bin581.fits outfile=/scratch/kocevski/189501/cmap_HighResolution_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6064       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9109       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .74750       1.0000         .10000E-03   10000.    
    17 'norm      '    .10788E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.744       1.0000         .10000E-03   10000.    
    19 'norm      '    .34693E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .75183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.471       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10867E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.6917       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1709       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68153       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=   6386.240     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     2703 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6032        11.067        .34514E-06   -.13237E-04
   2  Prefactor     .10000E-03    15.725       -.56555E-07** at limit **
   3  Prefactor     2.3722        1.7262        .76134E-07   -.28090E-04
   4  Prefactor     .10000E-03    6.3570        .51041E-08** at limit **
   5  Prefactor     12.569        48.360       -.19488E-05   -.40986E-04
   6  Prefactor     .10000E-03    1.8197        .18618E-08** at limit **
   7  Prefactor     3.2487        7.9410        .83697E-06   -.60408E-05
   8  Prefactor     19.571        13.240        .50593E-07   -.41760E-05
   9  Prefactor     .10000E-03    17.285        .10617E-06** at limit **
  10  Prefactor     .10000E-03    24.860        .65379E-07** at limit **
  11  Prefactor     6.9090        10.883        .12544E-06   -.11427E-04
  12  Prefactor     .10000E-03    3.5110       -.33000E-06** at limit **
  13  Prefactor     6.2729        3.8931        .95747E-06   -.25186E-03
  14  Prefactor     51.777        31.830        .52003E-06    .15467E-03
  15  Prefactor     .10000E-03    2.0927        .11298E-07** at limit **
  16  norm          .74755        1.0611       -.12582E-07    .15306E-04
  17  norm          .10000E-03    1.4432        .34914E-06** at limit **
  18  Prefactor     41.741        28.218       -.20061E-07   -.34192E-05
  19  norm          .10000E-03    61.267       -.58847E-05** at limit **
  20  Prefactor     .10000E-03    111.18        .14598E-06** at limit **
  21  norm          .75175        .43697       -.93499E-07   -.90829E-03
  22  Prefactor     18.473        11.499       -.30758E-07   -.63826E-04
  23  Prefactor     .10000E-03    40.020        .37964E-06** at limit **
  24  norm          2.6915        1.4404       -.86736E-08   -.14433E-03
  25  Normalizat    1.1709        .18169       -.12193E-05   -.62912E-04
  26  Prefactor     .68144        .14674        .20691E-06   -.11489E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.60319
  Prefactor  = 0.0001
  Prefactor  = 2.37219
  Prefactor  = 0.0001
  Prefactor  = 12.5694
  Prefactor  = 0.0001
  Prefactor  = 3.2487
  Prefactor  = 19.5706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90901
  Prefactor  = 0.0001
  Prefactor  = 6.27291
  Prefactor  = 51.7772
  Prefactor  = 0.0001
  norm       = 0.747548
  norm       = 0.000100002
  Prefactor  = 41.7409
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.751747
  Prefactor  = 18.4726
  Prefactor  = 0.0001
  norm       = 2.69147
  Normalizat = 1.17095
  Prefactor  = 0.681438
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.240     FROM HESSE     STATUS=OK           460 CALLS     3163 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6032        11.072        .15613E-03   -1.5194    
   2  Prefactor     .10000E-03    15.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3722        1.7240        .86098E-04   -1.5400    
   4  Prefactor     .10000E-03    6.3639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.569        48.785        .11240E-03   -1.4999    
   6  Prefactor     .10000E-03    1.8202        .10528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2487        7.9391        .22454E-03   -1.5347    
   8  Prefactor     19.571        13.248        .90534E-04   -1.4823    
   9  Prefactor     .10000E-03    17.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9090        10.869        .15261E-03   -1.5182    
  12  Prefactor     .10000E-03    3.6106        .14660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2729        3.9515        .60629E-03   -1.5207    
  14  Prefactor     51.777        31.622        .55721E-04   -1.4268    
  15  Prefactor     .10000E-03    2.0949        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .74755        .90323        .95291E-03   -1.5535    
  17  norm          .10000E-03    14.597        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.741        28.206        .62044E-04   -1.4415    
  19  norm          .10000E-03    64.493        .42655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    111.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .75175        .41914        .37101E-04   -1.5535    
  22  Prefactor     18.473        11.498        .93192E-04   -1.4848    
  23  Prefactor     .10000E-03    40.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.6915        1.4341        .67289E-04   -1.5380    
  25  Normalizat    1.1709        .21094        .23584E-03   -.87505    
  26  Prefactor     .68144        .17100        .25592E-03   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13641e-10
Minuit parameter uncertainties:
  1  11.0755
  2  1.42602e-06
  3  1.72404
  4  8.3215e-07
  5  48.9402
  6  5.89047e-07
  7  7.94163
  8  13.25
  9  1.50695e-05
  10  2.08118e-05
  11  10.8717
  12  2.77585e-05
  13  3.9517
  14  31.6322
  15  1.63453e-06
  16  0.903249
  17  0.000381566
  18  28.2146
  19  0.000985843
  20  2.76478e-05
  21  0.419137
  22  11.4992
  23  0.000117525
  24  1.43416
  25  0.211094
  26  0.171132
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.257e+01  4.894e+01  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:  6.814e-01  1.711e-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.171e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189501/likelihoodResults_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.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): 0
logL (Free Index) = 6386.23342393
delta logL = 0.0061846080971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6386.23106156
delta logL = 0.00854697933755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.749       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1342       1.0000          .0000       10.000    
     3 'Normalizat'    1.1718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68124       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=   6386.231     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      283 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.829        64.892        .97864E-04   -.14409E-03
   2  Index         2.1233        1.4215        .94579E-02   -.18252E-03
   3  Normalizat    1.1715        .19948        .23579E-03   -.15445E-03
   4  Prefactor     .68089        .17029        .25601E-03   -.25623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.829
  Index      = 2.12329
  Normalizat = 1.17155
  Prefactor  = 0.680893
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.231     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.829        63.222        .19573E-04   -1.4887    
   2  Index         2.1233        1.3867        .37832E-03   -.61302    
   3  Normalizat    1.1715        .19964        .47157E-04   -.87487    
   4  Prefactor     .68089        .17042        .10240E-04   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65562e-09
Minuit parameter uncertainties:
  1  63.4758
  2  1.41477
  3  0.199768
  4  0.170548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189501': 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) = 6386.23100432
delta logL = 0.00860421608286

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.683e+01  6.348e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.123e+00  1.415e+00  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:  6.809e-01  1.705e-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.172e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/189501/cmap_HighResolution_389923201_390182401_4FGL_J1156.6+0640_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-09-04 17:25:58.370938', job_id='189501', GAL2='0.68', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630801558.37', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='8.60e-03', ts2='0.10', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='581' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:25:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 189501: <4FGL_J1156.6+0640_daily_bin581> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin581> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:09 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:10 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:11:10 2021
Terminated at Sat Sep  4 17:25:59 2021
Results reported at Sat Sep  4 17:25:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin581 179.164 6.6728 389923201 390182401 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

