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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1325
RA = 60.4867, Dec = -20.5804
tmin = 582768001, tmax = 583027201
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='164611', job_status='RUN', time_executed='2021-08-19 23:37:35.858591', time_epoch_executed='1629441455.86' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164611/ft1_4FGL_J0401.9-2034_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164611/ft1_4FGL_J0401.9-2034_daily_bin1325.fits outfile=/scratch/kocevski/164611/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1325.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=582768001.0 tmax=583027201.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.29
user 3.35
sys 0.91

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164611/ft1_filtered_4FGL_J0401.9-2034_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/164611/ltcube_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.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/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits
.....................!
real 12.63
user 11.51
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164611/ft1_filtered_4FGL_J0401.9-2034_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/164611/ltcube_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.fits outfile=/scratch/kocevski/164611/expmap_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.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/164611/ltcube_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.fits
.....................!
real 191.28
user 184.98
sys 5.73

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/164611/ft1_filtered_4FGL_J0401.9-2034_daily_bin1325.fits scfile=/scratch/kocevski/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits outfile=/scratch/kocevski/164611/cmap_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.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.22
user 0.36
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164611/ft1_filtered_4FGL_J0401.9-2034_daily_bin1325.fits scfile=/scratch/kocevski/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits outfile=/scratch/kocevski/164611/cmap_HighResolution_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.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.23
user 0.38
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164611/ft1_filtered_4FGL_J0401.9-2034_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/164611/ft2_4FGL_J0401.9-2034_daily_bin1325.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164611/Model_4FGL_J0401.9-2034_daily_bin1325.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/164611/ft1_filtered_4FGL_J0401.9-2034_daily_bin1325.fits.....................!
real 182.20
user 179.57
sys 2.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70556       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.471       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 '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16091E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1946       1.0000         .10000E-03   10000.    
    10 'norm      '    20.194       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .68462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0356       1.0000         .10000E-03   10000.    
    15 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.728       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61385E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9892       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.547       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95003       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=   7673.112     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2411 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.42       -.28466E-05** at limit **
   2  Prefactor     .70224        3.4436        .64157E-06   -.67165E-04
   3  Prefactor     14.473        18.354        .48336E-06   -.12551E-03
   4  Prefactor     .10000E-03    5.6411        .75272E-07** at limit **
   5  Prefactor     .10000E-03    9.0367       -.34896E-06** at limit **
   6  Prefactor     .10000E-03    55.904       -.70520E-07** at limit **
   7  Prefactor     .10097E-03    1.4162        .18059E-05** at limit **
   8  Prefactor     .10000E-03    2.1152        .55466E-07** at limit **
   9  Prefactor     2.1944        2.2847        .12950E-07   -.32459E-03
  10  norm          20.194        2.0408        .24136E-07   -.45150E-03
  11  Prefactor     .10000E-03    15.562        .86627E-06** at limit **
  12  norm          .68527        1.3787        .19017E-06   -.72539E-03
  13  Prefactor     .10000E-03    30.986        .12557E-05** at limit **
  14  Prefactor     9.0318        3.6948        .12670E-06   -.59150E-03
  15  norm          .10000E-03    11.007       -.51330E-06** at limit **
  16  Prefactor     13.716        26.627        .10679E-05   -.12441E-04
  17  Prefactor     2.8007        6.4524        .55646E-05    .19041E-03
  18  Prefactor     .10000E-03    1.6524        .26302E-06** at limit **
  19  Prefactor     .10000E-03    9.5801        .98735E-07** at limit **
  20  Prefactor     .10000E-03    5.2594        .91115E-08** at limit **
  21  Prefactor     1.9894        4.2165        .25233E-06   -.48073E-04
  22  Prefactor     14.480        36.856        .84310E-05    .17134E-03
  23  Normalizat    1.0350        .18247       -.43374E-06   -.32990E-03
  24  Prefactor     .94977        .14584       -.17987E-05   -.55682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.702238
  Prefactor  = 14.4733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100973
  Prefactor  = 0.0001
  Prefactor  = 2.19445
  norm       = 20.1938
  Prefactor  = 0.0001
  norm       = 0.685266
  Prefactor  = 0.0001
  Prefactor  = 9.03182
  norm       = 0.0001
  Prefactor  = 13.716
  Prefactor  = 2.80069
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98942
  Prefactor  = 14.4797
  Normalizat = 1.03496
  Prefactor  = 0.949772
 **********
 **   18 **HESSE 
 **********

 FCN=   7673.112     FROM HESSE     STATUS=OK           397 CALLS     2808 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .70224        3.2402        .30402E-03   -1.5540    
   3  Prefactor     14.473        18.095        .10529E-03   -1.4947    
   4  Prefactor     .10000E-03    5.6561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10097E-03    25.622        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1500        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1944        2.2758        .13011E-03   -1.5412    
  10  norm          20.194        2.0473        .37943E-04   -1.4809    
  11  Prefactor     .10000E-03    15.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .68527        1.2854        .13043E-03   -1.5542    
  13  Prefactor     .10000E-03    31.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0318        3.6507        .49236E-03   -1.5107    
  15  norm          .10000E-03    11.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.716        26.637        .10811E-03   -1.4967    
  17  Prefactor     2.8007        6.5307        .12149E-02   -1.5373    
  18  Prefactor     .10000E-03    14.545        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.6122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9894        4.1913        .25424E-03   -1.5426    
  22  Prefactor     14.480        37.061        .10501E-03   -1.4947    
  23  Normalizat    1.0350        .21372        .28225E-03   -.91868    
  24  Prefactor     .94977        .17082        .24762E-03   -.94423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63118e-08
