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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin661
RA = 179.164, Dec = 6.6728
tmin = 410659201, tmax = 410918401
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='189626', job_status='RUN', time_executed='2021-09-04 17:13:37.547543', time_epoch_executed='1630800817.55' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189626/ft1_4FGL_J1156.6+0640_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189626/ft2_4FGL_J1156.6+0640_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189626/ft1_4FGL_J1156.6+0640_daily_bin661.fits outfile=/scratch/kocevski/189626/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin661.fits ra=179.164 dec=6.6728 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.91
user 6.63
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189626/ft1_filtered_4FGL_J1156.6+0640_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/189626/ft2_4FGL_J1156.6+0640_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/189626/ltcube_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.fits outfile=/scratch/kocevski/189626/expmap_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.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/189626/ltcube_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.fits
.....................!
real 190.47
user 185.03
sys 5.07

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/189626/ft1_filtered_4FGL_J1156.6+0640_daily_bin661.fits scfile=/scratch/kocevski/189626/ft2_4FGL_J1156.6+0640_daily_bin661.fits outfile=/scratch/kocevski/189626/cmap_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189626/ft1_filtered_4FGL_J1156.6+0640_daily_bin661.fits scfile=/scratch/kocevski/189626/ft2_4FGL_J1156.6+0640_daily_bin661.fits outfile=/scratch/kocevski/189626/cmap_HighResolution_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2619       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93576       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7370       1.0000         .10000E-03   10000.    
    16 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    34.435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0468       1.0000         .10000E-03   10000.    
    21 'norm      '    .10537       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9756       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70455       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1151       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=   3792.343     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     4324 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3128       -.11935E-06** at limit **
   2  Prefactor     50.224        42.996       -.32647E-06   -.17045E-04
   3  Prefactor     4.5778        4.3590       -.16958E-06   -.30606E-04
   4  Prefactor     .10000E-03    12.774        .23083E-06** at limit **
   5  Prefactor     .75109        7352.8       -.14825E-03    .53599E-05
   6  Prefactor     .10000E-03    34.653       -.13915E-05** at limit **
   7  Prefactor     .10000E-03    4.1826       -.30391E-06** at limit **
   8  Prefactor     .10000E-03    138.22        .18698E-05** at limit **
   9  Prefactor     31.637        130.21       -.88770E-05   -.12442E-05
  10  Prefactor     3.6837        79.660        .10014E-05    .23533E-04
  11  Prefactor     .10000E-03    7.8256        .11757E-06** at limit **
  12  Prefactor     .93820        9.2808       -.19198E-05   -.50081E-04
  13  Prefactor     1.5772        4.1278        .10559E-05    .32892E-03
  14  Prefactor     .10000E-03    14.371       -.50350E-06** at limit **
  15  Prefactor     3.7161        14.311       -.17805E-05    .16739E-03
  16  norm          .10000E-03    1.9142        .12421E-05** at limit **
  17  norm          .32886        6.4737       -.36845E-05    .14116E-02
  18  Prefactor     .10000E-03    11.278       -.44158E-06** at limit **
  19  norm          34.416        57.214        .80005E-05    .49803E-03
  20  Prefactor     3.2192        1844.6        .93147E-05    .87243E-05
  21  norm          .10574        1.0023        .17892E-06    .18625E-02
  22  Prefactor     .10000E-03    4.2442       -.17159E-06** at limit **
  23  Prefactor     .10000E-03    21.149       -.51711E-06** at limit **
  24  norm          8.9749        2.6310        .11620E-06    .19874E-02
  25  Normalizat    .70485        .25590        .44210E-05    .21930E-03
  26  Prefactor     1.1149        .20264       -.20061E-05    .16825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 50.2242
  Prefactor  = 4.57785
  Prefactor  = 0.0001
  Prefactor  = 0.751093
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.6369
  Prefactor  = 3.68369
  Prefactor  = 0.0001
  Prefactor  = 0.938197
  Prefactor  = 1.57718
  Prefactor  = 0.0001
  Prefactor  = 3.71607
  norm       = 0.0001
  norm       = 0.328865
  Prefactor  = 0.0001
  norm       = 34.4161
  Prefactor  = 3.21919
  norm       = 0.105742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.97488
  Normalizat = 0.704847
  Prefactor  = 1.11494
 **********
 **   18 **HESSE 
 **********

 FCN=   3792.343     FROM HESSE     STATUS=OK           460 CALLS     4784 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3173        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.224        43.009        .56587E-04   -1.4289    
   3  Prefactor     4.5778        4.3610        .11708E-03   -1.5280    
   4  Prefactor     .10000E-03    12.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .75109        7571.4        .39693E-02   -1.5535    
   6  Prefactor     .10000E-03    35.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1917        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    142.47        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.637        131.13        .71101E-04   -1.4582    
  10  Prefactor     3.6837        79.256        .10541E-02   -1.5324    
  11  Prefactor     .10000E-03    7.8295        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .93820        8.4636        .31002E-03   -1.5514    
  13  Prefactor     1.5772        3.8812        .16945E-03   -1.5457    
  14  Prefactor     .10000E-03    14.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7161        13.688        .10444E-02   -1.5322    
  16  norm          .10000E-03    1.9589        .16464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32886        29.093        .18097E-02   -1.5593    
  18  Prefactor     .10000E-03    11.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          34.416        63.012        .68290E-04   -1.4534    
  20  Prefactor     3.2192        1732.6        .23244E-02   -1.5349    
  21  norm          .10574        1.2382        .77691E-03   -1.5643    
  22  Prefactor     .10000E-03    4.2518        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9749        2.5935        .49018E-04   -1.5109    
  25  Normalizat    .70485        .29197        .29733E-03   -1.0370    
  26  Prefactor     1.1149        .23225        .21426E-03   -.88991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37391e-08
