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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin513
RA = 178.35, Dec = 49.5169
tmin = 372297601, tmax = 372556801
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='151063', job_status='RUN', time_executed='2021-09-04 15:08:55.228709', time_epoch_executed='1630793335.23' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151063

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151063/ft1_4FGL_J1153.4+4931_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151063/ft2_4FGL_J1153.4+4931_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151063/ft1_4FGL_J1153.4+4931_daily_bin513.fits outfile=/scratch/kocevski/151063/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin513.fits ra=178.35 dec=49.5169 rad=12.0 tmin=372297601.0 tmax=372556801.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 2.57
user 2.36
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151063/ft2_4FGL_J1153.4+4931_daily_bin513.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/151063/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin513.fits evtable="EVENTS" outfile="/scratch/kocevski/151063/ft1_filtered_4FGL_J1153.4+4931_daily_bin513.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.42
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151063/ft1_filtered_4FGL_J1153.4+4931_daily_bin513.fits" evtable="EVENTS" scfile=/scratch/kocevski/151063/ft2_4FGL_J1153.4+4931_daily_bin513.fits sctable="SC_DATA" outfile=/scratch/kocevski/151063/ltcube_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.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/151063/ft2_4FGL_J1153.4+4931_daily_bin513.fits
.....................!
real 9.39
user 8.85
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151063/ft1_filtered_4FGL_J1153.4+4931_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/151063/ft2_4FGL_J1153.4+4931_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/151063/ltcube_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.fits outfile=/scratch/kocevski/151063/expmap_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.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/151063/ltcube_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.fits
.....................!
real 143.20
user 139.87
sys 2.98

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/151063/ft1_filtered_4FGL_J1153.4+4931_daily_bin513.fits scfile=/scratch/kocevski/151063/ft2_4FGL_J1153.4+4931_daily_bin513.fits outfile=/scratch/kocevski/151063/cmap_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151063/ft1_filtered_4FGL_J1153.4+4931_daily_bin513.fits scfile=/scratch/kocevski/151063/ft2_4FGL_J1153.4+4931_daily_bin513.fits outfile=/scratch/kocevski/151063/cmap_HighResolution_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.122       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.342       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.878       1.0000         .10000E-03   10000.    
     8 'norm      '    38.811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40741       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .25608       1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.765       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11864E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.723       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2618       1.0000         .10000E-03   10000.    
    22 'norm      '    19.543       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4043       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0392       1.0000         .10000E-03   10000.    
    25 'norm      '    2.6393       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.476       1.0000         .10000E-03   10000.    
    27 'norm      '    2.0634       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91500       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1341       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=   6953.194     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3770 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.120        32.181       -.13452E-06    .83192E-05
   2  Prefactor     .10000E-03    149.12       -.11285E-04** at limit **
   3  Prefactor     16.337        57.099        .17614E-05    .25870E-05
   4  norm          .10000E-03    .66733       -.79713E-07** at limit **
   5  Prefactor     .10000E-03    13.310       -.28230E-06** at limit **
   6  Prefactor     37.312        23.256        .60921E-06    .24088E-03
   7  Prefactor     28.873        39.200        .63339E-06    .17893E-05
   8  norm          38.821        38.119       -.18756E-05    .28026E-04
   9  Prefactor     .37103        3.2113       -.19642E-06   -.19517E-03
  10  Prefactor     .10000E-03    15.560       -.49228E-06** at limit **
  11  norm          .25162        2.3357       -.32512E-05    .30833E-03
  12  Prefactor     82.833        45.135        .60303E-05    .61897E-03
  13  norm          .10000E-03    5.3977       -.14132E-06** at limit **
  14  norm          .10001E-03    1.1027        .20662E-05** at limit **
  15  norm          17.660        10.205        .14588E-05    .10223E-03
  16  Prefactor     1.2666        2.7768       -.40615E-06   -.16814E-03
  17  Prefactor     73.807        52.457       -.61422E-05    .34439E-03
  18  norm          2.6899        3.9518        .68311E-06   -.25186E-03
  19  Prefactor     .10000E-03    20.116        .23792E-06** at limit **
  20  Prefactor     .10000E-03    4.4097       -.37009E-07** at limit **
  21  norm          1.2613        1.8338       -.40296E-06   -.12094E-03
  22  norm          19.542        10.116       -.14578E-07    .21250E-03
  23  Prefactor     7.3992        27.389       -.21208E-05    .43000E-04
  24  Prefactor     1.0376        5.0535        .92958E-05   -.92673E-03
  25  norm          2.6395        2.9132       -.12912E-05   -.52881E-04
  26  Prefactor     15.472        24.711       -.30713E-05    .70612E-04
  27  norm          2.0630        2.0135       -.23003E-06   -.10940E-04
  28  Normalizat    .91516        .16588        .13854E-05    .72381E-03
  29  Prefactor     1.1340        .19377        .29318E-05    .74933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1204
  Prefactor  = 0.0001
  Prefactor  = 16.3369
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3118
  Prefactor  = 28.8732
  norm       = 38.8207
  Prefactor  = 0.371025
  Prefactor  = 0.0001
  norm       = 0.25162
  Prefactor  = 82.8326
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 17.6599
  Prefactor  = 1.26662
  Prefactor  = 73.8065
  norm       = 2.68989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26133
  norm       = 19.5419
  Prefactor  = 7.39921
  Prefactor  = 1.03759
  norm       = 2.63955
  Prefactor  = 15.4717
  norm       = 2.06299
  Normalizat = 0.915164
  Prefactor  = 1.13404
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.194     FROM HESSE     STATUS=OK           553 CALLS     4323 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.120        32.183        .81559E-04   -1.4725    
   2  Prefactor     .10000E-03    149.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.337        57.100        .99075E-04   -1.4899    
   4  norm          .10000E-03    .67388        .66497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.312        23.256        .65621E-04   -1.4486    
   7  Prefactor     28.873        39.202        .74554E-04   -1.4633    
   8  norm          38.821        38.120        .64338E-04   -1.4461    
   9  Prefactor     .37103        20.207        .27394E-02   -1.5586    
  10  Prefactor     .10000E-03    15.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .25162        13.265        .22100E-02   -1.5608    
  12  Prefactor     82.833        47.302        .22076E-03   -1.3885    
  13  norm          .10000E-03    5.3994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    1.5952        .13913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.660        10.184        .95307E-04   -1.4867    
  16  Prefactor     1.2666        2.7535        .19344E-03   -1.5483    
  17  Prefactor     73.807        52.419        .23380E-03   -1.3988    
  18  norm          2.6899        3.9567        .96693E-03   -1.5380    
  19  Prefactor     .10000E-03    20.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4502        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2613        1.8089        .12842E-03   -1.5483    
  22  norm          19.542        10.040        .90601E-04   -1.4824    
  23  Prefactor     7.3992        27.154        .14739E-03   -1.5164    
  24  Prefactor     1.0376        6.5816        .18697E-02   -1.5504    
  25  norm          2.6395        2.9698        .13553E-03   -1.5383    
  26  Prefactor     15.472        24.714        .10181E-03   -1.4921    
  27  norm          2.0630        2.0112        .11274E-03   -1.5421    
  28  Normalizat    .91516        .19644        .24283E-03   -.95929    
  29  Prefactor     1.1340        .23079        .28007E-03   -.88386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62459e-09
