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


Performing analysis on: 4FGL_J1153.0+8056_daily_bin686
RA = 178.266, Dec = 80.9357
tmin = 417139201, tmax = 417398401
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='130679', job_status='RUN', time_executed='2021-09-04 14:06:25.243047', time_epoch_executed='1630789585.24' WHERE source_name='4FGL J1153.0+8056' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/130679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/130679/ft1_4FGL_J1153.0+8056_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/130679/ft1_4FGL_J1153.0+8056_daily_bin686.fits outfile=/scratch/kocevski/130679/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin686.fits ra=178.266 dec=80.9357 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.47
user 5.18
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.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/130679/ft1_filteredMKT_4FGL_J1153.0+8056_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/130679/ltcube_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.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/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits
.....................!
real 13.05
user 12.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/130679/ltcube_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.fits outfile=/scratch/kocevski/130679/expmap_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.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/130679/ltcube_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.fits
.....................!
real 191.09
user 185.31
sys 5.17

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1153.0+8056 @ 178.266 80.9357

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits scfile=/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits outfile=/scratch/kocevski/130679/cmap_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.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=178.266 yref=80.9357 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits scfile=/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits outfile=/scratch/kocevski/130679/cmap_HighResolution_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.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=178.266 yref=80.9357 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/130679/Model_4FGL_J1153.0+8056_daily_bin686.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/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits.....................!
real 86.33
user 84.88
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits', '/scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits', expMap='/scratch/kocevski/130679/expmap_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.fits', expCube='/scratch/kocevski/130679/ltcube_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/130679/Model_4FGL_J1153.0+8056_daily_bin686.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.0+8056'

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  3.014e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/130679/ft1_filtered_4FGL_J1153.0+8056_daily_bin686.fits
Spacecraft file(s): /scratch/kocevski/130679/ft2_4FGL_J1153.0+8056_daily_bin686.fits
Exposure map: /scratch/kocevski/130679/expmap_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.fits
Exposure cube: /scratch/kocevski/130679/ltcube_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/130679/Model_4FGL_J1153.0+8056_daily_bin686.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) = 6579.28962003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    9.8730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.218       1.0000         .10000E-03   10000.    
    12 'norm      '    .24275E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20102E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67133E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.978       1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.917       1.0000         .10000E-03   10000.    
    27 'Prefactor '    60.982       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0708       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82155       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6579.281     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3709 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.703        .20927E-05** at limit **
   2  norm          9.8744        19.488        .53638E-07   -.82863E-05
   3  Prefactor     .10000E-03    28.046        .27425E-05** at limit **
   4  Prefactor     5.4620        9.4694        .20352E-05    .79363E-03
   5  Prefactor     20.005        16.653        .22675E-06    .14174E-03
   6  Prefactor     .10000E-03    4.8376        .42478E-07** at limit **
   7  Prefactor     .10000E-03    20.869       -.19323E-05** at limit **
   8  Prefactor     .10000E-03    24.236       -.13849E-05** at limit **
   9  norm          2.1708        4.9663       -.10983E-05   -.45651E-03
  10  Prefactor     .10000E-03    4.0657       -.17709E-07** at limit **
  11  norm          13.217        1.7806        .49248E-07    .21288E-02
  12  norm          .10000E-03    4.3067        .23134E-05** at limit **
  13  Prefactor     .10017E-03    11.059       -.12731E-05** at limit **
  14  Prefactor     .10175E-03    19.809       -.53302E-05** at limit **
  15  Prefactor     .10000E-03    3.3927       -.27606E-07** at limit **
  16  Prefactor     32.801        13.821       -.31008E-06   -.32059E-03
  17  Prefactor     .10000E-03    64.576       -.55602E-05** at limit **
  18  norm          17.977        8.0890        .53144E-07    .74811E-04
  19  norm          .10000E-03    1.7295        .14264E-07** at limit **
  20  Prefactor     25.829        25.854        .81327E-07    .28977E-05
  21  Prefactor     .10000E-03    5.3368        .33947E-07** at limit **
  22  Prefactor     .10000E-03    10.288        .53156E-06** at limit **
  23  Prefactor     .10000E-03    5.7773       -.41735E-07** at limit **
  24  Prefactor     .10000E-03    23.409       -.20062E-05** at limit **
  25  Prefactor     .10000E-03    26.831        .14555E-05** at limit **
  26  Prefactor     20.924        45.568       -.11305E-05   -.29835E-04
  27  Prefactor     60.984        57.760       -.13718E-06   -.13862E-04
  28  Normalizat    1.0708        .18401       -.97144E-07   -.82908E-04
  29  Prefactor     .82153        .12079       -.34208E-06   -.10374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.87437
  Prefactor  = 0.000100001
  Prefactor  = 5.46197
  Prefactor  = 20.005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17079
  Prefactor  = 0.0001
  norm       = 13.2171
  norm       = 0.000100001
  Prefactor  = 0.000100172
  Prefactor  = 0.000101748
  Prefactor  = 0.0001
  Prefactor  = 32.8006
  Prefactor  = 0.000100003
  norm       = 17.9769
  norm       = 0.0001
  Prefactor  = 25.8286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.924
  Prefactor  = 60.9839
  Normalizat = 1.0708
  Prefactor  = 0.821529
 **********
 **   18 **HESSE 
 **********

 FCN=   6579.281     FROM HESSE     STATUS=OK           555 CALLS     4264 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.8744        19.485        .12753E-03   -1.5079    
   3  Prefactor     .10000E-03    27.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4620        10.058        .85979E-03   -1.5241    
   5  Prefactor     20.005        16.708        .89550E-04   -1.4813    
   6  Prefactor     .10000E-03    4.8468        .17422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1708        4.4739        .23057E-03   -1.5413    
  10  Prefactor     .10000E-03    4.0802        .15939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.217        1.7534        .34412E-04   -1.4981    
  12  norm          .10000E-03    11.178        .19837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10017E-03    53.135        .37920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10175E-03    9.1768        .55158E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4735        .14587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.801        13.708        .69972E-04   -1.4562    
  17  Prefactor     .10000E-03    63.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.977        8.1130        .94460E-04   -1.4860    
  19  norm          .10000E-03    1.7443        .10410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.829        25.857        .78818E-04   -1.4691    
  21  Prefactor     .10000E-03    5.3434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.924        45.516        .87577E-04   -1.4793    
  27  Prefactor     60.984        57.910        .51381E-04   -1.4145    
  28  Normalizat    1.0708        .20719        .28714E-03   -.90695    
  29  Prefactor     .82153        .13601        .21842E-03   -.98940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8638e-09
