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


Performing analysis on: 4FGL_J0238.1-2621_daily_bin1377
RA = 39.5499, Dec = -26.3623
tmin = 596246401, tmax = 596505601
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='571497', job_status='RUN', time_executed='2021-08-16 08:02:47.366493', time_epoch_executed='1629126167.37' WHERE source_name='4FGL J0238.1-2621' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571497/ft1_4FGL_J0238.1-2621_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571497/ft1_4FGL_J0238.1-2621_daily_bin1377.fits outfile=/scratch/kocevski/571497/ft1_filteredMKT_4FGL_J0238.1-2621_daily_bin1377.fits ra=39.5499 dec=-26.3623 rad=12.0 tmin=596246401.0 tmax=596505601.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 7.83
user 4.71
sys 2.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.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/571497/ft1_filteredMKT_4FGL_J0238.1-2621_daily_bin1377.fits evtable="EVENTS" outfile="/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.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 3.20
user 0.32
sys 2.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/571497/ltcube_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.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/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits
.....................!
real 17.30
user 14.09
sys 2.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/571497/ltcube_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.fits outfile=/scratch/kocevski/571497/expmap_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.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/571497/ltcube_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.fits
.....................!
real 199.72
user 187.78
sys 8.63

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 173 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 J0238.1-2621 @ 39.5499 -26.3623

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits scfile=/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits outfile=/scratch/kocevski/571497/cmap_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.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=39.5499 yref=-26.3623 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 3.19
user 0.37
sys 2.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits scfile=/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits outfile=/scratch/kocevski/571497/cmap_HighResolution_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.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=39.5499 yref=-26.3623 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 3.14
user 0.37
sys 2.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571497/Model_4FGL_J0238.1-2621_daily_bin1377.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/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits.....................!
real 80.32
user 74.22
sys 4.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits', '/scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits', expMap='/scratch/kocevski/571497/expmap_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.fits', expCube='/scratch/kocevski/571497/ltcube_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571497/Model_4FGL_J0238.1-2621_daily_bin1377.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.1-2621'

4FGL J0238.1-2621
   Spectrum: PowerLaw
272    Prefactor:  3.368e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.564e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  7.691e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/571497/ft1_filtered_4FGL_J0238.1-2621_daily_bin1377.fits
Spacecraft file(s): /scratch/kocevski/571497/ft2_4FGL_J0238.1-2621_daily_bin1377.fits
Exposure map: /scratch/kocevski/571497/expmap_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.fits
Exposure cube: /scratch/kocevski/571497/ltcube_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571497/Model_4FGL_J0238.1-2621_daily_bin1377.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) = 3536.35449764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7509       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.700       1.0000         .10000E-03   10000.    
     6 'norm      '    .34335E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11955E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.893       1.0000         .10000E-03   10000.    
    10 'norm      '    .51433E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.639       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25538E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20371E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    65.836       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0213       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1539       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3536.342     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2908 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7522        7.2035       -.11483E-06   -.30456E-04
   2  Prefactor     .10000E-03    19.539        .13312E-06** at limit **
   3  Prefactor     .10000E-03    6.4525        .10867E-06** at limit **
   4  Prefactor     .10000E-03    3.4806        .15638E-06** at limit **
   5  Prefactor     20.706        13.284       -.46828E-05   -.98550E-03
   6  norm          .10000E-03    330.41       -.19663E-05** at limit **
   7  Prefactor     .10001E-03    6.3112        .18403E-05** at limit **
   8  Prefactor     .10000E-03    21.877       -.12147E-06** at limit **
   9  Prefactor     65.855        65.487        .36010E-06   -.16417E-03
  10  norm          .50790E-01    1.5500       -.11588E-06   -.70399E-04
  11  Prefactor     .10000E-03    6.5712       -.29479E-08** at limit **
  12  Prefactor     10.674        39.951       -.24037E-06   -.37724E-04
  13  Prefactor     .10016E-03    4.3892        .28004E-05** at limit **
  14  Prefactor     .10000E-03    122.24        .10361E-05** at limit **
  15  Prefactor     65.778        60.667       -.64537E-06   -.13015E-03
  16  norm          1.0209        2.1929        .20479E-06    .85739E-05
  17  Prefactor     .10000E-03    33.181        .12978E-07** at limit **
  18  Prefactor     .10000E-03    16.791       -.21607E-05** at limit **
  19  norm          5.4672        4.1967       -.38439E-07   -.13514E-04
  20  Prefactor     .10000E-03    13.802       -.10178E-06** at limit **
  21  Normalizat    1.1539        .22007        .41810E-05   -.55255E-03
  22  Prefactor     .58934        .22662       -.58116E-05   -.28873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.75216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7064
  norm       = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 65.855
  norm       = 0.0507903
  Prefactor  = 0.0001
  Prefactor  = 10.6739
  Prefactor  = 0.000100163
  Prefactor  = 0.000100002
  Prefactor  = 65.7778
  norm       = 1.0209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.46719
  Prefactor  = 0.0001
  Normalizat = 1.15388
  Prefactor  = 0.589335
 **********
 **   18 **HESSE 
 **********

 FCN=   3536.342     FROM HESSE     STATUS=OK           338 CALLS     3246 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7522        7.2133        .12833E-03   -1.5083    
   2  Prefactor     .10000E-03    19.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4645        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5072        .10833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.706        13.634        .88035E-04   -1.4798    
   6  norm          .10000E-03    331.88        .19677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    12.937        .28046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     65.855        65.133        .49441E-04   -1.4083    
  10  norm          .50790E-01    15.565        .14257E-02   -1.5663    
  11  Prefactor     .10000E-03    6.5715        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.674        39.695        .12284E-03   -1.5054    
  13  Prefactor     .10016E-03    15.872        .21096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    122.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     65.778        61.127        .49463E-04   -1.4084    
  16  norm          1.0209        2.1361        .12093E-03   -1.5506    
  17  Prefactor     .10000E-03    33.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4672        4.1840        .10184E-03   -1.5240    
  20  Prefactor     .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1539        .24918        .20043E-03   -.88040    
  22  Prefactor     .58934        .25827        .28814E-03   -1.0804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37011e-08
