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


Performing analysis on: 4FGL_J0805.1+7744_monthly_bin118
RA = 121.289, Dec = 77.7441
tmin = 542851201, tmax = 545443201
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='169802', job_status='RUN', time_executed='2021-10-19 05:39:29.229321', time_epoch_executed='1634647169.23' WHERE source_name='4FGL J0805.1+7744' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169802

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169802/ft1_4FGL_J0805.1+7744_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169802/ft1_4FGL_J0805.1+7744_monthly_bin118.fits outfile=/scratch/kocevski/169802/ft1_filteredMKT_4FGL_J0805.1+7744_monthly_bin118.fits ra=121.289 dec=77.7441 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.75
user 17.85
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.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/169802/ft1_filteredMKT_4FGL_J0805.1+7744_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.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.59
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/169802/ltcube_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.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/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits
.....................!
real 43.07
user 42.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/169802/ltcube_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.fits outfile=/scratch/kocevski/169802/expmap_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.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/169802/ltcube_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.fits
.....................!
real 192.29
user 186.05
sys 5.76

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

Setting source of interest to:
4FGL J0805.1+7744 @ 121.289 77.7441

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits scfile=/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits outfile=/scratch/kocevski/169802/cmap_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.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.289 yref=77.7441 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.60
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits scfile=/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits outfile=/scratch/kocevski/169802/cmap_HighResolution_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.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.289 yref=77.7441 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/169802/Model_4FGL_J0805.1+7744_monthly_bin118.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/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits..............................!
real 21.27
user 20.03
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits', '/scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits', expMap='/scratch/kocevski/169802/expmap_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.fits', expCube='/scratch/kocevski/169802/ltcube_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/169802/Model_4FGL_J0805.1+7744_monthly_bin118.xml', optimizer='MINUIT')

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

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  7.928e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.717e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  6.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/169802/ft1_filtered_4FGL_J0805.1+7744_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/169802/ft2_4FGL_J0805.1+7744_monthly_bin118.fits
Exposure map: /scratch/kocevski/169802/expmap_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.fits
Exposure cube: /scratch/kocevski/169802/ltcube_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/169802/Model_4FGL_J0805.1+7744_monthly_bin118.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) = 643.734154424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30270E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.7858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.716       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93462E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.385       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.040       1.0000         .10000E-03   10000.    
    18 'norm      '    .53669E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.941       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .52960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   643.6333     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3280 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    545.65       -.59018E-05** at limit **
   2  Prefactor     .10000E-03    45.771        .10036E-06** at limit **
   3  Prefactor     .10000E-03    42.354       -.10914E-05** at limit **
   4  norm          .10000E-03    75.612       -.13547E-05** at limit **
   5  norm          9.7861        4.1551       -.18630E-06    .75572E-04
   6  Prefactor     .10000E-03    55.040        .84177E-06** at limit **
   7  norm          .10000E-03    50.011        .97077E-06** at limit **
   8  Prefactor     .10000E-03    65.388       -.42079E-06** at limit **
   9  Prefactor     .10000E-03    9.5500       -.34448E-07** at limit **
  10  norm          15.714        12.744       -.95246E-06   -.20349E-04
  11  Prefactor     .10000E-03    113.46       -.70758E-06** at limit **
  12  Prefactor     .10021E-03    300.19       -.83705E-05** at limit **
  13  Prefactor     23.645        116.07        .58084E-05    .26953E-04
  14  Prefactor     .10000E-03    126.36        .37396E-05** at limit **
  15  Prefactor     87.333        103.55       -.43629E-05   -.38836E-04
  16  Prefactor     .10000E-03    201.18        .22383E-05** at limit **
  17  Prefactor     55.955        746.16       -.11358E-04   -.12347E-04
  18  norm          .10012E-03    213.92       -.10975E-04** at limit **
  19  Prefactor     .10000E-03    102.07        .31370E-05** at limit **
  20  norm          16.949        16.373       -.65275E-06   -.14689E-03
  21  Prefactor     .10000E-03    69.217       -.50246E-06** at limit **
  22  Prefactor     .10000E-03    34.748        .17873E-06** at limit **
  23  norm          .10000E-03    14.210        .46969E-08** at limit **
  24  Normalizat    1.2070        .73964        .17190E-04    .22899E-04
  25  Prefactor     .52960        .35721       -.80449E-05    .11538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.78607
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7138
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  Prefactor  = 23.6452
  Prefactor  = 0.000100001
  Prefactor  = 87.3326
  Prefactor  = 0.0001
  Prefactor  = 55.9546
  norm       = 0.000100118
  Prefactor  = 0.000100002
  norm       = 16.949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20696
  Prefactor  = 0.529603
 **********
 **   18 **HESSE 
 **********

 FCN=   643.6333     FROM HESSE     STATUS=OK           411 CALLS     3691 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    568.71        .42772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.780        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.388        .16147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    75.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.7861        4.1571        .32170E-04   -1.5082    
   6  Prefactor     .10000E-03    55.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    50.003        .17541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5516        .76606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.714        12.734        .77097E-04   -1.4915    
  11  Prefactor     .10000E-03    113.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10021E-03    540.64        .50424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.645        117.18        .82629E-04   -1.4735    
  14  Prefactor     .10000E-03    127.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     87.333        103.81        .21489E-03   -1.3836    
  16  Prefactor     .10000E-03    201.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.955        763.96        .53586E-04   -1.4211    
  18  norm          .10012E-03    323.28        .34987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    102.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.949        16.533        .78949E-04   -1.4884    
  21  Prefactor     .10000E-03    69.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.752        .14619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.211        .93453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2070        .76161        .28988E-03   -.86388    
  25  Prefactor     .52960        .37491        .21564E-03   -1.1064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12163e-09
