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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin604
RA = 179.164, Dec = 6.6728
tmin = 395884801, tmax = 396144001
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='189537', job_status='RUN', time_executed='2021-09-04 17:13:07.908860', time_epoch_executed='1630800787.91' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189537/ft1_4FGL_J1156.6+0640_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189537/ft2_4FGL_J1156.6+0640_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189537/ft1_4FGL_J1156.6+0640_daily_bin604.fits outfile=/scratch/kocevski/189537/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin604.fits ra=179.164 dec=6.6728 rad=12.0 tmin=395884801.0 tmax=396144001.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.43
user 3.05
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189537/ft1_filtered_4FGL_J1156.6+0640_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/189537/ft2_4FGL_J1156.6+0640_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/189537/ltcube_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.fits outfile=/scratch/kocevski/189537/expmap_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.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/189537/ltcube_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.fits
.....................!
real 191.78
user 185.93
sys 5.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/189537/ft1_filtered_4FGL_J1156.6+0640_daily_bin604.fits scfile=/scratch/kocevski/189537/ft2_4FGL_J1156.6+0640_daily_bin604.fits outfile=/scratch/kocevski/189537/cmap_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189537/ft1_filtered_4FGL_J1156.6+0640_daily_bin604.fits scfile=/scratch/kocevski/189537/ft2_4FGL_J1156.6+0640_daily_bin604.fits outfile=/scratch/kocevski/189537/cmap_HighResolution_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.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/189537/ft1_filtered_4FGL_J1156.6+0640_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/189537/ft2_4FGL_J1156.6+0640_daily_bin604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189537/Model_4FGL_J1156.6+0640_daily_bin604.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/189537/ft1_filtered_4FGL_J1156.6+0640_daily_bin604.fits.....................!
real 54.24
user 52.77
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.803       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99009E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9181       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11078E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1586       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.691       1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .37223       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6301       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83858       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=   5581.970     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3284 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.505        20.825       -.24483E-07   -.21062E-06
   2  Prefactor     25.803        50.287       -.13766E-05   -.19121E-05
   3  Prefactor     .10778        1.2826       -.52428E-06    .44114E-03
   4  Prefactor     .10000E-03    10.234       -.55169E-06** at limit **
   5  Prefactor     .10000E-03    76.699        .55118E-04** at limit **
   6  Prefactor     .10000E-03    5.8308       -.95194E-07** at limit **
   7  Prefactor     8.4439        8.4585       -.31691E-08   -.36557E-04
   8  Prefactor     .10000E-03    12.261        .35381E-06** at limit **
   9  Prefactor     .10000E-03    59.340       -.41287E-05** at limit **
  10  Prefactor     1.9234        224.64        .13894E-04   -.17854E-04
  11  Prefactor     15.435        21.721       -.47670E-06   -.12007E-03
  12  Prefactor     2.1099        5.4301       -.18372E-05   -.75300E-03
  13  Prefactor     6.6104        4.3071        .49846E-06    .24433E-04
  14  Prefactor     17.015        29.425       -.11836E-05    .27800E-06
  15  Prefactor     .10349E-03    12.281       -.27410E-05** at limit **
  16  norm          1.1607        2.2859        .16434E-06    .63048E-03
  17  norm          1.5720        3.2413       -.70419E-06   -.82718E-03
  18  Prefactor     71.697        45.124        .32216E-05    .21766E-04
  19  norm          .10000E-03    36.963        .11732E-04** at limit **
  20  Prefactor     .10000E-03    50.300       -.33901E-04** at limit **
  21  norm          .37233        .48398        .19382E-07    .24991E-03
  22  Prefactor     .10000E-03    3.0543       -.26529E-07** at limit **
  23  Prefactor     .10000E-03    17.527       -.87860E-06** at limit **
  24  norm          1.6302        1.5520       -.56293E-07   -.22786E-03
  25  Normalizat    1.2951        .21691        .11221E-06    .25849E-03
  26  Prefactor     .83845        .17514        .54535E-07    .21822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 45.5051
  Prefactor  = 25.8026
  Prefactor  = 0.107775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.44392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92345
  Prefactor  = 15.435
  Prefactor  = 2.10986
  Prefactor  = 6.61044
  Prefactor  = 17.0147
  Prefactor  = 0.000103489
  norm       = 1.16071
  norm       = 1.57202
  Prefactor  = 71.6966
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.372326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63025
  Normalizat = 1.29513
  Prefactor  = 0.838452
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.970     FROM HESSE     STATUS=OK           466 CALLS     3750 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.505        20.837        .59440E-04   -1.4358    
   2  Prefactor     25.803        50.347        .78862E-04   -1.4692    
   3  Prefactor     .10778        10.800        .16042E-02   -1.5642    
   4  Prefactor     .10000E-03    10.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    75.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8771        .17617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4439        8.4158        .13796E-03   -1.5127    
   8  Prefactor     .10000E-03    12.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9234        222.03        .30006E-03   -1.5431    
  11  Prefactor     15.435        21.434        .50975E-03   -1.4922    
  12  Prefactor     2.1099        5.3855        .23388E-03   -1.5417    
  13  Prefactor     6.6104        4.2489        .10503E-03   -1.5194    
  14  Prefactor     17.015        29.239        .97090E-04   -1.4883    
  15  Prefactor     .10349E-03    138.54        .43590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1607        2.0233        .13689E-03   -1.5492    
  17  norm          1.5720        3.1630        .17367E-03   -1.5457    
  18  Prefactor     71.697        45.128        .47413E-04   -1.4012    
  19  norm          .10000E-03    37.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .37233        .44032        .53906E-03   -1.5586    
  22  Prefactor     .10000E-03    3.0583        .12752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6302        1.5369        .86813E-04   -1.5453    
  25  Normalizat    1.2951        .25244        .25440E-03   -.83712    
  26  Prefactor     .83845        .20516        .26305E-03   -.98326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5991e-08
