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


Performing analysis on: 4FGL_J0143.1-3622_daily_bin1590
RA = 25.7856, Dec = -36.3674
tmin = 651456001, tmax = 651715201
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='220181', job_status='RUN', time_executed='2021-08-27 00:04:27.386321', time_epoch_executed='1630047867.39' WHERE source_name='4FGL J0143.1-3622' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220181/ft1_4FGL_J0143.1-3622_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220181/ft1_4FGL_J0143.1-3622_daily_bin1590.fits outfile=/scratch/kocevski/220181/ft1_filteredMKT_4FGL_J0143.1-3622_daily_bin1590.fits ra=25.7856 dec=-36.3674 rad=12.0 tmin=651456001.0 tmax=651715201.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 11.25
user 3.26
sys 7.95

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.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/220181/ft1_filteredMKT_4FGL_J0143.1-3622_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.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 8.26
user 0.33
sys 7.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/220181/ltcube_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.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/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits
.....................!
real 20.91
user 11.88
sys 8.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/220181/ltcube_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.fits outfile=/scratch/kocevski/220181/expmap_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.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/220181/ltcube_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.fits
.....................!
real 202.22
user 186.55
sys 15.23

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 178 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 J0143.1-3622 @ 25.7856 -36.3674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits scfile=/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits outfile=/scratch/kocevski/220181/cmap_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.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=25.7856 yref=-36.3674 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 8.18
user 0.38
sys 7.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits scfile=/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits outfile=/scratch/kocevski/220181/cmap_HighResolution_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.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=25.7856 yref=-36.3674 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 8.17
user 0.38
sys 7.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/220181/Model_4FGL_J0143.1-3622_daily_bin1590.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/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits.....................!
real 108.61
user 96.57
sys 11.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits', '/scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits', expMap='/scratch/kocevski/220181/expmap_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.fits', expCube='/scratch/kocevski/220181/ltcube_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/220181/Model_4FGL_J0143.1-3622_daily_bin1590.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0143.1-3622'

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  1.107e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.476e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/220181/ft1_filtered_4FGL_J0143.1-3622_daily_bin1590.fits
Spacecraft file(s): /scratch/kocevski/220181/ft2_4FGL_J0143.1-3622_daily_bin1590.fits
Exposure map: /scratch/kocevski/220181/expmap_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.fits
Exposure cube: /scratch/kocevski/220181/ltcube_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/220181/Model_4FGL_J0143.1-3622_daily_bin1590.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) = 4817.53538517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .35696E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31008       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1853       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11215E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.738       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8279       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.342       1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11306E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.652       1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.167       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .58952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4817.530     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     3108 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3376        .30757E-07** at limit **
   2  norm          .10000E-03    31.602        .35123E-05** at limit **
   3  norm          2.1014        2.4227        .52458E-07   -.17141E-03
   4  Prefactor     15.272        19.469       -.12894E-05   -.17945E-04
   5  Prefactor     .31867        2.0092       -.23108E-06   -.32523E-03
   6  norm          .10000E-03    .71701       -.56611E-08** at limit **
   7  Prefactor     7.1855        8.7457        .24499E-05   -.12553E-04
   8  Prefactor     .10000E-03    8.3387       -.26361E-06** at limit **
   9  norm          .10000E-03    1.0297        .19323E-07** at limit **
  10  Prefactor     23.735        6.3570        .25159E-05   -.73636E-04
  11  norm          5.8205        3.0832        .97762E-07   -.14206E-03
  12  Prefactor     19.345        10.169        .66318E-05   -.68658E-04
  13  norm          .10000E-03    1.3550       -.96214E-07** at limit **
  14  Prefactor     16.175        15.582        .22951E-05   -.72775E-04
  15  Prefactor     .10000E-03    10.561        .23502E-06** at limit **
  16  Prefactor     45.682        34.522       -.26937E-05   -.78269E-03
  17  Prefactor     .63257        58.091        .50065E-05   -.13263E-03
  18  Prefactor     .10000E-03    10.775       -.41409E-06** at limit **
  19  norm          1.5131        1.8874        .15008E-06   -.42615E-03
  20  Prefactor     12.652        13.075        .55035E-05    .10079E-04
  21  Prefactor     77.183        46.616       -.12845E-04   -.21682E-04
  22  Normalizat    1.0022        .16650       -.20979E-05   -.89017E-04
  23  Prefactor     .58930        .18323       -.51425E-06   -.22546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.10143
  Prefactor  = 15.272
  Prefactor  = 0.318673
  norm       = 0.0001
  Prefactor  = 7.18548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.7352
  norm       = 5.82048
  Prefactor  = 19.3447
  norm       = 0.0001
  Prefactor  = 16.1754
  Prefactor  = 0.0001
  Prefactor  = 45.6821
  Prefactor  = 0.632566
  Prefactor  = 0.0001
  norm       = 1.51309
  Prefactor  = 12.6518
  Prefactor  = 77.1826
  Normalizat = 1.00218
  Prefactor  = 0.589302
 **********
 **   18 **HESSE 
 **********

 FCN=   4817.530     FROM HESSE     STATUS=OK           376 CALLS     3484 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3422        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    31.789        .21315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1014        2.4111        .11264E-03   -1.5418    
   4  Prefactor     15.272        19.476        .10251E-03   -1.4926    
   5  Prefactor     .31867        7.0158        .18650E-02   -1.5595    
   6  norm          .10000E-03    .72086        .57388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1855        8.7379        .14964E-03   -1.5172    
   8  Prefactor     .10000E-03    8.3431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6922        .13692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.735        6.3764        .82215E-04   -1.4733    
  11  norm          5.8205        3.0839        .84916E-04   -1.5225    
  12  Prefactor     19.345        10.155        .45535E-03   -1.4828    
  13  norm          .10000E-03    1.3577        .78902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.175        15.592        .99648E-04   -1.4903    
  15  Prefactor     .10000E-03    10.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.682        92.435        .59242E-04   -1.4355    
  17  Prefactor     .63257        6939.3        .67767E-02   -1.5549    
  18  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5131        1.8630        .10175E-03   -1.5462    
  20  Prefactor     12.652        13.077        .11261E-03   -1.4996    
  21  Prefactor     77.183        46.542        .22856E-03   -1.3949    
  22  Normalizat    1.0022        .21002        .20308E-03   -.92958    
  23  Prefactor     .58930        .22974        .29269E-03   -1.0804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10071e-09
