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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin666
RA = 65.0086, Dec = 8.0999
tmin = 411955201, tmax = 412214401
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='377644', job_status='RUN', time_executed='2021-08-20 11:54:31.901712', time_epoch_executed='1629485671.9' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377644/ft1_4FGL_J0420.0+0805_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377644/ft1_4FGL_J0420.0+0805_daily_bin666.fits outfile=/scratch/kocevski/377644/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin666.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=411955201.0 tmax=412214401.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 6.36
user 5.32
sys 0.98

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.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/377644/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.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.39
user 0.33
sys 0.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/377644/ltcube_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.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/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits
.....................!
real 16.04
user 14.71
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/377644/ltcube_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.fits outfile=/scratch/kocevski/377644/expmap_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.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/377644/ltcube_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.fits
.....................!
real 191.33
user 185.16
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 144 point sources and 0 extended sources

Setting source of interest to:
4FGL J0420.0+0805 @ 65.0086 8.0999

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits scfile=/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits outfile=/scratch/kocevski/377644/cmap_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.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=65.0086 yref=8.0999 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.31
user 0.37
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits scfile=/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits outfile=/scratch/kocevski/377644/cmap_HighResolution_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.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=65.0086 yref=8.0999 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.31
user 0.39
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377644/Model_4FGL_J0420.0+0805_daily_bin666.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/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits.....................!
real 131.97
user 129.05
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits', '/scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits', expMap='/scratch/kocevski/377644/expmap_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.fits', expCube='/scratch/kocevski/377644/ltcube_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377644/Model_4FGL_J0420.0+0805_daily_bin666.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0420.0+0805'

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  2.735e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.543e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
194        Scale:  9.789e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/377644/ft1_filtered_4FGL_J0420.0+0805_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/377644/ft2_4FGL_J0420.0+0805_daily_bin666.fits
Exposure map: /scratch/kocevski/377644/expmap_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.fits
Exposure cube: /scratch/kocevski/377644/ltcube_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377644/Model_4FGL_J0420.0+0805_daily_bin666.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8980.65942033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13929E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21300E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5877       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97556       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85954       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0517       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8980.478     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2766 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9610       -.43099E-08** at limit **
   2  Prefactor     .10000E-03    20.657        .71699E-05** at limit **
   3  Prefactor     .10000E-03    7.9462        .28377E-07** at limit **
   4  Prefactor     .10000E-03    18.313        .81096E-06** at limit **
   5  norm          1.2703        .71472        .99976E-08   -.24267E-03
   6  Prefactor     7.9053        22.820        .14159E-06   -.25750E-04
   7  Prefactor     .10000E-03    105.70       -.10120E-04** at limit **
   8  norm          .10000E-03    38.993        .49135E-05** at limit **
   9  norm          1.6462        1.5625       -.21722E-07   -.13334E-03
  10  Prefactor     2.4690        1.8481       -.14170E-07   -.19361E-03
  11  Prefactor     .10000E-03    100.23        .76761E-05** at limit **
  12  Prefactor     .10000E-03    23.619        .24504E-05** at limit **
  13  Prefactor     .10000E-03    26.999       -.94804E-05** at limit **
  14  norm          2.0283        3.0771       -.14082E-06   -.31038E-03
  15  Prefactor     .10000E-03    17.251       -.50277E-05** at limit **
  16  norm          1.5881        2.8409       -.67769E-08   -.56630E-04
  17  Prefactor     .97582        7.0090       -.79138E-08   -.26183E-04
  18  norm          7.5395        2.6858        .11705E-08    .48448E-04
  19  Prefactor     .10000E-03    9.5935       -.16221E-06** at limit **
  20  Prefactor     .10000E-03    12.379        .75800E-06** at limit **
  21  Prefactor     .10000E-03    4.8561        .47459E-09** at limit **
  22  norm          .10000E-03    .20353        .71806E-10** at limit **
  23  Normalizat    .85939        .27575       -.91411E-07    .17920E-05
  24  Prefactor     1.0517        .72756E-01    .62871E-07    .15034E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27029
  Prefactor  = 7.90527
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.64618
  Prefactor  = 2.469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02828
  Prefactor  = 0.0001
  norm       = 1.58811
  Prefactor  = 0.975818
  norm       = 7.53954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.859392
  Prefactor  = 1.05172
 **********
 **   18 **HESSE 
 **********

 FCN=   8980.478     FROM HESSE     STATUS=OK           393 CALLS     3159 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9667        .15926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2703        10.199        .19777E-02   -1.5483    
   6  Prefactor     7.9053        22.816        .71285E-03   -1.5146    
   7  Prefactor     .10000E-03    106.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    39.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6462        1.6667        .10471E-03   -1.5451    
  10  Prefactor     2.4690        1.8381        .10319E-03   -1.5394    
  11  Prefactor     .10000E-03    102.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0283        3.0223        .18751E-03   -1.5423    
  15  Prefactor     .10000E-03    17.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5881        2.8336        .19662E-03   -1.5456    
  17  Prefactor     .97582        6.9289        .47288E-03   -1.5510    
  18  norm          7.5395        2.6813        .88123E-04   -1.5159    
  19  Prefactor     .10000E-03    9.6015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20362        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85939        .29474        .52286E-03   -.97902    
  24  Prefactor     1.0517        .78914E-01    .13836E-03   -.91025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39321e-10
