/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 73341
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1153.0+8056_monthly_bin159
RA = 178.266, Dec = 80.9357
tmin = 649123201, tmax = 651715201
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='641530', job_status='RUN', time_executed='2021-10-23 03:35:40.880472', time_epoch_executed='1634985340.88' WHERE source_name='4FGL J1153.0+8056' and cadence='monthly' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641530

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641530/ft1_4FGL_J1153.0+8056_monthly_bin159.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641530/ft1_4FGL_J1153.0+8056_monthly_bin159.fits outfile=/scratch/kocevski/641530/ft1_filteredMKT_4FGL_J1153.0+8056_monthly_bin159.fits ra=178.266 dec=80.9357 rad=12.0 tmin=649123201.0 tmax=651715201.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 31.00
user 30.17
sys 0.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.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/641530/ft1_filteredMKT_4FGL_J1153.0+8056_monthly_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.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.84
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/641530/ltcube_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.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/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits
.....................!
real 108.48
user 107.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/641530/ltcube_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits outfile=/scratch/kocevski/641530/expmap_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.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/641530/ltcube_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits
.....................!
real 191.59
user 185.94
sys 5.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 223 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.fits scfile=/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits outfile=/scratch/kocevski/641530/cmap_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=178.266 yref=80.9357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.79
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.fits scfile=/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits outfile=/scratch/kocevski/641530/cmap_HighResolution_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=178.266 yref=80.9357 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.80
user 0.63
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.fits', '/scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits', expMap='/scratch/kocevski/641530/expmap_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits', expCube='/scratch/kocevski/641530/ltcube_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641530/Model_4FGL_J1153.0+8056_monthly_bin159.xml', optimizer='MINUIT')

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

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641530/ft1_filtered_4FGL_J1153.0+8056_monthly_bin159.fits
Spacecraft file(s): /scratch/kocevski/641530/ft2_4FGL_J1153.0+8056_monthly_bin159.fits
Exposure map: /scratch/kocevski/641530/expmap_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits
Exposure cube: /scratch/kocevski/641530/ltcube_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641530/Model_4FGL_J1153.0+8056_monthly_bin159.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 105905.668172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3187       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .20876       1.0000         .10000E-03   10000.    
    12 'norm      '    .58659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3753       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9190       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6988       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .87889       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1352       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .63980       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.2818       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99606       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   105905.5     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3212 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6284         .0000    ** at limit **
   2  norm          2.3190        2.9840         .0000        .13327E-02
   3  Prefactor     1.2423        4.1909         .0000        .19035E-02
   4  Prefactor     8.7967        2.1420         .0000        .19627E-01
   5  Prefactor     .10000E-03    1.2661         .0000    ** at limit **
   6  Prefactor     .10000E-03    .49254         .0000    ** at limit **
   7  Prefactor     4.6358        3.8438         .0000        .29099E-02
   8  Prefactor     .10000E-03    4.4057         .0000    ** at limit **
   9  norm          1.3775        1.0435         .0000        .16008E-01
  10  Prefactor     .10000E-03    .23357         .0000    ** at limit **
  11  norm          .20873        .15578         .0000        .33601E-01
  12  norm          .58804        1.1805         .0000        .23070E-01
  13  Prefactor     .10000E-03    .60134         .0000    ** at limit **
  14  Prefactor     4.7758        3.1174         .0000        .11371    
  15  Prefactor     .89256        .74005         .0000        .80115E-02
  16  Prefactor     2.3759        2.6234         .0000        .43578E-02
  17  Prefactor     .10000E-03    4.4674         .0000    ** at limit **
  18  norm          4.9190        1.1889         .0000        .21153E-02
  19  norm          4.2589        .90406         .0000        .31181E-02
  20  Prefactor     .10000E-03    2.6683         .0000    ** at limit **
  21  Prefactor     1.6990        2.4543         .0000        .46846E-02
  22  Prefactor     .87934        1.4796         .0000        .19292E-01
  23  Prefactor     2.1350        2.6500         .0000        .20202E-02
  24  Prefactor     .10000E-03    4.6537         .0000    ** at limit **
  25  Prefactor     .63542        2.1188         .0000        .45878E-02
  26  Prefactor     .10000E-03    3.3131         .0000    ** at limit **
  27  Prefactor     6.2820        9.3222         .0000        .29720E-03
  28  Normalizat    1.0637        .43561E-01     .0000        .14446E-02
  29  Prefactor     .99606        .28636E-01     .0000        .16004E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.31896
  Prefactor  = 1.24231
  Prefactor  = 8.79674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63576
  Prefactor  = 0.000100004
  norm       = 1.37751
  Prefactor  = 0.0001
  norm       = 0.208726
  norm       = 0.588041
  Prefactor  = 0.0001
  Prefactor  = 4.77583
  Prefactor  = 0.892561
  Prefactor  = 2.37593
  Prefactor  = 0.000100001
  norm       = 4.91904
  norm       = 4.25895
  Prefactor  = 0.0001
  Prefactor  = 1.69896
  Prefactor  = 0.879343
  Prefactor  = 2.13504
  Prefactor  = 0.000100005
  Prefactor  = 0.63542
  Prefactor  = 0.000100001
  Prefactor  = 6.28201
  Normalizat = 1.06372
  Prefactor  = 0.99606
 **********
 **   18 **HESSE 
 **********

 FCN=   105905.5     FROM HESSE     STATUS=OK           569 CALLS     3781 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3190        2.9705        .26939E-03   -1.5403    
   3  Prefactor     1.2423        4.1515        .40216E-03   -1.5485    
   4  Prefactor     8.7967        2.1412        .67572E-03   -1.5115    
   5  Prefactor     .10000E-03    1.2997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6075        .42905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6358        3.8215        .93469E-03   -1.5277    
   8  Prefactor     .10000E-03    4.4250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3775        1.0017        .26179E-03   -1.5473    
  10  Prefactor     .10000E-03    .49119        .27664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .20873        .14042        .88655E-03   -1.5617    
  12  norm          .58804        .85181        .22892E-03   -1.5555    
  13  Prefactor     .10000E-03    .60423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7758        2.3426        .92016E-03   -1.5271    
  15  Prefactor     .89256        .59139        .24600E-02   -1.5519    
  16  Prefactor     2.3759        2.5645        .26583E-03   -1.5400    
  17  Prefactor     .10000E-03    4.5013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9190        1.1890        .16887E-03   -1.5264    
  19  norm          4.2589        .89378        .12994E-03   -1.5295    
  20  Prefactor     .10000E-03    2.6835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6990        2.4373        .32278E-03   -1.5447    
  22  Prefactor     .87934        1.4555        .49143E-03   -1.5520    
  23  Prefactor     2.1350        2.6365        .28211E-03   -1.5416    
  24  Prefactor     .10000E-03    4.6735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .63542        13.308        .83409E-02   -1.5549    
  26  Prefactor     .10000E-03    3.3239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.2820        9.3322        .16016E-03   -1.5207    
  28  Normalizat    1.0637        .48410E-01    .27036E-03   -.90925    
  29  Prefactor     .99606        .32412E-01    .19283E-03   -.92861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53382e-08
