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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1545
RA = 65.0936, Dec = -37.7522
tmin = 639792001, tmax = 640051201
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='392975', job_status='RUN', time_executed='2021-08-20 12:38:00.691331', time_epoch_executed='1629488280.69' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392975/ft1_4FGL_J0420.3-3745_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392975/ft1_4FGL_J0420.3-3745_daily_bin1545.fits outfile=/scratch/kocevski/392975/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1545.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=639792001.0 tmax=640051201.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 9.08
user 3.28
sys 5.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392975/ft1_filtered_4FGL_J0420.3-3745_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/392975/ltcube_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.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/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits
.....................!
real 18.56
user 12.06
sys 6.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392975/ft1_filtered_4FGL_J0420.3-3745_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/392975/ltcube_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.fits outfile=/scratch/kocevski/392975/expmap_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.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/392975/ltcube_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.fits
.....................!
real 197.74
user 185.28
sys 12.13

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/392975/ft1_filtered_4FGL_J0420.3-3745_daily_bin1545.fits scfile=/scratch/kocevski/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits outfile=/scratch/kocevski/392975/cmap_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.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 5.81
user 0.37
sys 5.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392975/ft1_filtered_4FGL_J0420.3-3745_daily_bin1545.fits scfile=/scratch/kocevski/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits outfile=/scratch/kocevski/392975/cmap_HighResolution_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.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 5.92
user 0.37
sys 5.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392975/ft1_filtered_4FGL_J0420.3-3745_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/392975/ft2_4FGL_J0420.3-3745_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392975/Model_4FGL_J0420.3-3745_daily_bin1545.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/392975/ft1_filtered_4FGL_J0420.3-3745_daily_bin1545.fits.....................!
real 134.31
user 125.67
sys 8.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1141       1.0000         .10000E-03   10000.    
     6 'norm      '    5.9306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1531       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30934E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4666       1.0000         .10000E-03   10000.    
    15 'norm      '    43.240       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9942       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9175       1.0000         .10000E-03   10000.    
    21 'norm      '    17.581       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21374E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3606       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84074       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=   5966.029     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3097 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.575       -.77884E-07** at limit **
   2  norm          .10000E-03    1.2544       -.84453E-09** at limit **
   3  norm          .10000E-03    .36780        .47793E-07** at limit **
   4  Prefactor     70.111        61.495       -.11233E-06    .18386E-05
   5  Prefactor     2.1161        43.081       -.73930E-06    .35315E-04
   6  norm          5.9308        2.0880        .68546E-08    .88301E-05
   7  Prefactor     .10005E-03    112.24        .85560E-05** at limit **
   8  norm          1.1532        .46372        .60972E-07    .49781E-03
   9  norm          9.7168        9.0982       -.13224E-05    .46401E-03
  10  Prefactor     14.096        33.206        .61044E-07    .13066E-04
  11  Prefactor     17.694        13.090        .12340E-06    .30334E-04
  12  Prefactor     .10000E-03    8.5672       -.29707E-05** at limit **
  13  norm          1.9625        .76368       -.33532E-08    .13726E-03
  14  Prefactor     1.4667        1.6027        .24157E-07    .37500E-04
  15  norm          43.241        14.226        .16703E-07    .60713E-04
  16  norm          .10004E-03    70.728       -.76637E-05** at limit **
  17  norm          1.9943        1.5268        .24626E-07    .20971E-03
  18  Prefactor     .10000E-03    1.9047       -.15743E-06** at limit **
  19  Prefactor     .10000E-03    18.274       -.92618E-07** at limit **
  20  norm          3.9147        7.8267       -.12041E-05    .39387E-04
  21  norm          17.585        7.8939       -.37913E-07   -.29467E-04
  22  Prefactor     .10000E-03    27.047       -.33362E-06** at limit **
  23  Prefactor     .10000E-03    37.721       -.18294E-04** at limit **
  24  Prefactor     .10000E-03    26.090       -.11561E-05** at limit **
  25  Normalizat    1.3604        .21623       -.32375E-06    .13244E-03
  26  Prefactor     .84091        .21892        .89289E-06    .14908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 70.1105
  Prefactor  = 2.11614
  norm       = 5.93076
  Prefactor  = 0.000100048
  norm       = 1.15316
  norm       = 9.71683
  Prefactor  = 14.0956
  Prefactor  = 17.6938
  Prefactor  = 0.000100001
  norm       = 1.96249
  Prefactor  = 1.4667
  norm       = 43.2412
  norm       = 0.000100043
  norm       = 1.99426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91469
  norm       = 17.585
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Normalizat = 1.36038
  Prefactor  = 0.840909
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.029     FROM HESSE     STATUS=OK           460 CALLS     3557 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2664        .84447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .58716        .90369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     70.111        61.492        .47942E-04   -1.4031    
   5  Prefactor     2.1161        42.704        .28371E-03   -1.5417    
   6  norm          5.9308        2.0900        .63978E-04   -1.5221    
   7  Prefactor     .10005E-03    115.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1532        .45965        .29956E-04   -1.5493    
   9  norm          9.7168        9.1227        .64280E-03   -1.5084    
  10  Prefactor     14.096        33.199        .10669E-03   -1.4957    
  11  Prefactor     17.694        13.038        .95213E-04   -1.4866    
  12  Prefactor     .10000E-03    43.308        .38967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9625        .72930        .38105E-04   -1.5428    
  14  Prefactor     1.4667        1.6039        .98828E-04   -1.5466    
  15  norm          43.241        14.188        .60966E-04   -1.4392    
  16  norm          .10004E-03    73.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9943        1.5244        .79798E-04   -1.5426    
  18  Prefactor     .10000E-03    1.9505        .20725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9147        7.5980        .20383E-03   -1.5312    
  21  norm          17.585        7.8624        .95519E-04   -1.4869    
  22  Prefactor     .10000E-03    27.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.179        .31060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3604        .25811        .25347E-03   -.81782    
  26  Prefactor     .84091        .26122        .33541E-03   -.98238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43191e-09
