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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin748
RA = 179.164, Dec = 6.6728
tmin = 433209601, tmax = 433468801
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='189762', job_status='RUN', time_executed='2021-09-04 17:15:41.121456', time_epoch_executed='1630800941.12' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189762/ft1_4FGL_J1156.6+0640_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189762/ft2_4FGL_J1156.6+0640_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189762/ft1_4FGL_J1156.6+0640_daily_bin748.fits outfile=/scratch/kocevski/189762/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin748.fits ra=179.164 dec=6.6728 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.99
user 5.74
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189762/ft1_filtered_4FGL_J1156.6+0640_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/189762/ft2_4FGL_J1156.6+0640_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/189762/ltcube_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.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/189762/ft2_4FGL_J1156.6+0640_daily_bin748.fits
.....................!
real 12.08
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189762/ft1_filtered_4FGL_J1156.6+0640_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/189762/ft2_4FGL_J1156.6+0640_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/189762/ltcube_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.fits outfile=/scratch/kocevski/189762/expmap_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.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/189762/ltcube_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.fits
.....................!
real 190.06
user 185.26
sys 4.38

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/189762/ft1_filtered_4FGL_J1156.6+0640_daily_bin748.fits scfile=/scratch/kocevski/189762/ft2_4FGL_J1156.6+0640_daily_bin748.fits outfile=/scratch/kocevski/189762/cmap_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189762/ft1_filtered_4FGL_J1156.6+0640_daily_bin748.fits scfile=/scratch/kocevski/189762/ft2_4FGL_J1156.6+0640_daily_bin748.fits outfile=/scratch/kocevski/189762/cmap_HighResolution_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.339       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.987       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.321       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    154.35       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.549       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0891       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.129       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2255       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.0048       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81972       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5292       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=   4437.536     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3151 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.339        11.289        .24294E-07    .80198E-05
   2  Prefactor     22.002        43.965       -.12453E-05    .16846E-04
   3  Prefactor     3.0607        2.7710       -.85166E-08    .17433E-04
   4  Prefactor     .10000E-03    64.014       -.66178E-06** at limit **
   5  Prefactor     45.347        185.08       -.91008E-06    .12713E-04
   6  Prefactor     13.132        12.471        .11365E-06    .16044E-04
   7  Prefactor     1.7725        11.938        .89999E-05    .35306E-04
   8  Prefactor     .10000E-03    7.4920       -.85546E-07** at limit **
   9  Prefactor     .10000E-03    36.400        .23170E-06** at limit **
  10  Prefactor     14.966        60.568       -.13629E-04    .29849E-04
  11  Prefactor     154.37        60.781       -.10932E-05    .25215E-04
  12  Prefactor     .10000E-03    2.6796       -.16038E-06** at limit **
  13  Prefactor     2.2870        2.5146       -.23327E-07   -.16031E-05
  14  Prefactor     .10000E-03    17.866        .19342E-06** at limit **
  15  Prefactor     32.561        34.153       -.98062E-06   -.47517E-05
  16  norm          2.0864        5.9000        .69285E-06    .58593E-04
  17  norm          5.9585        6.6893        .22263E-06    .35456E-04
  18  Prefactor     53.122        58.309        .70605E-06   -.50733E-05
  19  norm          7.3683        101.53        .99138E-06   -.36066E-05
  20  Prefactor     .10000E-03    67.438        .29683E-06** at limit **
  21  norm          1.5294        .95027        .32750E-07    .17295E-03
  22  Prefactor     7.2256        8.2002       -.13401E-06    .56575E-05
  23  Prefactor     .10000E-03    11.096       -.57920E-07** at limit **
  24  norm          7.0050        2.8733       -.29785E-07    .81317E-05
  25  Normalizat    .81911        .29762       -.96945E-06   -.93390E-05
  26  Prefactor     1.5297        .25841        .13276E-05    .61942E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3391
  Prefactor  = 22.0019
  Prefactor  = 3.06067
  Prefactor  = 0.0001
  Prefactor  = 45.3471
  Prefactor  = 13.1321
  Prefactor  = 1.77249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9664
  Prefactor  = 154.371
  Prefactor  = 0.0001
  Prefactor  = 2.28699
  Prefactor  = 0.0001
  Prefactor  = 32.5607
  norm       = 2.08636
  norm       = 5.95849
  Prefactor  = 53.1219
  norm       = 7.36833
  Prefactor  = 0.0001
  norm       = 1.52944
  Prefactor  = 7.22561
  Prefactor  = 0.0001
  norm       = 7.00499
  Normalizat = 0.819113
  Prefactor  = 1.52969
 **********
 **   18 **HESSE 
 **********

 FCN=   4437.536     FROM HESSE     STATUS=OK           464 CALLS     3615 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.339        11.289        .10967E-03   -1.4977    
   2  Prefactor     22.002        44.048        .85421E-04   -1.4769    
   3  Prefactor     3.0607        2.7652        .10198E-03   -1.5358    
   4  Prefactor     .10000E-03    64.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.347        184.69        .59556E-04   -1.4360    
   6  Prefactor     13.132        12.470        .11054E-03   -1.4983    
   7  Prefactor     1.7725        12.099        .15700E-02   -1.5442    
   8  Prefactor     .10000E-03    7.5034        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.966        60.599        .10377E-03   -1.4934    
  11  Prefactor     154.37        60.756        .16224E-03   -1.3217    
  12  Prefactor     .10000E-03    2.6998        .10647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2870        2.5170        .10786E-03   -1.5406    
  14  Prefactor     .10000E-03    17.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.561        33.041        .70234E-04   -1.4566    
  16  norm          2.0864        5.6894        .20261E-03   -1.5419    
  17  norm          5.9585        6.6174        .14725E-03   -1.5220    
  18  Prefactor     53.122        58.327        .55026E-04   -1.4249    
  19  norm          7.3683        100.56        .14767E-03   -1.5165    
  20  Prefactor     .10000E-03    67.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5294        .93294        .44244E-04   -1.5461    
  22  Prefactor     7.2256        8.2004        .74611E-03   -1.5170    
  23  Prefactor     .10000E-03    11.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.0050        2.8687        .68567E-04   -1.5179    
  25  Normalizat    .81911        .34748        .36872E-03   -.99364    
  26  Prefactor     1.5297        .30623        .25603E-03   -.76712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60735e-11
