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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin628
RA = 179.164, Dec = 6.6728
tmin = 402105601, tmax = 402364801
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='189575', job_status='RUN', time_executed='2021-09-04 17:13:29.398569', time_epoch_executed='1630800809.4' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189575

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189575/ft1_4FGL_J1156.6+0640_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189575/ft2_4FGL_J1156.6+0640_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189575/ft1_4FGL_J1156.6+0640_daily_bin628.fits outfile=/scratch/kocevski/189575/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin628.fits ra=179.164 dec=6.6728 rad=12.0 tmin=402105601.0 tmax=402364801.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.54
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189575/ft1_filtered_4FGL_J1156.6+0640_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/189575/ft2_4FGL_J1156.6+0640_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/189575/ltcube_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.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/189575/ft2_4FGL_J1156.6+0640_daily_bin628.fits
.....................!
real 13.46
user 13.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189575/ft1_filtered_4FGL_J1156.6+0640_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/189575/ft2_4FGL_J1156.6+0640_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/189575/ltcube_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.fits outfile=/scratch/kocevski/189575/expmap_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.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/189575/ltcube_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.fits
.....................!
real 190.53
user 185.41
sys 4.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/189575/ft1_filtered_4FGL_J1156.6+0640_daily_bin628.fits scfile=/scratch/kocevski/189575/ft2_4FGL_J1156.6+0640_daily_bin628.fits outfile=/scratch/kocevski/189575/cmap_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189575/ft1_filtered_4FGL_J1156.6+0640_daily_bin628.fits scfile=/scratch/kocevski/189575/ft2_4FGL_J1156.6+0640_daily_bin628.fits outfile=/scratch/kocevski/189575/cmap_HighResolution_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.614       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11793E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3719       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7133       1.0000         .10000E-03   10000.    
    16 'norm      '    .10513E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0133       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7363       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.095       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.4766       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2243       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85038       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=   5882.666     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3678 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6577        .67178E-07** at limit **
   2  Prefactor     .10000E-03    16.892       -.10520E-05** at limit **
   3  Prefactor     2.9070        2.0994        .33525E-07   -.35536E-06
   4  Prefactor     27.632        34.907        .21941E-05   -.53569E-04
   5  Prefactor     .10000E-03    40.272       -.53299E-05** at limit **
   6  Prefactor     .10000E-03    3.2062       -.11456E-07** at limit **
   7  Prefactor     12.615        9.5347       -.15377E-06    .99415E-04
   8  Prefactor     .10036E-03    13.912       -.74622E-06** at limit **
   9  Prefactor     .10001E-03    23.401        .91782E-05** at limit **
  10  Prefactor     .10000E-03    19.951       -.26448E-05** at limit **
  11  Prefactor     61.647        42.311       -.26246E-05    .19508E-03
  12  Prefactor     10.677        6.8055        .63122E-05   -.12901E-02
  13  Prefactor     1.3722        4.0518       -.81678E-05   -.11780E-02
  14  Prefactor     .10000E-03    21.066       -.58264E-05** at limit **
  15  Prefactor     5.7255        19.052        .36585E-05    .84960E-05
  16  norm          .10000E-03    2.4279       -.40145E-06** at limit **
  17  norm          4.0168        5.5618       -.34536E-05   -.77090E-03
  18  Prefactor     .10000E-03    9.0145        .22489E-07** at limit **
  19  norm          3.7657        231.37        .58323E-04   -.91081E-04
  20  Prefactor     .10000E-03    64.369        .60700E-05** at limit **
  21  norm          3.0617        .87024       -.85043E-07    .13087E-04
  22  Prefactor     34.095        16.516        .86385E-07    .59953E-04
  23  Prefactor     .10000E-03    17.034        .29423E-05** at limit **
  24  norm          3.4766        2.1086        .53966E-07   -.22044E-03
  25  Normalizat    1.2240        .21545        .82045E-06    .17319E-03
  26  Prefactor     .85065        .17969       -.14007E-05    .18942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90701
  Prefactor  = 27.6323
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.6151
  Prefactor  = 0.000100362
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 61.6471
  Prefactor  = 10.6767
  Prefactor  = 1.37221
  Prefactor  = 0.000100004
  Prefactor  = 5.7255
  norm       = 0.0001
  norm       = 4.01682
  Prefactor  = 0.0001
  norm       = 3.76566
  Prefactor  = 0.000100003
  norm       = 3.06166
  Prefactor  = 34.0954
  Prefactor  = 0.000100001
  norm       = 3.47657
  Normalizat = 1.22399
  Prefactor  = 0.850653
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.666     FROM HESSE     STATUS=OK           466 CALLS     4144 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6768        .16165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9070        2.1008        .91350E-04   -1.5367    
   4  Prefactor     27.632        34.867        .76211E-04   -1.4656    
   5  Prefactor     .10000E-03    40.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2111        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.615        9.5321        .11279E-03   -1.4997    
   8  Prefactor     .10036E-03    15.883        .82692E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    23.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.647        42.062        .51097E-04   -1.4136    
  12  Prefactor     10.677        6.8460        .12262E-03   -1.5054    
  13  Prefactor     1.3722        4.1841        .22683E-03   -1.5474    
  14  Prefactor     .10000E-03    21.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7255        16.946        .16805E-03   -1.5229    
  16  norm          .10000E-03    4.0693        .20395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0168        5.4499        .14971E-03   -1.5307    
  18  Prefactor     .10000E-03    9.0159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7657        218.88        .20889E-03   -1.5320    
  20  Prefactor     .10000E-03    64.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0617        .86820        .33697E-04   -1.5358    
  22  Prefactor     34.095        16.517        .68628E-04   -1.4539    
  23  Prefactor     .10000E-03    17.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.4766        2.1032        .82418E-04   -1.5335    
  25  Normalizat    1.2240        .25144        .27085E-03   -.85865    
  26  Prefactor     .85065        .20814        .27380E-03   -.97887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99329e-09
