/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 178 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 = 7406
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin202
RA = 179.164, Dec = 6.6728
tmin = 291686401, tmax = 291945601
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='186692', job_status='RUN', time_executed='2021-09-04 17:04:44.674554', time_epoch_executed='1630800284.67' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186692/ft1_4FGL_J1156.6+0640_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186692/ft2_4FGL_J1156.6+0640_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186692/ft1_4FGL_J1156.6+0640_daily_bin202.fits outfile=/scratch/kocevski/186692/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin202.fits ra=179.164 dec=6.6728 rad=12.0 tmin=291686401.0 tmax=291945601.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186692/ft1_filtered_4FGL_J1156.6+0640_daily_bin202.fits" evtable="EVENTS" scfile=/scratch/kocevski/186692/ft2_4FGL_J1156.6+0640_daily_bin202.fits sctable="SC_DATA" outfile=/scratch/kocevski/186692/ltcube_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.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/186692/ft2_4FGL_J1156.6+0640_daily_bin202.fits
.....................!
real 11.92
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186692/ft1_filtered_4FGL_J1156.6+0640_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/186692/ft2_4FGL_J1156.6+0640_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/186692/ltcube_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.fits outfile=/scratch/kocevski/186692/expmap_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.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/186692/ltcube_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.fits
.....................!
real 190.43
user 186.01
sys 4.05

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/186692/ft1_filtered_4FGL_J1156.6+0640_daily_bin202.fits scfile=/scratch/kocevski/186692/ft2_4FGL_J1156.6+0640_daily_bin202.fits outfile=/scratch/kocevski/186692/cmap_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186692/ft1_filtered_4FGL_J1156.6+0640_daily_bin202.fits scfile=/scratch/kocevski/186692/ft2_4FGL_J1156.6+0640_daily_bin202.fits outfile=/scratch/kocevski/186692/cmap_HighResolution_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12897E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.730       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14339E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4587       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.9202       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.8108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    171.21       1.0000         .10000E-03   10000.    
    21 'norm      '    7.0153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0566       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82970       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=   5987.815     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3064 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.857        .24338E-06** at limit **
   2  Prefactor     .10000E-03    54.101        .10561E-05** at limit **
   3  Prefactor     2.0695        2.5464        .19193E-06   -.63790E-04
   4  Prefactor     28.727        26.080       -.14194E-06   -.77010E-06
   5  Prefactor     .10000E-03    37.228       -.37339E-06** at limit **
   6  Prefactor     17.344        10.787        .29100E-07    .22703E-04
   7  Prefactor     .10000E-03    16.916       -.19098E-05** at limit **
   8  Prefactor     15.506        14.677       -.71902E-07    .40398E-04
   9  Prefactor     89.142        88.652        .36975E-06    .44069E-04
  10  Prefactor     66.538        57.732        .32859E-06   -.71742E-04
  11  Prefactor     4.1521        15.814        .75919E-05   -.21647E-03
  12  Prefactor     1.4675        5.5514        .40265E-05    .38493E-03
  13  Prefactor     .10000E-03    2.5931       -.13945E-05** at limit **
  14  Prefactor     11.273        27.431        .78255E-06   -.22275E-04
  15  Prefactor     .10000E-03    6.1958       -.42407E-07** at limit **
  16  norm          8.9199        3.6870       -.15557E-06   -.34121E-04
  17  norm          3.9652        6.2970       -.77457E-06    .74438E-04
  18  Prefactor     .10000E-03    9.9652       -.16666E-06** at limit **
  19  norm          7.7420        66.579        .20385E-05   -.66230E-04
  20  Prefactor     171.10        168.12        .12916E-06   -.42646E-04
  21  norm          7.0153        1.1434        .49027E-07    .37193E-04
  22  Prefactor     6.0575        9.1826        .23342E-06    .96929E-05
  23  Prefactor     .10000E-03    12.714        .81194E-07** at limit **
  24  norm          .10000E-03    .45958        .21057E-07** at limit **
  25  Normalizat    1.1057        .21516       -.56721E-06    .19489E-03
  26  Prefactor     .83033        .17351       -.23520E-06    .11226E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06955
  Prefactor  = 28.727
  Prefactor  = 0.0001
  Prefactor  = 17.3436
  Prefactor  = 0.0001
  Prefactor  = 15.5056
  Prefactor  = 89.1424
  Prefactor  = 66.5381
  Prefactor  = 4.15214
  Prefactor  = 1.46754
  Prefactor  = 0.000100005
  Prefactor  = 11.2734
  Prefactor  = 0.0001
  norm       = 8.91987
  norm       = 3.96515
  Prefactor  = 0.0001
  norm       = 7.74196
  Prefactor  = 171.102
  norm       = 7.01531
  Prefactor  = 6.05751
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10575
  Prefactor  = 0.830331
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.815     FROM HESSE     STATUS=OK           460 CALLS     3524 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0695        2.5324        .12997E-03   -1.5420    
   4  Prefactor     28.727        26.071        .74746E-04   -1.4635    
   5  Prefactor     .10000E-03    37.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.344        10.795        .96181E-04   -1.4875    
   7  Prefactor     .10000E-03    17.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.506        14.684        .10173E-03   -1.4920    
   9  Prefactor     89.142        88.657        .21282E-03   -1.3817    
  10  Prefactor     66.538        57.892        .49185E-04   -1.4075    
  11  Prefactor     4.1521        15.115        .98873E-03   -1.5300    
  12  Prefactor     1.4675        5.4134        .31948E-03   -1.5466    
  13  Prefactor     .10000E-03    8.8526        .21622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.273        27.332        .11924E-03   -1.5036    
  15  Prefactor     .10000E-03    6.2049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9199        3.6861        .91022E-04   -1.5111    
  17  norm          3.9652        6.1571        .17767E-03   -1.5310    
  18  Prefactor     .10000E-03    9.9670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7420        65.204        .14348E-03   -1.5151    
  20  Prefactor     171.10        167.93        .15418E-03   -1.3084    
  21  norm          7.0153        1.1369        .15146E-04   -1.5178    
  22  Prefactor     6.0575        9.1773        .16315E-03   -1.5216    
  23  Prefactor     .10000E-03    12.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .46231        .51210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1057        .25122        .28137E-03   -.89568    
  26  Prefactor     .83033        .20231        .27274E-03   -.98620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40031e-09
