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


Performing analysis on: 4FGL_J0804.5+0414_daily_bin935
RA = 121.133, Dec = 4.2393
tmin = 481680001, tmax = 481939201
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='100847', job_status='RUN', time_executed='2021-08-29 00:34:13.284833', time_epoch_executed='1630222453.28' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100847/ft1_4FGL_J0804.5+0414_daily_bin935.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100847/ft1_4FGL_J0804.5+0414_daily_bin935.fits outfile=/scratch/kocevski/100847/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin935.fits ra=121.133 dec=4.2393 rad=12.0 tmin=481680001.0 tmax=481939201.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 4.82
user 3.42
sys 1.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.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/100847/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin935.fits evtable="EVENTS" outfile="/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.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 1.65
user 0.34
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits" evtable="EVENTS" scfile=/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits sctable="SC_DATA" outfile=/scratch/kocevski/100847/ltcube_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.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/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits
.....................!
real 13.61
user 11.93
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits sctable="SC_DATA" expcube=/scratch/kocevski/100847/ltcube_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.fits outfile=/scratch/kocevski/100847/expmap_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.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/100847/ltcube_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.fits
.....................!
real 192.17
user 185.73
sys 6.07

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
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits scfile=/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits outfile=/scratch/kocevski/100847/cmap_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.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.133 yref=4.2393 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 1.55
user 0.36
sys 1.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits scfile=/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits outfile=/scratch/kocevski/100847/cmap_HighResolution_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.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.133 yref=4.2393 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 1.68
user 0.37
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100847/Model_4FGL_J0804.5+0414_daily_bin935.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
adding source Monoceros
Working on...
/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits.....................!
real 91.17
user 88.29
sys 2.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits', '/scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits', expMap='/scratch/kocevski/100847/expmap_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.fits', expCube='/scratch/kocevski/100847/ltcube_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100847/Model_4FGL_J0804.5+0414_daily_bin935.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100847/ft1_filtered_4FGL_J0804.5+0414_daily_bin935.fits
Spacecraft file(s): /scratch/kocevski/100847/ft2_4FGL_J0804.5+0414_daily_bin935.fits
Exposure map: /scratch/kocevski/100847/expmap_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.fits
Exposure cube: /scratch/kocevski/100847/ltcube_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100847/Model_4FGL_J0804.5+0414_daily_bin935.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) = 7430.51322797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62411E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8396       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.806       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0666       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0849       1.0000         .10000E-03   10000.    
    15 'norm      '    9.5843       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7266       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4022       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82919       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7430.511     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2337 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1017        2.2699        .20445E-06    .59608E-04
   2  Prefactor     77.295        55.502       -.31456E-05   -.31743E-03
   3  Prefactor     .10000E-03    2.7597       -.38435E-07** at limit **
   4  Prefactor     .10000E-03    235.76       -.58556E-05** at limit **
   5  norm          2.2865        1.8004        .48910E-07   -.45461E-04
   6  Prefactor     .10000E-03    17.025       -.16419E-06** at limit **
   7  Prefactor     3.8398        3.6974        .95406E-06    .69992E-03
   8  norm          .10000E-03    6.3036        .29584E-07** at limit **
   9  Prefactor     .10000E-03    3.1046        .49470E-07** at limit **
  10  Prefactor     22.783        114.96       -.80158E-05   -.63406E-04
  11  Prefactor     3.6474        7.4095        .26545E-06   -.73243E-04
  12  Prefactor     5.0626        24.275        .10528E-05    .86027E-04
  13  norm          .10000E-03    3.5638       -.73514E-07** at limit **
  14  norm          1.0850        1.1022       -.10957E-07    .91070E-04
  15  norm          9.5800        15.904        .17558E-05    .32957E-03
  16  norm          3.7267        3.2689        .18566E-05   -.15588E-02
  17  Prefactor     .10000E-03    8.0948        .25290E-07** at limit **
  18  Prefactor     .10000E-03    12.330       -.10824E-06** at limit **
  19  norm          2.4024        1.0588        .97910E-08   -.14861E-03
  20  norm          .10000E-03    4.2078        .83866E-07** at limit **
  21  Normalizat    .82911        .19385       -.20396E-05    .53877E-04
  22  Prefactor     1.1544        .12615        .52542E-06   -.54241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10172
  Prefactor  = 77.2951
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.28649
  Prefactor  = 0.0001
  Prefactor  = 3.83978
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7832
  Prefactor  = 3.64742
  Prefactor  = 5.06259
  norm       = 0.0001
  norm       = 1.08497
  norm       = 9.57997
  norm       = 3.72671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.40241
  norm       = 0.0001
  Normalizat = 0.829111
  Prefactor  = 1.15438
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.511     FROM HESSE     STATUS=OK           340 CALLS     2677 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1017        2.2635        .12538E-03   -1.5418    
   2  Prefactor     77.295        57.044        .45669E-04   -1.3947    
   3  Prefactor     .10000E-03    2.7660        .13984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    245.10        .42086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2865        1.7967        .97248E-04   -1.5406    
   6  Prefactor     .10000E-03    17.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8398        3.7455        .15278E-03   -1.5316    
   8  norm          .10000E-03    6.3125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1064        .14832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.783        119.27        .83876E-04   -1.4753    
  11  Prefactor     3.6474        7.3912        .21156E-03   -1.5326    
  12  Prefactor     5.0626        24.274        .17863E-03   -1.5258    
  13  norm          .10000E-03    3.5744        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0850        1.1194        .88461E-04   -1.5500    
  15  norm          9.5800        16.149        .12944E-03   -1.5089    
  16  norm          3.7267        3.4685        .74672E-03   -1.5322    
  17  Prefactor     .10000E-03    8.0971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4024        1.0603        .26418E-04   -1.5398    
  20  norm          .10000E-03    4.2467        .17267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82911        .21602        .33916E-03   -.98998    
  22  Prefactor     1.1544        .14229        .19033E-03   -.87747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05295e-09