Minuit parameter uncertainties:
  1  1.94402e-06
  2  7.44323e-05
  3  2.10084
  4  34.8925
  5  0.000620623
  6  1.80786e-06
  7  9.53327
  8  0.00479426
  9  0.00078835
  10  0.00025756
  11  42.0824
  12  6.84654
  13  4.18498
  14  0.000588992
  15  16.9604
  16  8.49981e-05
  17  5.45054
  18  4.73119e-06
  19  57.6408
  20  0.000849883
  21  0.868206
  22  16.5196
  23  0.000209494
  24  2.10324
  25  0.251691
  26  0.208337
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.206e-04  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.507e-01  2.083e-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.224e+00  2.517e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189575/likelihoodResults_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.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) = 5882.66633096
delta logL = -0.000118358231703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5882.66621335
delta logL = -7.47792910261e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6554       1.0000          .0000       10.000    
     3 'Normalizat'    1.2240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85065       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=   5882.666     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      284 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10464E-03    15.327        .18142E-01** at limit **
   2  Index         2.5542        6.2456        .50000        .11396E-04
   3  Normalizat    1.2240        .38179E-02    .27085E-03    .47431E-05
   4  Prefactor     .85065        .33001E-02    .13690E-02   -.14441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104637
  Index      = 2.55425
  Normalizat = 1.22399
  Prefactor  = 0.850652
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.666     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10464E-03    107.32        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5542        6.0892        .50000       -.51112    
   3  Normalizat    1.2240        .10143E-01    .10834E-04   -.85865    
   4  Prefactor     .85065        .87671E-02    .54761E-04   -.97887    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.238e-09
Minuit parameter uncertainties:
  1  0.0446982
  2  304.33
  3  0.0101429
  4  0.00876715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189575': 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) = 5882.66621315
delta logL = -5.45564034837e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.046e-04  4.470e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.554e+00  3.043e+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.507e-01  8.767e-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.224e+00  1.014e-02  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/189575/cmap_HighResolution_402105601_402364801_4FGL_J1156.6+0640_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-04 17:26:48.673110', job_id='189575', GAL2='0.85', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630801608.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-5.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='628' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 189575: <4FGL_J1156.6+0640_daily_bin628> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin628 179.164 6.6728 402105601 402364801 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 :                                   799.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

