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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1478
RA = 65.0936, Dec = -37.7522
tmin = 622425601, tmax = 622684801
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='392878', job_status='RUN', time_executed='2021-08-20 12:37:15.055826', time_epoch_executed='1629488235.06' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392878

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392878/ft1_4FGL_J0420.3-3745_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392878/ft1_4FGL_J0420.3-3745_daily_bin1478.fits outfile=/scratch/kocevski/392878/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1478.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=622425601.0 tmax=622684801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.51
user 4.01
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.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/392878/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1478.fits evtable="EVENTS" outfile="/scratch/kocevski/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.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.75
user 0.32
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/392878/ltcube_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.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/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits
.....................!
real 11.84
user 11.22
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/392878/ltcube_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.fits outfile=/scratch/kocevski/392878/expmap_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.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/392878/ltcube_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.fits
.....................!
real 190.79
user 185.48
sys 4.99

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/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.fits scfile=/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits outfile=/scratch/kocevski/392878/cmap_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.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.76
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.fits scfile=/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits outfile=/scratch/kocevski/392878/cmap_HighResolution_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.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.79
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/392878/ft2_4FGL_J0420.3-3745_daily_bin1478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392878/Model_4FGL_J0420.3-3745_daily_bin1478.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/392878/ft1_filtered_4FGL_J0420.3-3745_daily_bin1478.fits.....................!
real 124.04
user 122.24
sys 1.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4508       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0826       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    39.644       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .24452       1.0000         .10000E-03   10000.    
     9 'norm      '    17.821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.304       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7667       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.301       1.0000         .10000E-03   10000.    
    16 'norm      '    90.131       1.0000         .10000E-03   10000.    
    17 'norm      '    12.798       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0307       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3164       1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.374       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1059       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86162       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=   5864.676     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3109 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.842        .36821E-06** at limit **
   2  norm          2.4505        2.3680       -.10894E-06   -.46085E-04
   3  norm          2.0824        1.0562       -.46377E-07    .33346E-04
   4  Prefactor     .10000E-03    20.286       -.90610E-07** at limit **
   5  Prefactor     .10000E-03    6.5901        .43873E-08** at limit **
   6  norm          39.642        4.7201       -.58911E-07    .26845E-04
   7  Prefactor     .10000E-03    117.21        .18349E-06** at limit **
   8  norm          .24437        .45102        .10794E-06    .62677E-03
   9  norm          17.818        10.751       -.51233E-06   -.16989E-04
  10  Prefactor     11.107        54.633       -.20717E-05    .25308E-04
  11  Prefactor     7.0211        15.516       -.97547E-06   -.80921E-05
  12  Prefactor     13.295        15.674        .16317E-05    .29908E-03
  13  norm          2.7668        .95724       -.11693E-06    .59627E-04
  14  Prefactor     .10000E-03    2.2971       -.14955E-05** at limit **
  15  norm          26.302        15.832        .28917E-06    .40933E-03
  16  norm          90.435        229.28        .36870E-05    .25399E-04
  17  norm          12.798        3.8161        .72245E-08    .71379E-03
  18  Prefactor     4.0293        5.5269        .35441E-06    .71299E-03
  19  Prefactor     .10000E-03    26.480       -.13272E-05** at limit **
  20  norm          .10000E-03    3.9077        .23640E-05** at limit **
  21  norm          9.3153        8.2535       -.23192E-06    .18973E-03
  22  Prefactor     89.361        69.585       -.28070E-06    .12003E-04
  23  Prefactor     .10000E-03    3.2874        .14045E-06** at limit **
  24  Prefactor     .10000E-03    22.557        .14190E-06** at limit **
  25  Normalizat    1.1067        .26151        .69109E-05    .12975E-04
  26  Prefactor     .86096        .24956       -.80142E-05    .15464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.45054
  norm       = 2.08236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.6423
  Prefactor  = 0.0001
  norm       = 0.244367
  norm       = 17.8178
  Prefactor  = 11.1074
  Prefactor  = 7.02111
  Prefactor  = 13.2954
  norm       = 2.76675
  Prefactor  = 0.0001
  norm       = 26.3022
  norm       = 90.4348
  norm       = 12.7984
  Prefactor  = 4.02932
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.31527
  Prefactor  = 89.3614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10666
  Prefactor  = 0.860961
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.676     FROM HESSE     STATUS=OK           460 CALLS     3569 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4505        2.3788        .11271E-03   -1.5395    
   3  norm          2.0824        1.0568        .28614E-04   -1.5419    
   4  Prefactor     .10000E-03    20.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          39.642        4.7221        .55575E-04   -1.4448    
   7  Prefactor     .10000E-03    117.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .24437        .43353        .60385E-04   -1.5609    
   9  norm          17.818        10.606        .94876E-04   -1.4863    
  10  Prefactor     11.107        54.645        .11990E-03   -1.5041    
  11  Prefactor     7.0211        15.437        .15139E-03   -1.5178    
  12  Prefactor     13.295        16.062        .54909E-03   -1.4979    
  13  norm          2.7668        .96584        .38888E-04   -1.5375    
  14  Prefactor     .10000E-03    3.7921        .21230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.302        15.738        .78113E-04   -1.4682    
  16  norm          90.435        229.42        .21162E-03   -1.3803    
  17  norm          12.798        3.8140        .69038E-04   -1.4992    
  18  Prefactor     4.0293        5.4726        .15941E-03   -1.5306    
  19  Prefactor     .10000E-03    26.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0354        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3153        8.1801        .13130E-03   -1.5097    
  22  Prefactor     89.361        69.550        .42502E-04   -1.3815    
  23  Prefactor     .10000E-03    3.3158        .13556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1067        .27652        .29341E-03   -.89538    
  26  Prefactor     .86096        .26256        .33815E-03   -.97519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03913e-09
