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


Performing analysis on: 4FGL_J0805.4+7534_monthly_bin136
RA = 121.362, Dec = 75.5766
tmin = 589507201, tmax = 592099201
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='181144', job_status='RUN', time_executed='2021-10-19 06:28:32.272715', time_epoch_executed='1634650112.27' WHERE source_name='4FGL J0805.4+7534' and cadence='monthly' and bin_id='136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181144

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181144/ft1_4FGL_J0805.4+7534_monthly_bin136.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181144/ft1_4FGL_J0805.4+7534_monthly_bin136.fits outfile=/scratch/kocevski/181144/ft1_filteredMKT_4FGL_J0805.4+7534_monthly_bin136.fits ra=121.362 dec=75.5766 rad=12.0 tmin=589507201.0 tmax=592099201.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 35.61
user 34.45
sys 1.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.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/181144/ft1_filteredMKT_4FGL_J0805.4+7534_monthly_bin136.fits evtable="EVENTS" outfile="/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.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.85
user 0.66
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits" evtable="EVENTS" scfile=/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits sctable="SC_DATA" outfile=/scratch/kocevski/181144/ltcube_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.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/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits
.....................!
real 127.71
user 126.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits sctable="SC_DATA" expcube=/scratch/kocevski/181144/ltcube_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.fits outfile=/scratch/kocevski/181144/expmap_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.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/181144/ltcube_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.fits
.....................!
real 194.15
user 187.92
sys 5.75

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

Setting source of interest to:
4FGL J0805.4+7534 @ 121.362 75.5766

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits scfile=/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits outfile=/scratch/kocevski/181144/cmap_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.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=121.362 yref=75.5766 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits scfile=/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits outfile=/scratch/kocevski/181144/cmap_HighResolution_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.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=121.362 yref=75.5766 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.81
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181144/Model_4FGL_J0805.4+7534_monthly_bin136.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/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits.....................!
real 1427.06
user 1421.42
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits', '/scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits', expMap='/scratch/kocevski/181144/expmap_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.fits', expCube='/scratch/kocevski/181144/ltcube_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/181144/Model_4FGL_J0805.4+7534_monthly_bin136.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0805.4+7534'

4FGL J0805.4+7534
   Spectrum: PowerLaw
