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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin995
RA = 178.35, Dec = 49.5169
tmin = 497232001, tmax = 497491201
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='154352', job_status='RUN', time_executed='2021-09-04 15:18:59.964505', time_epoch_executed='1630793939.96' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154352/ft1_4FGL_J1153.4+4931_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154352/ft1_4FGL_J1153.4+4931_daily_bin995.fits outfile=/scratch/kocevski/154352/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin995.fits ra=178.35 dec=49.5169 rad=12.0 tmin=497232001.0 tmax=497491201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.77
user 6.47
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.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/154352/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/154352/ltcube_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.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/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits
.....................!
real 12.02
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/154352/ltcube_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.fits outfile=/scratch/kocevski/154352/expmap_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.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/154352/ltcube_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.fits
.....................!
real 205.42
user 187.09
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 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/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.fits scfile=/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits outfile=/scratch/kocevski/154352/cmap_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.fits scfile=/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits outfile=/scratch/kocevski/154352/cmap_HighResolution_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.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.76
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.fits', '/scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits', expMap='/scratch/kocevski/154352/expmap_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.fits', expCube='/scratch/kocevski/154352/ltcube_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/154352/Model_4FGL_J1153.4+4931_daily_bin995.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/154352/ft1_filtered_4FGL_J1153.4+4931_daily_bin995.fits
Spacecraft file(s): /scratch/kocevski/154352/ft2_4FGL_J1153.4+4931_daily_bin995.fits
Exposure map: /scratch/kocevski/154352/expmap_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.fits
Exposure cube: /scratch/kocevski/154352/ltcube_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/154352/Model_4FGL_J1153.4+4931_daily_bin995.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) = 2492.7129783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.31       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.550       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.643       1.0000         .10000E-03   10000.    
     8 'norm      '    .12058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31544E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16694E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.033       1.0000         .10000E-03   10000.    
    13 'norm      '    23.363       1.0000         .10000E-03   10000.    
    14 'norm      '    .61785       1.0000         .10000E-03   10000.    
    15 'norm      '    11.582       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.690       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2923       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10287E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.188       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.863       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1767       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81952       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=   2492.712     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     4936 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.35        147.48       -.27602E-05   -.48340E-05
   2  Prefactor     .10000E-03    115.24       -.35566E-05** at limit **
   3  Prefactor     22.551        137.31        .22949E-06   -.31182E-06
   4  norm          .10000E-03    1.3378        .23148E-07** at limit **
   5  Prefactor     .10000E-03    71.457        .50467E-05** at limit **
   6  Prefactor     .10000E-03    31.776        .28373E-06** at limit **
   7  Prefactor     14.537        516.72        .24186E-04   -.12970E-05
   8  norm          .10000E-03    337.93       -.11629E-05** at limit **
   9  Prefactor     2.0735        30.829        .71725E-05   -.39161E-05
  10  Prefactor     .10000E-03    207.14       -.27951E-05** at limit **
  11  norm          .10000E-03    4.6669       -.14341E-06** at limit **
  12  Prefactor     56.023        71.606        .15524E-05    .18673E-04
  13  norm          23.289        55.208        .41331E-05    .54646E-05
  14  norm          .61663        1.5830       -.11557E-06   -.18691E-03
  15  norm          11.582        11.623        .58150E-07    .19467E-05
  16  Prefactor     .10000E-03    5.4172        .15308E-06** at limit **
  17  Prefactor     .10000E-03    41.677        .11438E-05** at limit **
  18  norm          .10000E-03    3.6252        .57722E-08** at limit **
  19  Prefactor     63.714        52.618       -.21795E-06   -.29922E-05
  20  Prefactor     9.2926        14.981       -.16226E-07    .22205E-06
  21  norm          .10000E-03    4.4519        .81786E-07** at limit **
  22  norm          .10000E-03    9.0419        .11970E-07** at limit **
  23  Prefactor     61.191        50.170        .73773E-06    .14501E-04
  24  Prefactor     .10000E-03    4.5343       -.83550E-08** at limit **
  25  norm          .10000E-03    2.0243        .17243E-07** at limit **
  26  Prefactor     .10000E-03    54.311       -.35368E-05** at limit **
  27  norm          10.865        5.2922        .39761E-07    .17431E-04
  28  Normalizat    1.1762        .28889       -.14918E-05    .56927E-04
  29  Prefactor     .81990        .32676        .36648E-06    .92072E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.346
  Prefactor  = 0.0001
  Prefactor  = 22.5515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.537
  norm       = 0.000100001
  Prefactor  = 2.07353
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 56.0226
  norm       = 23.2886
  norm       = 0.61663
  norm       = 11.582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.7139
  Prefactor  = 9.29265
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 61.1906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8646
  Normalizat = 1.17618
  Prefactor  = 0.819905
 **********
 **   18 **HESSE 
 **********

 FCN=   2492.712     FROM HESSE     STATUS=OK           551 CALLS     5487 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.35        147.88        .19685E-03   -1.3661    
   2  Prefactor     .10000E-03    115.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.551        137.56        .84350E-04   -1.4758    
   4  norm          .10000E-03    1.3403        .56396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    71.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.537        514.17        .10467E-03   -1.4945    
   8  norm          .10000E-03    339.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0735        31.039        .14294E-02   -1.5420    
  10  Prefactor     .10000E-03    212.43        .21368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    18.414        .20637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.023        69.671        .53589E-04   -1.4210    
  13  norm          23.289        55.181        .82872E-04   -1.4742    
  14  norm          .61663        1.4017        .91589E-03   -1.5551    
  15  norm          11.582        11.625        .11772E-03   -1.5027    
  16  Prefactor     .10000E-03    5.4544        .11308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6265        .92845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     63.714        52.793        .50283E-04   -1.4110    
  20  Prefactor     9.2926        14.978        .13147E-03   -1.5098    
  21  norm          .10000E-03    4.5627        .20550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.0571        .14651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     61.191        50.360        .51295E-04   -1.4142    
  24  Prefactor     .10000E-03    4.5455        .10384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.0246        .69379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    54.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.865        5.2973        .77162E-04   -1.5049    
  28  Normalizat    1.1762        .34650        .22718E-03   -.87342    
  29  Prefactor     .81990        .38936        .32264E-03   -.98999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0168e-10