Minuit parameter uncertainties:
  1  0.000714374
  2  3.01696
  3  18.1015
  4  1.02933e-05
  5  2.32113e-05
  6  6.74381e-06
  7  0.00999246
  8  2.37719e-06
  9  2.27587
  10  2.04734
  11  8.70124e-05
  12  1.28548
  13  0.000198179
  14  3.65083
  15  3.04647e-05
  16  26.6597
  17  6.53236
  18  0.000278768
  19  5.94655e-05
  20  1.32088e-06
  21  4.1919
  22  37.1202
  23  0.213901
  24  0.170914
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  9.032e+00  3.651e+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.498e-01  1.709e-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.035e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.40
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 4.79e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 1.79e-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) = 7672.54540805
delta logL = 0.566694721484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7672.53265351
delta logL = 0.579449266836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1720       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7123       1.0000          .0000       10.000    
     3 'Normalizat'    .99084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97503       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=   7672.533     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1711        30.577        .40398E-02    .22520E-03
   2  Index         2.7124        2.4882        .97373E-01    .17293E-03
   3  Normalizat    .99082        .94075E-01    .46052E-01    .13290E-04
   4  Prefactor     .97505        .70658E-01    .45954E-01    .92658E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17106
  Index      = 2.71245
  Normalizat = 0.990821
  Prefactor  = 0.975047
 **********
 **   18 **HESSE 
 **********

 FCN=   7672.533     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1711        4.1170        .74261E-04   -1.5211    
   2  Index         2.7124        .43373        .39668E-02   -.47519    
   3  Normalizat    .99082        .20583        .28730E-03   -.93339    
   4  Prefactor     .97505        .17105        .24475E-03   -.93566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30965e-12
Minuit parameter uncertainties:
  1  4.1172
  2  0.434424
  3  0.205997
  4  0.171148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164611': 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) = 7672.53265342
delta logL = 0.579449354386

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.171e+00  4.117e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.712e+00  4.344e-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.750e-01  1.711e-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:  9.908e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.57
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.71 +/- 0.43
Photon Flux (Free Index): 1.52e-07 +/- 6.00e-08
Energy Flux (Free Index): 3.62e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164611/cmap_HighResolution_582768001_583027201_4FGL_J0401.9-2034_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='3.62e-05', photon_flux_error='4.79e-08', dlogl='5.79e-01', energy_flux='4.42e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-08-19 23:49:53.519850', photon_index_error2='0.43', photon_index2='2.71', ts='14.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.03', time_epoch_completed='1629442193.52', return_code='0', job_id='164611', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='6.00e-08', ts2='15.57', photon_index='2.31' WHERE bin_id='1325' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:49:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 164611: <4FGL_J0401.9-2034_daily_bin1325> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1325> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:43 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:44 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:44 2021
Terminated at Thu Aug 19 23:49:54 2021
Results reported at Thu Aug 19 23:49:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1325 60.4867 -20.5804 582768001 583027201 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 :                                   740.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             316.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