Minuit parameter uncertainties:
  1  2.94456e-05
  2  2.37892
  3  1.05676
  4  3.43346e-05
  5  6.08206e-06
  6  4.72212
  7  9.97948e-06
  8  0.433535
  9  10.6072
  10  49.3455
  11  15.4462
  12  16.067
  13  0.965843
  14  8.28673e-05
  15  15.74
  16  231.73
  17  3.81409
  18  5.47332
  19  0.000157217
  20  8.07671e-05
  21  8.18107
  22  69.6138
  23  1.1309e-06
  24  7.3908e-05
  25  0.276878
  26  0.262949
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  7.021e+00  1.545e+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:  8.610e-01  2.629e-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.107e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 65.094 -37.752
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392878/likelihoodResults_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.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) = 5862.35051771
delta logL = 2.32583118106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5862.32392426
delta logL = 2.35242463011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42462       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6750       1.0000          .0000       10.000    
     3 'Normalizat'    .93544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97173       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=   5862.324     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      280 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42456        2.9105        .54315E-02    .10494E-02
   2  Index         4.6752        1.9876        .72229E-01    .19731E-03
   3  Normalizat    .93544        .67751E-01    .70830E-01    .15730E-04
   4  Prefactor     .97180        .70032E-01    .72300E-01    .11738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.42456
  Index      = 4.67524
  Normalizat = 0.935436
  Prefactor  = 0.971796
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.324     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42456        5.3486        .24332E-04   -1.5578    
   2  Index         4.6752        2.9019        .29201E-02   -.64998E-01
   3  Normalizat    .93544        .23049        .31338E-03   -.95226    
   4  Prefactor     .97180        .23555        .31986E-03   -.93676    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51445e-07
Minuit parameter uncertainties:
  1  3.01382
  2  3.09693
  3  0.230731
  4  0.235803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392878': 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) = 5862.32392369
delta logL = 2.35242520156

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  4.246e-01  3.014e+00  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  4.675e+00  3.097e+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:  9.718e-01  2.358e-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.354e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 4.68 +/- 3.10
Photon Flux (Free Index): 1.98e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.72e-05 +/- 1.55e-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/392878/cmap_HighResolution_622425601_622684801_4FGL_J0420.3-3745_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.29e-03', comment='SUCCESS', energy_flux2='2.72e-05', dlogl='2.35e+00', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-08-20 12:50:16.068903', photon_index_error2='3.10', photon_index2='4.68', ts='0.31', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.55e-05', EG='1.11', time_epoch_completed='1629489016.07', return_code='0', job_id='392878', GAL2='0.97', EG2='0.94', return_code2='102', photon_flux_error2='1.01e-07', ts2='5.42', photon_index='2.24' WHERE bin_id='1478' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 392878: <4FGL_J0420.3-3745_daily_bin1478> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1478> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 12:35:45 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:35:46 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:35:46 2021
Terminated at Fri Aug 20 12:50:16 2021
Results reported at Fri Aug 20 12:50:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1478 65.0936 -37.7522 622425601 622684801 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

