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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1051
RA = 60.4867, Dec = -20.5804
tmin = 511747201, tmax = 512006401
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='163144', job_status='RUN', time_executed='2021-08-19 23:31:06.356035', time_epoch_executed='1629441066.36' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163144/ft1_4FGL_J0401.9-2034_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163144/ft1_4FGL_J0401.9-2034_daily_bin1051.fits outfile=/scratch/kocevski/163144/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1051.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=511747201.0 tmax=512006401.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.08
user 3.29
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.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/163144/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1051.fits evtable="EVENTS" outfile="/scratch/kocevski/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.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.09
user 0.32
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/163144/ltcube_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.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/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits
.....................!
real 12.33
user 11.37
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/163144/ltcube_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.fits outfile=/scratch/kocevski/163144/expmap_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.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/163144/ltcube_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.fits
.....................!
real 191.01
user 184.81
sys 5.86

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/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits scfile=/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits outfile=/scratch/kocevski/163144/cmap_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.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.09
user 0.37
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits scfile=/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits outfile=/scratch/kocevski/163144/cmap_HighResolution_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.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.10
user 0.39
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163144/Model_4FGL_J0401.9-2034_daily_bin1051.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/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits.....................!
real 133.99
user 131.67
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits', '/scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits', expMap='/scratch/kocevski/163144/expmap_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.fits', expCube='/scratch/kocevski/163144/ltcube_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163144/Model_4FGL_J0401.9-2034_daily_bin1051.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/163144/ft1_filtered_4FGL_J0401.9-2034_daily_bin1051.fits
Spacecraft file(s): /scratch/kocevski/163144/ft2_4FGL_J0401.9-2034_daily_bin1051.fits
Exposure map: /scratch/kocevski/163144/expmap_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.fits
Exposure cube: /scratch/kocevski/163144/ltcube_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163144/Model_4FGL_J0401.9-2034_daily_bin1051.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) = 5874.5783737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5974       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1346       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3638       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.918       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22354E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.817       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0928       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94301       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=   5874.504     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2323 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    161.75       -.23872E-05** at limit **
   2  Prefactor     .10000E-03    1.3349        .96988E-07** at limit **
   3  Prefactor     5.2538        13.391       -.92858E-05   -.78042E-04
   4  Prefactor     .10000E-03    8.3846       -.41604E-05** at limit **
   5  Prefactor     .10000E-03    10.745       -.12660E-05** at limit **
   6  Prefactor     32.982        35.996        .13615E-05    .22610E-05
   7  Prefactor     .10000E-03    1.0926        .90670E-07** at limit **
   8  Prefactor     1.9430        4.7621       -.57149E-06   -.76279E-03
   9  Prefactor     2.5979        4.1407       -.26278E-06   -.45349E-03
  10  norm          3.6698        1.2192       -.13814E-07    .88206E-04
  11  Prefactor     .10000E-03    9.2889        .70209E-05** at limit **
  12  norm          1.9525        1.2606        .70243E-08   -.82988E-04
  13  Prefactor     .10000E-03    12.801        .23865E-05** at limit **
  14  Prefactor     4.1333        3.0982       -.15708E-06   -.29183E-03
  15  norm          8.3641        8.7757        .96764E-07    .32082E-04
  16  Prefactor     4.0769        15.667       -.22484E-05   -.57144E-04
  17  Prefactor     19.917        9.5307       -.11821E-06   -.30144E-04
  18  Prefactor     .10000E-03    2.9317       -.70539E-07** at limit **
  19  Prefactor     .10000E-03    12.778        .23176E-05** at limit **
  20  Prefactor     .10000E-03    11.841       -.65838E-05** at limit **
  21  Prefactor     .10000E-03    4.8776       -.61994E-07** at limit **
  22  Prefactor     14.810        37.991       -.76640E-05   -.53394E-05
  23  Normalizat    1.0927        .19397        .18566E-05   -.20341E-04
  24  Prefactor     .94300        .15675        .13069E-08    .96464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9818
  Prefactor  = 0.0001
  Prefactor  = 1.94301
  Prefactor  = 2.5979
  norm       = 3.66977
  Prefactor  = 0.0001
  norm       = 1.95254
  Prefactor  = 0.0001
  Prefactor  = 4.13333
  norm       = 8.36405
  Prefactor  = 4.07689
  Prefactor  = 19.9174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8097
  Normalizat = 1.09272
  Prefactor  = 0.943001
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.504     FROM HESSE     STATUS=OK           401 CALLS     2724 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3381        .86478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2538        13.494        .17541E-03   -1.5250    
   4  Prefactor     .10000E-03    8.3924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.982        35.997        .69777E-04   -1.4559    
   7  Prefactor     .10000E-03    1.1145        .78121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9430        4.6872        .22099E-03   -1.5429    
   9  Prefactor     2.5979        4.0343        .16927E-03   -1.5386    
  10  norm          3.6698        1.2176        .45746E-04   -1.5325    
  11  Prefactor     .10000E-03    9.2270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9525        1.2523        .66130E-04   -1.5428    
  13  Prefactor     .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1333        3.0875        .11086E-03   -1.5301    
  15  norm          8.3641        8.7757        .13862E-03   -1.5129    
  16  Prefactor     4.0769        15.673        .19970E-03   -1.5304    
  17  Prefactor     19.917        9.5525        .89745E-04   -1.4815    
  18  Prefactor     .10000E-03    6.1504        .25192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9226        .16530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.810        38.010        .10405E-03   -1.4938    
  23  Normalizat    1.0927        .22503        .26331E-03   -.89986    
  24  Prefactor     .94300        .18206        .23810E-03   -.94654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98962e-10
