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


Performing analysis on: 4FGL_J0801.1+6444_monthly_bin158
RA = 120.293, Dec = 64.7438
tmin = 646531201, tmax = 649123201
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='140100', job_status='RUN', time_executed='2021-10-19 04:05:46.885021', time_epoch_executed='1634641546.89' WHERE source_name='4FGL J0801.1+6444' and cadence='monthly' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140100

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140100/ft1_4FGL_J0801.1+6444_monthly_bin158.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140100/ft1_4FGL_J0801.1+6444_monthly_bin158.fits outfile=/scratch/kocevski/140100/ft1_filteredMKT_4FGL_J0801.1+6444_monthly_bin158.fits ra=120.293 dec=64.7438 rad=12.0 tmin=646531201.0 tmax=649123201.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 30.13
user 29.33
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.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/140100/ft1_filteredMKT_4FGL_J0801.1+6444_monthly_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.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.90
user 0.65
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/140100/ltcube_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.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/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits
.....................!
real 124.89
user 123.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/140100/ltcube_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.fits outfile=/scratch/kocevski/140100/expmap_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.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/140100/ltcube_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.fits
.....................!
real 194.09
user 188.35
sys 4.96

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 J0801.1+6444 @ 120.293 64.7438

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits scfile=/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits outfile=/scratch/kocevski/140100/cmap_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.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=120.293 yref=64.7438 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits scfile=/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits outfile=/scratch/kocevski/140100/cmap_HighResolution_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.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=120.293 yref=64.7438 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.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140100/Model_4FGL_J0801.1+6444_monthly_bin158.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/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits.....................!
real 819.69
user 815.92
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits', '/scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits', expMap='/scratch/kocevski/140100/expmap_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.fits', expCube='/scratch/kocevski/140100/ltcube_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/140100/Model_4FGL_J0801.1+6444_monthly_bin158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0801.1+6444'

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  2.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/140100/ft1_filtered_4FGL_J0801.1+6444_monthly_bin158.fits
Spacecraft file(s): /scratch/kocevski/140100/ft2_4FGL_J0801.1+6444_monthly_bin158.fits
Exposure map: /scratch/kocevski/140100/expmap_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.fits
Exposure cube: /scratch/kocevski/140100/ltcube_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/140100/Model_4FGL_J0801.1+6444_monthly_bin158.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) = 86390.0060047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5931       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.503       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .45775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33679E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6867       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0818       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6164       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0510       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8054       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7590       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96332       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   86389.95     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3377 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.336        8.7139         .0000        .17000E-02
   2  Prefactor     7.5916        6.5311         .0000        .10838E-02
   3  Prefactor     25.504        9.3510         .0000       -.34257E-02
   4  Prefactor     .10000E-03    1.6003         .0000    ** at limit **
   5  Prefactor     3.9788        3.1852         .0000        .76235E-03
   6  Prefactor     .10000E-03    3.3285         .0000    ** at limit **
   7  norm          3.3092        .23907         .0000        .27632E-02
   8  Prefactor     9.7538        8.5261         .0000        .12002E-02
   9  Prefactor     .10000E-03    8.7037         .0000    ** at limit **
  10  Prefactor     .10000E-03    5.1715         .0000    ** at limit **
  11  norm          .45775        .26312         .0000        .16266E-01
  12  Prefactor     .10000E-03    1.4116         .0000    ** at limit **
  13  norm          .76216        .68398         .0000        .16785E-01
  14  Prefactor     2.7849        .83406         .0000        .57747E-03
  15  Prefactor     .10001E-03    1.4565         .0000    ** at limit **
  16  norm          1.5719        .92093         .0000        .39959E-02
  17  Prefactor     .33839E-01    .10042         .0000        .24386E-01
  18  Prefactor     5.0875        2.7775         .0000        .16116E-02
  19  Prefactor     3.6867        1.8447         .0000        .60532E-02
  20  norm          1.5198        .66943         .0000        .11140E-01
  21  Prefactor     14.193        6.8197         .0000        .88626E-04
  22  Prefactor     1.0821        2.8848         .0000        .56622E-02
  23  Prefactor     5.6170        5.7271         .0000        .54092E-03
  24  Prefactor     .10000E-03    .50523         .0000    ** at limit **
  25  norm          2.0510        .32694         .0000        .24648E-02
  26  Prefactor     3.8054        2.1413         .0000        .36002E-01
  27  Prefactor     .10000E-03    .90057         .0000    ** at limit **
  28  Prefactor     1.7592        2.1588         .0000        .85753E-01
  29  Normalizat    .96332        .58300E-01     .0000        .70635E-03
  30  Prefactor     1.1042        .38089E-01     .0000        .66139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3359
  Prefactor  = 7.59158
  Prefactor  = 25.5043
  Prefactor  = 0.0001
  Prefactor  = 3.97883
  Prefactor  = 0.0001
  norm       = 3.30923
  Prefactor  = 9.75381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.457747
  Prefactor  = 0.000100003
  norm       = 0.76216
  Prefactor  = 2.78488
  Prefactor  = 0.000100005
  norm       = 1.5719
  Prefactor  = 0.0338386
  Prefactor  = 5.08747
  Prefactor  = 3.68673
  norm       = 1.51983
  Prefactor  = 14.1931
  Prefactor  = 1.08214
  Prefactor  = 5.61699
  Prefactor  = 0.0001
  norm       = 2.051
  Prefactor  = 3.80541
  Prefactor  = 0.0001
  Prefactor  = 1.75917
  Normalizat = 0.963321
  Prefactor  = 1.1042
 **********
 **   18 **HESSE 
 **********

 FCN=   86389.95     FROM HESSE     STATUS=OK           594 CALLS     3971 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.336        8.7155        .48097E-03   -1.4875    
   2  Prefactor     7.5916        6.4981        .14553E-03   -1.5157    
   3  Prefactor     25.504        9.3055        .79324E-04   -1.4697    
   4  Prefactor     .10000E-03    1.6036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9788        3.1815        .20219E-03   -1.5309    
   6  Prefactor     .10000E-03    3.3689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3092        .23905        .36914E-04   -1.5344    
   8  Prefactor     9.7538        8.4573        .12829E-03   -1.5083    
   9  Prefactor     .10000E-03    8.7150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45775        .25362        .10744E-03   -1.5573    
  12  Prefactor     .10000E-03    1.4292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76216        .66561        .21586E-03   -1.5533    
  14  Prefactor     2.7849        .83431        .14307E-03   -1.5374    
  15  Prefactor     .10001E-03    1.4597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5719        .91492        .20956E-03   -1.5457    
  17  Prefactor     .33839E-01    .30457        .15365E-02   -1.5671    
  18  Prefactor     5.0875        2.7682        .17826E-03   -1.5257    
  19  Prefactor     3.6867        1.8373        .21035E-03   -1.5324    
  20  norm          1.5198        .64904        .13322E-03   -1.5461    
  21  Prefactor     14.193        6.8189        .10632E-03   -1.4954    
  22  Prefactor     1.0821        2.8716        .46283E-03   -1.5500    
  23  Prefactor     5.6170        5.6033        .16951E-03   -1.5234    
  24  Prefactor     .10000E-03    .50979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0510        .32548        .63627E-04   -1.5422    
  26  Prefactor     3.8054        2.1395        .10346E-02   -1.5318    
  27  Prefactor     .10000E-03    .90684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7592        2.1317        .15798E-02   -1.5443    
  29  Normalizat    .96332        .65534E-01    .31002E-03   -.94270    
  30  Prefactor     1.1042        .43375E-01    .20384E-03   -.89332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57304e-08
