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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin479
RA = 179.164, Dec = 6.6728
tmin = 363484801, tmax = 363744001
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='188129', job_status='RUN', time_executed='2021-09-04 17:09:09.190753', time_epoch_executed='1630800549.19' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188129

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188129/ft1_4FGL_J1156.6+0640_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188129/ft2_4FGL_J1156.6+0640_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188129/ft1_4FGL_J1156.6+0640_daily_bin479.fits outfile=/scratch/kocevski/188129/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin479.fits ra=179.164 dec=6.6728 rad=12.0 tmin=363484801.0 tmax=363744001.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.68
user 3.45
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188129/ft1_filtered_4FGL_J1156.6+0640_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/188129/ft2_4FGL_J1156.6+0640_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/188129/ltcube_363484801_363744001_4FGL_J1156.6+0640_daily_bin479.fits outfile=/scratch/kocevski/188129/expmap_363484801_363744001_4FGL_J1156.6+0640_daily_bin479.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/188129/ltcube_363484801_363744001_4FGL_J1156.6+0640_daily_bin479.fits
.....................!
real 190.04
user 185.59
sys 3.99

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/188129/ft1_filtered_4FGL_J1156.6+0640_daily_bin479.fits scfile=/scratch/kocevski/188129/ft2_4FGL_J1156.6+0640_daily_bin479.fits outfile=/scratch/kocevski/188129/cmap_363484801_363744001_4FGL_J1156.6+0640_daily_bin479.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.104       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0229       1.0000         .10000E-03   10000.    
     9 'Prefactor '    119.27       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8530       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6114       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    45.759       1.0000         .10000E-03   10000.    
    20 'Prefactor '    96.988       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1294       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7115       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5760       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71012       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1744       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=   5228.654     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3139 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.107        13.230        .28140E-05    .94243E-04
   2  Prefactor     7.8159        34.483       -.75004E-04   -.55295E-05
   3  Prefactor     2.2813        2.3360       -.41858E-06   -.37115E-03
   4  Prefactor     .10000E-03    10.602       -.26556E-06** at limit **
   5  Prefactor     .10000E-03    95.070        .17085E-04** at limit **
   6  Prefactor     .10000E-03    6.1003       -.56155E-07** at limit **
   7  Prefactor     4.3458        8.3419        .31133E-06   -.31583E-03
   8  Prefactor     7.0164        18.468        .21265E-05   -.22226E-04
   9  Prefactor     119.26        100.13       -.52337E-05    .12933E-05
  10  Prefactor     2.1533        196.17        .34380E-04   -.26611E-04
  11  Prefactor     .10000E-03    8.8001        .51761E-07** at limit **
  12  Prefactor     .10000E-03    1.1364       -.10891E-07** at limit **
  13  Prefactor     .10000E-03    1.1132       -.34295E-07** at limit **
  14  Prefactor     24.869        27.287       -.38915E-05   -.26621E-04
  15  Prefactor     3.8546        18.480       -.51692E-05   -.13248E-03
  16  norm          1.6114        2.4516        .36855E-06   -.27393E-03
  17  norm          .10000E-03    2.2896       -.28300E-07** at limit **
  18  Prefactor     .10000E-03    34.862       -.20767E-05** at limit **
  19  norm          45.757        48.688       -.16447E-05   -.39340E-05
  20  Prefactor     96.980        104.65       -.75783E-05    .27845E-05
  21  norm          1.1293        .77313       -.47665E-07   -.67408E-03
  22  Prefactor     7.7099        8.0996       -.14550E-07   -.81182E-05
  23  Prefactor     .10000E-03    18.663        .16676E-06** at limit **
  24  norm          1.5758        1.9538       -.31184E-06   -.62694E-03
  25  Normalizat    .71029        .21236        .38441E-05   -.55624E-04
  26  Prefactor     1.1743        .17980        .11708E-05    .14230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.1071
  Prefactor  = 7.81594
  Prefactor  = 2.28129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34583
  Prefactor  = 7.01645
  Prefactor  = 119.264
  Prefactor  = 2.15329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8685
  Prefactor  = 3.85461
  norm       = 1.61141
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 45.7568
  Prefactor  = 96.9798
  norm       = 1.1293
  Prefactor  = 7.70994
  Prefactor  = 0.0001
  norm       = 1.57579
  Normalizat = 0.710288
  Prefactor  = 1.17429
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.654     FROM HESSE     STATUS=OK           462 CALLS     3601 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.107        13.233        .94132E-04   -1.4857    
   2  Prefactor     7.8159        34.714        .14291E-03   -1.5149    
   3  Prefactor     2.2813        2.3243        .10672E-03   -1.5406    
   4  Prefactor     .10000E-03    10.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    95.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1239        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3458        8.2582        .19302E-03   -1.5291    
   8  Prefactor     7.0164        18.395        .15138E-03   -1.5178    
   9  Prefactor     119.26        100.02        .36847E-04   -1.3519    
  10  Prefactor     2.1533        191.63        .28159E-03   -1.5414    
  11  Prefactor     .10000E-03    8.8094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1393        .75269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1227        .74486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.869        27.256        .80318E-04   -1.4710    
  15  Prefactor     3.8546        18.165        .20559E-03   -1.5315    
  16  norm          1.6114        2.4251        .11418E-03   -1.5454    
  17  norm          .10000E-03    2.3170        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          45.757        48.814        .59272E-04   -1.4354    
  20  Prefactor     96.980        104.63        .20408E-03   -1.3735    
  21  norm          1.1293        .75242        .43845E-04   -1.5495    
  22  Prefactor     7.7099        8.0983        .14440E-03   -1.5153    
  23  Prefactor     .10000E-03    18.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5758        1.9211        .10436E-03   -1.5457    
  25  Normalizat    .71029        .24035        .30663E-03   -1.0349    
  26  Prefactor     1.1743        .20521        .21747E-03   -.87126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29978e-10
