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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1289
RA = 60.4867, Dec = -20.5804
tmin = 573436801, tmax = 573696001
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='164558', job_status='RUN', time_executed='2021-08-19 23:38:10.088205', time_epoch_executed='1629441490.09' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164558/ft1_4FGL_J0401.9-2034_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164558/ft1_4FGL_J0401.9-2034_daily_bin1289.fits outfile=/scratch/kocevski/164558/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1289.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=573436801.0 tmax=573696001.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 14.17
user 5.07
sys 9.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164558/ft1_filtered_4FGL_J0401.9-2034_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/164558/ltcube_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.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/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits
.....................!
real 22.09
user 11.86
sys 10.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164558/ft1_filtered_4FGL_J0401.9-2034_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/164558/ltcube_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.fits outfile=/scratch/kocevski/164558/expmap_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.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/164558/ltcube_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.fits
.....................!
real 199.86
user 185.12
sys 14.40

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/164558/ft1_filtered_4FGL_J0401.9-2034_daily_bin1289.fits scfile=/scratch/kocevski/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits outfile=/scratch/kocevski/164558/cmap_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.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 9.20
user 0.37
sys 8.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164558/ft1_filtered_4FGL_J0401.9-2034_daily_bin1289.fits scfile=/scratch/kocevski/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits outfile=/scratch/kocevski/164558/cmap_HighResolution_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.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 9.16
user 0.38
sys 8.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164558/ft1_filtered_4FGL_J0401.9-2034_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/164558/ft2_4FGL_J0401.9-2034_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164558/Model_4FGL_J0401.9-2034_daily_bin1289.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/164558/ft1_filtered_4FGL_J0401.9-2034_daily_bin1289.fits.....................!
real 159.61
user 146.72
sys 12.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.0601       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13545E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    31.511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2258       1.0000         .10000E-03   10000.    
    12 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4825       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.753       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .46073       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2779       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=   6235.277     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2395 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    113.48        .25942E-05** at limit **
   2  Prefactor     6.0600        4.1093       -.26297E-06   -.37440E-03
   3  Prefactor     .10000E-03    5.4965       -.60439E-08** at limit **
   4  Prefactor     4.5218        13.435        .67535E-05   -.14618E-03
   5  Prefactor     .10000E-03    34.621        .87338E-06** at limit **
   6  Prefactor     .10000E-03    30.190       -.11656E-05** at limit **
   7  Prefactor     .10000E-03    .83570        .33988E-08** at limit **
   8  Prefactor     2.2990        6.3614        .13547E-05   -.36199E-03
   9  Prefactor     .10015E-03    2.5681        .89915E-06** at limit **
  10  norm          31.511        2.9530       -.34781E-07   -.10027E-02
  11  Prefactor     7.2446        21.229        .37879E-05    .14865E-03
  12  norm          .10000E-03    .80174        .37899E-07** at limit **
  13  Prefactor     8.2438        29.195       -.67246E-05   -.26248E-03
  14  Prefactor     2.4830        2.9931        .24018E-06   -.12547E-03
  15  norm          .10000E-03    15.988       -.13682E-05** at limit **
  16  Prefactor     19.348        26.989       -.38754E-07   -.45239E-04
  17  Prefactor     18.851        11.228        .43412E-06    .16059E-04
  18  Prefactor     .10000E-03    3.2240       -.49383E-07** at limit **
  19  Prefactor     6.2986        13.426        .35043E-05   -.10339E-03
  20  Prefactor     .10000E-03    10.556        .74179E-07** at limit **
  21  Prefactor     .10000E-03    2.7064        .17248E-07** at limit **
  22  Prefactor     23.749        36.147       -.70776E-06   -.44534E-04
  23  Normalizat    .46076        .21371       -.50736E-06   -.14953E-03
  24  Prefactor     1.2779        .17224       -.53254E-06   -.13137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 6.05999
  Prefactor  = 0.0001
  Prefactor  = 4.52183
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.29903
  Prefactor  = 0.000100147
  norm       = 31.5107
  Prefactor  = 7.24464
  norm       = 0.0001
  Prefactor  = 8.2438
  Prefactor  = 2.483
  norm       = 0.000100001
  Prefactor  = 19.3485
  Prefactor  = 18.8507
  Prefactor  = 0.0001
  Prefactor  = 6.29858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7493
  Normalizat = 0.460764
  Prefactor  = 1.27785
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.277     FROM HESSE     STATUS=OK           399 CALLS     2794 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0600        4.1189        .12864E-03   -1.5216    
   3  Prefactor     .10000E-03    5.5026        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5218        13.647        .94661E-03   -1.5283    
   5  Prefactor     .10000E-03    34.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .84185        .70437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2990        6.0509        .27047E-03   -1.5405    
   9  Prefactor     .10015E-03    16.846        .22540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          31.511        2.9349        .37211E-04   -1.4585    
  11  Prefactor     7.2446        21.839        .14922E-03   -1.5170    
  12  norm          .10000E-03    3.2801        .13619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2438        30.916        .13913E-03   -1.5134    
  14  Prefactor     2.4830        2.9636        .14075E-03   -1.5393    
  15  norm          .10000E-03    16.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.348        26.942        .91056E-04   -1.4828    
  17  Prefactor     18.851        11.219        .92260E-04   -1.4839    
  18  Prefactor     .10000E-03    3.2692        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2986        13.499        .79966E-03   -1.5206    
  20  Prefactor     .10000E-03    10.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7118        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.749        36.128        .82189E-04   -1.4733    
  23  Normalizat    .46076        .22960        .40851E-03   -1.1427    
  24  Prefactor     1.2779        .18965        .22361E-03   -.83968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00151e-08