Minuit parameter uncertainties:
  1  0.000185112
  2  19.498
  3  0.000302285
  4  10.0614
  5  16.7117
  6  9.66794e-06
  7  0.000183883
  8  0.000145197
  9  4.47461
  10  2.15691e-06
  11  1.75345
  12  0.000151729
  13  0.00605832
  14  0.00801041
  15  6.62697e-11
  16  13.7096
  17  0.000912674
  18  8.11352
  19  3.77942e-06
  20  25.8682
  21  4.23251e-06
  22  1.76267e-05
  23  2.01582e-06
  24  0.000206422
  25  0.000166844
  26  45.592
  27  57.9635
  28  0.207351
  29  0.136065
Done.

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

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  3.280e+01  1.371e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  8.215e-01  1.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.071e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.51
Ra Dec: 178.266 80.936
Photon Index (Fixed Index): 2.87 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.22e-05

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) = 6578.34700489
delta logL = 0.933661663886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.28086471
delta logL = 0.9998018453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.789       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2330       1.0000          .0000       10.000    
     3 'Normalizat'    1.1179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80379       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+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=   6578.281     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      250 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.783        18.348        .64356E-04    .79247E-04
   2  Index         2.2329        .43055        .68558E-02    .48680E-04
   3  Normalizat    1.1180        .19876        .28211E-03    .44173E-03
   4  Prefactor     .80377        .13174        .22054E-03    .51954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7831
  Index      = 2.23294
  Normalizat = 1.11802
  Prefactor  = 0.803769
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.281     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.783        18.452        .12871E-04   -1.4462    
   2  Index         2.2329        .43288        .27423E-03   -.58645    
   3  Normalizat    1.1180        .19895        .56422E-04   -.89175    
   4  Prefactor     .80377        .13180        .44108E-04   -.99590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61917e-10
Minuit parameter uncertainties:
  1  18.4549
  2  0.433666
  3  0.19908
  4  0.131854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/130679': 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) = 6578.28086458
delta logL = 0.999801975879

Extracting fit parameters...

4FGL J1153.0+8056
   Spectrum: PowerLaw
372    Prefactor:  3.878e+01  1.845e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.233e+00  4.337e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  4.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  8.038e-01  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.118e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.32
Ra Dec: 178.266 80.936
Photon Index (Free Index): 2.23 +/- 0.43
Photon Flux (Free Index): 9.32e-08 +/- 5.82e-08
Energy Flux (Free Index): 3.94e-05 +/- 2.27e-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/130679/cmap_HighResolution_417139201_417398401_4FGL_J1153.0+8056_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='3.94e-05', photon_flux_error='5.71e-08', dlogl='1.00e+00', energy_flux='2.93e-05', photon_flux2='9.32e-08', job_status='DONE', time_completed='2021-09-04 14:21:42.821712', photon_index_error2='0.43', photon_index2='2.23', ts='13.51', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.27e-05', EG='1.07', time_epoch_completed='1630790502.82', return_code='0', job_id='130679', GAL2='0.80', EG2='1.12', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.82e-08', ts2='15.32', photon_index='2.87' WHERE bin_id='686' AND source_name='4FGL J1153.0+8056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:21:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 130679: <4FGL_J1153.0+8056_daily_bin686> in cluster <slac> Done

Job <4FGL_J1153.0+8056_daily_bin686> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 14:06:04 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:06:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 14:06:06 2021
Terminated at Sat Sep  4 14:21:43 2021
Results reported at Sat Sep  4 14:21:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.0+8056_daily_bin686 178.266 80.9357 417139201 417398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.0+8056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   915.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             342.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

