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


Performing analysis on: 4FGL_J0420.3-3745_daily_bin1424
RA = 65.0936, Dec = -37.7522
tmin = 608428801, tmax = 608688001
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='392798', job_status='RUN', time_executed='2021-08-20 12:38:08.779475', time_epoch_executed='1629488288.78' WHERE source_name='4FGL J0420.3-3745' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392798/ft1_4FGL_J0420.3-3745_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392798/ft1_4FGL_J0420.3-3745_daily_bin1424.fits outfile=/scratch/kocevski/392798/ft1_filteredMKT_4FGL_J0420.3-3745_daily_bin1424.fits ra=65.0936 dec=-37.7522 rad=12.0 tmin=608428801.0 tmax=608688001.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 12.36
user 4.65
sys 7.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392798/ft1_filtered_4FGL_J0420.3-3745_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/392798/ltcube_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.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/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits
.....................!
real 20.48
user 11.73
sys 8.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392798/ft1_filtered_4FGL_J0420.3-3745_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/392798/ltcube_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.fits outfile=/scratch/kocevski/392798/expmap_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.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/392798/ltcube_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.fits
.....................!
real 200.61
user 185.79
sys 14.16

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/392798/ft1_filtered_4FGL_J0420.3-3745_daily_bin1424.fits scfile=/scratch/kocevski/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits outfile=/scratch/kocevski/392798/cmap_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.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 7.71
user 0.37
sys 7.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392798/ft1_filtered_4FGL_J0420.3-3745_daily_bin1424.fits scfile=/scratch/kocevski/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits outfile=/scratch/kocevski/392798/cmap_HighResolution_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.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 7.70
user 0.37
sys 7.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/392798/ft1_filtered_4FGL_J0420.3-3745_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/392798/ft2_4FGL_J0420.3-3745_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/392798/Model_4FGL_J0420.3-3745_daily_bin1424.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/392798/ft1_filtered_4FGL_J0420.3-3745_daily_bin1424.fits.....................!
real 105.16
user 93.84
sys 10.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6026       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2066       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .23264E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23967       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.591       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8779       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.184       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2290       1.0000         .10000E-03   10000.    
    21 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6290       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .51847       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=   4243.672     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3208 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6006        133.91       -.12010E-05    .48519E-05
   2  norm          .10000E-03    1.3795        .48459E-08** at limit **
   3  norm          1.2066        .89038        .55768E-07    .18048E-03
   4  Prefactor     14.498        47.163       -.28383E-06    .37175E-05
   5  Prefactor     .10000E-03    17.610       -.16418E-07** at limit **
   6  norm          9.8018        3.0915        .26084E-07    .15717E-04
   7  Prefactor     .10000E-03    60.124        .49680E-05** at limit **
   8  norm          .21633E-01    .39411        .14377E-06   -.30569E-03
   9  norm          5.4095        13.667       -.10790E-05    .16598E-03
  10  Prefactor     93.456        58.464       -.13264E-05    .19250E-03
  11  Prefactor     45.661        29.666        .39504E-05    .71021E-03
  12  Prefactor     .50668E-02    18.706       -.57984E-05    .45457E-03
  13  norm          4.0815        1.3372        .45535E-07    .60719E-02
  14  Prefactor     .10000E-03    .99632       -.89452E-08** at limit **
  15  norm          20.583        14.011        .65818E-06    .27677E-03
  16  norm          .10000E-03    109.90       -.10258E-04** at limit **
  17  norm          5.8746        2.7431        .61193E-07    .65295E-03
  18  Prefactor     .10000E-03    2.6775       -.30376E-06** at limit **
  19  Prefactor     10.146        20.650        .16265E-05    .83335E-04
  20  norm          2.2298        8.1734        .69659E-05    .56623E-04
  21  norm          .10000E-03    6.8981       -.45177E-06** at limit **
  22  Prefactor     .10000E-03    57.132       -.52301E-05** at limit **
  23  Prefactor     .10000E-03    10.293        .64140E-06** at limit **
  24  Prefactor     .10000E-03    101.38        .53691E-05** at limit **
  25  Normalizat    1.6291        .27505       -.10122E-05    .53950E-03
  26  Prefactor     .51847        .25440        .10784E-06    .21220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60064
  norm       = 0.0001
  norm       = 1.20663
  Prefactor  = 14.4979
  Prefactor  = 0.0001
  norm       = 9.80185
  Prefactor  = 0.0001
  norm       = 0.021633
  norm       = 5.40948
  Prefactor  = 93.4557
  Prefactor  = 45.6612
  Prefactor  = 0.00506676
  norm       = 4.08148
  Prefactor  = 0.0001
  norm       = 20.5831
  norm       = 0.0001
  norm       = 5.87463
  Prefactor  = 0.0001
  Prefactor  = 10.1459
  norm       = 2.22979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.62913
  Prefactor  = 0.518472
 **********
 **   18 **HESSE 
 **********

 FCN=   4243.672     FROM HESSE     STATUS=OK           462 CALLS     3670 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6006        136.16        .33484E-03   -1.5455    
   2  norm          .10000E-03    1.3851        .74705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2066        .89382        .50892E-04   -1.5488    
   4  Prefactor     14.498        47.175        .10514E-03   -1.4946    
   5  Prefactor     .10000E-03    17.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8018        3.0951        .62362E-04   -1.5082    
   7  Prefactor     .10000E-03    59.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .21633E-01    4.1760        .67159E-03   -1.5679    
   9  norm          5.4095        13.953        .17313E-03   -1.5243    
  10  Prefactor     93.456        58.813        .41574E-04   -1.3771    
  11  Prefactor     45.661        30.933        .59386E-04   -1.4355    
  12  Prefactor     .50668E-02    49.198        .59442E-01   -1.5694    
  13  norm          4.0815        1.3922        .36686E-04   -1.5304    
  14  Prefactor     .10000E-03    .99837        .63463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.583        13.861        .88267E-04   -1.4800    
  16  norm          .10000E-03    109.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8746        2.6449        .67180E-04   -1.5223    
  18  Prefactor     .10000E-03    8.2680        .18677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.146        20.248        .12556E-03   -1.5071    
  20  norm          2.2298        8.0450        .13768E-02   -1.5409    
  21  norm          .10000E-03    6.9742        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    56.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    101.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6291        .32229        .23993E-03   -.74212    
  26  Prefactor     .51847        .29160        .40336E-03   -1.1114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41277e-09
