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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1400
RA = 65.0936, Dec = -37.7522
tmin = 602208001, tmax = 602467201
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='392763', job_status='RUN', time_executed='2021-08-20 12:36:00.962741', time_epoch_executed='1629488160.96' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392763/ft1_4FGL_J0420.3-3745_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392763/ft1_4FGL_J0420.3-3745_daily_bin1400.fits outfile=/scratch/kocevski/392763/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1400.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=602208001.0 tmax=602467201.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 5.74
user 4.97
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392763/ft1_filtered_4FGL_J0420.3-3745_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/392763/ltcube_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.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/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits
.....................!
real 12.49
user 11.59
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392763/ft1_filtered_4FGL_J0420.3-3745_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/392763/ltcube_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.fits outfile=/scratch/kocevski/392763/expmap_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.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/392763/ltcube_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.fits
.....................!
real 192.32
user 185.85
sys 6.15

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/392763/ft1_filtered_4FGL_J0420.3-3745_daily_bin1400.fits scfile=/scratch/kocevski/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits outfile=/scratch/kocevski/392763/cmap_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.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 1.00
user 0.36
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392763/ft1_filtered_4FGL_J0420.3-3745_daily_bin1400.fits scfile=/scratch/kocevski/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits outfile=/scratch/kocevski/392763/cmap_HighResolution_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.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 1.01
user 0.37
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392763/ft1_filtered_4FGL_J0420.3-3745_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/392763/ft2_4FGL_J0420.3-3745_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392763/Model_4FGL_J0420.3-3745_daily_bin1400.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/392763/ft1_filtered_4FGL_J0420.3-3745_daily_bin1400.fits.....................!
real 180.15
user 177.98
sys 1.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32241E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4552       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4022       1.0000         .10000E-03   10000.    
     6 'norm      '    17.060       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.673       1.0000         .10000E-03   10000.    
     8 'norm      '    .25656       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0760       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7255       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2809       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.617       1.0000         .10000E-03   10000.    
    16 'norm      '    43.094       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4220       1.0000         .10000E-03   10000.    
    20 'norm      '    .63360E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.7778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.354       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60245       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2432       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=   8702.733     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3080 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.482       -.16937E-04** at limit **
   2  norm          1.4531        2.4651       -.56346E-06   -.10949E-02
   3  norm          2.3523        .79328       -.19681E-07    .76588E-03
   4  Prefactor     .10000E-03    12.215        .45155E-05** at limit **
   5  Prefactor     8.4021        7.0978        .27075E-06    .40399E-03
   6  norm          17.060        2.2774        .14702E-07    .20914E-03
   7  Prefactor     18.663        48.240       -.21577E-04    .25639E-05
   8  norm          .25654        .22779       -.59238E-07   -.21707E-02
   9  norm          .10000E-03    3.6489       -.32410E-07** at limit **
  10  Prefactor     7.0716        21.548       -.80192E-05   -.20347E-04
  11  Prefactor     16.409        11.940       -.10371E-06    .23561E-04
  12  Prefactor     9.7263        8.5674       -.27110E-06   -.83431E-04
  13  norm          1.2809        .55646        .10688E-08   -.15047E-03
  14  Prefactor     .10000E-03    .76074        .85379E-08** at limit **
  15  norm          18.617        8.2403        .20142E-08    .21219E-04
  16  norm          43.084        82.027       -.14779E-04    .25898E-04
  17  norm          1.0265        .88197       -.56146E-08    .17741E-03
  18  Prefactor     4.7575        2.4884       -.48148E-07   -.25664E-03
  19  Prefactor     2.4226        9.7091       -.14966E-05   -.27650E-03
  20  norm          .10008E-03    1.6765       -.13150E-05** at limit **
  21  norm          9.7774        5.4010       -.56403E-07   -.88213E-04
  22  Prefactor     .10000E-03    9.1495       -.87757E-05** at limit **
  23  Prefactor     18.358        5.8862       -.89000E-07    .52992E-03
  24  Prefactor     .10000E-03    7.7673        .64135E-05** at limit **
  25  Normalizat    .60234        .15098        .22140E-05    .29435E-03
  26  Prefactor     1.2433        .16026        .19712E-06    .41783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.45311
  norm       = 2.35233
  Prefactor  = 0.0001
  Prefactor  = 8.40207
  norm       = 17.0601
  Prefactor  = 18.6626
  norm       = 0.256537
  norm       = 0.0001
  Prefactor  = 7.0716
  Prefactor  = 16.4092
  Prefactor  = 9.72633
  norm       = 1.28087
  Prefactor  = 0.0001
  norm       = 18.6173
  norm       = 43.0838
  norm       = 1.02653
  Prefactor  = 4.75747
  Prefactor  = 2.42262
  norm       = 0.000100083
  norm       = 9.77737
  Prefactor  = 0.0001
  Prefactor  = 18.3581
  Prefactor  = 0.0001
  Normalizat = 0.602341
  Prefactor  = 1.24328
 **********
 **   18 **HESSE 
 **********

 FCN=   8702.733     FROM HESSE     STATUS=OK           470 CALLS     3550 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.765        .42718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4531        2.4611        .18303E-03   -1.5467    
   3  norm          2.3523        .79180        .45903E-04   -1.5401    
   4  Prefactor     .10000E-03    12.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4021        7.1038        .69150E-03   -1.5128    
   6  norm          17.060        2.2795        .49616E-04   -1.4882    
   7  Prefactor     18.663        48.177        .92686E-04   -1.4844    
   8  norm          .25654        .21370        .39023E-03   -1.5607    
   9  norm          .10000E-03    3.6928        .17372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0716        21.616        .15080E-03   -1.5176    
  11  Prefactor     16.409        11.881        .98878E-04   -1.4898    
  12  Prefactor     9.7263        8.7018        .12850E-03   -1.5084    
  13  norm          1.2809        .56216        .39051E-04   -1.5482    
  14  Prefactor     .10000E-03    .77135        .79294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.617        8.2280        .92826E-04   -1.4845    
  16  norm          43.084        81.801        .61069E-04   -1.4394    
  17  norm          1.0265        .90766        .76568E-03   -1.5505    
  18  Prefactor     4.7575        2.4872        .92679E-04   -1.5272    
  19  Prefactor     2.4226        9.6402        .26299E-03   -1.5397    
  20  norm          .10008E-03    8.4118        .22902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.7774        5.3581        .12815E-03   -1.5082    
  22  Prefactor     .10000E-03    9.1262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.358        5.8499        .93488E-04   -1.4851    
  24  Prefactor     .10000E-03    7.7494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .60234        .17455        .30464E-03   -1.0788    
  26  Prefactor     1.2433        .18733        .24985E-03   -.85009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08794e-08
