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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1546
RA = 65.0936, Dec = -37.7522
tmin = 640051201, tmax = 640310401
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='392976', job_status='RUN', time_executed='2021-08-20 12:38:23.248260', time_epoch_executed='1629488303.25' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392976/ft1_4FGL_J0420.3-3745_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392976/ft1_4FGL_J0420.3-3745_daily_bin1546.fits outfile=/scratch/kocevski/392976/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1546.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=640051201.0 tmax=640310401.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 7.33
user 3.35
sys 3.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.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/392976/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1546.fits evtable="EVENTS" outfile="/scratch/kocevski/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.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 4.47
user 0.35
sys 3.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/392976/ltcube_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.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/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits
.....................!
real 16.48
user 11.58
sys 4.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/392976/ltcube_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.fits outfile=/scratch/kocevski/392976/expmap_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.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/392976/ltcube_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.fits
.....................!
real 196.68
user 186.60
sys 9.76

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/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.fits scfile=/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits outfile=/scratch/kocevski/392976/cmap_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.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 4.17
user 0.38
sys 3.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.fits scfile=/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits outfile=/scratch/kocevski/392976/cmap_HighResolution_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.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 4.17
user 0.36
sys 3.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/392976/ft2_4FGL_J0420.3-3745_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392976/Model_4FGL_J0420.3-3745_daily_bin1546.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/392976/ft1_filtered_4FGL_J0420.3-3745_daily_bin1546.fits.....................!
real 119.12
user 112.88
sys 6.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.406       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1871       1.0000         .10000E-03   10000.    
     9 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8059       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.969       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3156       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.654       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9929       1.0000         .10000E-03   10000.    
    21 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.410       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2942       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96959       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=   5250.770     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3181 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.217       -.28129E-06** at limit **
   2  norm          .10000E-03    1.0082       -.24400E-07** at limit **
   3  norm          1.4058        .98911       -.11016E-06   -.20962E-03
   4  Prefactor     .10294E-03    54.632        .18334E-05** at limit **
   5  Prefactor     .10000E-03    10.706       -.12529E-05** at limit **
   6  norm          2.6546        1.5423       -.79867E-07   -.58335E-04
   7  Prefactor     79.639        131.13       -.44828E-05   -.18628E-04
   8  norm          1.1869        .42615       -.37769E-07   -.21756E-03
   9  norm          .10000E-03    3.6292        .32130E-06** at limit **
  10  Prefactor     .10000E-03    23.072        .17994E-05** at limit **
  11  Prefactor     8.8101        10.907       -.37835E-07   -.60780E-05
  12  Prefactor     13.960        12.871        .23459E-06    .11442E-04
  13  norm          1.5334        .79783       -.45213E-07   -.94682E-04
  14  Prefactor     .10000E-03    1.0989        .16856E-06** at limit **
  15  norm          .10000E-03    5.6647        .34857E-06** at limit **
  16  norm          .10000E-03    78.346       -.13409E-06** at limit **
  17  norm          5.9301        2.5893        .14176E-06   -.15197E-05
  18  Prefactor     4.3105        4.6025       -.59765E-06   -.68629E-04
  19  Prefactor     24.651        21.628        .43392E-06    .43065E-04
  20  norm          2.9927        3.7140       -.35331E-06   -.75794E-04
  21  norm          .10000E-03    13.538       -.71411E-06** at limit **
  22  Prefactor     82.408        87.993       -.24117E-06   -.20823E-05
  23  Prefactor     .10000E-03    29.746       -.32431E-05** at limit **
  24  Prefactor     .10000E-03    27.746       -.11780E-05** at limit **
  25  Normalizat    1.2942        .23614        .11305E-05   -.19293E-03
  26  Prefactor     .96968        .24165       -.21018E-05   -.20696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.40581
  Prefactor  = 0.000102939
  Prefactor  = 0.0001
  norm       = 2.6546
  Prefactor  = 79.639
  norm       = 1.18693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.81012
  Prefactor  = 13.9604
  norm       = 1.53339
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.93015
  Prefactor  = 4.3105
  Prefactor  = 24.6509
  norm       = 2.99265
  norm       = 0.0001
  Prefactor  = 82.4081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29424
  Prefactor  = 0.969677
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.770     FROM HESSE     STATUS=OK           466 CALLS     3647 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0110        .71040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4058        .97939        .58021E-04   -1.5471    
   4  Prefactor     .10294E-03    51.229        .15692       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6546        1.5417        .66465E-04   -1.5382    
   7  Prefactor     79.639        131.14        .22534E-03   -1.3921    
   8  norm          1.1869        .42434        .27042E-04   -1.5490    
   9  norm          .10000E-03    3.6721        .13492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8101        10.891        .13507E-03   -1.5114    
  12  Prefactor     13.960        12.953        .10717E-03   -1.4961    
  13  norm          1.5334        .80174        .41225E-04   -1.5460    
  14  Prefactor     .10000E-03    1.1077        .74250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.6954        .16860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    78.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9301        2.5911        .69005E-04   -1.5221    
  18  Prefactor     4.3105        4.5737        .13230E-03   -1.5293    
  19  Prefactor     24.651        21.547        .80676E-04   -1.4715    
  20  norm          2.9927        3.6953        .15086E-03   -1.5362    
  21  norm          .10000E-03    13.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     82.408        87.901        .44246E-04   -1.3890    
  23  Prefactor     .10000E-03    29.505        .34307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2942        .26959        .25980E-03   -.83739    
  26  Prefactor     .96968        .27426        .31378E-03   -.93747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32079e-10