Minuit parameter uncertainties:
  1  32.206
  2  3.39042e-05
  3  57.2922
  4  6.36211e-06
  5  3.52651e-05
  6  23.2616
  7  39.2367
  8  38.1439
  9  5.47739
  10  8.29826e-05
  11  3.65399
  12  47.3232
  13  2.02394e-06
  14  0.000187179
  15  10.1853
  16  2.75382
  17  52.4522
  18  3.95711
  19  0.000168336
  20  2.84961e-05
  21  1.80896
  22  10.0408
  23  27.1992
  24  5.22708
  25  2.96995
  26  24.7299
  27  2.01123
  28  0.196591
  29  0.230994
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.267e+00  2.754e+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:  1.134e+00  2.310e-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:  9.152e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/151063/likelihoodResults_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.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) = 6952.4202054
delta logL = 0.773901081395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6952.27728641
delta logL = 0.91682007595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47033       1.0000         .10000E-03   10000.    
     2 'Index     '    .94784       1.0000          .0000       10.000    
     3 'Normalizat'    .92633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1268       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=   6952.277     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46900        .62839        .11149E-01   -.45577E-03
   2  Index         .94667        .41374        .25469       -.80847E-04
   3  Normalizat    .92641        .15055        .45237E-01    .30558E-04
   4  Prefactor     1.1267        .19199        .63458E-01    .13745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.469
  Index      = 0.946671
  Normalizat = 0.926412
  Prefactor  = 1.12669
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.277     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46900        .95927        .68423E-03   -1.5571    
   2  Index         .94667        .69834        .10573E-01   -.94529    
   3  Normalizat    .92641        .17718        .24131E-03   -.95538    
   4  Prefactor     1.1267        .22582        .28068E-03   -.88618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77094e-09
Minuit parameter uncertainties:
  1  0.959306
  2  0.705141
  3  0.17729
  4  0.226016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151063': 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) = 6952.27728497
delta logL = 0.916821513625

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.690e-01  9.593e-01  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  9.467e-01  7.051e-01  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.127e+00  2.260e-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:  9.264e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 178.350 49.517
Photon Index (Free Index): 0.95 +/- 0.71
Photon Flux (Free Index): 2.71e-09 +/- 3.50e-09
Energy Flux (Free Index): 4.45e-05 +/- 7.14e-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/151063/cmap_HighResolution_372297601_372556801_4FGL_J1153.4+4931_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', comment='SUCCESS', energy_flux2='4.45e-05', dlogl='9.17e-01', photon_flux2='2.71e-09', job_status='DONE', time_completed='2021-09-04 15:21:21.436360', photon_index_error2='0.71', photon_index2='0.95', ts='0.27', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='7.77e-08', energy_flux_error2='7.14e-05', EG='0.92', time_epoch_completed='1630794081.44', return_code='0', job_id='151063', GAL2='1.13', EG2='0.93', return_code2='0', photon_flux_error2='3.50e-09', ts2='2.09', photon_index='2.41' WHERE bin_id='513' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 151063: <4FGL_J1153.4+4931_daily_bin513> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin513 178.35 49.5169 372297601 372556801 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

