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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1149
RA = 65.0936, Dec = -37.7522
tmin = 537148801, tmax = 537408001
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='391093', job_status='RUN', time_executed='2021-08-20 12:33:01.749246', time_epoch_executed='1629487981.75' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391093/ft1_4FGL_J0420.3-3745_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391093/ft1_4FGL_J0420.3-3745_daily_bin1149.fits outfile=/scratch/kocevski/391093/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1149.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=537148801.0 tmax=537408001.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.56
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.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/391093/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/391093/ltcube_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.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/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits
.....................!
real 11.97
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/391093/ltcube_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.fits outfile=/scratch/kocevski/391093/expmap_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.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/391093/ltcube_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.fits
.....................!
real 190.25
user 185.52
sys 4.37

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/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits scfile=/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits outfile=/scratch/kocevski/391093/cmap_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.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 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits scfile=/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits outfile=/scratch/kocevski/391093/cmap_HighResolution_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391093/Model_4FGL_J0420.3-3745_daily_bin1149.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/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits.....................!
real 140.17
user 138.66
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits', '/scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits', expMap='/scratch/kocevski/391093/expmap_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.fits', expCube='/scratch/kocevski/391093/ltcube_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/391093/Model_4FGL_J0420.3-3745_daily_bin1149.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/391093/ft1_filtered_4FGL_J0420.3-3745_daily_bin1149.fits
Spacecraft file(s): /scratch/kocevski/391093/ft2_4FGL_J0420.3-3745_daily_bin1149.fits
Exposure map: /scratch/kocevski/391093/expmap_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.fits
Exposure cube: /scratch/kocevski/391093/ltcube_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/391093/Model_4FGL_J0420.3-3745_daily_bin1149.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) = 6826.37131547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.6476       1.0000         .10000E-03   10000.    
     3 'norm      '    .27891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1860       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0289       1.0000         .10000E-03   10000.    
     7 'Prefactor '    157.30       1.0000         .10000E-03   10000.    
     8 'norm      '    .51366       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5086       1.0000         .10000E-03   10000.    
    13 'norm      '    .84685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1087       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0356       1.0000         .10000E-03   10000.    
    16 'norm      '    10.340       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7150       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0257       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .24203E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16995E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.930       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63562       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6826.368     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3153 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.413        .22598E-06** at limit **
   2  norm          5.6476        2.8291        .46819E-08   -.47201E-04
   3  norm          .27889        .31127       -.23326E-08   -.14254E-04
   4  Prefactor     .10000E-03    16.149       -.15712E-06** at limit **
   5  Prefactor     1.1852        16.412        .10956E-05   -.26814E-04
   6  norm          1.0289        .73745       -.16402E-07   -.16731E-03
   7  Prefactor     157.28        97.463        .11143E-05   -.74892E-04
   8  norm          .51365        .23904       -.12265E-07   -.31497E-03
   9  norm          2.4461        5.2937        .48146E-06    .19461E-04
  10  Prefactor     .10000E-03    8.4265        .16918E-08** at limit **
  11  Prefactor     .10000E-03    12.040       -.20545E-06** at limit **
  12  Prefactor     6.5078        8.5246       -.18771E-06    .55706E-04
  13  norm          .84683        .46211        .20094E-07    .22070E-03
  14  Prefactor     1.1079        2.1786       -.41955E-06   -.64816E-04
  15  norm          2.0336        10.262        .12493E-04   -.35920E-05
  16  norm          10.397        164.48       -.92333E-05    .47228E-04
  17  norm          2.7150        1.4959       -.12076E-06   -.81512E-04
  18  Prefactor     3.0259        3.1091       -.92240E-06   -.12148E-03
  19  Prefactor     .10000E-03    4.9585       -.31539E-07** at limit **
  20  norm          .10000E-03    1.5814       -.29651E-06** at limit **
  21  norm          2.9273        3.4171        .17548E-06   -.48315E-04
  22  Prefactor     .10000E-03    224.15       -.10183E-05** at limit **
  23  Prefactor     .10000E-03    2.6650        .14027E-06** at limit **
  24  Prefactor     59.911        37.747        .42695E-06   -.47985E-04
  25  Normalizat    1.1884        .16621        .12806E-05    .48765E-05
  26  Prefactor     .63562        .17111       -.30442E-05   -.17229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.6476
  norm       = 0.278889
  Prefactor  = 0.0001
  Prefactor  = 1.1852
  norm       = 1.02886
  Prefactor  = 157.277
  norm       = 0.513652
  norm       = 2.44614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.50783
  norm       = 0.846827
  Prefactor  = 1.1079
  norm       = 2.03357
  norm       = 10.3971
  norm       = 2.71497
  Prefactor  = 3.02589
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 2.9273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.9112
  Normalizat = 1.18835
  Prefactor  = 0.635618
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.368     FROM HESSE     STATUS=OK           466 CALLS     3619 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6476        2.8266        .95289E-04   -1.5233    
   3  norm          .27889        .29888        .47404E-03   -1.5602    
   4  Prefactor     .10000E-03    16.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1852        16.561        .41894E-03   -1.5490    
   6  norm          1.0289        .74980        .58474E-04   -1.5505    
   7  Prefactor     157.28        97.462        .16074E-03   -1.3193    
   8  norm          .51365        .23638        .26022E-04   -1.5565    
   9  norm          2.4461        5.2622        .26155E-03   -1.5395    
  10  Prefactor     .10000E-03    8.4338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5078        8.5112        .15731E-03   -1.5198    
  13  norm          .84683        .45897        .37206E-04   -1.5524    
  14  Prefactor     1.1079        2.1045        .15259E-03   -1.5497    
  15  norm          2.0336        10.408        .14495E-02   -1.5423    
  16  norm          10.397        165.49        .12460E-03   -1.5063    
  17  norm          2.7150        1.4999        .66527E-04   -1.5378    
  18  Prefactor     3.0259        3.0579        .11379E-03   -1.5360    
  19  Prefactor     .10000E-03    4.9646        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.834        .19927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9273        3.3935        .15522E-03   -1.5366    
  22  Prefactor     .10000E-03    227.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.2334        .25841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     59.911        37.744        .51827E-04   -1.4158    
  25  Normalizat    1.1884        .19245        .21074E-03   -.86964    
  26  Prefactor     .63562        .19809        .30157E-03   -1.0611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37121e-09
