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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1116
RA = 60.4867, Dec = -20.5804
tmin = 528595201, tmax = 528854401
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='164309', job_status='RUN', time_executed='2021-08-19 23:36:08.024009', time_epoch_executed='1629441368.02' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164309/ft1_4FGL_J0401.9-2034_daily_bin1116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164309/ft1_4FGL_J0401.9-2034_daily_bin1116.fits outfile=/scratch/kocevski/164309/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1116.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=528595201.0 tmax=528854401.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 4.87
user 3.28
sys 1.53

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.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/164309/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1116.fits evtable="EVENTS" outfile="/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.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 1.98
user 0.33
sys 1.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits" evtable="EVENTS" scfile=/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits sctable="SC_DATA" outfile=/scratch/kocevski/164309/ltcube_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.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/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits
.....................!
real 13.98
user 11.93
sys 1.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits sctable="SC_DATA" expcube=/scratch/kocevski/164309/ltcube_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.fits outfile=/scratch/kocevski/164309/expmap_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.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/164309/ltcube_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.fits
.....................!
real 191.85
user 185.14
sys 6.37

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 146 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 J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits scfile=/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits outfile=/scratch/kocevski/164309/cmap_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.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=60.4867 yref=-20.5804 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.85
user 0.36
sys 1.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits scfile=/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits outfile=/scratch/kocevski/164309/cmap_HighResolution_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.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=60.4867 yref=-20.5804 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.99
user 0.37
sys 1.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits evtable="EVENTS" scfile=/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164309/Model_4FGL_J0401.9-2034_daily_bin1116.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/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits.....................!
real 163.74
user 160.28
sys 3.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits', '/scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits', expMap='/scratch/kocevski/164309/expmap_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.fits', expCube='/scratch/kocevski/164309/ltcube_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164309/Model_4FGL_J0401.9-2034_daily_bin1116.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164309/ft1_filtered_4FGL_J0401.9-2034_daily_bin1116.fits
Spacecraft file(s): /scratch/kocevski/164309/ft2_4FGL_J0401.9-2034_daily_bin1116.fits
Exposure map: /scratch/kocevski/164309/expmap_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.fits
Exposure cube: /scratch/kocevski/164309/ltcube_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164309/Model_4FGL_J0401.9-2034_daily_bin1116.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) = 7352.12132553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    232.83       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25753E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41929       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6809       1.0000         .10000E-03   10000.    
    15 'norm      '    5.1987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5794       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.642       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7961       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65178       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7352.093     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2777 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     232.84        183.11        .48084E-06    .11061E-05
   2  Prefactor     .10000E-03    1.7512        .20245E-09** at limit **
   3  Prefactor     .10000E-03    5.1341       -.34429E-07** at limit **
   4  Prefactor     .10000E-03    3.0474        .63033E-07** at limit **
   5  Prefactor     .10000E-03    21.161       -.60821E-06** at limit **
   6  Prefactor     .10000E-03    157.38       -.11142E-04** at limit **
   7  Prefactor     4.7870        2.0636       -.61786E-07    .10298E-03
   8  Prefactor     .10000E-03    2.1454       -.60668E-07** at limit **
   9  Prefactor     .42676        3.8130       -.24351E-05    .43551E-03
  10  norm          2.8325        .84811        .35539E-07    .10098E-02
  11  Prefactor     .10001E-03    21.343        .29276E-05** at limit **
  12  norm          .13240        .60796       -.41262E-07   -.22109E-03
  13  Prefactor     15.136        23.389       -.25465E-05   -.18012E-03
  14  Prefactor     3.6810        2.2427       -.12236E-06   -.42600E-03
  15  norm          5.2012        6.5667       -.11060E-06   -.65701E-04
  16  Prefactor     .10000E-03    25.450        .43094E-06** at limit **
  17  Prefactor     2.5813        6.6604        .29035E-06   -.10966E-03
  18  Prefactor     .10000E-03    1.3130        .16081E-06** at limit **
  19  Prefactor     .10000E-03    6.8986       -.51089E-07** at limit **
  20  Prefactor     22.644        19.959        .35910E-07   -.11981E-04
  21  Prefactor     .10000E-03    1.7959       -.23956E-07** at limit **
  22  Prefactor     2.7955        35.150       -.79441E-06   -.30762E-04
  23  Normalizat    .65172        .15227       -.11889E-05   -.22714E-03
  24  Prefactor     1.0913        .12845        .62372E-06   -.25000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 232.84
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.78703
  Prefactor  = 0.0001
  Prefactor  = 0.426758
  norm       = 2.8325
  Prefactor  = 0.000100007
  norm       = 0.132396
  Prefactor  = 15.1364
  Prefactor  = 3.68102
  norm       = 5.20116
  Prefactor  = 0.0001
  Prefactor  = 2.58133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6437
  Prefactor  = 0.0001
  Prefactor  = 2.79549
  Normalizat = 0.651718
  Prefactor  = 1.09135
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.093     FROM HESSE     STATUS=OK           403 CALLS     3180 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     232.84        183.16        .13262E-03   -1.2644    
   2  Prefactor     .10000E-03    1.7759        .11078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0505        .14619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    152.96        .76542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7870        2.0506        .76166E-04   -1.5270    
   8  Prefactor     .10000E-03    2.2054        .24341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .42676        4.1258        .23346E-02   -1.5577    
  10  norm          2.8325        .84843        .41113E-04   -1.5371    
  11  Prefactor     .10001E-03    22.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13240        .61316        .13242E-03   -1.5635    
  13  Prefactor     15.136        23.706        .10287E-03   -1.4930    
  14  Prefactor     3.6810        2.2386        .94783E-04   -1.5324    
  15  norm          5.2012        6.5606        .17631E-03   -1.5252    
  16  Prefactor     .10000E-03    25.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5813        6.6293        .25411E-03   -1.5387    
  18  Prefactor     .10000E-03    5.3713        .18767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.644        19.965        .84178E-04   -1.4756    
  21  Prefactor     .10000E-03    1.8029        .11221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7955        35.220        .24331E-03   -1.5374    
  23  Normalizat    .65172        .17090        .27692E-03   -1.0583    
  24  Prefactor     1.0913        .14538        .19768E-03   -.89744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36649e-09