Minuit parameter uncertainties:
  1  3.73084e-06
  2  5.24058e-05
  3  2.41119
  4  19.4841
  5  2.99042
  6  3.03891e-07
  7  8.73944
  8  2.43301e-05
  9  1.53046e-06
  10  6.37663
  11  3.084
  12  10.156
  13  1.02173e-05
  14  15.5963
  15  4.91242e-05
  16  92.727
  17  108.206
  18  2.76539e-06
  19  1.86304
  20  13.0803
  21  46.5641
  22  0.210198
  23  0.230104
Done.

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

Extracting fit parameters...

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  2.374e+01  6.377e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.476e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  5.893e-01  2.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.002e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.62
Ra Dec: 25.786 -36.367
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.05e-07 +/- 5.50e-08
Energy Flux (Fixed Index): 6.11e-05 +/- 1.64e-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) = 4817.52538928
delta logL = 0.00416281121852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4817.52112526
delta logL = 0.00842683188603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.032       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5157       1.0000          .0000       10.000    
     3 'Normalizat'    .99604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+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=   4817.521     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.032        8.4760        .83464E-04   -.33977E-02
   2  Index         2.5156        .31758        .32467E-02   -.92540E-03
   3  Normalizat    .99605        .19699        .20359E-03   -.49755E-03
   4  Prefactor     .59445        .21745        .29153E-03   -.26974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0322
  Index      = 2.51563
  Normalizat = 0.99605
  Prefactor  = 0.594454
 **********
 **   18 **HESSE 
 **********

 FCN=   4817.521     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.032        8.2752        .16693E-04   -1.4748    
   2  Index         2.5156        .30989        .12987E-03   -.51999    
   3  Normalizat    .99605        .19700        .40718E-04   -.93163    
   4  Prefactor     .59445        .21748        .11661E-04   -1.0782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37004e-09
Minuit parameter uncertainties:
  1  8.2756
  2  0.310157
  3  0.197144
  4  0.217786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220181': 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) = 4817.52112525
delta logL = 0.00842684219515

Extracting fit parameters...

4FGL J0143.1-3622
   Spectrum: PowerLaw
281    Prefactor:  2.303e+01  8.276e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.516e+00  3.102e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  5.945e-01  2.178e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.960e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.25
Ra Dec: 25.786 -36.367
Photon Index (Free Index): 2.52 +/- 0.31
Photon Flux (Free Index): 2.09e-07 +/- 6.50e-08
Energy Flux (Free Index): 5.97e-05 +/- 1.90e-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/220181/cmap_HighResolution_651456001_651715201_4FGL_J0143.1-3622_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.05e-07', energy_flux2='5.97e-05', photon_flux_error='5.50e-08', dlogl='8.43e-03', energy_flux='6.11e-05', photon_flux2='2.09e-07', job_status='DONE', time_completed='2021-08-27 00:16:37.121411', photon_index_error2='0.31', photon_index2='2.52', ts='34.62', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.00', time_epoch_completed='1630048597.12', return_code='0', job_id='220181', GAL2='0.59', EG2='1.00', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='6.50e-08', ts2='34.25', photon_index='2.48' WHERE bin_id='1590' AND source_name='4FGL J0143.1-3622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 00:16:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 220181: <4FGL_J0143.1-3622_daily_bin1590> in cluster <slac> Done

Job <4FGL_J0143.1-3622_daily_bin1590> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 00:00:35 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 00:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 00:00:36 2021
Terminated at Fri Aug 27 00:16:38 2021
Results reported at Fri Aug 27 00:16:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0143.1-3622_daily_bin1590 25.7856 -36.3674 651456001 651715201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0143.1-3622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            963 sec.

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

