/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 16 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin25
RA = 178.35, Dec = 49.5169
tmin = 245808001, tmax = 246067201
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='147834', job_status='RUN', time_executed='2021-09-04 14:57:37.110662', time_epoch_executed='1630792657.11' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147834

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147834/ft1_4FGL_J1153.4+4931_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147834/ft1_4FGL_J1153.4+4931_daily_bin25.fits outfile=/scratch/kocevski/147834/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin25.fits ra=178.35 dec=49.5169 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.48
user 1.27
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.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/147834/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin25.fits evtable="EVENTS" outfile="/scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.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/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/147834/ltcube_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.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/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits
.....................!
real 12.84
user 12.26
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/147834/ltcube_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.fits outfile=/scratch/kocevski/147834/expmap_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.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/147834/ltcube_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.fits
.....................!
real 192.49
user 186.56
sys 5.53

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

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits scfile=/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits outfile=/scratch/kocevski/147834/cmap_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.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.35 yref=49.5169 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits scfile=/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits outfile=/scratch/kocevski/147834/cmap_HighResolution_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.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.35 yref=49.5169 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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147834/Model_4FGL_J1153.4+4931_daily_bin25.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/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits.....................!
real 51.03
user 49.16
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits', '/scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits', expMap='/scratch/kocevski/147834/expmap_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.fits', expCube='/scratch/kocevski/147834/ltcube_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147834/Model_4FGL_J1153.4+4931_daily_bin25.xml', optimizer='MINUIT')

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

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147834/ft1_filtered_4FGL_J1153.4+4931_daily_bin25.fits
Spacecraft file(s): /scratch/kocevski/147834/ft2_4FGL_J1153.4+4931_daily_bin25.fits
Exposure map: /scratch/kocevski/147834/expmap_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.fits
Exposure cube: /scratch/kocevski/147834/ltcube_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147834/Model_4FGL_J1153.4+4931_daily_bin25.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) = 6008.38872415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.597       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.645       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8579       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1471       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.536       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5359       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.4576       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .48624       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.6702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6008.376     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3668 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.562        76.292       -.58104E-04    .18770E-04
   2  Prefactor     .10000E-03    261.47       -.66418E-04** at limit **
   3  Prefactor     .10000E-03    24.123        .84615E-05** at limit **
   4  norm          3.5798        2.7057        .75533E-07    .41157E-03
   5  Prefactor     .10000E-03    108.79       -.38973E-04** at limit **
   6  Prefactor     24.638        24.940       -.11575E-05    .64364E-04
   7  Prefactor     4.8560        103.19       -.45288E-05   -.38208E-05
   8  norm          .10000E-03    15.527       -.96863E-06** at limit **
   9  Prefactor     .10000E-03    2.6888       -.61479E-08** at limit **
  10  Prefactor     .10000E-03    7.7353        .16272E-06** at limit **
  11  norm          6.4872        4.1315       -.16938E-05    .22371E-03
  12  Prefactor     .10000E-03    38.993       -.50021E-04** at limit **
  13  norm          9.1469        11.708       -.68313E-07    .32221E-05
  14  norm          .10000E-03    .55878        .68642E-07** at limit **
  15  norm          10.841        10.226       -.29991E-06   -.75586E-04
  16  Prefactor     .10000E-03    1.4571       -.63042E-08** at limit **
  17  Prefactor     .10000E-03    52.118        .43890E-04** at limit **
  18  norm          .10000E-03    1.8536       -.28390E-07** at limit **
  19  Prefactor     9.5660        11.629       -.24877E-06    .16239E-05
  20  Prefactor     .10000E-03    3.1845       -.35646E-07** at limit **
  21  norm          .10000E-03    .68982       -.44029E-07** at limit **
  22  norm          10.880        7.8848       -.84106E-06   -.16643E-02
  23  Prefactor     15.537        22.589       -.13459E-05   -.44457E-03
  24  Prefactor     .10000E-03    3.9908       -.57912E-07** at limit **
  25  norm          4.5367        2.8624       -.81713E-07    .78094E-04
  26  Prefactor     .10000E-03    48.284        .22683E-04** at limit **
  27  norm          3.4577        2.2867       -.18682E-06   -.24676E-03
  28  Normalizat    .48622        .16315        .37176E-05    .36499E-04
  29  Prefactor     1.6702        .21462        .37475E-06    .10238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.562
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.57981
  Prefactor  = 0.000100003
  Prefactor  = 24.6385
  Prefactor  = 4.85604
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.48721
  Prefactor  = 0.0001
  norm       = 9.14686
  norm       = 0.0001
  norm       = 10.8415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.56604
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.8798
  Prefactor  = 15.5367
  Prefactor  = 0.0001
  norm       = 4.5367
  Prefactor  = 0.000100002
  norm       = 3.45773
  Normalizat = 0.486225
  Prefactor  = 1.67023
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.376     FROM HESSE     STATUS=OK           551 CALLS     4219 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.562        76.284        .79178E-04   -1.4696    
   2  Prefactor     .10000E-03    262.89        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5798        2.6987        .10407E-03   -1.5330    
   5  Prefactor     .10000E-03    109.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.638        24.922        .80690E-04   -1.4715    
   7  Prefactor     4.8560        103.52        .18251E-03   -1.5267    
   8  norm          .10000E-03    15.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7051        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4872        4.0998        .12029E-03   -1.5199    
  12  Prefactor     .10000E-03    39.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.1469        11.708        .13252E-03   -1.5103    
  14  norm          .10000E-03    .93435        .11053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.841        10.194        .12168E-03   -1.5049    
  16  Prefactor     .10000E-03    1.4834        .91276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8674        .10304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.5660        11.620        .12957E-03   -1.5089    
  20  Prefactor     .10000E-03    3.1985        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .70010        .62826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.880        7.8911        .60731E-03   -1.5048    
  23  Prefactor     15.537        22.571        .50807E-03   -1.4919    
  24  Prefactor     .10000E-03    4.0317        .15111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5367        2.8620        .10140E-03   -1.5282    
  26  Prefactor     .10000E-03    49.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.4577        2.2842        .92268E-04   -1.5336    
  28  Normalizat    .48622        .18801        .30560E-03   -1.1306    
  29  Prefactor     1.6702        .25053        .23496E-03   -.72877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62817e-09