Minuit parameter uncertainties:
  1  148.408
  2  3.62823e-05
  3  111.779
  4  1.91403e-07
  5  1.93643e-05
  6  3.12748e-06
  7  174.558
  8  0.00139425
  9  16.0545
  10  0.00152134
  11  0.000137335
  12  69.7722
  13  55.3022
  14  1.40176
  15  11.6269
  16  1.04022e-05
  17  1.2854e-05
  18  1.50911e-06
  19  52.8313
  20  14.9838
  21  2.45366e-06
  22  2.20521e-06
  23  50.3949
  24  4.45822e-07
  25  1.05052e-07
  26  7.8005e-06
  27  5.29756
  28  0.347177
  29  0.390681
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.040e-05  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:  8.199e-01  3.907e-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:  1.176e+00  3.472e-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: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154352/likelihoodResults_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.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) = 2492.71257372
delta logL = -0.000870237476647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2492.71170345
delta logL = 3.29100657837e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4313       1.0000          .0000       10.000    
     3 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81989       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=   2492.712     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1291.3        .11484E-02** at limit **
   2  Index         2.4518        7.0613        .50000       -.33531E-04
   3  Normalizat    1.1762        .24437        .22718E-03   -.24271E-04
   4  Prefactor     .81991        .29551        .32264E-03   -.15187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.45182
  Normalizat = 1.17618
  Prefactor  = 0.819906
 **********
 **   18 **HESSE 
 **********

 FCN=   2492.712     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.9251        .22969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4518        6.2258        .50000       -.53476    
   3  Normalizat    1.1762        .31515        .90871E-05   -.87342    
   4  Prefactor     .81991        .38125        .12905E-04   -.98999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85593e-09
Minuit parameter uncertainties:
  1  0.000391817
  2  4.41384
  3  0.315661
  4  0.382488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154352': 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) = 2492.71170318
delta logL = 3.02285116049e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  3.918e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.452e+00  4.414e+00  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:  8.199e-01  3.825e-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:  1.176e+00  3.157e-01  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/154352/cmap_HighResolution_497232001_497491201_4FGL_J1153.4+4931_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-04 15:29:38.472414', job_id='154352', GAL2='0.82', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630794578.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='995' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:29:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 154352: <4FGL_J1153.4+4931_daily_bin995> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin995> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:16:27 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:16:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:16:29 2021
Terminated at Sat Sep  4 15:29:38 2021
Results reported at Sat Sep  4 15:29:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin995 178.35 49.5169 497232001 497491201 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 :                                   621.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