Minuit parameter uncertainties:
  1  7.21394
  2  4.34738e-05
  3  1.91017e-06
  4  5.75125e-06
  5  13.636
  6  0.000982481
  7  0.000627255
  8  2.01673e-05
  9  65.2032
  10  1.77696
  11  3.10398e-06
  12  39.7936
  13  0.00322163
  14  0.0010562
  15  61.1857
  16  2.13624
  17  1.28819e-05
  18  0.000127822
  19  4.18418
  20  4.95579e-05
  21  0.249437
  22  0.258787
Done.

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

Extracting fit parameters...

4FGL J0238.1-2621
   Spectrum: PowerLaw
272    Prefactor:  1.067e+01  3.979e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.564e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  7.691e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  5.893e-01  2.588e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.154e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 39.550 -26.362
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571497/likelihoodResults_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.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) = 3536.1257713
delta logL = 0.216010879002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3535.99128455
delta logL = 0.350497627612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.160       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7404       1.0000          .0000       10.000    
     3 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   3535.991     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      251 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.205        44.873        .71778E-04    .34053E-05
   2  Index         1.7404        .73472        .87190E-02   -.41464E-05
   3  Normalizat    1.1736        .23811        .19887E-03    .73174E-05
   4  Prefactor     .56138        .25311        .29435E-03    .26341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2045
  Index      = 1.74045
  Normalizat = 1.17356
  Prefactor  = 0.561375
 **********
 **   18 **HESSE 
 **********

 FCN=   3535.991     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.205        45.436        .28711E-05   -1.4590    
   2  Index         1.7404        .74390        .34876E-03   -.71010    
   3  Normalizat    1.1736        .23831        .79547E-05   -.87424    
   4  Prefactor     .56138        .25333        .11774E-04   -1.0924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88874e-12
Minuit parameter uncertainties:
  1  45.4869
  2  0.748761
  3  0.238531
  4  0.253846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571497': 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) = 3535.99128375
delta logL = 0.350498428818

Extracting fit parameters...

4FGL J0238.1-2621
   Spectrum: PowerLaw
272    Prefactor:  3.120e+01  4.549e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.740e+00  7.488e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  7.691e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  5.614e-01  2.538e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.174e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 39.550 -26.362

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/571497/cmap_HighResolution_596246401_596505601_4FGL_J0238.1-2621_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-08-16 08:13:07.642639', job_id='571497', GAL2='0.56', fit_tolerance='1e-08', EG2='1.17', EG='1.15', time_epoch_completed='1629126787.64', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='3.50e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1377' AND source_name='4FGL J0238.1-2621' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 08:13:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 571497: <4FGL_J0238.1-2621_daily_bin1377> in cluster <slac> Done

Job <4FGL_J0238.1-2621_daily_bin1377> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 08:00:27 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 08:00:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 08:00:47 2021
Terminated at Mon Aug 16 08:13:08 2021
Results reported at Mon Aug 16 08:13:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.1-2621_daily_bin1377 39.5499 -26.3623 596246401 596505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.1-2621 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   643.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            761 sec.

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