308    Prefactor:  2.138e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.854e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/181144/ft1_filtered_4FGL_J0805.4+7534_monthly_bin136.fits
Spacecraft file(s): /scratch/kocevski/181144/ft2_4FGL_J0805.4+7534_monthly_bin136.fits
Exposure map: /scratch/kocevski/181144/expmap_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.fits
Exposure cube: /scratch/kocevski/181144/ltcube_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/181144/Model_4FGL_J0805.4+7534_monthly_bin136.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) = 135266.488515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9183       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6949       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1950       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34480       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4869       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6956       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9033       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9943       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.464       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1446       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.181       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0117       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0321       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   135266.4     FROM MIGRAD    STATUS=CONVERGED     71 CALLS     2177 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.572        1.0026        .58190E-08   -.67238E-03
   2  Prefactor     7.9182        1.0123        .29676E-07   -.54469E-03
   3  norm          2.6949        1.0915        .88951E-07    .76902E-03
   4  norm          4.3271        .23618        .31474E-07    .70420E-02
   5  Prefactor     .10000E-03    21.590       -.49018E-06** at limit **
   6  Prefactor     .10000E-03    2.1840       -.27056E-06** at limit **
   7  norm          8.1952        1.0916        .79678E-07   -.93265E-03
   8  Prefactor     2.2009        1.1110       -.47709E-07   -.36348E-03
   9  Prefactor     3.8158        1.0100        .12304E-07   -.12288E-03
  10  Prefactor     5.0011        1.1155       -.62136E-07   -.40574E-03
  11  Prefactor     .34481        .24926       -.66562E-07   -.69901E-03
  12  norm          1.9910        .55308       -.56671E-07   -.16851E-03
  13  Prefactor     14.568        1.0008        .28468E-08   -.50408E-04
  14  Prefactor     2.4878        1.6071        .42733E-06   -.20533E-02
  15  Prefactor     5.0551        1.6394       -.13909E-06   -.15468E-02
  16  Prefactor     1.6959        2.1254        .50054E-06    .26571E-02
  17  Prefactor     2.4844        2.0221        .16682E-06   -.11221E-02
  18  Prefactor     4.9031        2.5710        .10622E-06    .29909E-02
  19  Prefactor     4.9937        2.2269       -.46806E-06    .41736E-02
  20  Prefactor     18.463        1.0044       -.71826E-08    .21080E-03
  21  norm          2.1439        1.0245        .67817E-07    .41268E-03
  22  Prefactor     .10000E-03    .32252       -.33723E-06** at limit **
  23  norm          16.181        .52417       -.12831E-07   -.13287E-02
  24  Prefactor     .10000E-03    9.1705       -.61639E-06** at limit **
  25  Normalizat    1.0117        .53585E-01   -.23541E-06    .10014E-02
  26  Prefactor     1.0321        .33028E-01    .39422E-06    .21830E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.5716
  Prefactor  = 7.91818
  norm       = 2.69494
  norm       = 4.32707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.19519
  Prefactor  = 2.2009
  Prefactor  = 3.81578
  Prefactor  = 5.00111
  Prefactor  = 0.344812
  norm       = 1.99096
  Prefactor  = 14.5676
  Prefactor  = 2.48777
  Prefactor  = 5.05515
  Prefactor  = 1.69591
  Prefactor  = 2.48445
  Prefactor  = 4.9031
  Prefactor  = 4.99369
  Prefactor  = 18.4631
  norm       = 2.14387
  Prefactor  = 0.0001
  norm       = 16.181
  Prefactor  = 0.0001
  Normalizat = 1.01169
  Prefactor  = 1.03212
 **********
 **   18 **HESSE 
 **********

 FCN=   135266.4     FROM HESSE     STATUS=OK           530 CALLS     2707 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.572        7.2754        .13575E-02   -1.4229    
   2  Prefactor     7.9182        6.4815        .35623E-02   -1.5145    
   3  norm          2.6949        2.2031        .62043E-02   -1.5380    
   4  norm          4.3271        .23736        .48413E-02   -1.5292    
   5  Prefactor     .10000E-03    21.455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1952        4.0959        .35012E-02   -1.5135    
   8  Prefactor     2.2009        2.8797        .69336E-02   -1.5411    
   9  Prefactor     3.8158        8.0732        .51654E-02   -1.5317    
  10  Prefactor     5.0011        1.1237        .44956E-02   -1.5261    
  11  Prefactor     .34481        .25772        .36369E-01   -1.5591    
  12  norm          1.9910        .62341        .73404E-02   -1.5426    
  13  Prefactor     14.568        6.0771        .26235E-02   -1.4944    
  14  Prefactor     2.4878        5.5067        .64803E-02   -1.5393    
  15  Prefactor     5.0551        1.6479        .44710E-02   -1.5258    
  16  Prefactor     1.6959        2.2955        .80788E-02   -1.5448    
  17  Prefactor     2.4844        2.5119        .64849E-02   -1.5393    
  18  Prefactor     4.9031        2.7164        .45411E-02   -1.5265    
  19  Prefactor     4.9937        4.7556        .44987E-02   -1.5261    
  20  Prefactor     18.463        10.561        .23302E-02   -1.4848    
  21  norm          2.1439        1.1959        .70353E-02   -1.5415    
  22  Prefactor     .10000E-03    .31973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.181        .53634        .24892E-02   -1.4903    
  24  Prefactor     .10000E-03    .44470        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0117        .48772E-01    .73609E-01   -.92640    
  26  Prefactor     1.0321        .29207E-01    .41096E-01   -.91666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72351e-06
Minuit parameter uncertainties:
  1  7.27551
  2  6.48209
  3  2.20317
  4  0.237358
  5  7.9695e-05
  6  1.05158e-05
  7  4.09603
  8  2.87987
  9  8.07545
  10  1.12373
  11  0.257722
  12  0.623411
  13  6.07731
  14  5.50784
  15  1.64796
  16  2.29565
  17  2.51205
  18  2.71649
  19  4.756
  20  10.5623
  21  1.19591
  22  4.67095e-06
  23  0.536336
  24  1.88492e-05
  25  0.0487738
  26  0.0292079
Done.

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

