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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1517
RA = 60.4867, Dec = -20.5804
tmin = 632534401, tmax = 632793601
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='165963', job_status='RUN', time_executed='2021-08-19 23:45:18.266289', time_epoch_executed='1629441918.27' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165963/ft1_4FGL_J0401.9-2034_daily_bin1517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165963/ft1_4FGL_J0401.9-2034_daily_bin1517.fits outfile=/scratch/kocevski/165963/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1517.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=632534401.0 tmax=632793601.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 8.85
user 3.33
sys 5.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165963/ft1_filtered_4FGL_J0401.9-2034_daily_bin1517.fits" evtable="EVENTS" scfile=/scratch/kocevski/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits sctable="SC_DATA" outfile=/scratch/kocevski/165963/ltcube_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.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/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits
.....................!
real 17.61
user 11.37
sys 6.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165963/ft1_filtered_4FGL_J0401.9-2034_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits sctable="SC_DATA" expcube=/scratch/kocevski/165963/ltcube_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.fits outfile=/scratch/kocevski/165963/expmap_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.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/165963/ltcube_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.fits
.....................!
real 197.00
user 184.88
sys 11.80

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/165963/ft1_filtered_4FGL_J0401.9-2034_daily_bin1517.fits scfile=/scratch/kocevski/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits outfile=/scratch/kocevski/165963/cmap_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.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 5.70
user 0.38
sys 5.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165963/ft1_filtered_4FGL_J0401.9-2034_daily_bin1517.fits scfile=/scratch/kocevski/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits outfile=/scratch/kocevski/165963/cmap_HighResolution_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.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 5.69
user 0.38
sys 5.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165963/ft1_filtered_4FGL_J0401.9-2034_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/165963/ft2_4FGL_J0401.9-2034_daily_bin1517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165963/Model_4FGL_J0401.9-2034_daily_bin1517.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/165963/ft1_filtered_4FGL_J0401.9-2034_daily_bin1517.fits.....................!
real 123.94
user 115.57
sys 8.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0024       1.0000         .10000E-03   10000.    
    10 'norm      '    11.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.716       1.0000         .10000E-03   10000.    
    12 'norm      '    .77236       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7933       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64508E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.909       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24111E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66390       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1444       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=   5264.089     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2816 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    150.74       -.15702E-05** at limit **
   2  Prefactor     .10000E-03    1.8595        .18967E-08** at limit **
   3  Prefactor     .10000E-03    22.822       -.24227E-05** at limit **
   4  Prefactor     .10000E-03    15.887       -.13964E-06** at limit **
   5  Prefactor     .10000E-03    18.878        .11955E-05** at limit **
   6  Prefactor     .10000E-03    13.440        .15230E-06** at limit **
   7  Prefactor     .10000E-03    .77716        .29513E-06** at limit **
   8  Prefactor     2.2305        3.3514       -.11234E-05    .92353E-03
   9  Prefactor     4.0024        3.5694        .22221E-06    .53591E-03
  10  norm          11.581        1.9568        .10836E-06   -.76342E-03
  11  Prefactor     22.716        20.044        .14088E-06    .84743E-04
  12  norm          .77254        1.0600       -.18851E-05   -.76942E-03
  13  Prefactor     .10000E-03    12.572        .56376E-06** at limit **
  14  Prefactor     6.7938        3.4273        .33264E-06    .47579E-03
  15  norm          .10000E-03    4.9486        .74907E-07** at limit **
  16  Prefactor     .10000E-03    28.166        .53869E-05** at limit **
  17  Prefactor     .10000E-03    2.7493        .21098E-06** at limit **
  18  Prefactor     .10000E-03    49.326        .14453E-04** at limit **
  19  Prefactor     45.916        26.309       -.14622E-06   -.65069E-04
  20  Prefactor     .16959        12.495       -.75123E-06   -.37844E-04
  21  Prefactor     .10000E-03    2.3104        .44178E-07** at limit **
  22  Prefactor     .10000E-03    51.169        .19422E-05** at limit **
  23  Normalizat    .66394        .19904        .26503E-05    .82756E-04
  24  Prefactor     1.1442        .16455       -.10329E-05    .34129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23054
  Prefactor  = 4.00235
  norm       = 11.581
  Prefactor  = 22.7164
  norm       = 0.772536
  Prefactor  = 0.0001
  Prefactor  = 6.79383
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9163
  Prefactor  = 0.169592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.663943
  Prefactor  = 1.14418
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.089     FROM HESSE     STATUS=OK           399 CALLS     3215 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    150.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8649        .96615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .78354        .62462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2305        3.2878        .15313E-03   -1.5409    
   9  Prefactor     4.0024        3.5580        .12341E-03   -1.5308    
  10  norm          11.581        1.9575        .39442E-04   -1.5027    
  11  Prefactor     22.716        20.048        .84042E-04   -1.4754    
  12  norm          .77254        1.0547        .94459E-03   -1.5532    
  13  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7938        3.4169        .90836E-04   -1.5187    
  15  norm          .10000E-03    4.9524        .15763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7543        .11744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.768        .20738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.916        26.279        .59175E-04   -1.4352    
  20  Prefactor     .16959        19.033        .94084E-01   -1.5626    
  21  Prefactor     .10000E-03    2.3140        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    51.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .66394        .21876        .32372E-03   -1.0533    
  24  Prefactor     1.1442        .18263        .21518E-03   -.88067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65593e-10