Minuit parameter uncertainties:
  1  20.8405
  2  50.4299
  3  2.15717
  4  1.3392e-07
  5  0.000105925
  6  4.4777e-06
  7  8.41701
  8  6.12215e-07
  9  9.05337e-06
  10  41.4888
  11  21.4448
  12  5.38672
  13  4.24911
  14  29.2633
  15  0.0440717
  16  2.02346
  17  3.16334
  18  45.1493
  19  5.00489e-05
  20  1.53873e-05
  21  0.440323
  22  8.76751e-07
  23  1.1615e-06
  24  1.53689
  25  0.252677
  26  0.205351
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.385e-01  2.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.295e+00  2.527e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189537/likelihoodResults_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.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) = 5581.97042135
delta logL = -6.27639747108e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5581.97035831
delta logL = 2.78163497569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9638       1.0000          .0000       10.000    
     3 'Normalizat'    1.2951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83845       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=   5581.970     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.420        .90712E-02** at limit **
   2  Index         3.0035        5.8501        .50000       -.29628E-05
   3  Normalizat    1.2951        .25888E-02    .57528E-01   -.98001E-04
   4  Prefactor     .83845        .22182E-02    .44216E-01   -.42097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.00352
  Normalizat = 1.29513
  Prefactor  = 0.838453
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.970     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    459.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0035        6.4675        .50000       -.41075    
   3  Normalizat    1.2951        .94381E-02    .25440E-03   -.83712    
   4  Prefactor     .83845        .80881E-02    .26305E-03   -.98326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.20401e-08
Minuit parameter uncertainties:
  1  0.000768604
  2  321.389
  3  0.00943811
  4  0.00808812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189537': 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) = 5581.97035828
delta logL = 3.0858154787e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.385e-01  8.088e-03  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.295e+00  9.438e-03  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/189537/cmap_HighResolution_395884801_396144001_4FGL_J1156.6+0640_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-04 17:25:26.236061', job_id='189537', GAL2='0.84', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630801526.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='604' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:25:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 189537: <4FGL_J1156.6+0640_daily_bin604> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin604 179.164 6.6728 395884801 396144001 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 :                                   737.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