Minuit parameter uncertainties:
  1  0.000129301
  2  1.04609e-05
  3  13.5019
  4  1.72469e-06
  5  6.12541e-07
  6  36.0206
  7  3.91724e-06
  8  4.68809
  9  4.03473
  10  1.21766
  11  3.92579e-06
  12  1.25229
  13  1.34475e-05
  14  3.08763
  15  8.77706
  16  15.6892
  17  9.55322
  18  7.01236e-05
  19  2.45673e-06
  20  4.86222e-06
  21  1.72472e-06
  22  38.0723
  23  0.225226
  24  0.182182
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.133e+00  3.088e+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:  9.430e-01  1.822e-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:  1.093e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.51e-05

TS (Fixed Index): 2.56
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163144/likelihoodResults_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.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) = 5874.45556745
delta logL = 0.0485136465222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.45355307
delta logL = 0.0505280225298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9971       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0981       1.0000          .0000       10.000    
     3 'Normalizat'    1.0999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93781       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5874.454     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      275 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9971        4.3884        .12093E-03   -.11441E-03
   2  Index         2.0982        .65035        .81656E-02   -.25207E-04
   3  Normalizat    1.0999        .21224        .26257E-03    .28403E-04
   4  Prefactor     .93783        .17980        .23864E-03    .41304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.99713
  Index      = 2.09815
  Normalizat = 1.09988
  Prefactor  = 0.937828
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.454     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9971        4.2412        .48374E-05   -1.5261    
   2  Index         2.0982        .62858        .32663E-03   -.61918    
   3  Normalizat    1.0999        .21233        .10503E-04   -.89756    
   4  Prefactor     .93783        .17986        .95456E-05   -.94832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63466e-11
Minuit parameter uncertainties:
  1  4.24146
  2  0.631102
  3  0.212492
  4  0.179978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163144': 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) = 5874.45355305
delta logL = 0.0505280470497

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.997e+00  4.241e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.098e+00  6.311e-01  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:  9.378e-01  1.800e-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:  1.100e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.10 +/- 0.63
Photon Flux (Free Index): 4.88e-08 +/- 4.11e-08
Energy Flux (Free Index): 2.69e-05 +/- 3.23e-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/163144/cmap_HighResolution_511747201_512006401_4FGL_J0401.9-2034_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='2.69e-05', photon_flux_error='4.05e-08', dlogl='5.05e-02', energy_flux='2.02e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-08-19 23:42:06.207563', photon_index_error2='0.63', photon_index2='2.10', ts='2.56', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='3.23e-05', EG='1.09', time_epoch_completed='1629441726.21', return_code='0', job_id='163144', GAL2='0.94', EG2='1.10', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.11e-08', ts2='2.65', photon_index='2.31' WHERE bin_id='1051' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 163144: <4FGL_J0401.9-2034_daily_bin1051> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1051> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 23:30:45 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:30:47 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:30:47 2021
Terminated at Thu Aug 19 23:42:07 2021
Results reported at Thu Aug 19 23:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1051 60.4867 -20.5804 511747201 512006401 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 :                                   662.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             402.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            682 sec.

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