Minuit parameter uncertainties:
  1  29.5952
  2  7.03195e-07
  3  0.893828
  4  47.2965
  5  5.12646e-06
  6  3.09517
  7  0.000140891
  8  0.599782
  9  13.961
  10  58.8496
  11  30.944
  12  0.989459
  13  1.39225
  14  3.05085e-08
  15  13.8627
  16  0.000379803
  17  2.64495
  18  6.82705e-05
  19  20.2612
  20  8.04885
  21  4.45152e-05
  22  0.000149438
  23  5.29121e-06
  24  0.00023715
  25  0.322704
  26  0.292445
Done.

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

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  4.566e+01  3.094e+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:  5.185e-01  2.924e-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.629e+00  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 65.094 -37.752
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 7.96e-08
Energy Flux (Fixed Index): 4.95e-05 +/- 3.35e-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) = 4242.14671678
delta logL = 1.52528683522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4242.13564707
delta logL = 1.53635654635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.482       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2321       1.0000          .0000       10.000    
     3 'Normalizat'    1.4970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60483       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=   4242.136     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      294 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.480        22.568        .96696E-04    .31744E-05
   2  Index         3.2325        .85039        .26604E-02   -.75177E-04
   3  Normalizat    1.4970        .29729        .24712E-03   -.37559E-03
   4  Prefactor     .60478        .29231        .37544E-03   -.31038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4797
  Index      = 3.23251
  Normalizat = 1.49695
  Prefactor  = 0.604785
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.136     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.480        16.418        .38679E-05   -1.4974    
   2  Index         3.2325        .61949        .10641E-03   -.36131    
   3  Normalizat    1.4970        .29523        .49424E-04   -.77864    
   4  Prefactor     .60478        .29060        .15018E-04   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21731e-10
Minuit parameter uncertainties:
  1  16.423
  2  0.621314
  3  0.295568
  4  0.291325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392798': 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) = 4242.13564612
delta logL = 1.53635749595

Extracting fit parameters...

4FGL J0420.3-3745
   Spectrum: PowerLaw
276    Prefactor:  1.348e+01  1.642e+01  1.000e-04  1.000e+04 ( 1.000e-13)
277        Index:  3.233e+00  6.213e-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:  6.048e-01  2.913e-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.497e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.58
Ra Dec: 65.094 -37.752
Photon Index (Free Index): 3.23 +/- 0.62
Photon Flux (Free Index): 2.51e-07 +/- 1.19e-07
Energy Flux (Free Index): 4.54e-05 +/- 1.99e-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/392798/cmap_HighResolution_608428801_608688001_4FGL_J0420.3-3745_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='4.54e-05', photon_flux_error='7.96e-08', dlogl='1.54e+00', energy_flux='4.95e-05', photon_flux2='2.51e-07', job_status='DONE', time_completed='2021-08-20 12:50:13.432586', photon_index_error2='0.62', photon_index2='3.23', ts='5.16', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.63', time_epoch_completed='1629489013.43', return_code='0', job_id='392798', GAL2='0.60', EG2='1.50', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='1.19e-07', ts2='8.58', photon_index='2.24' WHERE bin_id='1424' AND source_name='4FGL J0420.3-3745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 12:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 392798: <4FGL_J0420.3-3745_daily_bin1424> in cluster <slac> Done

Job <4FGL_J0420.3-3745_daily_bin1424> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 12:35:41 2021
Job was executed on host(s) <bullet0069>, 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:50:15 2021
Results reported at Fri Aug 20 12:50:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0420.3-3745_daily_bin1424 65.0936 -37.7522 608428801 608688001 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 :                                   833.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

