/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 177 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 = 73146
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0801.1+6444_monthly_bin17
RA = 120.293, Dec = 64.7438
tmin = 281059201, tmax = 283651201
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='132434', job_status='RUN', time_executed='2021-10-19 03:04:09.770824', time_epoch_executed='1634637849.77' WHERE source_name='4FGL J0801.1+6444' and cadence='monthly' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132434

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132434/ft1_4FGL_J0801.1+6444_monthly_bin17.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132434/ft1_4FGL_J0801.1+6444_monthly_bin17.fits outfile=/scratch/kocevski/132434/ft1_filteredMKT_4FGL_J0801.1+6444_monthly_bin17.fits ra=120.293 dec=64.7438 rad=12.0 tmin=281059201.0 tmax=283651201.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.99
user 31.17
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.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/132434/ft1_filteredMKT_4FGL_J0801.1+6444_monthly_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.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.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/132434/ltcube_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.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/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits
.....................!
real 112.90
user 112.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/132434/ltcube_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.fits outfile=/scratch/kocevski/132434/expmap_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.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/132434/ltcube_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.fits
.....................!
real 191.56
user 185.41
sys 5.74

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/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.fits scfile=/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits outfile=/scratch/kocevski/132434/cmap_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.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.77
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.fits scfile=/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits outfile=/scratch/kocevski/132434/cmap_HighResolution_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.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.83
user 0.61
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.fits', '/scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits', expMap='/scratch/kocevski/132434/expmap_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.fits', expCube='/scratch/kocevski/132434/ltcube_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/132434/Model_4FGL_J0801.1+6444_monthly_bin17.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/132434/ft1_filtered_4FGL_J0801.1+6444_monthly_bin17.fits
Spacecraft file(s): /scratch/kocevski/132434/ft2_4FGL_J0801.1+6444_monthly_bin17.fits
Exposure map: /scratch/kocevski/132434/expmap_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.fits
Exposure cube: /scratch/kocevski/132434/ltcube_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/132434/Model_4FGL_J0801.1+6444_monthly_bin17.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) = 87766.2562519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.313       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3712       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0101       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13904E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1396       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4778       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5074       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2643       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15552E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43350E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1398       1.0000         .10000E-03   10000.    
    25 'norm      '    .35226E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13156E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4672       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85229       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1653       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.

 FCN=   87766.12     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3452 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.315        8.7629        .11063E-06    .19412E-04
   2  Prefactor     9.3062        6.3944        .86975E-06    .26962E-03
   3  Prefactor     2.3593        8.0201       -.64231E-05   -.14027E-03
   4  Prefactor     6.2119        5.8804        .24192E-06   -.67698E-03
   5  Prefactor     3.5228        2.3401       -.19420E-07   -.35810E-05
   6  Prefactor     .10000E-03    2.5703        .16256E-06** at limit **
   7  norm          1.3304        .17567       -.11923E-07    .45295E-03
   8  Prefactor     3.1538        4.5877       -.65655E-07   -.10445E-03
   9  Prefactor     .10000E-03    8.7450       -.25430E-05** at limit **
  10  Prefactor     6.3870        8.3576        .27136E-05    .13836E-03
  11  norm          1.0100        .24849        .32947E-08   -.83495E-03
  12  Prefactor     .10000E-03    3.1743        .50675E-06** at limit **
  13  norm          5.3641        .94660       -.39557E-08   -.54075E-03
  14  Prefactor     1.4267        .80613       -.23311E-07   -.56637E-03
  15  Prefactor     3.1380        2.6097        .28704E-06   -.19572E-02
  16  norm          .10000E-03    .16077        .15718E-07** at limit **
  17  Prefactor     1.4778        .45984        .22109E-08   -.89295E-03
  18  Prefactor     4.5135        2.8370        .70264E-06   -.92183E-04
  19  Prefactor     3.2645        1.6807       -.14337E-06   -.81284E-03
  20  norm          1.6081        .56068        .36277E-08    .19538E-03
  21  Prefactor     .10000E-03    10.172        .43268E-05** at limit **
  22  Prefactor     .10000E-03    1.6975        .23819E-07** at limit **
  23  Prefactor     .10004E-03    1.3203       -.31606E-06** at limit **
  24  Prefactor     1.1399        1.2808        .30131E-07   -.79565E-03
  25  norm          .35294E-01    .75203E-01   -.16223E-07   -.20937E-02
  26  Prefactor     .10000E-03    .59103       -.11893E-06** at limit **
  27  Prefactor     1.4655        1.8908        .26765E-07   -.61504E-03
  28  Prefactor     .10000E-03    .79325       -.87594E-08** at limit **
  29  Normalizat    .85228        .56685E-01   -.23668E-06    .42849E-03
  30  Prefactor     1.1653        .37519E-01    .74752E-07    .32868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.315
  Prefactor  = 9.30615
  Prefactor  = 2.35934
  Prefactor  = 6.21191
  Prefactor  = 3.52276
  Prefactor  = 0.0001
  norm       = 1.33037
  Prefactor  = 3.15376
  Prefactor  = 0.0001
  Prefactor  = 6.38698
  norm       = 1.01004
  Prefactor  = 0.0001
  norm       = 5.36405
  Prefactor  = 1.42665
  Prefactor  = 3.13804
  norm       = 0.0001
  Prefactor  = 1.47783
  Prefactor  = 4.51351
  Prefactor  = 3.26455
  norm       = 1.60807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 1.13993
  norm       = 0.0352944
  Prefactor  = 0.000100001
  Prefactor  = 1.46548
  Prefactor  = 0.0001
  Normalizat = 0.852276
  Prefactor  = 1.16531
 **********
 **   18 **HESSE 
 **********

 FCN=   87766.12     FROM HESSE     STATUS=OK           614 CALLS     4066 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.315        8.7649        .96257E-04   -1.4875    
   2  Prefactor     9.3062        6.3488        .13139E-03   -1.5098    
   3  Prefactor     2.3593        8.0508        .26465E-03   -1.5401    
   4  Prefactor     6.2119        6.1486        .80551E-03   -1.5209    
   5  Prefactor     3.5228        2.3412        .21562E-03   -1.5333    
   6  Prefactor     .10000E-03    2.6090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3304        .17478        .42606E-04   -1.5477    
   8  Prefactor     3.1538        4.5765        .22815E-03   -1.5353    
   9  Prefactor     .10000E-03    8.7426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3870        8.3902        .15902E-03   -1.5202    
  11  norm          1.0100        .24090        .70140E-03   -1.5507    
  12  Prefactor     .10000E-03    3.2093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3641        .94450        .11215E-03   -1.5245    
  14  Prefactor     1.4267        .80114        .19464E-03   -1.5469    
  15  Prefactor     3.1380        4.5198        .11439E-02   -1.5354    
  16  norm          .10000E-03    .30985        .23051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4778        .45623        .10579E-03   -1.5465    
  18  Prefactor     4.5135        2.8225        .18964E-03   -1.5283    
  19  Prefactor     3.2645        1.6799        .22414E-03   -1.5347    
  20  norm          1.6081        .55490        .11769E-03   -1.5454    
  21  Prefactor     .10000E-03    10.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    1.4695        .96674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1399        1.2674        .34689E-03   -1.5494    
  25  norm          .35294E-01    .13830        .11530E-02   -1.5670    
  26  Prefactor     .10000E-03    2.8165        .43793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4655        1.8871        .35493E-03   -1.5466    
  28  Prefactor     .10000E-03    .80298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85228        .63755E-01    .31327E-03   -.98158    
  30  Prefactor     1.1653        .42751E-01    .19447E-03   -.87406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31887e-07
