/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 195 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_bin1374
RA = 60.4867, Dec = -20.5804
tmin = 595468801, tmax = 595728001
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='165757', job_status='RUN', time_executed='2021-08-19 23:44:41.064931', time_epoch_executed='1629441881.06' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1374'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165757/ft1_4FGL_J0401.9-2034_daily_bin1374.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165757/ft1_4FGL_J0401.9-2034_daily_bin1374.fits outfile=/scratch/kocevski/165757/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1374.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=595468801.0 tmax=595728001.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 6.44
user 2.48
sys 3.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.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/165757/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1374.fits evtable="EVENTS" outfile="/scratch/kocevski/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.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.21
user 0.34
sys 3.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.fits" evtable="EVENTS" scfile=/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits sctable="SC_DATA" outfile=/scratch/kocevski/165757/ltcube_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.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/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits
.....................!
real 17.36
user 12.79
sys 4.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits sctable="SC_DATA" expcube=/scratch/kocevski/165757/ltcube_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.fits outfile=/scratch/kocevski/165757/expmap_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.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/165757/ltcube_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.fits
.....................!
real 197.11
user 186.14
sys 10.27

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/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.fits scfile=/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits outfile=/scratch/kocevski/165757/cmap_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.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 4.19
user 0.38
sys 3.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.fits scfile=/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits outfile=/scratch/kocevski/165757/cmap_HighResolution_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.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 4.15
user 0.38
sys 3.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.fits evtable="EVENTS" scfile=/scratch/kocevski/165757/ft2_4FGL_J0401.9-2034_daily_bin1374.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165757/Model_4FGL_J0401.9-2034_daily_bin1374.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/165757/ft1_filtered_4FGL_J0401.9-2034_daily_bin1374.fits.....................!
real 120.79
user 114.48
sys 6.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    621.96       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5530       1.0000         .10000E-03   10000.    
    10 'norm      '    17.681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .66023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.064       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9047       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.312       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75832       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2455       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=   4958.808     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2730 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     621.95        389.49       -.42236E-05    .91525E-05
   2  Prefactor     .10000E-03    3.0147        .38624E-07** at limit **
   3  Prefactor     .10000E-03    14.467       -.75810E-05** at limit **
   4  Prefactor     .10000E-03    14.503       -.80717E-05** at limit **
   5  Prefactor     .10000E-03    54.922        .27011E-04** at limit **
   6  Prefactor     .10000E-03    21.820        .18256E-04** at limit **
   7  Prefactor     2.5566        3.5302        .22443E-06   -.23336E-03
   8  Prefactor     .10000E-03    5.9341        .17385E-06** at limit **
   9  Prefactor     9.5536        7.0067       -.52885E-06   -.15214E-03
  10  norm          17.681        2.3485        .47570E-07   -.66305E-03
  11  Prefactor     .10000E-03    141.70       -.37277E-04** at limit **
  12  norm          .66018        2.1611       -.54264E-06   -.10588E-02
  13  Prefactor     30.065        56.517        .36288E-05    .12226E-03
  14  Prefactor     3.9053        4.1624       -.98496E-08   -.15159E-03
  15  norm          8.8843        13.412       -.13331E-06   -.78226E-04
  16  Prefactor     .10000E-03    21.798        .18161E-04** at limit **
  17  Prefactor     .10000E-03    10.384       -.82390E-06** at limit **
  18  Prefactor     .10000E-03    3.8966       -.16255E-07** at limit **
  19  Prefactor     .10000E-03    13.517        .14680E-04** at limit **
  20  Prefactor     .10000E-03    27.615       -.37326E-04** at limit **
  21  Prefactor     .10000E-03    16.059       -.90760E-05** at limit **
  22  Prefactor     42.322        66.518        .11217E-04   -.14469E-04
  23  Normalizat    .75813        .25548       -.21454E-05    .78215E-04
  24  Prefactor     1.2457        .20485        .58639E-06    .16720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 621.954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.55657
  Prefactor  = 0.0001
  Prefactor  = 9.55357
  norm       = 17.6813
  Prefactor  = 0.0001
  norm       = 0.660184
  Prefactor  = 30.0652
  Prefactor  = 3.90527
  norm       = 8.88435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.3222
  Normalizat = 0.75813
  Prefactor  = 1.24569
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.808     FROM HESSE     STATUS=OK           387 CALLS     3117 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     621.95        389.64        .82812E-04   -1.0667    
   2  Prefactor     .10000E-03    3.0203        .11941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5566        3.4670        .14152E-03   -1.5388    
   8  Prefactor     .10000E-03    6.0288        .16687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5536        6.9431        .12966E-03   -1.5090    
  10  norm          17.681        2.3556        .36849E-04   -1.4867    
  11  Prefactor     .10000E-03    142.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .66018        2.0917        .16487E-03   -1.5545    
  13  Prefactor     30.065        56.610        .73072E-04   -1.4611    
  14  Prefactor     3.9053        4.1238        .13781E-03   -1.5313    
  15  norm          8.8843        13.409        .13447E-03   -1.5112    
  16  Prefactor     .10000E-03    21.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9518        .13564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.322        66.563        .61628E-04   -1.4406    
  23  Normalizat    .75813        .29505        .36222E-03   -1.0164    
  24  Prefactor     1.2457        .23764        .24879E-03   -.84937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03001e-09