Minuit parameter uncertainties:
  1  11.2907
  2  44.1133
  3  2.76531
  4  8.25043e-05
  5  184.027
  6  12.4721
  7  9.26437
  8  7.16567e-06
  9  2.0314e-05
  10  60.3374
  11  60.7803
  12  8.06581e-06
  13  2.51716
  14  3.55472e-05
  15  33.0596
  16  5.69091
  17  6.61823
  18  58.3899
  19  54.5525
  20  3.14887e-05
  21  0.932945
  22  8.20164
  23  6.79251e-06
  24  2.8688
  25  0.348425
  26  0.306599
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.535e+01  1.840e+02  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.530e+00  3.066e-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:  8.191e-01  3.484e-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: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189762/likelihoodResults_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.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) = 4437.52241652
delta logL = 0.0135097040538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4437.50962825
delta logL = 0.0262979711642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.658       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8765       1.0000          .0000       10.000    
     3 'Normalizat'    .82649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5229       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=   4437.510     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.016        256.43        .21959E-03   -.35723E-05
   2  Index         1.8691        1.5313        .14617E-01    .98724E-05
   3  Normalizat    .82697        .32784        .36708E-03    .10409E-03
   4  Prefactor     1.5225        .30011        .25651E-03   -.10855E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.0156
  Index      = 1.86913
  Normalizat = 0.826966
  Prefactor  = 1.52255
 **********
 **   18 **HESSE 
 **********

 FCN=   4437.510     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.016        253.17        .87835E-05   -1.3872    
   2  Index         1.8691        1.5116        .58467E-03   -.67664    
   3  Normalizat    .82697        .32793        .14683E-04   -.99076    
   4  Prefactor     1.5225        .30017        .51302E-04   -.76910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39035e-10
Minuit parameter uncertainties:
  1  256.535
  2  1.55226
  3  0.328716
  4  0.300522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189762': 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) = 4437.50961607
delta logL = 0.0263101512091

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  8.402e+01  2.565e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  1.869e+00  1.552e+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:  1.523e+00  3.005e-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:  8.270e-01  3.287e-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/189762/cmap_HighResolution_433209601_433468801_4FGL_J1156.6+0640_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-09-04 17:26:39.634951', job_id='189762', GAL2='1.52', fit_tolerance='1e-08', EG2='0.83', EG='0.82', time_epoch_completed='1630801599.64', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.53', dlogl='2.63e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='748' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 189762: <4FGL_J1156.6+0640_daily_bin748> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin748> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:30 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:32 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:32 2021
Terminated at Sat Sep  4 17:26:39 2021
Results reported at Sat Sep  4 17:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin748 179.164 6.6728 433209601 433468801 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 :                                   656.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