Minuit parameter uncertainties:
  1  3.6606e-05
  2  2.82662
  3  0.298882
  4  3.60166e-05
  5  8.8633
  6  0.749804
  7  97.5622
  8  0.236376
  9  5.26315
  10  1.78556e-06
  11  4.33317e-05
  12  8.51276
  13  0.458974
  14  2.10463
  15  9.20339
  16  83.2351
  17  1.4999
  18  3.0581
  19  4.43809e-06
  20  0.000490826
  21  3.39375
  22  0.000533773
  23  2.42935e-05
  24  37.7591
  25  0.192568
  26  0.198307
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.333e-05  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:  6.356e-01  1.983e-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.188e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 5.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/391093/likelihoodResults_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.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) = 6826.36797481
delta logL = -0.000388183477298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6826.36758666
delta logL = -3.83370206691e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6826.368     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      249 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10322E-03    .20598        .74532E-01** at limit **
   2  Index         2.1152        7.6406        .50000        .15855E-04
   3  Normalizat    1.1883        .67016E-03    .21074E-03    .59319E-04
   4  Prefactor     .63562        .72478E-03    .30158E-03    .41694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103217
  Index      = 2.11524
  Normalizat = 1.18835
  Prefactor  = 0.635621
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.368     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      280 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10322E-03    55.493        .41090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1152        6.0488        .50000       -.61499    
   3  Normalizat    1.1883        .74748E-02    .42148E-04   -.86964    
   4  Prefactor     .63562        .80840E-02    .12063E-04   -1.0611    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52118e-09
Minuit parameter uncertainties:
  1  0.0267483
  2  234.499
  3  0.00747476
  4  0.00808401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391093': 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) = 6826.36758618
delta logL = 4.46157173428e-07

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.032e-04  2.675e-02  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.115e+00  2.345e+02  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:  6.356e-01  8.084e-03  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.188e+00  7.475e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 65.094 -37.752

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/391093/cmap_HighResolution_537148801_537408001_4FGL_J0420.3-3745_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-08-20 12:47:07.244148', job_id='391093', GAL2='0.64', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1629488827.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='4.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1149' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 391093: <4FGL_J0420.3-3745_daily_bin1149> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1149> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 12:31:01 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:31: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 12:31:02 2021
Terminated at Fri Aug 20 12:47:10 2021
Results reported at Fri Aug 20 12:47:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1149 65.0936 -37.7522 537148801 537408001 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 :                                   844.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            969 sec.

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