Minuit parameter uncertainties:
  1  391.353
  2  2.54873e-06
  3  2.04735e-05
  4  2.46458e-06
  5  3.51447e-05
  6  4.10643e-06
  7  3.46725
  8  3.2704e-05
  9  6.94369
  10  2.35565
  11  6.78677e-05
  12  2.0919
  13  56.7115
  14  4.12407
  15  13.413
  16  2.93586e-06
  17  5.17873e-06
  18  2.9504e-06
  19  4.94595e-05
  20  9.14984e-05
  21  7.97471e-05
  22  66.6807
  23  0.295673
  24  0.237844
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.905e+00  4.124e+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.246e+00  2.378e-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:  7.581e-01  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 5.41e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/165757/likelihoodResults_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.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) = 4958.80250295
delta logL = 0.00571616750585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4958.80121226
delta logL = 0.00700685668289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7663       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4271       1.0000          .0000       10.000    
     3 'Normalizat'    .74947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2496       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=   4958.801     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7640        112.77        .52007E-02   -.30106E-03
   2  Index         2.4293        5.8090        .17802       -.52058E-04
   3  Normalizat    .74944        .12590        .82234E-01   -.32720E-03
   4  Prefactor     1.2498        .74886E-01    .56194E-01   -.31719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.76396
  Index      = 2.42929
  Normalizat = 0.749437
  Prefactor  = 1.24976
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.801     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7640        4.3340        .13039E-03   -1.5320    
   2  Index         2.4293        1.0502        .97816E-02   -.54001    
   3  Normalizat    .74944        .28196        .36415E-03   -1.0197    
   4  Prefactor     1.2498        .23571        .24845E-03   -.84813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92606e-10
Minuit parameter uncertainties:
  1  4.33439
  2  1.06097
  3  0.282511
  4  0.235912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165757': 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) = 4958.80120838
delta logL = 0.00701073288747

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.764e+00  4.334e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.429e+00  1.061e+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.250e+00  2.359e-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:  7.494e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.43 +/- 1.06
Photon Flux (Free Index): 5.91e-08 +/- 8.66e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.94e-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/165757/cmap_HighResolution_595468801_595728001_4FGL_J0401.9-2034_daily_bin1374.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.86e-05', photon_flux_error='5.41e-08', dlogl='7.01e-03', energy_flux='1.91e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-08-19 23:56:35.520001', photon_index_error2='1.06', photon_index2='2.43', ts='1.67', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.94e-05', EG='0.76', time_epoch_completed='1629442595.52', return_code='0', job_id='165757', GAL2='1.25', EG2='0.75', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='8.66e-08', ts2='1.67', photon_index='2.31' WHERE bin_id='1374' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 165757: <4FGL_J0401.9-2034_daily_bin1374> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1374> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:40:16 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:40:18 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:40:18 2021
Terminated at Thu Aug 19 23:56:36 2021
Results reported at Thu Aug 19 23:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1374 60.4867 -20.5804 595468801 595728001 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 :                                   726.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

