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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1359
RA = 60.4867, Dec = -20.5804
tmin = 591580801, tmax = 591840001
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='164661', job_status='RUN', time_executed='2021-08-19 23:37:26.768311', time_epoch_executed='1629441446.77' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164661/ft1_4FGL_J0401.9-2034_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164661/ft1_4FGL_J0401.9-2034_daily_bin1359.fits outfile=/scratch/kocevski/164661/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1359.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=591580801.0 tmax=591840001.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.34
user 3.59
sys 4.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164661/ft1_filtered_4FGL_J0401.9-2034_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/164661/ltcube_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.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/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits
.....................!
real 17.71
user 11.72
sys 5.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164661/ft1_filtered_4FGL_J0401.9-2034_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/164661/ltcube_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.fits outfile=/scratch/kocevski/164661/expmap_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.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/164661/ltcube_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.fits
.....................!
real 197.84
user 185.86
sys 11.50

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/164661/ft1_filtered_4FGL_J0401.9-2034_daily_bin1359.fits scfile=/scratch/kocevski/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits outfile=/scratch/kocevski/164661/cmap_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.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.45
user 0.38
sys 5.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164661/ft1_filtered_4FGL_J0401.9-2034_daily_bin1359.fits scfile=/scratch/kocevski/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits outfile=/scratch/kocevski/164661/cmap_HighResolution_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.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.47
user 0.38
sys 5.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164661/ft1_filtered_4FGL_J0401.9-2034_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/164661/ft2_4FGL_J0401.9-2034_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164661/Model_4FGL_J0401.9-2034_daily_bin1359.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/164661/ft1_filtered_4FGL_J0401.9-2034_daily_bin1359.fits.....................!
real 179.06
user 170.83
sys 7.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .24117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2029       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.520       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.689       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.5514       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12231E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11790E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10912E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5136       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6069       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3082       1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.410       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90490       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1594       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=   7669.155     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2739 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.973        .50257E-05** at limit **
   2  Prefactor     .24072        2.7296       -.28565E-06    .10752E-03
   3  Prefactor     .10000E-03    34.007       -.12941E-05** at limit **
   4  Prefactor     6.2029        11.186        .15131E-06    .19253E-04
   5  Prefactor     43.519        58.521        .28260E-06    .93993E-06
   6  Prefactor     18.685        21.680        .34374E-06    .26994E-04
   7  Prefactor     .10000E-03    .96044       -.31378E-07** at limit **
   8  Prefactor     4.3932        3.8595        .47441E-06    .28324E-04
   9  Prefactor     .10000E-03    1.6623        .71223E-08** at limit **
  10  norm          6.5519        1.4454       -.67386E-07    .37268E-04
  11  Prefactor     .10000E-03    45.472       -.44858E-05** at limit **
  12  norm          .10000E-03    .70531       -.29287E-07** at limit **
  13  Prefactor     .10000E-03    31.176        .25740E-05** at limit **
  14  Prefactor     3.5133        2.0610        .27850E-08    .32088E-04
  15  norm          2.8464        9.3478        .46950E-05    .13506E-04
  16  Prefactor     .10000E-03    11.421        .12946E-07** at limit **
  17  Prefactor     3.5591        4.5505       -.17037E-06   -.25286E-05
  18  Prefactor     .10000E-03    1.5296       -.18328E-09** at limit **
  19  Prefactor     .10000E-03    8.4531        .32229E-07** at limit **
  20  Prefactor     2.6076        42.595        .56619E-06    .82491E-06
  21  Prefactor     5.3086        4.3382       -.11796E-06   -.10449E-05
  22  Prefactor     58.410        44.603        .16890E-06    .93933E-06
  23  Normalizat    .90480        .17059       -.78215E-07    .10647E-03
  24  Prefactor     1.1593        .14403       -.92625E-07    .13128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.24072
  Prefactor  = 0.0001
  Prefactor  = 6.20289
  Prefactor  = 43.5186
  Prefactor  = 18.6849
  Prefactor  = 0.0001
  Prefactor  = 4.39315
  Prefactor  = 0.0001
  norm       = 6.55185
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5133
  norm       = 2.84642
  Prefactor  = 0.0001
  Prefactor  = 3.55907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60762
  Prefactor  = 5.30857
  Prefactor  = 58.4096
  Normalizat = 0.904801
  Prefactor  = 1.15934
 **********
 **   18 **HESSE 
 **********

 FCN=   7669.155     FROM HESSE     STATUS=OK           403 CALLS     3142 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24072        24.516        .27405E-02   -1.5610    
   3  Prefactor     .10000E-03    34.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2029        11.176        .16119E-03   -1.5210    
   5  Prefactor     43.519        58.591        .60770E-04   -1.4388    
   6  Prefactor     18.685        21.684        .92646E-04   -1.4843    
   7  Prefactor     .10000E-03    4.0990        .16314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3932        3.8536        .75072E-03   -1.5289    
   9  Prefactor     .10000E-03    1.6824        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.5519        1.4496        .44977E-04   -1.5196    
  11  Prefactor     .10000E-03    46.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9642        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5133        2.0569        .92788E-04   -1.5333    
  15  norm          2.8464        9.3547        .12054E-02   -1.5371    
  16  Prefactor     .10000E-03    11.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5591        4.5439        .20397E-03   -1.5331    
  18  Prefactor     .10000E-03    1.5564        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6076        42.643        .25266E-03   -1.5385    
  21  Prefactor     5.3086        4.3410        .16050E-03   -1.5247    
  22  Prefactor     58.410        44.615        .52493E-04   -1.4178    
  23  Normalizat    .90480        .19297        .28951E-03   -.96292    
  24  Prefactor     1.1593        .16424        .22420E-03   -.87592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78339e-10
