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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin984
RA = 178.35, Dec = 49.5169
tmin = 494380801, tmax = 494640001
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='154337', job_status='RUN', time_executed='2021-09-04 15:16:41.759403', time_epoch_executed='1630793801.76' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154337/ft1_4FGL_J1153.4+4931_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154337/ft2_4FGL_J1153.4+4931_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154337/ft1_4FGL_J1153.4+4931_daily_bin984.fits outfile=/scratch/kocevski/154337/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin984.fits ra=178.35 dec=49.5169 rad=12.0 tmin=494380801.0 tmax=494640001.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.70
user 3.50
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154337/ft2_4FGL_J1153.4+4931_daily_bin984.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/154337/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin984.fits evtable="EVENTS" outfile="/scratch/kocevski/154337/ft1_filtered_4FGL_J1153.4+4931_daily_bin984.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.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154337/ft1_filtered_4FGL_J1153.4+4931_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/154337/ft2_4FGL_J1153.4+4931_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/154337/ltcube_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.fits outfile=/scratch/kocevski/154337/expmap_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.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/154337/ltcube_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.fits
.....................!
real 189.56
user 184.78
sys 4.48

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/154337/ft1_filtered_4FGL_J1153.4+4931_daily_bin984.fits scfile=/scratch/kocevski/154337/ft2_4FGL_J1153.4+4931_daily_bin984.fits outfile=/scratch/kocevski/154337/cmap_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154337/ft1_filtered_4FGL_J1153.4+4931_daily_bin984.fits scfile=/scratch/kocevski/154337/ft2_4FGL_J1153.4+4931_daily_bin984.fits outfile=/scratch/kocevski/154337/cmap_HighResolution_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.264       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3939       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .62875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8043       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .66948       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.121       1.0000         .10000E-03   10000.    
    21 'norm      '    6.4521       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3603       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.1694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.406       1.0000         .10000E-03   10000.    
    27 'norm      '    3.6711       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65210       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=   5817.225     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3718 TOTAL
                     EDM=   .54E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.267        113.26       -.65750E-06   -.27666E-05
   2  Prefactor     .10000E-03    75.076        .55123E-05** at limit **
   3  Prefactor     .10000E-03    70.050        .17800E-05** at limit **
   4  norm          5.3937        2.2222       -.32886E-07   -.16143E-03
   5  Prefactor     .10000E-03    21.931        .30762E-05** at limit **
   6  Prefactor     .10000E-03    7.3246        .30904E-06** at limit **
   7  Prefactor     .10000E-03    50.736       -.69335E-05** at limit **
   8  norm          .10000E-03    17.360       -.22287E-05** at limit **
   9  Prefactor     1.8601        5.3570        .71077E-06   -.12832E-04
  10  Prefactor     .10000E-03    32.370       -.11222E-06** at limit **
  11  norm          .62777        2.2730        .23883E-06   -.19598E-04
  12  Prefactor     .10000E-03    67.077        .32257E-06** at limit **
  13  norm          .10000E-03    10.419        .46989E-06** at limit **
  14  norm          .10000E-03    .43676       -.92020E-07** at limit **
  15  norm          2.4199        6.8162        .45547E-05   -.15703E-04
  16  Prefactor     3.8043        3.9759        .67375E-07   -.88266E-06
  17  Prefactor     .10000E-03    19.013        .13039E-06** at limit **
  18  norm          .67104        5.4650        .76110E-06   -.33696E-04
  19  Prefactor     10.371        20.426        .59079E-07    .11330E-05
  20  Prefactor     12.117        8.3608       -.12276E-06   -.90975E-05
  21  norm          6.4521        2.8469        .38258E-07   -.16380E-04
  22  norm          6.3600        5.3413        .11844E-06    .37365E-04
  23  Prefactor     .10000E-03    7.6928       -.54581E-06** at limit **
  24  Prefactor     .10000E-03    4.1045       -.65041E-09** at limit **
  25  norm          2.1692        2.7602        .79689E-07   -.13772E-05
  26  Prefactor     38.406        23.804        .12908E-06    .88291E-05
  27  norm          3.6711        1.7992        .69795E-08    .22229E-05
  28  Normalizat    1.0882        .16250       -.11916E-06   -.42610E-04
  29  Prefactor     .65208        .18959       -.72080E-06   -.18712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.39368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.86011
  Prefactor  = 0.0001
  norm       = 0.627768
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.41995
  Prefactor  = 3.80434
  Prefactor  = 0.0001
  norm       = 0.671038
  Prefactor  = 10.3706
  Prefactor  = 12.1169
  norm       = 6.45215
  norm       = 6.36001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1692
  Prefactor  = 38.4064
  norm       = 3.6711
  Normalizat = 1.08821
  Prefactor  = 0.652079
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.225     FROM HESSE     STATUS=OK           557 CALLS     4275 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.267        113.95        .10998E-03   -1.4979    
   2  Prefactor     .10000E-03    75.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3937        2.2234        .70927E-04   -1.5243    
   5  Prefactor     .10000E-03    21.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8601        5.3508        .28228E-03   -1.5435    
  10  Prefactor     .10000E-03    32.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .62777        2.2115        .21159E-03   -1.5550    
  12  Prefactor     .10000E-03    67.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4486        .97460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4199        6.8153        .13157E-02   -1.5397    
  16  Prefactor     3.8043        3.9585        .12249E-03   -1.5318    
  17  Prefactor     .10000E-03    19.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .67104        5.2116        .30675E-03   -1.5544    
  19  Prefactor     10.371        20.367        .12441E-03   -1.5064    
  20  Prefactor     12.117        8.1104        .11506E-03   -1.5012    
  21  norm          6.4521        2.8568        .79785E-04   -1.5200    
  22  norm          6.3600        5.3352        .15605E-03   -1.5204    
  23  Prefactor     .10000E-03    7.7042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1589        .15042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.1692        2.7372        .13802E-03   -1.5413    
  26  Prefactor     38.406        23.868        .64675E-04   -1.4468    
  27  norm          3.6711        1.8007        .69726E-04   -1.5325    
  28  Normalizat    1.0882        .18947        .20245E-03   -.90131    
  29  Prefactor     .65208        .21913        .31298E-03   -1.0544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08327e-10