Extracting fit parameters...

4FGL J0805.4+7534
   Spectrum: PowerLaw
308    Prefactor:  5.001e+00  1.124e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.854e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.032e+00  2.921e-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.012e+00  4.877e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.29
Ra Dec: 121.362 75.577
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.24e-08 +/- 5.03e-09
Energy Flux (Fixed Index): 2.29e-05 +/- 5.14e-06

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) = 135266.330498
delta logL = 0.111322551209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 135266.306359
delta logL = 0.135462333623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7089       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9397       1.0000          .0000       10.000    
     3 'Normalizat'    1.0079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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=   135266.3     FROM MIGRAD    STATUS=FAILED        92 CALLS      290 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7089        1.2788        .18544E-04    .21933E-02
   2  Index         1.9397        .17481        .92735E-02    .82824E-02
   3  Normalizat    1.0079        .51192E-01    .32626E-03    .11151E-05
   4  Prefactor     1.0333        .32804E-01    .20817E-03    .17476E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   135266.3     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      361 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7089        1.2788        .20981E-04   -1.5274    
   2  Index         1.9397        .17481        .23256E-03   -.65867    
   3  Normalizat    1.0079        .51192E-01    .62576E-04   -.92768    
   4  Prefactor     1.0333        .32804E-01    .42955E-04   -.91626    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   135266.3     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      398 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7088        1.2214        .37088E-05   -.13733E-03
   2  Index         1.9397        .16688        .18547E-02    .43545E-04
   3  Normalizat    1.0079        .51155E-01    .13050E-04   -.11151E-04
   4  Prefactor     1.0333        .32811E-01    .83270E-05   -.87378E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70884
  Index      = 1.93969
  Normalizat = 1.00786
  Prefactor  = 1.03335
 **********
 **   18 **HESSE 
 **********

 FCN=   135266.3     FROM HESSE     STATUS=OK            23 CALLS      421 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7088        1.2087        .74175E-06   -1.5274    
   2  Index         1.9397        .16523        .74188E-04   -.65867    
   3  Normalizat    1.0079        .51086E-01    .26101E-05   -.92768    
   4  Prefactor     1.0333        .32770E-01    .16654E-05   -.91626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16961e-12
Minuit parameter uncertainties:
  1  1.20869
  2  0.165279
  3  0.0510881
  4  0.0327706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181144': 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) = 135266.306359
delta logL = 0.135462338832

Extracting fit parameters...

4FGL J0805.4+7534
   Spectrum: PowerLaw
308    Prefactor:  4.709e+00  1.209e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.940e+00  1.653e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.033e+00  3.277e-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.008e+00  5.109e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 63.50
Ra Dec: 121.362 75.577
Photon Index (Free Index): 1.94 +/- 0.17
Photon Flux (Free Index): 2.52e-08 +/- 7.78e-09
Energy Flux (Free Index): 2.03e-05 +/- 6.25e-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/181144/cmap_HighResolution_589507201_592099201_4FGL_J0805.4+7534_monthly_bin136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.24e-08', energy_flux2='2.03e-05', photon_flux_error='5.03e-09', dlogl='1.35e-01', energy_flux='2.29e-05', photon_flux2='2.52e-08', job_status='DONE', time_completed='2021-10-19 09:14:27.220251', photon_index_error2='0.17', photon_index2='1.94', ts='63.29', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='6.25e-06', EG='1.01', time_epoch_completed='1634660067.22', return_code='0', job_id='181144', GAL2='1.03', EG2='1.01', return_code2='0', energy_flux_error='5.14e-06', photon_flux_error2='7.78e-09', ts2='63.50', photon_index='1.85' WHERE bin_id='136' AND source_name='4FGL J0805.4+7534' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 09:14:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 181144: <4FGL_J0805.4+7534_monthly_bin136> in cluster <slac> Done

Job <4FGL_J0805.4+7534_monthly_bin136> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Oct 19 06:20:21 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 06:27:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 06:27:07 2021
Terminated at Tue Oct 19 09:14:28 2021
Results reported at Tue Oct 19 09:14:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.4+7534_monthly_bin136 121.362 75.5766 589507201 592099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.4+7534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9828.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             517.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10041 sec.
    Turnaround time :                            10447 sec.

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

