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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1548
RA = 60.4867, Dec = -20.5804
tmin = 640569601, tmax = 640828801
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='166006', job_status='RUN', time_executed='2021-08-19 23:43:43.591221', time_epoch_executed='1629441823.59' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166006/ft1_4FGL_J0401.9-2034_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166006/ft1_4FGL_J0401.9-2034_daily_bin1548.fits outfile=/scratch/kocevski/166006/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1548.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=640569601.0 tmax=640828801.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 10.24
user 2.75
sys 7.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166006/ft1_filtered_4FGL_J0401.9-2034_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/166006/ltcube_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.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/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits
.....................!
real 20.24
user 12.54
sys 7.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166006/ft1_filtered_4FGL_J0401.9-2034_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/166006/ltcube_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.fits outfile=/scratch/kocevski/166006/expmap_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.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/166006/ltcube_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.fits
.....................!
real 199.25
user 185.61
sys 13.14

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/166006/ft1_filtered_4FGL_J0401.9-2034_daily_bin1548.fits scfile=/scratch/kocevski/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits outfile=/scratch/kocevski/166006/cmap_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.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 7.03
user 0.37
sys 6.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166006/ft1_filtered_4FGL_J0401.9-2034_daily_bin1548.fits scfile=/scratch/kocevski/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits outfile=/scratch/kocevski/166006/cmap_HighResolution_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.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 7.03
user 0.39
sys 6.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166006/ft1_filtered_4FGL_J0401.9-2034_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/166006/ft2_4FGL_J0401.9-2034_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166006/Model_4FGL_J0401.9-2034_daily_bin1548.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/166006/ft1_filtered_4FGL_J0401.9-2034_daily_bin1548.fits.....................!
real 137.05
user 126.55
sys 9.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6782       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8904       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.798       1.0000         .10000E-03   10000.    
    12 'norm      '    .24849E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3650       1.0000         .10000E-03   10000.    
    15 'norm      '    .10576E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1077       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.757       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0523       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8841       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.965       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8992       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85293       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=   5662.260     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2725 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    113.76        .13933E-05** at limit **
   2  Prefactor     6.1414        5.6919       -.34968E-06   -.13297E-03
   3  Prefactor     22.573        23.185       -.58936E-06   -.21162E-05
   4  Prefactor     16.428        19.483       -.43005E-06   -.55034E-05
   5  Prefactor     50.340        52.579       -.13878E-04    .37085E-05
   6  Prefactor     .10000E-03    11.694       -.57271E-08** at limit **
   7  Prefactor     5.3080        3.2740       -.92046E-07   -.17135E-03
   8  Prefactor     .10000E-03    2.0652        .49121E-07** at limit **
   9  Prefactor     3.6761        4.3775       -.13947E-06   -.35760E-03
  10  norm          1.8904        1.0377        .23997E-06    .23936E-04
  11  Prefactor     13.806        21.017       -.14337E-05   -.26922E-05
  12  norm          .10000E-03    .83377        .31190E-07** at limit **
  13  Prefactor     .10000E-03    60.731       -.32294E-06** at limit **
  14  Prefactor     6.3636        3.8386       -.20014E-07   -.92960E-04
  15  norm          .10000E-03    16.911        .20573E-06** at limit **
  16  Prefactor     6.0973        37.032       -.89775E-05   -.18845E-04
  17  Prefactor     13.757        8.8988        .10097E-07   -.14008E-04
  18  Prefactor     4.0522        3.5447       -.99414E-07   -.42812E-04
  19  Prefactor     2.8837        16.045       -.20986E-05   -.10949E-03
  20  Prefactor     23.964        26.278       -.75672E-06    .31090E-05
  21  Prefactor     .10000E-03    2.7777       -.70950E-08** at limit **
  22  Prefactor     2.8880        62.716       -.76007E-05   -.28764E-04
  23  Normalizat    1.2593        .21303        .20353E-05   -.32994E-04
  24  Prefactor     .85282        .17400        .52114E-06    .68863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.1414
  Prefactor  = 22.5726
  Prefactor  = 16.4283
  Prefactor  = 50.3402
  Prefactor  = 0.0001
  Prefactor  = 5.30797
  Prefactor  = 0.0001
  Prefactor  = 3.6761
  norm       = 1.89043
  Prefactor  = 13.8055
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.36361
  norm       = 0.0001
  Prefactor  = 6.09734
  Prefactor  = 13.7573
  Prefactor  = 4.05222
  Prefactor  = 2.88367
  Prefactor  = 23.964
  Prefactor  = 0.0001
  Prefactor  = 2.88798
  Normalizat = 1.25926
  Prefactor  = 0.852822
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.260     FROM HESSE     STATUS=OK           409 CALLS     3134 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1414        5.6918        .15485E-03   -1.5212    
   3  Prefactor     22.573        23.172        .84301E-04   -1.4757    
   4  Prefactor     16.428        19.487        .98815E-04   -1.4897    
   5  Prefactor     50.340        52.205        .56514E-04   -1.4288    
   6  Prefactor     .10000E-03    11.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3080        3.1952        .97556E-04   -1.5247    
   8  Prefactor     .10000E-03    2.0822        .10541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6761        4.3371        .15872E-03   -1.5324    
  10  norm          1.8904        1.0335        .53103E-04   -1.5433    
  11  Prefactor     13.806        21.007        .10783E-03   -1.4965    
  12  norm          .10000E-03    7.6748        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    61.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3636        3.7990        .10687E-03   -1.5203    
  15  norm          .10000E-03    17.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0973        37.158        .16245E-03   -1.5214    
  17  Prefactor     13.757        8.9030        .10799E-03   -1.4966    
  18  Prefactor     4.0522        3.5430        .12762E-03   -1.5305    
  19  Prefactor     2.8837        16.221        .23931E-03   -1.5368    
  20  Prefactor     23.964        26.294        .81826E-04   -1.4729    
  21  Prefactor     .10000E-03    2.7900        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8880        63.466        .23865E-03   -1.5368    
  23  Normalizat    1.2593        .24616        .26340E-03   -.84791    
  24  Prefactor     .85282        .20034        .26553E-03   -.97810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44517e-10
