/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 152 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 = 7427
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin125
RA = 179.164, Dec = 6.6728
tmin = 271728001, tmax = 271987201
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='186573', job_status='RUN', time_executed='2021-09-04 17:04:06.061832', time_epoch_executed='1630800246.06' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186573/ft1_4FGL_J1156.6+0640_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186573/ft2_4FGL_J1156.6+0640_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186573/ft1_4FGL_J1156.6+0640_daily_bin125.fits outfile=/scratch/kocevski/186573/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin125.fits ra=179.164 dec=6.6728 rad=12.0 tmin=271728001.0 tmax=271987201.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.10
user 2.89
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186573/ft1_filtered_4FGL_J1156.6+0640_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/186573/ft2_4FGL_J1156.6+0640_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/186573/ltcube_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.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/186573/ft2_4FGL_J1156.6+0640_daily_bin125.fits
.....................!
real 12.15
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186573/ft1_filtered_4FGL_J1156.6+0640_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/186573/ft2_4FGL_J1156.6+0640_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/186573/ltcube_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.fits outfile=/scratch/kocevski/186573/expmap_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.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/186573/ltcube_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.fits
.....................!
real 192.59
user 187.79
sys 4.43

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/186573/ft1_filtered_4FGL_J1156.6+0640_daily_bin125.fits scfile=/scratch/kocevski/186573/ft2_4FGL_J1156.6+0640_daily_bin125.fits outfile=/scratch/kocevski/186573/cmap_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.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.54
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.668       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2375       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .43745       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11602E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.9591       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4956       1.0000         .10000E-03   10000.    
    24 'norm      '    3.5906       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3068       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85517       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=   6711.540     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3108 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.878        14.296        .45732E-07    .27974E-05
   2  Prefactor     31.667        32.661        .17242E-06   -.42163E-05
   3  Prefactor     1.4427        2.7073        .22768E-06    .23106E-04
   4  Prefactor     .10000E-03    17.896       -.25068E-06** at limit **
   5  Prefactor     64.410        90.000        .49696E-06   -.16469E-04
   6  Prefactor     2.8537        5.8320        .32772E-05    .52843E-03
   7  Prefactor     15.977        10.027        .69703E-07   -.16287E-04
   8  Prefactor     .10000E-03    7.3951       -.11175E-05** at limit **
   9  Prefactor     .10000E-03    25.928        .53768E-06** at limit **
  10  Prefactor     29.940        35.613       -.91783E-06    .22923E-04
  11  Prefactor     .10000E-03    17.499       -.33235E-06** at limit **
  12  Prefactor     .10000E-03    1.7023       -.26317E-07** at limit **
  13  Prefactor     3.2375        3.1862        .53441E-07    .86093E-04
  14  Prefactor     13.640        31.707       -.43586E-05    .57640E-04
  15  Prefactor     .10000E-03    10.367       -.14549E-06** at limit **
  16  norm          .10000E-03    .67545       -.79823E-08** at limit **
  17  norm          .43218        3.5050       -.16063E-05    .90588E-03
  18  Prefactor     .10000E-03    13.879        .22878E-06** at limit **
  19  norm          .10000E-03    28.704       -.53004E-06** at limit **
  20  Prefactor     .10000E-03    65.929       -.45264E-06** at limit **
  21  norm          7.9590        1.0963       -.56282E-07   -.17690E-02
  22  Prefactor     .10000E-03    6.4458        .14664E-06** at limit **
  23  Prefactor     3.5029        53.385       -.81669E-06    .13961E-04
  24  norm          3.5908        2.0883       -.39472E-07   -.15313E-03
  25  Normalizat    1.3066        .21075       -.42244E-06   -.55732E-04
  26  Prefactor     .85521        .17161        .46569E-07   -.56967E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.8778
  Prefactor  = 31.6667
  Prefactor  = 1.44273
  Prefactor  = 0.0001
  Prefactor  = 64.4099
  Prefactor  = 2.85375
  Prefactor  = 15.9766
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 29.9404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.23747
  Prefactor  = 13.6397
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.43218
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.959
  Prefactor  = 0.0001
  Prefactor  = 3.50289
  norm       = 3.59079
  Normalizat = 1.3066
  Prefactor  = 0.855208
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.540     FROM HESSE     STATUS=OK           460 CALLS     3568 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.878        14.318        .83753E-04   -1.4751    
   2  Prefactor     31.667        32.686        .71203E-04   -1.4582    
   3  Prefactor     1.4427        2.6873        .17237E-03   -1.5468    
   4  Prefactor     .10000E-03    17.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     64.410        90.111        .50001E-04   -1.4101    
   6  Prefactor     2.8537        6.0149        .12036E-02   -1.5370    
   7  Prefactor     15.977        10.027        .10020E-03   -1.4908    
   8  Prefactor     .10000E-03    26.478        .42433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.940        35.664        .73234E-04   -1.4613    
  11  Prefactor     .10000E-03    17.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7114        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2375        3.1790        .13954E-03   -1.5348    
  14  Prefactor     13.640        33.320        .10858E-03   -1.4969    
  15  Prefactor     .10000E-03    10.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .67953        .65740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .43218        13.161        .21459E-02   -1.5576    
  18  Prefactor     .10000E-03    13.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    28.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    65.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.9590        1.1006        .14212E-04   -1.5144    
  22  Prefactor     .10000E-03    6.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.5029        53.255        .21626E-03   -1.5334    
  24  norm          3.5908        2.0826        .85980E-04   -1.5329    
  25  Normalizat    1.3066        .25119        .27728E-03   -.83370    
  26  Prefactor     .85521        .20381        .28529E-03   -.97724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71132e-09