Minuit parameter uncertainties:
  1  0.000361179
  2  2.46124
  3  0.791799
  4  6.34392e-06
  5  7.10449
  6  2.27954
  7  48.278
  8  0.2137
  9  8.73939e-07
  10  21.6401
  11  11.8824
  12  8.70294
  13  0.562162
  14  1.05234e-06
  15  8.22855
  16  82.0147
  17  0.907668
  18  2.48724
  19  9.64635
  20  0.00166667
  21  5.35838
  22  2.9084e-06
  23  5.85005
  24  3.25685e-06
  25  0.174705
  26  0.187428
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.641e+01  1.188e+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:  1.243e+00  1.874e-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:  6.023e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.29e-05

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) = 8702.73128101
delta logL = 0.00148152025031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8702.73066044
delta logL = 0.00210208862154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.067       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2857       1.0000          .0000       10.000    
     3 'Normalizat'    .59922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2447       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=   8702.731     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      291 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.054        13.102        .99920E-04    .26988E-03
   2  Index         2.2825        .75655        .86193E-02    .10705E-03
   3  Normalizat    .59932        .16901        .30533E-03    .21730E-03
   4  Prefactor     1.2450        .18662        .24968E-03    .14164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0541
  Index      = 2.28253
  Normalizat = 0.599325
  Prefactor  = 1.245
 **********
 **   18 **HESSE 
 **********

 FCN=   8702.731     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.054        12.301        .39968E-05   -1.4906    
   2  Index         2.2825        .70816        .34477E-03   -.57459    
   3  Normalizat    .59932        .16817        .12213E-04   -1.0801    
   4  Prefactor     1.2450        .18635        .49936E-04   -.84958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49858e-10
Minuit parameter uncertainties:
  1  12.3034
  2  0.711564
  3  0.168317
  4  0.186448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392763': 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) = 8702.7306389
delta logL = 0.00212363301034

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.605e+01  1.230e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.283e+00  7.116e-01  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.245e+00  1.864e-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:  5.993e-01  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 2.28 +/- 0.71
Photon Flux (Free Index): 4.49e-08 +/- 5.02e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.24e-05

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/392763/cmap_HighResolution_602208001_602467201_4FGL_J0420.3-3745_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.75e-05', photon_flux_error='3.06e-08', dlogl='2.12e-03', energy_flux='1.78e-05', photon_flux2='4.49e-08', job_status='DONE', time_completed='2021-08-20 12:51:33.936592', photon_index_error2='0.71', photon_index2='2.28', ts='5.87', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.60', time_epoch_completed='1629489093.94', return_code='0', job_id='392763', GAL2='1.24', EG2='0.60', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.02e-08', ts2='5.89', photon_index='2.24' WHERE bin_id='1400' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 392763: <4FGL_J0420.3-3745_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1400 65.0936 -37.7522 602208001 602467201 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 :                                   935.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