Minuit parameter uncertainties:
  1  1.39002e-08
  2  2.97067
  3  4.15246
  4  2.14118
  5  1.84278e-06
  6  3.67073e-05
  7  3.82172
  8  0.000260015
  9  1.00168
  10  9.53457e-06
  11  0.140425
  12  0.851824
  13  7.20143e-06
  14  2.34268
  15  0.591393
  16  2.56464
  17  0.000125154
  18  1.18899
  19  0.893783
  20  4.9307e-06
  21  2.43741
  22  1.45555
  23  2.63669
  24  0.000293196
  25  5.817
  26  0.000105192
  27  9.33432
  28  0.0484121
  29  0.0324127
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.064e+00  4.841e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 178.266 80.936
Photon Index (Fixed Index): 2.87 +/- 0.00
Photon Flux (Fixed Index): 9.90e-09 +/- 1.07e-08
Energy Flux (Fixed Index): 2.12e-06 +/- 2.29e-06

TS (Fixed Index): 1.08
Ra Dec: 178.266 80.936
Photon Flux Upper Limit: 2.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641530/likelihoodResults_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.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) = 105905.257362
delta logL = 0.202636579023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 105905.041395
delta logL = 0.418604257968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24967       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2207       1.0000          .0000       10.000    
     3 'Normalizat'    1.0540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   105905.0     FROM MIGRAD    STATUS=FAILED       108 CALLS      308 TOTAL
                     EDM=   .64E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24770        6.2768        .11180E-02    .15492    
   2  Index         5.2260        7.5923        .10802E-01   -.16558E-03
   3  Normalizat    1.0540        .28455E-01    .27147E-03   -.13388E-02
   4  Prefactor     1.0010        .19445E-01    .19242E-03    .47076E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   105905.0     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      389 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24770        6.2768        .71931E-04    .15492    
   2  Index         5.2260        7.5923        .20453E-02   -.16558E-03
   3  Normalizat    1.0540        .28455E-01    .36460E-04   -.13388E-02
   4  Prefactor     1.0010        .19445E-01    .10874E-04    .47076E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   105905.0     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      420 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24764        6.9395        .22359E-03   -.42019E-02
   2  Index         5.2262        7.6096        .43209E-03   -.14734E-03
   3  Normalizat    1.0540        .42763E-01    .10859E-04   -.12028E-02
   4  Prefactor     1.0010        .28928E-01    .76970E-05    .48210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.24764
  Index      = 5.22619
  Normalizat = 1.05404
  Prefactor  = 1.00101
 **********
 **   18 **HESSE 
 **********

 FCN=   105905.0     FROM HESSE     STATUS=OK            25 CALLS      445 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24764        1.4848        .89437E-05   -1.5608    
   2  Index         5.2262        3.3069        .17284E-04    .45253E-01
   3  Normalizat    1.0540        .47074E-01    .21717E-05   -.91241    
   4  Prefactor     1.0010        .31961E-01    .15394E-05   -.92696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3126e-10