Minuit parameter uncertainties:
  1  1.51515e-06
  2  43.0355
  3  4.36131
  4  4.07374e-05
  5  140.111
  6  0.000531998
  7  6.94489e-06
  8  0.000684416
  9  129.309
  10  34.2246
  11  1.21172e-05
  12  5.63654
  13  3.88186
  14  2.05934e-05
  15  13.7
  16  3.47473e-05
  17  6.18854
  18  2.05726e-05
  19  63.1337
  20  154.081
  21  0.723377
  22  1.08508e-06
  23  2.33797e-05
  24  2.59351
  25  0.292613
  26  0.232459
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.511e-01  1.401e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.115e+00  2.325e-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.048e-01  2.926e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189626/likelihoodResults_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.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) = 3792.34257059
delta logL = 6.44936394565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3791.45571676
delta logL = 0.886918327504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58386E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9910       1.0000          .0000       10.000    
     3 'Normalizat'    .57926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1884       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=   3791.456     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      300 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56851E-01    .97420        .27784E-02    .45670E-02
   2  Index         6.0028        2.6633        .95071E-01    .18272E-03
   3  Normalizat    .57989        .59951E-01    .73661E-01    .30068E-04
   4  Prefactor     1.1882        .53308E-01    .34912E-01   -.11373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0568515
  Index      = 6.00283
  Normalizat = 0.579895
  Prefactor  = 1.18816
 **********
 **   18 **HESSE 
 **********

 FCN=   3791.456     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      333 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56851E-01    2.1528        .12600E-03   -1.5660    
   2  Index         6.0028        7.3140        .36681E-02    .20194    
   3  Normalizat    .57989        .20770        .32611E-03   -1.0884    
   4  Prefactor     1.1882        .18124        .20851E-03   -.86696    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.92471e-11
Minuit parameter uncertainties:
  1  0.699093
  2  4.96225
  3  0.207981
  4  0.181339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189626': 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) = 3791.4556959
delta logL = 0.886939185329

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.685e-02  6.991e-01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  6.003e+00  4.962e+00  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.188e+00  1.813e-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:  5.799e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 179.164 6.673
Photon Index (Free Index): 6.00 +/- 4.96
Photon Flux (Free Index): 9.35e-08 +/- 7.96e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.07e-05

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/189626/cmap_HighResolution_410659201_410918401_4FGL_J1156.6+0640_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='8.87e-01', photon_flux2='9.35e-08', job_status='DONE', time_completed='2021-09-04 17:24:35.589327', photon_index_error2='4.96', photon_index2='6.00', ts='0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.07e-05', EG='0.70', time_epoch_completed='1630801475.59', return_code='0', job_id='189626', GAL2='1.19', EG2='0.58', return_code2='102', photon_flux_error2='7.96e-08', ts2='1.99', photon_index='2.32' WHERE bin_id='661' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 189626: <4FGL_J1156.6+0640_daily_bin661> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin661 179.164 6.6728 410659201 410918401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1156.6+0640 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.00 sec.
    Max Memory :                                 1108 MB
    Average Memory :                             317.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