Minuit parameter uncertainties:
  1  8.76554
  2  6.34923
  3  8.05454
  4  6.14925
  5  2.34127
  6  1.08863e-06
  7  0.174775
  8  4.57699
  9  1.08242e-05
  10  8.39175
  11  0.240899
  12  5.44279e-07
  13  0.944503
  14  0.801144
  15  4.52033
  16  7.23774e-07
  17  0.456227
  18  2.82255
  19  1.67992
  20  0.554903
  21  2.58343e-05
  22  8.149e-07
  23  0.00046222
  24  1.26744
  25  0.138303
  26  9.69482e-05
  27  1.88713
  28  7.21671e-07
  29  0.0637605
  30  0.0427523
Done.

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

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  5.443e-07  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.165e+00  4.275e-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:  8.523e-01  6.376e-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: 1.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/132434/likelihoodResults_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.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) = 87766.1216704
delta logL = -0.00148573235492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 87766.1201872
delta logL = -2.5738554541e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12279E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0969       1.0000          .0000       10.000    
     3 'Normalizat'    .85229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1653       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.

 FCN=   87766.12     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8862        .90712E-02** at limit **
   2  Index         2.1379        6.0607        .50000       -.10719E-03
   3  Normalizat    .85228        .14022E-02    .70797E-01   -.14563E-02
   4  Prefactor     1.1653        .10062E-02    .35508E-01   -.16128E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.13795
  Normalizat = 0.852275
  Prefactor  = 1.16531
 **********
 **   18 **HESSE 
 **********

 FCN=   87766.12     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      240 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    147.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1379        5.2005        .50000       -.60944    
   3  Normalizat    .85228        .89558E-02    .31327E-03   -.98158    
   4  Prefactor     1.1653        .64375E-02    .19447E-03   -.87406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00566e-07
Minuit parameter uncertainties:
  1  0.000662737
  2  26.1766
  3  0.00895583
  4  0.00643752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132434': 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) = 87766.1201828
delta logL = 1.87200203072e-06

Extracting fit parameters...

4FGL J0801.1+6444
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  6.627e-04  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.138e+00  2.618e+01  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.165e+00  6.438e-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:  8.523e-01  8.956e-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/132434/cmap_HighResolution_281059201_283651201_4FGL_J0801.1+6444_monthly_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-04', job_status='DONE', photon_flux_upper_limit='1.05e-08', time_completed='2021-10-19 05:50:55.585523', job_id='132434', GAL2='1.17', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1634647855.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='17' AND source_name='4FGL J0801.1+6444' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue Oct 19 05:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 132434: <4FGL_J0801.1+6444_monthly_bin17> in cluster <slac> Done

Job <4FGL_J0801.1+6444_monthly_bin17> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Oct 19 03:00:22 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 19 03:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 19 03:01:01 2021
Terminated at Tue Oct 19 05:50:56 2021
Results reported at Tue Oct 19 05:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0801.1+6444_monthly_bin17 120.293 64.7438 281059201 283651201 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 :                                   9917.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             440.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10195 sec.
    Turnaround time :                            10234 sec.

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

