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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin704
RA = 179.164, Dec = 6.6728
tmin = 421804801, tmax = 422064001
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='189693', job_status='RUN', time_executed='2021-09-04 17:13:57.210583', time_epoch_executed='1630800837.21' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189693

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189693/ft1_4FGL_J1156.6+0640_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189693/ft2_4FGL_J1156.6+0640_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189693/ft1_4FGL_J1156.6+0640_daily_bin704.fits outfile=/scratch/kocevski/189693/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin704.fits ra=179.164 dec=6.6728 rad=12.0 tmin=421804801.0 tmax=422064001.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189693/ft1_filtered_4FGL_J1156.6+0640_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/189693/ft2_4FGL_J1156.6+0640_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/189693/ltcube_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.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/189693/ft2_4FGL_J1156.6+0640_daily_bin704.fits
.....................!
real 11.95
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189693/ft1_filtered_4FGL_J1156.6+0640_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/189693/ft2_4FGL_J1156.6+0640_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/189693/ltcube_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.fits outfile=/scratch/kocevski/189693/expmap_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.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/189693/ltcube_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.fits
.....................!
real 190.26
user 185.32
sys 4.59

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/189693/ft1_filtered_4FGL_J1156.6+0640_daily_bin704.fits scfile=/scratch/kocevski/189693/ft2_4FGL_J1156.6+0640_daily_bin704.fits outfile=/scratch/kocevski/189693/cmap_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189693/ft1_filtered_4FGL_J1156.6+0640_daily_bin704.fits scfile=/scratch/kocevski/189693/ft2_4FGL_J1156.6+0640_daily_bin704.fits outfile=/scratch/kocevski/189693/cmap_HighResolution_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7466       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0250       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.739       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.231       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.441       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2749       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97501       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0658       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=   7003.463     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3097 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.359        11.750        .13258E-05   -.16901E-03
   2  Prefactor     .10000E-03    22.697        .26410E-06** at limit **
   3  Prefactor     1.7465        1.9571        .13216E-06   -.49993E-04
   4  Prefactor     .10000E-03    32.613       -.48009E-07** at limit **
   5  Prefactor     61.502        60.705        .49878E-06    .15641E-04
   6  Prefactor     3.0236        6.6560       -.33419E-06   -.21504E-03
   7  Prefactor     .10000E-03    5.3081       -.42839E-07** at limit **
   8  Prefactor     12.893        17.060        .19352E-07   -.17920E-04
   9  Prefactor     .10000E-03    49.800       -.25050E-06** at limit **
  10  Prefactor     10.198        23.158       -.32275E-05   -.19442E-03
  11  Prefactor     16.739        18.457        .21342E-06    .31023E-05
  12  Prefactor     .10000E-03    1.9838        .28336E-07** at limit **
  13  Prefactor     .10000E-03    .96123        .88484E-08** at limit **
  14  Prefactor     24.241        22.910        .77264E-06    .12542E-03
  15  Prefactor     .10000E-03    2.3671        .12944E-08** at limit **
  16  norm          .10000E-03    .48168        .69943E-08** at limit **
  17  norm          1.6928        3.3158        .34955E-06   -.13770E-03
  18  Prefactor     .10000E-03    13.553        .32093E-07** at limit **
  19  norm          16.447        30.837        .79437E-06    .71470E-04
  20  Prefactor     .10000E-03    37.636        .20012E-05** at limit **
  21  norm          1.2752        .51989       -.28777E-07   -.21032E-03
  22  Prefactor     .97162        9.3563        .39063E-05   -.18435E-03
  23  Prefactor     .10000E-03    29.737       -.19321E-05** at limit **
  24  norm          .10000E-03    .67771        .33853E-07** at limit **
  25  Normalizat    1.1144        .19082       -.10388E-06   -.63279E-04
  26  Prefactor     1.0658        .16171       -.49756E-06   -.35415E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3587
  Prefactor  = 0.0001
  Prefactor  = 1.74648
  Prefactor  = 0.0001
  Prefactor  = 61.502
  Prefactor  = 3.0236
  Prefactor  = 0.0001
  Prefactor  = 12.8931
  Prefactor  = 0.0001
  Prefactor  = 10.1983
  Prefactor  = 16.7385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2409
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.69285
  Prefactor  = 0.0001
  norm       = 16.4475
  Prefactor  = 0.000100001
  norm       = 1.27518
  Prefactor  = 0.971624
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.11445
  Prefactor  = 1.06584
 **********
 **   18 **HESSE 
 **********

 FCN=   7003.463     FROM HESSE     STATUS=OK           456 CALLS     3553 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.359        11.866        .62240E-03   -1.5064    
   2  Prefactor     .10000E-03    22.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7465        1.9444        .11857E-03   -1.5444    
   4  Prefactor     .10000E-03    32.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     61.502        60.792        .51166E-04   -1.4138    
   6  Prefactor     3.0236        6.7271        .23333E-03   -1.5360    
   7  Prefactor     .10000E-03    5.4162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.893        17.092        .11156E-03   -1.4990    
   9  Prefactor     .10000E-03    49.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.198        24.127        .12533E-03   -1.5069    
  11  Prefactor     16.739        18.461        .97894E-04   -1.4889    
  12  Prefactor     .10000E-03    2.0144        .11509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .96618        .80118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.241        23.036        .81376E-04   -1.4723    
  15  Prefactor     .10000E-03    2.3695        .12572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .48276        .56707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6928        3.2609        .17603E-03   -1.5448    
  18  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.447        30.939        .98777E-04   -1.4897    
  20  Prefactor     .10000E-03    38.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2752        .51269        .34730E-04   -1.5482    
  22  Prefactor     .97162        9.9698        .51002E-03   -1.5511    
  23  Prefactor     .10000E-03    30.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.0857        .13292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1144        .22458        .26944E-03   -.89289    
  26  Prefactor     1.0658        .18956        .24046E-03   -.90566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28486e-10
