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


Performing analysis on: 4FGL_J0420.0+0805_daily_bin1642
RA = 65.0086, Dec = 8.0999
tmin = 664934401, tmax = 665193601
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='434715', job_status='RUN', time_executed='2022-01-30 03:14:08.055577', time_epoch_executed='1643541248.06' WHERE source_name='4FGL J0420.0+0805' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434715/ft1_4FGL_J0420.0+0805_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434715/ft1_4FGL_J0420.0+0805_daily_bin1642.fits outfile=/scratch/kocevski/434715/ft1_filteredMKT_4FGL_J0420.0+0805_daily_bin1642.fits ra=65.0086 dec=8.0999 rad=12.0 tmin=664934401.0 tmax=665193601.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 3.65
user 3.37
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434715/ft1_filtered_4FGL_J0420.0+0805_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/434715/ltcube_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.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/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits
.....................!
real 12.20
user 11.76
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434715/ft1_filtered_4FGL_J0420.0+0805_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/434715/ltcube_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.fits outfile=/scratch/kocevski/434715/expmap_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.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/434715/ltcube_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.fits
.....................!
real 191.31
user 184.73
sys 6.21

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/434715/ft1_filtered_4FGL_J0420.0+0805_daily_bin1642.fits scfile=/scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits outfile=/scratch/kocevski/434715/cmap_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.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 0.66
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434715/ft1_filtered_4FGL_J0420.0+0805_daily_bin1642.fits scfile=/scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits outfile=/scratch/kocevski/434715/cmap_HighResolution_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.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 0.57
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/434715/ft1_filtered_4FGL_J0420.0+0805_daily_bin1642.fits', '/scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits', expMap='/scratch/kocevski/434715/expmap_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.fits', expCube='/scratch/kocevski/434715/ltcube_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/434715/Model_4FGL_J0420.0+0805_daily_bin1642.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/434715/ft1_filtered_4FGL_J0420.0+0805_daily_bin1642.fits
Spacecraft file(s): /scratch/kocevski/434715/ft2_4FGL_J0420.0+0805_daily_bin1642.fits
Exposure map: /scratch/kocevski/434715/expmap_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.fits
Exposure cube: /scratch/kocevski/434715/ltcube_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/434715/Model_4FGL_J0420.0+0805_daily_bin1642.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) = 12559.7386606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    55.139       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.765       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.929       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31624       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.604       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6405       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.431       1.0000         .10000E-03   10000.    
    16 'norm      '    .78795       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9303       1.0000         .10000E-03   10000.    
    22 'norm      '    .87632       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4493       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92807       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=   12559.72     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2777 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3601        .18864E-07** at limit **
   2  Prefactor     55.110        45.791        .20675E-05   -.13930E-04
   3  Prefactor     1.9859        19.668        .12091E-04   -.12437E-04
   4  Prefactor     37.769        31.401       -.67708E-06   -.10279E-03
   5  norm          2.9601        3.8882        .11761E-06   -.78147E-04
   6  Prefactor     .10000E-03    6.8080       -.45364E-07** at limit **
   7  Prefactor     36.925        51.931        .82522E-06   -.39024E-05
   8  norm          .10000E-03    7.8993        .28986E-08** at limit **
   9  norm          .10000E-03    .38791        .26375E-07** at limit **
  10  Prefactor     .31816        1.0804        .27084E-06   -.42833E-03
  11  Prefactor     .10000E-03    59.971       -.26563E-06** at limit **
  12  Prefactor     .10000E-03    16.014       -.20779E-07** at limit **
  13  Prefactor     12.603        12.231        .18054E-06   -.15772E-04
  14  norm          8.6411        3.2936        .14166E-07   -.17644E-03
  15  Prefactor     37.417        51.249        .20605E-05   -.74106E-05
  16  norm          .78877        1.5222        .29064E-06    .19679E-03
  17  Prefactor     .10000E-03    2.1622       -.51300E-07** at limit **
  18  norm          4.2823        2.8297        .10193E-06   -.83292E-04
  19  Prefactor     .10000E-03    8.4883        .73172E-07** at limit **
  20  Prefactor     .10000E-03    29.250        .25214E-06** at limit **
  21  Prefactor     6.9301        10.022        .97726E-06    .12989E-04
  22  norm          .87638        .56766        .23040E-07   -.27434E-05
  23  Normalizat    1.4496        .25253       -.12742E-05   -.84172E-04
  24  Prefactor     .92802        .64950E-01   -.31054E-06   -.24083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 55.11
  Prefactor  = 1.98591
  Prefactor  = 37.7694
  norm       = 2.96011
  Prefactor  = 0.0001
  Prefactor  = 36.9252
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.318165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.603
  norm       = 8.6411
  Prefactor  = 37.4169
  norm       = 0.788772
  Prefactor  = 0.0001
  norm       = 4.28233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.93008
  norm       = 0.876383
  Normalizat = 1.4496
  Prefactor  = 0.928024
 **********
 **   18 **HESSE 
 **********

 FCN=   12559.72     FROM HESSE     STATUS=OK           397 CALLS     3174 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3660        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.110        45.810        .54019E-04   -1.4222    
   3  Prefactor     1.9859        19.630        .14652E-02   -1.5426    
   4  Prefactor     37.769        31.200        .65219E-04   -1.4478    
   5  norm          2.9601        3.8785        .23601E-03   -1.5364    
   6  Prefactor     .10000E-03    6.8122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.925        52.009        .65951E-04   -1.4492    
   8  norm          .10000E-03    7.9067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .39642        .13562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .31816        1.6362        .19558E-02   -1.5595    
  11  Prefactor     .10000E-03    61.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.603        12.239        .11283E-03   -1.4998    
  14  norm          8.6411        3.2862        .11845E-03   -1.5120    
  15  Prefactor     37.417        51.249        .65509E-04   -1.4484    
  16  norm          .78877        1.3680        .18343E-02   -1.5530    
  17  Prefactor     .10000E-03    2.1676        .16089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2823        2.8212        .14258E-03   -1.5294    
  19  Prefactor     .10000E-03    8.4969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.9301        10.013        .76198E-03   -1.5181    
  22  norm          .87638        .55864        .65895E-04   -1.5521    
  23  Normalizat    1.4496        .27550        .47069E-03   -.79205    
  24  Prefactor     .92802        .72127E-01    .15380E-03   -.95169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84286e-08