Minuit parameter uncertainties:
  1  1.93027e-05
  2  0.000104433
  3  2.53254
  4  26.0813
  5  6.18209e-05
  6  10.7961
  7  0.000145785
  8  14.6876
  9  88.7891
  10  57.9405
  11  15.1286
  12  5.41525
  13  0.000417229
  14  27.3623
  15  5.47682e-06
  16  3.6862
  17  6.15811
  18  1.36634e-05
  19  45.0019
  20  168.406
  21  1.13693
  22  9.17945
  23  5.16951e-06
  24  1.90718e-07
  25  0.251487
  26  0.202493
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.182e-05  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.303e-01  2.025e-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.106e+00  2.515e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186692/likelihoodResults_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.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) = 5987.81495604
delta logL = -0.000127878369312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5987.81482813
delta logL = 3.01251930068e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2505       1.0000          .0000       10.000    
     3 'Normalizat'    1.1057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83034       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=   5987.815     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      264 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.689        .18142E-02** at limit **
   2  Index         2.2421        5.8610        .50000        .18387E-05
   3  Normalizat    1.1057        .22736        .28137E-03    .29892E-03
   4  Prefactor     .83033        .19492        .27274E-03    .29153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24206
  Normalizat = 1.10575
  Prefactor  = 0.830332
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.815     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2421        6.1203        .50000       -.58427    
   3  Normalizat    1.1057        .22753        .56275E-04   -.89568    
   4  Prefactor     .83033        .19507        .54548E-04   -.98620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32409e-10
Minuit parameter uncertainties:
  1  0.000142951
  2  4.21525
  3  0.227729
  4  0.195231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186692': 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) = 5987.81482812
delta logL = 3.52119968738e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.430e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.242e+00  4.215e+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.303e-01  1.952e-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.106e+00  2.277e-01  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/186692/cmap_HighResolution_291686401_291945601_4FGL_J1156.6+0640_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-04 17:17:15.603837', job_id='186692', GAL2='0.83', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630801035.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='202' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 186692: <4FGL_J1156.6+0640_daily_bin202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin202 179.164 6.6728 291686401 291945601 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 :                                   748.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