Minuit parameter uncertainties:
  1  14.3202
  2  32.7047
  3  2.68753
  4  1.12049e-05
  5  90.3023
  6  6.01614
  7  10.0278
  8  0.0004828
  9  6.61567e-05
  10  35.6898
  11  2.69746e-05
  12  2.04537e-06
  13  3.17921
  14  33.3653
  15  1.16452e-05
  16  1.20616e-07
  17  4.7704
  18  2.03887e-07
  19  9.68692e-05
  20  0.000143615
  21  1.10057
  22  1.39906e-05
  23  27.3451
  24  2.08268
  25  0.251421
  26  0.203994
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.441e+01  9.030e+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:  8.552e-01  2.040e-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.307e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186573/likelihoodResults_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.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) = 6711.53433086
delta logL = 0.00562821668791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6711.5314271
delta logL = 0.00853198112964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.867       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4433       1.0000          .0000       10.000    
     3 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85730       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=   6711.531     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.867        6015.4        .13299E-02    .15604E-03
   2  Index         2.4432        6.1021        .17574        .87740E-04
   3  Normalizat    1.3030        .80647E-01    .62763E-01    .72617E-05
   4  Prefactor     .85718        .58091E-01    .64433E-01    .16424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8665
  Index      = 2.44324
  Normalizat = 1.30299
  Prefactor  = 0.857176
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.531     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.867        109.56        .53197E-04   -1.4198    
   2  Index         2.4432        1.0534        .98931E-02   -.53676    
   3  Normalizat    1.3030        .23945        .27761E-03   -.83477    
   4  Prefactor     .85718        .20294        .28499E-03   -.97654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18298e-10
Minuit parameter uncertainties:
  1  109.954
  2  1.06422
  3  0.239655
  4  0.203123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186573': 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) = 6711.53142691
delta logL = 0.00853216934047

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.687e+01  1.100e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.443e+00  1.064e+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:  8.572e-01  2.031e-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.303e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/186573/cmap_HighResolution_271728001_271987201_4FGL_J1156.6+0640_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-04 17:17:41.660374', job_id='186573', GAL2='0.86', fit_tolerance='1e-08', EG2='1.30', EG='1.31', time_epoch_completed='1630801061.66', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.53e-03', ts2='0.79', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='125' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 186573: <4FGL_J1156.6+0640_daily_bin125> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin125> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:24 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:26 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:01:26 2021
Terminated at Sat Sep  4 17:17:42 2021
Results reported at Sat Sep  4 17:17:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin125 179.164 6.6728 271728001 271987201 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