Minuit parameter uncertainties:
  1  2.4381e-05
  2  4.85961
  3  5.01342e-05
  4  11.1797
  5  58.669
  6  21.6936
  7  6.71205e-07
  8  3.85382
  9  6.42309e-07
  10  1.44961
  11  0.000145659
  12  2.9795e-07
  13  3.46587e-05
  14  2.05698
  15  9.35947
  16  2.93117e-06
  17  4.54431
  18  5.40874e-07
  19  3.51394e-06
  20  21.1074
  21  4.34128
  22  44.641
  23  0.193117
  24  0.164313
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.513e+00  2.057e+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.159e+00  1.643e-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.048e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.63
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.01e-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) = 7668.73766429
delta logL = 0.417132057428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7668.71412151
delta logL = 0.440674837469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2626       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9031       1.0000          .0000       10.000    
     3 'Normalizat'    .91885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1529       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=   7668.714     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2625        2.5591        .10531E-03    .46537E-03
   2  Index         1.9031        .41372        .75763E-02    .59615E-04
   3  Normalizat    .91887        .18313        .28747E-03   -.59834E-04
   4  Prefactor     1.1529        .15893        .22471E-03   -.33797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26252
  Index      = 1.90309
  Normalizat = 0.918872
  Prefactor  = 1.1529
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.714     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2625        2.5575        .21061E-04   -1.5295    
   2  Index         1.9031        .41346        .30305E-03   -.66796    
   3  Normalizat    .91887        .18325        .11499E-04   -.95800    
   4  Prefactor     1.1529        .15904        .44941E-04   -.87793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6361e-10
Minuit parameter uncertainties:
  1  2.55756
  2  0.414223
  3  0.183377
  4  0.159101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164661': 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) = 7668.71412149
delta logL = 0.440674853129

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.263e+00  2.558e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.903e+00  4.142e-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.153e+00  1.591e-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.189e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.50
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.90 +/- 0.41
Photon Flux (Free Index): 3.27e-08 +/- 2.48e-08
Energy Flux (Free Index): 2.91e-05 +/- 2.62e-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/164661/cmap_HighResolution_591580801_591840001_4FGL_J0401.9-2034_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='2.91e-05', photon_flux_error='2.70e-08', dlogl='4.41e-01', energy_flux='1.72e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-08-19 23:50:58.949128', photon_index_error2='0.41', photon_index2='1.90', ts='7.63', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='0.90', time_epoch_completed='1629442258.95', return_code='0', job_id='164661', GAL2='1.15', EG2='0.92', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.48e-08', ts2='8.50', photon_index='2.31' WHERE bin_id='1359' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 164661: <4FGL_J0401.9-2034_daily_bin1359> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1359> 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) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:48 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:48 2021
Terminated at Thu Aug 19 23:51:00 2021
Results reported at Thu Aug 19 23:51:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1359 60.4867 -20.5804 591580801 591840001 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 :                                   881.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