Minuit parameter uncertainties:
  1  8.71616
  2  6.49871
  3  9.30602
  4  4.60533e-05
  5  3.18161
  6  1.93364e-05
  7  0.239051
  8  8.4583
  9  1.60924e-05
  10  2.9873e-05
  11  0.253621
  12  0.000141126
  13  0.665612
  14  0.834313
  15  0.000171735
  16  0.914928
  17  0.202741
  18  2.76828
  19  1.83736
  20  0.649044
  21  6.81929
  22  2.87198
  23  5.60378
  24  1.9074e-06
  25  0.325478
  26  2.13951
  27  1.2732e-06
  28  2.13181
  29  0.0655397
  30  0.0433767
Done.

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

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.411e-04  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.104e+00  4.338e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.633e-01  6.554e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.293 64.744
Photon Flux Upper Limit: 6.25e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/140100/likelihoodResults_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.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) = 86389.9513328
delta logL = -0.00333556863188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 86389.947996
delta logL = 1.24209327623e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0271       1.0000          .0000       10.000    
     3 'Normalizat'    .96329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   86389.95     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    8.4630        .18142E-02** at limit **
   2  Index         1.9700        7.1131        .50000        .15198E-03
   3  Normalizat    .96332        .32597E-02    .31002E-03    .25053E-03
   4  Prefactor     1.1042        .22920E-02    .20384E-03    .19632E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   86389.95     FROM SIMPLEX   STATUS=PROGRESS     118 CALLS      362 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    8.4630        .18759E-03** at limit **
   2  Index         1.9522        7.1131        .62244E-02    .15198E-03
   3  Normalizat    .96330        .32597E-02    .80917E-05    .25053E-03
   4  Prefactor     1.1042        .22920E-02    .29279E-05    .19632E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   86389.95     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      423 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.511        .36285E-02** at limit **
   2  Index         1.5522        5.5482        .50000        .36889E-06
   3  Normalizat    .96333        .33228E-02    .12401E-04    .23264E-02
   4  Prefactor     1.1042        .23363E-02    .81535E-05   -.36855E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.55222
  Normalizat = 0.963326
  Prefactor  = 1.1042
 **********
 **   18 **HESSE 
 **********

 FCN=   86389.95     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.544        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5522        7.2553        .50000       -.76088    
   3  Normalizat    .96333        .76770E-02    .24802E-05   -.94269    
   4  Prefactor     1.1042        .53987E-02    .16307E-05   -.89332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.53256e-10
Minuit parameter uncertainties:
  1  5.73486e-06
  2  259.673
  3  0.007677
  4  0.00539867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140100': 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) = 86389.9479859
delta logL = 1.12843263196e-05

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  5.735e-06  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  1.552e+00  2.597e+02  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  2.934e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.104e+00  5.399e-03  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.633e-01  7.677e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.293 64.744

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/140100/cmap_HighResolution_646531201_649123201_4FGL_J0801.1+6444_monthly_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-04', job_status='DONE', photon_flux_upper_limit='6.25e-09', time_completed='2021-10-19 06:51:41.081011', job_id='140100', GAL2='1.10', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1634651501.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.13e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='158' AND source_name='4FGL J0801.1+6444' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 06:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 140100: <4FGL_J0801.1+6444_monthly_bin158> in cluster <slac> Done

Job <4FGL_J0801.1+6444_monthly_bin158> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Oct 19 03:30:12 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 04:02:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 04:02:26 2021
Terminated at Tue Oct 19 06:51:41 2021
Results reported at Tue Oct 19 06:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0801.1+6444_monthly_bin158 120.293 64.7438 646531201 649123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0801.1+6444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9819.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             434.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10155 sec.
    Turnaround time :                            12089 sec.

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

