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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1283
RA = 65.0936, Dec = -37.7522
tmin = 571881601, tmax = 572140801
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='392588', job_status='RUN', time_executed='2021-08-20 12:36:25.577204', time_epoch_executed='1629488185.58' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392588/ft1_4FGL_J0420.3-3745_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392588/ft1_4FGL_J0420.3-3745_daily_bin1283.fits outfile=/scratch/kocevski/392588/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1283.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.58
user 2.39
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.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/392588/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.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/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/392588/ltcube_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.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/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits
.....................!
real 12.21
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/392588/ltcube_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.fits outfile=/scratch/kocevski/392588/expmap_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.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/392588/ltcube_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.fits
.....................!
real 190.84
user 185.62
sys 4.90

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/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.fits scfile=/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits outfile=/scratch/kocevski/392588/cmap_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.fits scfile=/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits outfile=/scratch/kocevski/392588/cmap_HighResolution_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.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/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/392588/ft2_4FGL_J0420.3-3745_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392588/Model_4FGL_J0420.3-3745_daily_bin1283.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/392588/ft1_filtered_4FGL_J0420.3-3745_daily_bin1283.fits.....................!
real 157.96
user 156.55
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.997       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0143       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0715       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.604       1.0000         .10000E-03   10000.    
     7 'Prefactor '    107.84       1.0000         .10000E-03   10000.    
     8 'norm      '    .85638       1.0000         .10000E-03   10000.    
     9 'norm      '    31.848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8630       1.0000         .10000E-03   10000.    
    15 'norm      '    .35588E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4676       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.890       1.0000         .10000E-03   10000.    
    20 'norm      '    13.243       1.0000         .10000E-03   10000.    
    21 'norm      '    .48761E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    120.14       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.404       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6978       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0452       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0356       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=   7225.840     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3154 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.002        33.180       -.68055E-06   -.17315E-04
   2  norm          1.0128        2.5178        .11763E-05    .29301E-03
   3  norm          2.0718        .91053       -.43755E-07   -.38217E-03
   4  Prefactor     .10000E-03    26.639       -.24577E-06** at limit **
   5  Prefactor     .10000E-03    31.439        .28531E-06** at limit **
   6  norm          24.604        3.3777        .44029E-08   -.57050E-04
   7  Prefactor     107.80        110.75       -.83568E-06   -.85612E-04
   8  norm          .85633        .40618        .88637E-08   -.51282E-03
   9  norm          31.851        11.643       -.44337E-07   -.88759E-04
  10  Prefactor     .10000E-03    13.084        .78393E-07** at limit **
  11  Prefactor     5.6270        10.030       -.18521E-06   -.62578E-04
  12  Prefactor     .10000E-03    8.6262       -.59859E-07** at limit **
  13  norm          .16804        .31993        .22247E-06    .16923E-02
  14  Prefactor     2.8627        2.5774        .46400E-07   -.46917E-03
  15  norm          .10012E-03    7.5329        .13756E-05** at limit **
  16  norm          .10000E-03    75.735       -.25419E-06** at limit **
  17  norm          5.4676        2.5120       -.13179E-06   -.59341E-03
  18  Prefactor     2.6143        4.4832        .86267E-06   -.22546E-03
  19  Prefactor     25.884        17.864       -.66646E-07    .18112E-03
  20  norm          13.242        6.8407       -.83938E-07   -.30923E-03
  21  norm          .10000E-03    3.9287       -.55497E-06** at limit **
  22  Prefactor     120.14        72.260       -.37436E-06   -.33602E-04
  23  Prefactor     11.404        7.9180       -.10046E-07   -.15374E-03
  24  Prefactor     9.6924        48.312       -.18880E-06   -.16851E-04
  25  Normalizat    1.0453        .20465       -.53112E-06   -.14416E-03
  26  Prefactor     1.0356        .20726        .43902E-06   -.14590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0017
  norm       = 1.01277
  norm       = 2.07178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.6041
  Prefactor  = 107.805
  norm       = 0.85633
  norm       = 31.8506
  Prefactor  = 0.0001
  Prefactor  = 5.62696
  Prefactor  = 0.0001
  norm       = 0.168042
  Prefactor  = 2.86273
  norm       = 0.000100119
  norm       = 0.0001
  norm       = 5.46764
  Prefactor  = 2.61428
  Prefactor  = 25.8843
  norm       = 13.242
  norm       = 0.0001
  Prefactor  = 120.143
  Prefactor  = 11.4038
  Prefactor  = 9.69242
  Normalizat = 1.04526
  Prefactor  = 1.03563
 **********
 **   18 **HESSE 
 **********

 FCN=   7225.840     FROM HESSE     STATUS=OK           470 CALLS     3624 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.002        33.142        .11111E-03   -1.4987    
   2  norm          1.0128        2.3693        .21054E-02   -1.5507    
   3  norm          2.0718        .91216        .51461E-04   -1.5420    
   4  Prefactor     .10000E-03    26.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.604        3.3807        .55763E-04   -1.4716    
   7  Prefactor     107.80        111.33        .19364E-03   -1.3628    
   8  norm          .85633        .39998        .34129E-04   -1.5523    
   9  norm          31.851        11.634        .71001E-04   -1.4579    
  10  Prefactor     .10000E-03    13.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6270        9.9165        .16941E-03   -1.5233    
  12  Prefactor     .10000E-03    8.7975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .16804        .26982        .67517E-03   -1.5626    
  14  Prefactor     2.8627        2.5228        .11918E-03   -1.5370    
  15  norm          .10012E-03    26.132        .39909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    75.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4676        2.4797        .74296E-04   -1.5240    
  18  Prefactor     2.6143        4.2202        .16633E-03   -1.5385    
  19  Prefactor     25.884        16.462        .78729E-04   -1.4690    
  20  norm          13.242        6.8447        .11007E-03   -1.4980    
  21  norm          .10000E-03    31.838        .27697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     120.14        72.106        .36715E-04   -1.3511    
  23  Prefactor     11.404        7.9287        .11863E-03   -1.5032    
  24  Prefactor     9.6924        48.292        .12868E-03   -1.5085    
  25  Normalizat    1.0453        .24853        .29184E-03   -.91529    
  26  Prefactor     1.0356        .25071        .15710E-02   -.91551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99735e-09