Minuit parameter uncertainties:
  1  1.66358e-06
  2  45.8391
  3  12.4924
  4  31.2139
  5  3.87881
  6  8.96841e-06
  7  52.0733
  8  6.06929e-06
  9  9.88477e-07
  10  1.44287
  11  8.70787e-06
  12  1.88264e-06
  13  12.2415
  14  3.28629
  15  51.3094
  16  1.36807
  17  4.20372e-06
  18  2.82125
  19  6.57917e-06
  20  4.93102e-05
  21  10.0149
  22  0.558638
  23  0.27578
  24  0.0721346
Done.

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

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.000e-04  8.968e-06  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:  9.280e-01  7.213e-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:  1.450e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.009 8.100
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434715/likelihoodResults_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.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) = 12559.7159504
delta logL = -0.000699719437762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12559.7152508
delta logL = -1.56549504027e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5230       1.0000          .0000       10.000    
     3 'Normalizat'    1.4495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92804       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=   12559.72     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10192E-03    77.651        .18142E-02** at limit **
   2  Index         2.4505        5.9361        .50000        .20564E-04
   3  Normalizat    1.4496        .22192E-01    .47069E-03    .11594E-04
   4  Prefactor     .92802        .60143E-02    .15380E-03    .45976E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010192
  Index      = 2.4505
  Normalizat = 1.4496
  Prefactor  = 0.928024
 **********
 **   18 **HESSE 
 **********

 FCN=   12559.72     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10192E-03    321.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4505        8.6285        .50000       -.53507    
   3  Normalizat    1.4496        .47093E-01    .18827E-04   -.79205    
   4  Prefactor     .92802        .12763E-01    .61522E-05   -.95169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70104e-08
Minuit parameter uncertainties:
  1  0.0499201
  2  722.097
  3  0.0470945
  4  0.0127631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434715': 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) = 12559.7152503
delta logL = 3.58113538823e-07

Extracting fit parameters...

4FGL J0420.0+0805
   Spectrum: PowerLaw
192    Prefactor:  1.019e-04  4.992e-02  1.000e-04  1.000e+04 ( 1.000e-13)
193        Index:  2.450e+00  7.221e+02  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:  9.280e-01  1.276e-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:  1.450e+00  4.709e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/434715/cmap_HighResolution_664934401_665193601_4FGL_J0420.0+0805_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2022-01-30 03:31:06.029047', job_id='434715', GAL2='0.93', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1643542266.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1642' AND source_name='4FGL J0420.0+0805' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 03:31:06 PST 2022

r <slac> at Sun Jan 30 00:05:53 2022
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:05:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:05:56 2022
Terminated at Sun Jan 30 00:28:44 2022
Results reported at Sun Jan 30 00:28:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin1642 65.0086 8.0999 664934401 665193601 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 :                                   1019.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1367 sec.
    Turnaround time :                            1371 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 434715: <4FGL_J0420.0+0805_daily_bin1642> in cluster <slac> Done

Job <4FGL_J0420.0+0805_daily_bin1642> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 30 00:05:54 2022
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:05:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:05:57 2022
Terminated at Sun Jan 30 03:31:06 2022
Results reported at Sun Jan 30 03:31:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.0+0805_daily_bin1642 65.0086 8.0999 664934401 665193601 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 :                                   1022.31 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             72.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12309 sec.
    Turnaround time :                            12312 sec.

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