Minuit parameter uncertainties:
  1  0.00109364
  2  4.11911
  3  5.68837e-07
  4  13.6566
  5  0.00019687
  6  0.000250244
  7  1.38207e-06
  8  6.05255
  9  0.00314329
  10  2.93489
  11  21.8627
  12  3.27469e-05
  13  30.9763
  14  2.96382
  15  0.000213121
  16  26.9593
  17  11.2203
  18  3.51541e-06
  19  13.5059
  20  4.8225e-06
  21  1.03557e-07
  22  36.1616
  23  0.230069
  24  0.189755
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.483e+00  2.964e+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.278e+00  1.898e-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:  4.608e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/164558/likelihoodResults_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.22331079
delta logL = 0.0539822281717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6235.20535413
delta logL = 0.0719388902207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9371       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6420       1.0000          .0000       10.000    
     3 'Normalizat'    .44732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2849       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=   6235.205     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9357        57.628        .74586E-02    .72571E-03
   2  Index         2.6430        6.3078        .16079        .11457E-03
   3  Normalizat    .44737        .63638E-01    .93513E-01    .84254E-04
   4  Prefactor     1.2848        .52512E-01    .50472E-01    .57684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93568
  Index      = 2.64301
  Normalizat = 0.447372
  Prefactor  = 1.28481
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.205     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9357        3.2857        .11381E-03   -1.5430    
   2  Index         2.6430        1.0365        .88565E-02   -.49087    
   3  Normalizat    .44737        .21713        .41445E-03   -1.1492    
   4  Prefactor     1.2848        .18858        .22310E-03   -.83760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52867e-11
Minuit parameter uncertainties:
  1  3.28604
  2  1.04627
  3  0.217536
  4  0.188683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164558': 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) = 6235.20535331
delta logL = 0.0719397125131

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.936e+00  3.286e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.643e+00  1.046e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.285e+00  1.887e-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:  4.474e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.64 +/- 1.05
Photon Flux (Free Index): 4.26e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.30e-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/164558/cmap_HighResolution_573436801_573696001_4FGL_J0401.9-2034_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='1.07e-05', photon_flux_error='3.89e-08', dlogl='7.19e-02', energy_flux='1.22e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-08-19 23:52:14.613700', photon_index_error2='1.05', photon_index2='2.64', ts='1.01', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.30e-05', EG='0.46', time_epoch_completed='1629442334.61', return_code='0', job_id='164558', GAL2='1.28', EG2='0.45', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.96e-08', ts2='1.15', photon_index='2.31' WHERE bin_id='1289' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 164558: <4FGL_J0401.9-2034_daily_bin1289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1289 60.4867 -20.5804 573436801 573696001 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 :                                   975.31 sec.
    Max Memory :                                 617 MB
    Average Memory :                             278.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1007 sec.
    Turnaround time :                            996 sec.

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