Minuit parameter uncertainties:
  1  13.2349
  2  32.9754
  3  2.32443
  4  2.29989e-05
  5  0.000386925
  6  4.40029e-06
  7  8.26035
  8  18.4094
  9  100.166
  10  40.7611
  11  1.10216e-05
  12  1.86445e-06
  13  3.62928e-06
  14  27.2698
  15  16.7438
  16  2.42524
  17  2.03473e-06
  18  5.18851e-06
  19  48.8567
  20  104.832
  21  0.752428
  22  8.09944
  23  4.04272e-05
  24  1.92122
  25  0.240704
  26  0.205354
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.869e-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:  1.174e+00  2.054e-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:  7.103e-01  2.407e-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: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188129/likelihoodResults_363484801_363744001_4FGL_J1156.6+0640_daily_bin479.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) = 5228.65404791
delta logL = -4.99723828398e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5228.65399796
delta logL = -2.61816239799e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6255       1.0000          .0000       10.000    
     3 'Normalizat'    .71029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1743       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=   5228.654     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.079        .90712E-02** at limit **
   2  Index         2.6142        8.5101        .50000        .10766E-05
   3  Normalizat    .71029        .44393E-02    .69289E-01    .22754E-04
   4  Prefactor     1.1743        .39738E-02    .35269E-01    .28251E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.61418
  Normalizat = 0.710289
  Prefactor  = 1.17429
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.654     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    477.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6142        5.1832        .50000       -.49742    
   3  Normalizat    .71029        .11437E-01    .30663E-03   -1.0349    
   4  Prefactor     1.1743        .10257E-01    .21747E-03   -.87126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3235e-08
Minuit parameter uncertainties:
  1  2.50397e-05
  2  468.99
  3  0.0114366
  4  0.0102566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188129': 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) = 5228.65399796
delta logL = -2.20234142034e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.504e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.614e+00  4.690e+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:  1.174e+00  1.026e-02  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:  7.103e-01  1.144e-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/188129/cmap_HighResolution_363484801_363744001_4FGL_J1156.6+0640_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-04 17:20:27.084422', job_id='188129', GAL2='1.17', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630801227.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-2.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='479' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:20:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 188129: <4FGL_J1156.6+0640_daily_bin479> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin479> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:35 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:36 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:36 2021
Terminated at Sat Sep  4 17:20:27 2021
Results reported at Sat Sep  4 17:20:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin479 179.164 6.6728 363484801 363744001 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 :                                   677.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