Minuit parameter uncertainties:
  1  11.8682
  2  3.37599e-05
  3  1.94443
  4  7.46216e-07
  5  60.8533
  6  6.72879
  7  1.34585e-05
  8  17.0985
  9  3.549e-05
  10  24.1497
  11  18.4673
  12  7.71241e-07
  13  6.07299e-08
  14  23.0443
  15  5.36484e-07
  16  1.56255e-07
  17  3.26119
  18  3.3095e-07
  19  30.9688
  20  0.000401722
  21  0.512692
  22  6.22577
  23  0.000365031
  24  1.46413e-06
  25  0.224775
  26  0.189684
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.150e+01  6.085e+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:  1.066e+00  1.897e-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.114e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 8.02e-06 +/- 7.93e-06

TS (Fixed Index): 2.88
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 8.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189693/likelihoodResults_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.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) = 7002.42295827
delta logL = 1.04050948946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7002.39561902
delta logL = 1.0678487396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.672       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3470       1.0000          .0000       10.000    
     3 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0583       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=   7002.396     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      253 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.701        89.944        .23232E-03   -.11617E-03
   2  Index         1.3471        .62674        .10824E-01    .22341E-04
   3  Normalizat    1.1314        .21278        .26759E-03   -.56085E-03
   4  Prefactor     1.0582        .18720        .24117E-03   -.50166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.7008
  Index      = 1.34707
  Normalizat = 1.13141
  Prefactor  = 1.0582
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.396     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.701        92.304        .46464E-04   -1.3977    
   2  Index         1.3471        .64320        .43295E-03   -.81918    
   3  Normalizat    1.1314        .21296        .53518E-04   -.88750    
   4  Prefactor     1.0582        .18736        .48235E-04   -.90814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36122e-10
Minuit parameter uncertainties:
  1  92.4814
  2  0.647064
  3  0.213123
  4  0.187474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189693': 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) = 7002.39561867
delta logL = 1.06784908586

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.470e+01  9.248e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  1.347e+00  6.471e-01  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.058e+00  1.875e-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.131e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 179.164 6.673
Photon Index (Free Index): 1.35 +/- 0.65
Photon Flux (Free Index): 6.96e-09 +/- 9.96e-09
Energy Flux (Free Index): 3.66e-05 +/- 5.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/189693/cmap_HighResolution_421804801_422064001_4FGL_J1156.6+0640_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='3.66e-05', photon_flux_error='2.15e-08', dlogl='1.07e+00', energy_flux='8.02e-06', photon_flux2='6.96e-09', job_status='DONE', time_completed='2021-09-04 17:27:23.933926', photon_index_error2='0.65', photon_index2='1.35', ts='2.88', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.18e-08', energy_flux_error2='5.46e-05', EG='1.11', time_epoch_completed='1630801643.93', return_code='0', job_id='189693', GAL2='1.06', EG2='1.13', return_code2='0', energy_flux_error='7.93e-06', photon_flux_error2='9.96e-09', ts2='5.02', photon_index='2.32' WHERE bin_id='704' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 189693: <4FGL_J1156.6+0640_daily_bin704> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin704 179.164 6.6728 421804801 422064001 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 :                                   806.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