Minuit parameter uncertainties:
  1  8.2793e-08
  2  4.60783e-06
  3  2.02711e-06
  4  2.56532e-06
  5  7.20034
  6  22.8411
  7  0.000156966
  8  6.92239e-05
  9  1.66679
  10  1.83814
  11  0.000230401
  12  1.40784e-06
  13  0.000202769
  14  3.02249
  15  6.10089e-07
  16  2.83388
  17  5.20109
  18  2.68137
  19  1.10339e-07
  20  9.73468e-07
  21  8.0421e-08
  22  5.03986e-09
  23  0.295292
  24  0.078923
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  7.905e+00  2.284e+01  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.543e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
194        Scale:  9.789e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.052e+00  7.892e-02  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.594e-01  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 65.009 8.100
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377644/likelihoodResults_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.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) = 8980.46708957
delta logL = 0.0109833746028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8980.4630886
delta logL = 0.0149843391719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9591       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8279       1.0000          .0000       10.000    
     3 'Normalizat'    .85542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+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=   8980.463     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      255 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9572        25.617        .16449E-03   -.27175E-03
   2  Index         2.8292        1.9450        .82273E-02   -.17254E-03
   3  Normalizat    .85518        .26571        .52404E-03   -.37275E-03
   4  Prefactor     1.0523        .77012E-01    .13832E-03   -.11407E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95722
  Index      = 2.82917
  Normalizat = 0.855182
  Prefactor  = 1.05232
 **********
 **   18 **HESSE 
 **********

 FCN=   8980.463     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9572        21.540        .65797E-05   -1.5220    
   2  Index         2.8292        1.7098        .32909E-03   -.44911    
   3  Normalizat    .85518        .26578        .20962E-04   -.98053    
   4  Prefactor     1.0523        .76992E-01    .27665E-04   -.91005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21324e-09
Minuit parameter uncertainties:
  1  21.5684
  2  1.75382
  3  0.26619
  4  0.0770002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377644': 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) = 8980.46308777
delta logL = 0.0149851647566

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  5.957e+00  2.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.829e+00  1.754e+00  0.000e+00  1.000e+01 (-1.000e+00)
194        Scale:  9.789e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.052e+00  7.700e-02  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.552e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 65.009 8.100

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/377644/cmap_HighResolution_411955201_412214401_4FGL_J0420.0+0805_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-20 12:08:32.681195', job_id='377644', GAL2='1.05', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629486512.68', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.50e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='666' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:08:32 PDT 2021

PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 375516: <4FGL_J0420.0+0805_daily_bin666> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin666> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 11:45:43 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 11:45:44 2021
Terminated at Fri Aug 20 12:08:04 2021
Results reported at Fri Aug 20 12:08:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin666 65.0086 8.0999 411955201 412214401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0420.0+0805 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1125.00 sec.
    Max Memory :                                 933 MB
    Average Memory :                             247.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1339 sec.
    Turnaround time :                            1341 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 377644: <4FGL_J0420.0+0805_daily_bin666> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin666> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 11:52:00 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 11:52:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 11:52:02 2021
Terminated at Fri Aug 20 12:08:33 2021
Results reported at Fri Aug 20 12:08:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin666 65.0086 8.0999 411955201 412214401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0420.0+0805 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