Minuit parameter uncertainties:
  1  1.21257
  2  3.61407
  3  0.0470763
  4  0.0319614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641530': 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) = 105905.041392
delta logL = 0.418607050684

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.054e+00  4.708e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 178.266 80.936
Photon Index (Free Index): 5.23 +/- 3.61
Photon Flux (Free Index): 1.64e-08 +/- 1.28e-08
Energy Flux (Free Index): 2.14e-06 +/- 1.91e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/641530/cmap_HighResolution_649123201_651715201_4FGL_J1153.0+8056_monthly_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-03', comment='SUCCESS', photon_flux='9.90e-09', energy_flux2='2.14e-06', photon_flux_error='1.07e-08', dlogl='4.19e-01', energy_flux='2.12e-06', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-10-23 06:48:16.682970', photon_index_error2='3.61', photon_index2='5.23', ts='1.08', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.84e-08', energy_flux_error2='1.91e-06', EG='1.06', time_epoch_completed='1634996896.68', return_code='0', job_id='641530', GAL2='1.00', EG2='1.05', return_code2='0', energy_flux_error='2.29e-06', photon_flux_error2='1.28e-08', ts2='2.01', photon_index='2.87' WHERE bin_id='159' AND source_name='4FGL J1153.0+8056' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 06:48:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 641530: <4FGL_J1153.0+8056_monthly_bin159> in cluster <slac> Done

Job <4FGL_J1153.0+8056_monthly_bin159> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Oct 23 03:35:21 2021
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 23 03:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 23 03:35:23 2021
Terminated at Sat Oct 23 06:48:17 2021
Results reported at Sat Oct 23 06:48:17 2021

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   11446.12 sec.
    Max Memory :                                 1268 MB
    Average Memory :                             484.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2957 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   11574 sec.
    Turnaround time :                            11576 sec.

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