Minuit parameter uncertainties:
  1  1.3444e-05
  2  3.49924e-07
  3  7.95309e-06
  4  61.5477
  5  19.0274
  6  2.09004
  7  0.00471114
  8  0.45965
  9  9.12403
  10  33.2427
  11  13.0399
  12  0.000321839
  13  0.7293
  14  1.60391
  15  14.1886
  16  0.00354031
  17  1.52439
  18  4.44347e-06
  19  7.00052e-05
  20  7.59983
  21  7.86288
  22  9.11602e-05
  23  0.000794872
  24  0.000318155
  25  0.258361
  26  0.261605
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.769e+01  1.304e+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.409e-01  2.616e-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.360e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.41e-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) = 5966.02784076
delta logL = 0.000739052247809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5966.02748766
delta logL = 0.00109215189423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.089       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2092       1.0000          .0000       10.000    
     3 'Normalizat'    1.3614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84024       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=   5966.027     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      275 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.093        16.019        .94170E-04    .35614E-04
   2  Index         2.2091        .58557        .72819E-02    .30832E-03
   3  Normalizat    1.3614        .24301        .25339E-03   -.29073E-04
   4  Prefactor     .84026        .25955        .33553E-03   -.25243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0926
  Index      = 2.20911
  Normalizat = 1.36143
  Prefactor  = 0.84026
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.027     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.093        15.615        .37668E-05   -1.4857    
   2  Index         2.2091        .57083        .14564E-02   -.59219    
   3  Normalizat    1.3614        .24316        .10136E-04   -.81751    
   4  Prefactor     .84026        .25976        .13421E-04   -.98261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7555e-12
Minuit parameter uncertainties:
  1  15.6187
  2  0.572645
  3  0.24337
  4  0.260145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392975': 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) = 5966.02748762
delta logL = 0.00109219215574

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.809e+01  1.562e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.209e+00  5.726e-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:  8.403e-01  2.601e-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.361e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 2.21 +/- 0.57
Photon Flux (Free Index): 4.44e-08 +/- 3.99e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.74e-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/392975/cmap_HighResolution_639792001_640051201_4FGL_J0420.3-3745_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='1.96e-05', photon_flux_error='3.35e-08', dlogl='1.09e-03', energy_flux='1.92e-05', photon_flux2='4.44e-08', job_status='DONE', time_completed='2021-08-20 12:51:18.707809', photon_index_error2='0.57', photon_index2='2.21', ts='4.96', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='1.36', time_epoch_completed='1629489078.71', return_code='0', job_id='392975', GAL2='0.84', EG2='1.36', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.99e-08', ts2='4.99', photon_index='2.24' WHERE bin_id='1545' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 392975: <4FGL_J0420.3-3745_daily_bin1545> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1545 65.0936 -37.7522 639792001 640051201 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 :                                   881.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

