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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1353
RA = 60.4867, Dec = -20.5804
tmin = 590025601, tmax = 590284801
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='164651', job_status='RUN', time_executed='2021-08-19 23:39:53.390526', time_epoch_executed='1629441593.39' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164651/ft1_4FGL_J0401.9-2034_daily_bin1353.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164651/ft1_4FGL_J0401.9-2034_daily_bin1353.fits outfile=/scratch/kocevski/164651/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1353.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=590025601.0 tmax=590284801.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.70
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164651/ft1_filtered_4FGL_J0401.9-2034_daily_bin1353.fits" evtable="EVENTS" scfile=/scratch/kocevski/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits sctable="SC_DATA" outfile=/scratch/kocevski/164651/ltcube_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.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/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits
.....................!
real 12.67
user 11.45
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164651/ft1_filtered_4FGL_J0401.9-2034_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits sctable="SC_DATA" expcube=/scratch/kocevski/164651/ltcube_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.fits outfile=/scratch/kocevski/164651/expmap_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.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/164651/ltcube_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.fits
.....................!
real 191.00
user 185.35
sys 5.28

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/164651/ft1_filtered_4FGL_J0401.9-2034_daily_bin1353.fits scfile=/scratch/kocevski/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits outfile=/scratch/kocevski/164651/cmap_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.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.29
user 0.37
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164651/ft1_filtered_4FGL_J0401.9-2034_daily_bin1353.fits scfile=/scratch/kocevski/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits outfile=/scratch/kocevski/164651/cmap_HighResolution_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.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.29
user 0.38
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164651/ft1_filtered_4FGL_J0401.9-2034_daily_bin1353.fits evtable="EVENTS" scfile=/scratch/kocevski/164651/ft2_4FGL_J0401.9-2034_daily_bin1353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164651/Model_4FGL_J0401.9-2034_daily_bin1353.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/164651/ft1_filtered_4FGL_J0401.9-2034_daily_bin1353.fits.....................!
real 142.58
user 139.97
sys 2.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.63       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.203       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1770       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    25.796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.553       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17817E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0458       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3758       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78294       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=   5951.591     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2761 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.56        141.67       -.65299E-04   -.26217E-05
   2  Prefactor     3.5400        5.0056        .25296E-05   -.26803E-03
   3  Prefactor     5.1700        24.267       -.35205E-05   -.65418E-04
   4  Prefactor     3.3193        11.617        .17558E-05   -.12799E-03
   5  Prefactor     .10000E-03    21.650        .47714E-07** at limit **
   6  Prefactor     49.219        51.562        .12414E-04   -.10417E-04
   7  Prefactor     1.1769        1.6502        .98694E-07   -.15304E-03
   8  Prefactor     .10000E-03    1.4724        .10245E-07** at limit **
   9  Prefactor     .10000E-03    1.6409       -.48906E-07** at limit **
  10  norm          25.796        2.8221        .47800E-07    .60152E-04
  11  Prefactor     31.550        46.472       -.18508E-04   -.71455E-04
  12  norm          .10000E-03    .48959        .74171E-08** at limit **
  13  Prefactor     11.555        49.634        .45542E-04    .58931E-04
  14  Prefactor     .10000E-03    1.8003       -.99394E-06** at limit **
  15  norm          .10000E-03    10.599       -.42643E-06** at limit **
  16  Prefactor     12.640        30.304        .19551E-04    .36859E-04
  17  Prefactor     .10000E-03    5.2032       -.79001E-07** at limit **
  18  Prefactor     .10000E-03    5.3838       -.11368E-06** at limit **
  19  Prefactor     .10000E-03    10.049        .12731E-06** at limit **
  20  Prefactor     1.3154        272.81        .34358E-04   -.29831E-04
  21  Prefactor     8.0456        7.9569       -.35854E-06   -.14709E-03
  22  Prefactor     15.400        47.772        .26538E-04   -.11512E-04
  23  Normalizat    1.3759        .22127       -.45966E-05    .14163E-03
  24  Prefactor     .78294        .17046       -.23696E-05   -.13351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.556
  Prefactor  = 3.53997
  Prefactor  = 5.16999
  Prefactor  = 3.31927
  Prefactor  = 0.0001
  Prefactor  = 49.2185
  Prefactor  = 1.17692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.7958
  Prefactor  = 31.5497
  norm       = 0.0001
  Prefactor  = 11.5551
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 12.6403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31539
  Prefactor  = 8.04563
  Prefactor  = 15.4005
  Normalizat = 1.37586
  Prefactor  = 0.782944
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.591     FROM HESSE     STATUS=OK           397 CALLS     3158 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.56        141.41        .19207E-03   -1.3611    
   2  Prefactor     3.5400        4.9483        .18676E-03   -1.5332    
   3  Prefactor     5.1700        23.950        .17771E-03   -1.5253    
   4  Prefactor     3.3193        11.593        .22214E-03   -1.5344    
   5  Prefactor     .10000E-03    21.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.219        51.617        .57169E-04   -1.4304    
   7  Prefactor     1.1769        1.6129        .11358E-03   -1.5491    
   8  Prefactor     .10000E-03    1.4750        .91399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6523        .96480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.796        2.8337        .40794E-04   -1.4692    
  11  Prefactor     31.550        46.026        .71332E-04   -1.4584    
  12  norm          .10000E-03    .49352        .52660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.555        48.875        .11799E-03   -1.5028    
  14  Prefactor     .10000E-03    13.220        .19446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.640        30.226        .11274E-03   -1.4997    
  17  Prefactor     .10000E-03    5.2409        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5349        .34893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3154        271.76        .38480E-03   -1.5479    
  21  Prefactor     8.0456        7.9488        .14135E-03   -1.5141    
  22  Prefactor     15.400        47.686        .10210E-03   -1.4923    
  23  Normalizat    1.3759        .25771        .27568E-03   -.81329    
  24  Prefactor     .78294        .19898        .28405E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64696e-10
