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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1087
RA = 65.0936, Dec = -37.7522
tmin = 521078401, tmax = 521337601
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='391029', job_status='RUN', time_executed='2021-08-20 12:33:04.929998', time_epoch_executed='1629487984.93' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391029/ft1_4FGL_J0420.3-3745_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391029/ft1_4FGL_J0420.3-3745_daily_bin1087.fits outfile=/scratch/kocevski/391029/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1087.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=521078401.0 tmax=521337601.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 8.59
user 4.34
sys 4.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.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/391029/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.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 4.46
user 0.34
sys 4.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/391029/ltcube_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.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/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits
.....................!
real 16.03
user 11.11
sys 4.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/391029/ltcube_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.fits outfile=/scratch/kocevski/391029/expmap_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.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/391029/ltcube_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.fits
.....................!
real 199.33
user 187.81
sys 11.06

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 177 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 J0420.3-3745 @ 65.0936 -37.7522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits scfile=/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits outfile=/scratch/kocevski/391029/cmap_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.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.0936 yref=-37.7522 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 4.43
user 0.36
sys 3.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits scfile=/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits outfile=/scratch/kocevski/391029/cmap_HighResolution_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.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.0936 yref=-37.7522 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 4.49
user 0.38
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391029/Model_4FGL_J0420.3-3745_daily_bin1087.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits.....................!
real 112.59
user 105.79
sys 6.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits', '/scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits', expMap='/scratch/kocevski/391029/expmap_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.fits', expCube='/scratch/kocevski/391029/ltcube_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/391029/Model_4FGL_J0420.3-3745_daily_bin1087.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0420.3-3745'

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  7.305e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.236e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/391029/ft1_filtered_4FGL_J0420.3-3745_daily_bin1087.fits
Spacecraft file(s): /scratch/kocevski/391029/ft2_4FGL_J0420.3-3745_daily_bin1087.fits
Exposure map: /scratch/kocevski/391029/expmap_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.fits
Exposure cube: /scratch/kocevski/391029/ltcube_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/391029/Model_4FGL_J0420.3-3745_daily_bin1087.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) = 4966.69962895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.800       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5575       1.0000         .10000E-03   10000.    
     3 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.722       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.535       1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.5384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.213       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1535       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22927E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.332       1.0000         .10000E-03   10000.    
    16 'norm      '    183.46       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3590       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .99841       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6784       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98882       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4966.676     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     2616 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.772        6.8045       -.25462E-06   -.38395E-02
   2  norm          3.5570        2.9995       -.93412E-06   -.21052E-04
   3  norm          .10000E-03    .34770        .34843E-06** at limit **
   4  Prefactor     24.784        54.121       -.42033E-04    .13216E-02
   5  Prefactor     10.705        15.422        .38523E-04    .12094E-02
   6  norm          4.3608        1.9394        .11111E-06   -.86190E-04
   7  Prefactor     50.520        3.6482       -.25860E-05    .14972E-02
   8  norm          .10000E-03    .25961        .17759E-06** at limit **
   9  norm          4.5383        5.0236        .14649E-04    .80749E-02
  10  Prefactor     36.176        9.1204        .17139E-05   -.57766E-02
  11  Prefactor     22.925        9.8640       -.16192E-04    .54021E-02
  12  Prefactor     3.1209        4.2084        .15308E-04    .12061E-03
  13  norm          1.7515        .83605        .57036E-07   -.20703E-03
  14  Prefactor     .10000E-03    11.061       -.11254E-06** at limit **
  15  norm          16.325        1.1371       -.16066E-07    .26495E-04
  16  norm          183.45        3.1173       -.13615E-05    .36477E-02
  17  norm          1.1330        1.4752        .20475E-06    .59212E-04
  18  Prefactor     3.3539        3.3969       -.43989E-07   -.58666E-04
  19  Prefactor     .10001E-03    22.447        .83705E-05** at limit **
  20  norm          1.0012        3.2471       -.95336E-06    .42857E-04
  21  norm          2.5593        6.2775        .20726E-05    .70725E-03
  22  Prefactor     .10000E-03    35.916       -.78525E-05** at limit **
  23  Prefactor     5.6709        6.3749        .49412E-06   -.66135E-02
  24  Prefactor     .10001E-03    20.410       -.70097E-05** at limit **
  25  Normalizat    1.0676        .24667       -.99514E-05    .22398E-04
  26  Prefactor     .98774        .25412        .39593E-05    .13120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.7724
  norm       = 3.55699
  norm       = 0.0001
  Prefactor  = 24.7844
  Prefactor  = 10.7053
  norm       = 4.3608
  Prefactor  = 50.5203
  norm       = 0.0001
  norm       = 4.5383
  Prefactor  = 36.1763
  Prefactor  = 22.9252
  Prefactor  = 3.12092
  norm       = 1.75147
  Prefactor  = 0.0001
  norm       = 16.3253
  norm       = 183.449
  norm       = 1.13298
  Prefactor  = 3.35392
  Prefactor  = 0.000100011
  norm       = 1.00123
  norm       = 2.55926
  Prefactor  = 0.000100001
  Prefactor  = 5.67094
  Prefactor  = 0.000100008
  Normalizat = 1.06755
  Prefactor  = 0.987742
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.676     FROM HESSE     STATUS=OK           534 CALLS     3150 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.772        38.527        .12971E-02   -1.4160    
   2  norm          3.5570        3.0215        .53571E-02   -1.5331    
   3  norm          .10000E-03    .29003        .17781E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.784        56.298        .20023E-02   -1.4712    
   5  Prefactor     10.705        19.018        .30589E-02   -1.5053    
   6  norm          4.3608        1.9391        .48215E-02   -1.5290    
   7  Prefactor     50.520        68.067        .14104E-02   -1.4285    
   8  norm          .10000E-03    .16021        .13486E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5383        7.1018        .47243E-02   -1.5282    
  10  Prefactor     36.176        34.589        .16649E-02   -1.4504    
  11  Prefactor     22.925        23.147        .20918E-02   -1.4750    
  12  Prefactor     3.1209        16.919        .57063E-02   -1.5355    
  13  norm          1.7515        1.0167        .79226E-02   -1.5443    
  14  Prefactor     .10000E-03    1.9012        .58504E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.325        12.076        .24776E-02   -1.4900    
  16  norm          183.45        243.32        .74516E-03   -1.2991    
  17  norm          1.1330        1.5006        .10966E-01   -1.5495    
  18  Prefactor     3.3539        3.6090        .55202E-02   -1.5342    
  19  Prefactor     .10001E-03    22.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0012        3.4425        .51715E-01   -1.5508    
  21  norm          2.5593        6.3784        .63852E-02   -1.5388    
  22  Prefactor     .10000E-03    36.483        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.6709        7.8970        .42142E-02   -1.5232    
  24  Prefactor     .10001E-03    20.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0676        .21874        .58037E-01   -.90800    
  26  Prefactor     .98774        .22039        .46127E-01   -.93139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90228e-07