Minuit parameter uncertainties:
  1  76.577
  2  0.000758753
  3  4.42855e-07
  4  2.69881
  5  0.00121677
  6  24.9326
  7  44.9301
  8  1.46831e-08
  9  5.18753e-06
  10  5.76004e-06
  11  4.09997
  12  0.000188403
  13  11.7105
  14  1.60879e-06
  15  10.1952
  16  6.10239e-06
  17  0.000135953
  18  6.56621e-06
  19  11.6231
  20  7.14044e-06
  21  3.89451e-06
  22  7.89184
  23  22.5829
  24  1.50551e-05
  25  2.86208
  26  0.00054612
  27  2.28422
  28  0.188257
  29  0.250715
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.102e-06  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.670e+00  2.507e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  4.862e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147834/likelihoodResults_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.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) = 6008.37954625
delta logL = -0.00317498695767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6008.37637144
delta logL = -1.76924004336e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3983       1.0000          .0000       10.000    
     3 'Normalizat'    .48617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+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=   6008.376     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1237        .91974E-02** at limit **
   2  Index         2.1294        7.9605        .50000        .18956E-06
   3  Normalizat    .48623        .75480E-02    .30560E-03    .65213E-04
   4  Prefactor     1.6702        .10190E-01    .23496E-03    .94671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12939
  Normalizat = 0.486226
  Prefactor  = 1.67023
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.376     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.491        .95450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1294        5.7174        .50000       -.61153    
   3  Normalizat    .48623        .26431E-01    .12224E-04   -1.1306    
   4  Prefactor     1.6702        .35682E-01    .46992E-04   -.72877    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46779e-10
Minuit parameter uncertainties:
  1  0.00011208
  2  413.302
  3  0.0264318
  4  0.0356824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147834': 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) = 6008.37636858
delta logL = 2.69088923233e-06

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.121e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.129e+00  4.133e+02  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.670e+00  3.568e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  4.862e-01  2.643e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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/147834/cmap_HighResolution_245808001_246067201_4FGL_J1153.4+4931_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-04 15:12:25.156536', job_id='147834', GAL2='1.67', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1630793545.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.67', dlogl='2.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='25' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 147834: <4FGL_J1153.4+4931_daily_bin25> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin25> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:09 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57:10 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:57:10 2021
Terminated at Sat Sep  4 15:12:25 2021
Results reported at Sat Sep  4 15:12:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin25 178.35 49.5169 245808001 246067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   887.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