Minuit parameter uncertainties:
  1  3.94523e-06
  2  6.73257e-07
  3  0.979399
  4  0.0245609
  5  1.71635e-05
  6  1.54169
  7  131.619
  8  0.424338
  9  7.21952e-06
  10  7.62252e-05
  11  10.8938
  12  12.9557
  13  0.801747
  14  3.71444e-06
  15  1.67e-05
  16  4.6977e-06
  17  2.59113
  18  4.57404
  19  21.5541
  20  3.69558
  21  3.45608e-05
  22  88.0399
  23  9.84008e-05
  24  5.10216e-05
  25  0.269888
  26  0.274654
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  8.810e+00  1.089e+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:  9.697e-01  2.747e-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.294e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 9.55e-06 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/392976/likelihoodResults_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.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) = 5250.7681352
delta logL = 0.00204537730042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5250.76733199
delta logL = 0.00284858385021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3243       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3037       1.0000          .0000       10.000    
     3 'Normalizat'    1.2930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97054       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=   5250.767     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      233 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3330        411.50        .34737E-02    .44395E-04
   2  Index         2.3029        5.6704        .17588        .71277E-04
   3  Normalizat    1.2929        .98241E-01    .58768E-01   -.77064E-04
   4  Prefactor     .97045        .89513E-01    .70902E-01   -.76144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.333
  Index      = 2.30294
  Normalizat = 1.29294
  Prefactor  = 0.970453
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.767     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3330        12.568        .13895E-03   -1.5131    
   2  Index         2.3029        .93221        .96264E-02   -.56974    
   3  Normalizat    1.2929        .25478        .25989E-03   -.83777    
   4  Prefactor     .97045        .27129        .31366E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09041e-11
Minuit parameter uncertainties:
  1  12.572
  2  0.939996
  3  0.25503
  4  0.27167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392976': 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) = 5250.76733132
delta logL = 0.00284925697906

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  8.333e+00  1.257e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  2.303e+00  9.400e-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:  9.705e-01  2.717e-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.293e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 2.30 +/- 0.94
Photon Flux (Free Index): 2.42e-08 +/- 3.43e-08
Energy Flux (Free Index): 9.11e-06 +/- 1.26e-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/392976/cmap_HighResolution_640051201_640310401_4FGL_J0420.3-3745_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='9.11e-06', photon_flux_error='2.80e-08', dlogl='2.85e-03', energy_flux='9.55e-06', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-08-20 12:51:33.592284', photon_index_error2='0.94', photon_index2='2.30', ts='1.41', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.26e-05', EG='1.29', time_epoch_completed='1629489093.59', return_code='0', job_id='392976', GAL2='0.97', EG2='1.29', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.43e-08', ts2='1.43', photon_index='2.24' WHERE bin_id='1546' 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@bullet0110>
Subject: Job 392976: <4FGL_J0420.3-3745_daily_bin1546> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1546> 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) <bullet0110>, 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: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_bin1546 65.0936 -37.7522 640051201 640310401 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 :                                   846.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