Minuit parameter uncertainties:
  1  38.5428
  2  3.02164
  3  1.03442e-06
  4  56.4194
  5  19.0285
  6  1.93916
  7  68.1716
  8  2.23038e-08
  9  7.10314
  10  34.608
  11  23.1563
  12  14.5393
  13  1.01676
  14  8.37615e-06
  15  12.0774
  16  244.67
  17  1.50062
  18  3.60922
  19  0.00100787
  20  3.4432
  21  6.38013
  22  0.000427403
  23  7.89841
  24  0.000792658
  25  0.218921
  26  0.220588
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  2.293e+01  2.316e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.236e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.877e-01  2.206e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.068e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 5.96e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 2.51e-05

TS (Fixed Index): 1.85
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/391029/likelihoodResults_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.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) = 4965.37823039
delta logL = 1.29759394495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4965.34949299
delta logL = 1.32633134361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8907       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5984       1.0000          .0000       10.000    
     3 'Normalizat'    .94764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4965.349     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      245 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8907        33.514        .51139E-02    .62228E-03
   2  Index         3.5981        2.3605        .75388E-01    .15384E-03
   3  Normalizat    .94834        .79461E-01    .45507E-01    .45346E-04
   4  Prefactor     1.0718        .83060E-01    .62749E-01    .22640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89071
  Index      = 3.59813
  Normalizat = 0.948339
  Prefactor  = 1.07183
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.349     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8907        49.561        .68577E-04   -1.5313    
   2  Index         3.5981        3.0736        .30363E-02   -.28418    
   3  Normalizat    .94834        .24227        .26940E-03   -.94782    
   4  Prefactor     1.0718        .26148        .27752E-03   -.90372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64397e-07
Minuit parameter uncertainties:
  1  27.8004
  2  3.33571
  3  0.242549
  4  0.261789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391029': 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) = 4965.34948783
delta logL = 1.32633650421

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  3.891e+00  2.780e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  3.598e+00  3.336e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  1.316e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.072e+00  2.618e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.483e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 3.60 +/- 3.34
Photon Flux (Free Index): 1.60e-07 +/- 8.96e-08
Energy Flux (Free Index): 2.59e-05 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/391029/cmap_HighResolution_521078401_521337601_4FGL_J0420.3-3745_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='2.59e-05', photon_flux_error='5.96e-08', dlogl='1.33e+00', energy_flux='2.48e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-08-20 12:45:35.120560', photon_index_error2='3.34', photon_index2='3.60', ts='1.85', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='2.11e-05', EG='1.07', time_epoch_completed='1629488735.12', return_code='0', job_id='391029', GAL2='1.07', EG2='0.95', return_code2='102', energy_flux_error='2.51e-05', photon_flux_error2='8.96e-08', ts2='4.83', photon_index='2.24' WHERE bin_id='1087' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:45:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 391029: <4FGL_J0420.3-3745_daily_bin1087> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1087> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:30:53 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:30:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:30:55 2021
Terminated at Fri Aug 20 12:45:36 2021
Results reported at Fri Aug 20 12:45:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1087 65.0936 -37.7522 521078401 521337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0420.3-3745 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             317.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