Minuit parameter uncertainties:
  1  183.618
  2  2.35899e-07
  3  8.29587e-06
  4  4.15766e-06
  5  3.42715e-06
  6  0.00117112
  7  2.05063
  8  3.06462e-05
  9  2.65377
  10  0.848432
  11  0.000797754
  12  0.569639
  13  23.7208
  14  2.23869
  15  6.56148
  16  1.13013e-05
  17  6.63117
  18  0.000101533
  19  9.31873e-06
  20  19.9707
  21  1.86397e-06
  22  19.8592
  23  0.171034
  24  0.145431
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.681e+00  2.239e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.091e+00  1.454e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.517e-01  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.10e-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) = 7350.64706633
delta logL = 1.44606292567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7350.62207626
delta logL = 1.47105300315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2222       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3638       1.0000          .0000       10.000    
     3 'Normalizat'    .59320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7350.622     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      227 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2222        7.1369        .92754E-02    .13812E-03
   2  Index         3.3638        2.3731        .10334        .10497E-03
   3  Normalizat    .59320        .49215E-01    .65335E-01    .71551E-05
   4  Prefactor     1.1235        .42434E-01    .36754E-01    .80383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2222
  Index      = 3.36384
  Normalizat = 0.593198
  Prefactor  = 1.12355
 **********
 **   18 **HESSE 
 **********

 FCN=   7350.622     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2222        2.1696        .41599E-04   -1.5487    
   2  Index         3.3638        1.0409        .40889E-02   -.33337    
   3  Normalizat    .59320        .16544        .28912E-03   -1.0827    
   4  Prefactor     1.1235        .14678        .19507E-03   -.88718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17876e-11
Minuit parameter uncertainties:
  1  2.16972
  2  1.04955
  3  0.165574
  4  0.146829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164309': 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) = 7350.62207625
delta logL = 1.47105300385

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.222e+00  2.170e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  3.364e+00  1.050e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.124e+00  1.468e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  5.932e-01  1.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.84
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 3.36 +/- 1.05
Photon Flux (Free Index): 9.32e-08 +/- 4.62e-08
Energy Flux (Free Index): 1.61e-05 +/- 7.81e-06

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/164309/cmap_HighResolution_528595201_528854401_4FGL_J0401.9-2034_daily_bin1116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.61e-05', photon_flux_error='2.93e-08', dlogl='1.47e+00', energy_flux='1.80e-05', photon_flux2='9.32e-08', job_status='DONE', time_completed='2021-08-19 23:48:21.520560', photon_index_error2='1.05', photon_index2='3.36', ts='4.65', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='7.81e-06', EG='0.65', time_epoch_completed='1629442101.52', return_code='0', job_id='164309', GAL2='1.12', EG2='0.59', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.62e-08', ts2='7.84', photon_index='2.31' WHERE bin_id='1116' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:48:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 164309: <4FGL_J0401.9-2034_daily_bin1116> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1116> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:21 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:35:23 2021
Terminated at Thu Aug 19 23:48:22 2021
Results reported at Thu Aug 19 23:48:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1116 60.4867 -20.5804 528595201 528854401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.9-2034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             362.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