Minuit parameter uncertainties:
  1  141.847
  2  4.94883
  3  22.2693
  4  11.601
  5  1.24775e-05
  6  51.6642
  7  1.61298
  8  1.70664e-06
  9  2.12375e-06
  10  2.83368
  11  46.0774
  12  1.18764e-06
  13  47.5953
  14  0.000362029
  15  7.11005e-05
  16  30.2629
  17  4.79944e-05
  18  2.70981e-05
  19  1.80724e-05
  20  37.9882
  21  7.94981
  22  47.8041
  23  0.257955
  24  0.199163
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.620e-04  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:  7.829e-01  1.992e-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.376e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164651/likelihoodResults_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.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): 102
logL (Free Index) = 5951.59168065
delta logL = -0.000360564909897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5951.59129738
delta logL = 2.27023538173e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17393E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4417       1.0000          .0000       10.000    
     3 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78262       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=   5951.276     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      280 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30822        5.2605        .10175E-01    .23641E-02
   2  Index         3.8806        2.5695        .17963        .98023E-04
   3  Normalizat    1.3058        .38529E-01    .63748E-01    .14625E-03
   4  Prefactor     .81319        .31102E-01    .63151E-01    .17805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.308216
  Index      = 3.88065
  Normalizat = 1.30584
  Prefactor  = 0.813187
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.276     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      311 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30822        24.564        .52960E-04   -1.5597    
   2  Index         3.8806        6.5804        .64124E-02   -.22578    
   3  Normalizat    1.3058        .24479        .28198E-03   -.83392    
   4  Prefactor     .81319        .19304        .27932E-03   -.99244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.94794e-11
Minuit parameter uncertainties:
  1  5.50452
  2  9.20166
  3  0.245009
  4  0.193198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164651': 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): 102
logL (Free Index) = 5951.27580007
delta logL = 0.315520015438

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.082e-01  5.505e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  3.881e+00  9.202e+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:  8.132e-01  1.932e-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.306e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.487 -20.580

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/164651/cmap_HighResolution_590025601_590284801_4FGL_J0401.9-2034_daily_bin1353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-08-19 23:51:59.900498', job_id='164651', GAL2='0.81', fit_tolerance='1e-08', EG2='1.31', EG='1.38', time_epoch_completed='1629442319.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.16e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1353' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 164651: <4FGL_J0401.9-2034_daily_bin1353> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1353> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:46 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35: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:35:47 2021
Terminated at Thu Aug 19 23:52:00 2021
Results reported at Thu Aug 19 23:52:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1353 60.4867 -20.5804 590025601 590284801 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 :                                   725.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