Minuit parameter uncertainties:
  1  0.000182795
  2  1.01714e-07
  3  5.07209e-05
  4  4.79962e-05
  5  1.13402e-05
  6  4.2788e-06
  7  1.70563e-06
  8  3.2881
  9  3.55817
  10  1.9575
  11  20.0537
  12  1.05477
  13  7.43663e-05
  14  3.41696
  15  1.13347e-05
  16  0.000237884
  17  1.39008e-05
  18  0.000279652
  19  26.2852
  20  3.59337
  21  1.59131e-06
  22  5.69866e-05
  23  0.219045
  24  0.182732
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.794e+00  3.417e+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.144e+00  1.827e-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:  6.639e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.84
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.91e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.67e-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) = 5264.08917673
delta logL = 0.000140284554618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5264.08911838
delta logL = 0.000198631319108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8318       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3004       1.0000          .0000       10.000    
     3 'Normalizat'    .66451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1440       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=   5264.089     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      260 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8396        4.1712        .91186E-04    .10503E-02
   2  Index         2.3013        .40697        .50837E-02    .16103E-03
   3  Normalizat    .66435        .21195        .32363E-03    .12963E-03
   4  Prefactor     1.1440        .18086        .21520E-03    .19725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.8396
  Index      = 2.30128
  Normalizat = 0.664346
  Prefactor  = 1.14397
 **********
 **   18 **HESSE 
 **********

 FCN=   5264.089     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8396        4.0856        .36474E-05   -1.5185    
   2  Index         2.3013        .39852        .20335E-03   -.57013    
   3  Normalizat    .66435        .21204        .12945E-04   -1.0532    
   4  Prefactor     1.1440        .18094        .43040E-04   -.88073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20859e-10
Minuit parameter uncertainties:
  1  4.08573
  2  0.399118
  3  0.212296
  4  0.181041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165963': 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) = 5264.08910876
delta logL = 0.000208256841688

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.840e+00  4.086e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.301e+00  3.991e-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:  1.144e+00  1.810e-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:  6.643e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.30 +/- 0.40
Photon Flux (Free Index): 8.87e-08 +/- 4.98e-08
Energy Flux (Free Index): 3.35e-05 +/- 2.08e-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/165963/cmap_HighResolution_632534401_632793601_4FGL_J0401.9-2034_daily_bin1517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.91e-08', energy_flux2='3.35e-05', photon_flux_error='4.48e-08', dlogl='2.08e-04', energy_flux='3.32e-05', photon_flux2='8.87e-08', job_status='DONE', time_completed='2021-08-19 23:56:49.910000', photon_index_error2='0.40', photon_index2='2.30', ts='7.84', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.66', time_epoch_completed='1629442609.91', return_code='0', job_id='165963', GAL2='1.14', EG2='0.66', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='4.98e-08', ts2='7.80', photon_index='2.31' WHERE bin_id='1517' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:56:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 165963: <4FGL_J0401.9-2034_daily_bin1517> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1517 60.4867 -20.5804 632534401 632793601 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 :                                   749.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.73 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.