Minuit parameter uncertainties:
  1  1.89715e-05
  2  5.69226
  3  23.181
  4  19.495
  5  52.2521
  6  5.84722e-07
  7  3.1953
  8  6.93574e-06
  9  4.33743
  10  1.03352
  11  21.0178
  12  8.30608e-06
  13  2.91534e-05
  14  3.79917
  15  8.40592e-05
  16  30.1317
  17  8.9039
  18  3.54319
  19  13.684
  20  26.3068
  21  1.64277e-06
  22  27.1089
  23  0.246391
  24  0.200512
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.364e+00  3.799e+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:  8.528e-01  2.005e-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.259e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.35e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.86e-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) = 5662.24532336
delta logL = 0.0144484125367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5662.24010729
delta logL = 0.0196644824864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9791       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4151       1.0000          .0000       10.000    
     3 'Normalizat'    1.2497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85779       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=   5662.240     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9793        4.2635        .10072E-03   -.25306E-03
   2  Index         2.4150        .55535        .56837E-02   -.61509E-04
   3  Normalizat    1.2497        .23735        .26421E-03    .66481E-04
   4  Prefactor     .85779        .19813        .26485E-03    .94777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97927
  Index      = 2.415
  Normalizat = 1.24974
  Prefactor  = 0.857789
 **********
 **   18 **HESSE 
 **********

 FCN=   5662.240     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9793        4.1234        .40289E-05   -1.5219    
   2  Index         2.4150        .53661        .22735E-03   -.54334    
   3  Normalizat    1.2497        .23728        .10568E-04   -.85079    
   4  Prefactor     .85779        .19812        .10594E-04   -.97632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92428e-11
Minuit parameter uncertainties:
  1  4.1236
  2  0.538029
  3  0.237488
  4  0.198286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166006': 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) = 5662.24010729
delta logL = 0.0196644868656

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  5.979e+00  4.124e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.415e+00  5.380e-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:  8.578e-01  1.983e-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.250e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.71
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.42 +/- 0.54
Photon Flux (Free Index): 9.19e-08 +/- 6.66e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.86e-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/166006/cmap_HighResolution_640569601_640828801_4FGL_J0401.9-2034_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.35e-08', energy_flux2='2.95e-05', photon_flux_error='4.98e-08', dlogl='1.97e-02', energy_flux='3.11e-05', photon_flux2='9.19e-08', job_status='DONE', time_completed='2021-08-19 23:55:34.805380', photon_index_error2='0.54', photon_index2='2.42', ts='5.69', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.26', time_epoch_completed='1629442534.81', return_code='0', job_id='166006', GAL2='0.86', EG2='1.25', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='6.66e-08', ts2='5.71', photon_index='2.31' WHERE bin_id='1548' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 166006: <4FGL_J0401.9-2034_daily_bin1548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1548 60.4867 -20.5804 640569601 640828801 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