Minuit parameter uncertainties:
  1  0.00352548
  2  3.37691e-05
  3  0.000119197
  4  0.00022178
  5  4.15727
  6  3.56068e-05
  7  7.00571e-05
  8  6.1633e-05
  9  6.77428e-06
  10  12.7361
  11  0.000213998
  12  0.0215232
  13  105.608
  14  0.000760475
  15  104.027
  16  0.000508037
  17  420.211
  18  0.0124293
  19  0.000877461
  20  16.5379
  21  4.76482e-05
  22  1.91233e-05
  23  1.45813e-06
  24  0.768786
  25  0.376682
Done.

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

Extracting fit parameters...

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  6.163e-05  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.717e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  6.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  5.296e-01  3.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.207e+00  7.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.289 77.744
Photon Flux Upper Limit: 3.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/169802/likelihoodResults_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 643.6333679
delta logL = -7.19398017281e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 643.633297195
delta logL = -1.23437644106e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   643.6333     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      292 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    681.79        .14305E-01** at limit **
   2  Index         1.8495        6.2347        .50000        .48800E-08
   3  Normalizat    1.2070        .44933E-01    .28989E-03    .14946E-03
   4  Prefactor     .52960        .23083E-01    .21563E-03    .20321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.8495
  Normalizat = 1.20698
  Prefactor  = 0.529599
 **********
 **   18 **HESSE 
 **********

 FCN=   643.6333     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6662.3        .24850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8495        5.1718        .50000       -.68168    
   3  Normalizat    1.2070        .10816        .57978E-04   -.86388    
   4  Prefactor     .52960        .55569E-01    .43127E-04   -1.1064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52352e-09
Minuit parameter uncertainties:
  1  0.00675276
  2  3854.06
  3  0.108179
  4  0.0555744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169802': 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): 102
logL (Free Index) = 643.633295695
delta logL = 2.65449330072e-07

Extracting fit parameters...

4FGL J0805.1+7744
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  6.753e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  1.850e+00  3.854e+03  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  6.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  5.296e-01  5.557e-02  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.207e+00  1.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.289 77.744

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/169802/cmap_HighResolution_542851201_545443201_4FGL_J0805.1+7744_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-02', job_status='DONE', photon_flux_upper_limit='3.77e-07', time_completed='2021-10-19 05:48:35.873830', job_id='169802', GAL2='0.53', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1634647715.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='118' AND source_name='4FGL J0805.1+7744' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 05:48:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 169802: <4FGL_J0805.1+7744_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0805.1+7744_monthly_bin118> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 19 05:35:13 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 05:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 05:35:46 2021
Terminated at Tue Oct 19 05:48:36 2021
Results reported at Tue Oct 19 05:48:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0805.1+7744_monthly_bin118 121.289 77.7441 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0805.1+7744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   521.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             218.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            803 sec.

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