Minuit parameter uncertainties:
  1  33.1885
  2  2.36955
  3  0.912165
  4  0.000159312
  5  0.000163649
  6  3.38073
  7  111.551
  8  0.399982
  9  11.6343
  10  5.30372e-07
  11  9.91937
  12  3.71046e-05
  13  0.269821
  14  2.52288
  15  0.00352613
  16  0.000137363
  17  2.47977
  18  4.22068
  19  16.4648
  20  6.84511
  21  0.000155825
  22  72.1592
  23  7.92946
  24  43.3256
  25  0.248804
  26  0.250996
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  5.627e+00  9.919e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.036e+00  2.510e-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.045e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/392588/likelihoodResults_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.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) = 7225.80261478
delta logL = 0.0371196312581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7225.79253631
delta logL = 0.0471981038745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6786       1.0000          .0000       10.000    
     3 'Normalizat'    1.0322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0439       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=   7225.793     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2784        151.73        .48780E-02   -.24039E-03
   2  Index         2.6765        3.2219        .22954       -.46644E-04
   3  Normalizat    1.0323        .44524E-01    .66325E-01   -.20480E-03
   4  Prefactor     1.0436        .45017E-01    .70771E-01   -.15241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27843
  Index      = 2.67648
  Normalizat = 1.03235
  Prefactor  = 1.04359
 **********
 **   18 **HESSE 
 **********

 FCN=   7225.793     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2784        10.727        .19512E-03   -1.5294    
   2  Index         2.6765        1.6126        .84414E-02   -.48330    
   3  Normalizat    1.0323        .23706        .29339E-03   -.91954    
   4  Prefactor     1.0436        .25050        .31311E-03   -.91290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05843e-10
Minuit parameter uncertainties:
  1  10.7321
  2  1.65058
  3  0.2373
  4  0.250779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392588': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7225.79253382
delta logL = 0.0472005879592

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  4.278e+00  1.073e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.676e+00  1.651e+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.044e+00  2.508e-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.032e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/392588/cmap_HighResolution_571881601_572140801_4FGL_J0420.3-3745_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-08-20 12:51:26.045985', job_id='392588', GAL2='1.04', fit_tolerance='1e-08', EG2='1.03', EG='1.05', time_epoch_completed='1629489086.05', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.72e-02', ts2='0.60', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1283' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:51:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 392588: <4FGL_J0420.3-3745_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1283 65.0936 -37.7522 571881601 572140801 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 :                                   895.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