Minuit parameter uncertainties:
  1  2.2636
  2  57.0848
  3  1.407e-06
  4  0.00207809
  5  1.79678
  6  2.74309e-05
  7  3.74576
  8  5.29167e-06
  9  1.69942e-06
  10  104.586
  11  7.39302
  12  22.1856
  13  4.75742e-06
  14  1.11943
  15  16.1564
  16  3.46867
  17  7.37042e-06
  18  1.02737e-05
  19  1.06026
  20  1.06909e-05
  21  0.216246
  22  0.142335
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  5.063e+00  2.219e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.154e+00  1.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.291e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100847/likelihoodResults_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7430.47495082
delta logL = 0.0355807231872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7430.45876995
delta logL = 0.0517616007446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6109       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0631       1.0000          .0000       10.000    
     3 'Normalizat'    .83035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   7430.459     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      274 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5954        26.787        .12926E-03   -.27264E-05
   2  Index         2.0631        1.1492        .17937E-01    .16859E-05
   3  Normalizat    .83026        .20761        .33893E-03   -.41057E-04
   4  Prefactor     1.1530        .13599        .19041E-03    .71013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.59536
  Index      = 2.06313
  Normalizat = 0.830263
  Prefactor  = 1.15295
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.459     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5954        26.610        .51706E-05   -1.5088    
   2  Index         2.0631        1.1429        .71748E-03   -.62781    
   3  Normalizat    .83026        .20774        .13557E-04   -.98956    
   4  Prefactor     1.1530        .13607        .38083E-04   -.87792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48965e-11
Minuit parameter uncertainties:
  1  26.6432
  2  1.15862
  3  0.207939
  4  0.136107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100847': 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) = 7430.45876968
delta logL = 0.051761864258

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  9.595e+00  2.664e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.063e+00  1.159e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.153e+00  1.361e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.303e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/100847/cmap_HighResolution_481680001_481939201_4FGL_J0804.5+0414_daily_bin935.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-08-29 00:46:09.239466', job_id='100847', GAL2='1.15', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630223169.24', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.18e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='935' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 00:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 100847: <4FGL_J0804.5+0414_daily_bin935> in cluster <slac> Done

Job <4FGL_J0804.5+0414_daily_bin935> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 00:30:29 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 00:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 00:30:30 2021
Terminated at Sun Aug 29 00:46:10 2021
Results reported at Sun Aug 29 00:46:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.5+0414_daily_bin935 121.133 4.2393 481680001 481939201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0804.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