Minuit parameter uncertainties:
  1  77.9648
  2  6.66299e-05
  3  1.84376e-05
  4  2.22344
  5  2.07875e-05
  6  3.06546e-06
  7  5.70632e-05
  8  1.28776e-05
  9  5.35214
  10  5.67354e-05
  11  2.21179
  12  1.212e-06
  13  9.47359e-07
  14  6.43773e-06
  15  6.81748
  16  3.95874
  17  9.83268e-07
  18  3.74032
  19  20.3803
  20  8.11109
  21  2.85683
  22  5.33557
  23  3.07355e-06
  24  3.50751e-07
  25  2.73741
  26  23.8742
  27  1.80077
  28  0.189585
  29  0.219417
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.804e+00  3.959e+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

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  6.521e-01  2.194e-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.088e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.25e-05

TS (Fixed Index): 1.81
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154337/likelihoodResults_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5816.97215065
delta logL = 0.253151515433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5816.94909647
delta logL = 0.276205691517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9524       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0896       1.0000          .0000       10.000    
     3 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67513       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.

 FCN=   5816.949     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9495        26.691        .74243E-02    .54018E-03
   2  Index         3.0907        3.2581        .17224        .10043E-03
   3  Normalizat    1.0644        .43857E-01    .39678E-01   -.81541E-05
   4  Prefactor     .67517        .53154E-01    .69602E-01    .16263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94949
  Index      = 3.0907
  Normalizat = 1.06438
  Prefactor  = 0.675172
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.949     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9495        4.6406        .77578E-04   -1.5429    
   2  Index         3.0907        1.5009        .58686E-02   -.39181    
   3  Normalizat    1.0644        .18140        .20434E-03   -.90904    
   4  Prefactor     .67517        .22090        .30802E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68115e-11
Minuit parameter uncertainties:
  1  4.64144
  2  1.5286
  3  0.181507
  4  0.221183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154337': 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) = 5816.94909592
delta logL = 0.276206240623

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.949e+00  4.641e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.091e+00  1.529e+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:  6.752e-01  2.212e-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.064e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 178.350 49.517
Photon Index (Free Index): 3.09 +/- 1.53
Photon Flux (Free Index): 5.17e-08 +/- 4.01e-08
Energy Flux (Free Index): 9.89e-06 +/- 9.18e-06

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/154337/cmap_HighResolution_494380801_494640001_4FGL_J1153.4+4931_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='9.89e-06', photon_flux_error='3.87e-08', dlogl='2.76e-01', energy_flux='1.20e-05', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-09-04 15:31:23.429719', photon_index_error2='1.53', photon_index2='3.09', ts='1.81', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.18e-06', EG='1.09', time_epoch_completed='1630794683.43', return_code='0', job_id='154337', GAL2='0.68', EG2='1.06', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.01e-08', ts2='2.39', photon_index='2.41' WHERE bin_id='984' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 154337: <4FGL_J1153.4+4931_daily_bin984> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin984> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:16:26 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:16:28 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:28 2021
Terminated at Sat Sep  4 15:31:26 2021
Results reported at Sat Sep  4 15:31:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin984 178.35 49.5169 494380801 494640001 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 :                                   879.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             339.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            900 sec.

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

