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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1601
RA = 23.5887, Dec = -38.7085
tmin = 654307201, tmax = 654566401
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='538548', job_status='RUN', time_executed='2021-09-29 00:00:55.517031', time_epoch_executed='1632898855.52' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538548

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538548/ft1_4FGL_J0134.3-3842_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538548/ft1_4FGL_J0134.3-3842_daily_bin1601.fits outfile=/scratch/kocevski/538548/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1601.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.21
user 3.99
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.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/538548/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.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 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/538548/ltcube_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.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/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits
.....................!
real 11.75
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/538548/ltcube_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.fits outfile=/scratch/kocevski/538548/expmap_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.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/538548/ltcube_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.fits
.....................!
real 190.31
user 185.02
sys 4.94

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 185 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 J0134.3-3842 @ 23.5887 -38.7085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits scfile=/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits outfile=/scratch/kocevski/538548/cmap_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.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=23.5887 yref=-38.7085 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 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits scfile=/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits outfile=/scratch/kocevski/538548/cmap_HighResolution_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.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=23.5887 yref=-38.7085 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 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538548/Model_4FGL_J0134.3-3842_daily_bin1601.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/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits.....................!
real 75.75
user 74.28
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits', '/scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits', expMap='/scratch/kocevski/538548/expmap_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.fits', expCube='/scratch/kocevski/538548/ltcube_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538548/Model_4FGL_J0134.3-3842_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0134.3-3842'

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  3.272e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538548/ft1_filtered_4FGL_J0134.3-3842_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/538548/ft2_4FGL_J0134.3-3842_daily_bin1601.fits
Exposure map: /scratch/kocevski/538548/expmap_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.fits
Exposure cube: /scratch/kocevski/538548/ltcube_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538548/Model_4FGL_J0134.3-3842_daily_bin1601.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) = 3924.98352512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.0115       1.0000         .10000E-03   10000.    
     3 'norm      '    41.087       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5821       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.254       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.889       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7984       1.0000         .10000E-03   10000.    
    12 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.548       1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .41139       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.5212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3924.977     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1905 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.302        .13964E-04** at limit **
   2  Prefactor     9.0133        10.350       -.18962E-06   -.87845E-04
   3  norm          41.089        38.969        .25656E-05   -.28443E-04
   4  norm          2.5822        2.5591        .92297E-07    .14200E-03
   5  Prefactor     14.468        26.632        .32650E-05   -.10326E-04
   6  Prefactor     .10000E-03    1.1660       -.50071E-07** at limit **
   7  Prefactor     .10000E-03    32.574       -.27305E-05** at limit **
   8  Prefactor     25.261        46.649        .11038E-04    .13886E-05
   9  Prefactor     22.891        8.1429       -.11251E-06   -.60962E-05
  10  norm          2.0460        3.4745       -.24612E-06   -.35245E-03
  11  Prefactor     3.7985        6.2126        .53353E-06   -.10057E-03
  12  norm          .10000E-03    4.4787       -.55167E-07** at limit **
  13  Prefactor     8.1013        18.650        .12464E-05   -.26208E-04
  14  Prefactor     65.728        43.670        .85622E-06    .42666E-04
  15  Prefactor     .10000E-03    14.700       -.13009E-04** at limit **
  16  Prefactor     28.547        25.404        .30302E-06    .11892E-03
  17  norm          .10000E-03    2.2142        .15554E-06** at limit **
  18  Normalizat    .41128        .23045       -.44460E-05   -.22913E-04
  19  Prefactor     1.5212        .25559        .53077E-06   -.50049E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.01333
  norm       = 41.0893
  norm       = 2.58225
  Prefactor  = 14.4684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2608
  Prefactor  = 22.8905
  norm       = 2.04596
  Prefactor  = 3.7985
  norm       = 0.0001
  Prefactor  = 8.10126
  Prefactor  = 65.7278
  Prefactor  = 0.0001
  Prefactor  = 28.5475
  norm       = 0.0001
  Normalizat = 0.411279
  Prefactor  = 1.5212
 **********
 **   18 **HESSE 
 **********

 FCN=   3924.977     FROM HESSE     STATUS=OK           272 CALLS     2177 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0133        10.341        .13351E-03   -1.5107    
   3  norm          41.089        38.931        .62536E-04   -1.4425    
   4  norm          2.5822        2.5681        .97138E-04   -1.5387    
   5  Prefactor     14.468        26.607        .10531E-03   -1.4947    
   6  Prefactor     .10000E-03    1.1683        .66061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.261        46.587        .79713E-04   -1.4702    
   9  Prefactor     22.891        8.1336        .83723E-04   -1.4751    
  10  norm          2.0460        3.4576        .14721E-03   -1.5422    
  11  Prefactor     3.7985        6.1890        .19169E-03   -1.5318    
  12  norm          .10000E-03    4.4986        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1013        18.607        .14087E-03   -1.5139    
  14  Prefactor     65.728        43.519        .49503E-04   -1.4085    
  15  Prefactor     .10000E-03    14.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.547        25.413        .74983E-04   -1.4639    
  17  norm          .10000E-03    5.3722        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .41128        .25826        .34114E-03   -1.1672    
  19  Prefactor     1.5212        .29236        .22224E-03   -.76948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49717e-10
Minuit parameter uncertainties:
  1  9.77293e-06
  2  10.343
  3  38.955
  4  2.56826
  5  26.629
  6  8.76528e-07
  7  8.00308e-05
  8  46.6546
  9  8.13401
  10  3.45793
  11  6.19009
  12  4.94834e-06
  13  18.6206
  14  43.5403
  15  3.05268e-05
  16  25.4222
  17  1.62368e-05
  18  0.259011
  19  0.292679
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  2.526e+01  4.665e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.521e+00  2.927e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  4.113e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 23.589 -38.709
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538548/likelihoodResults_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.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) = 3924.6361653
delta logL = 0.340476114083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3924.63330665
delta logL = 0.343334763753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26769       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3876       1.0000          .0000       10.000    
     3 'Normalizat'    .36381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5735       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3924.633     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      299 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27073        5.6971        .78225E-02    .45107E-03
   2  Index         5.3822        3.2009        .15270        .51984E-04
   3  Normalizat    .36380        .42714E-01    .81710E-01   -.29849E-04
   4  Prefactor     1.5734        .51004E-01    .49591E-01   -.12602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.270726
  Index      = 5.38219
  Normalizat = 0.363804
  Prefactor  = 1.57336
 **********
 **   18 **HESSE 
 **********

 FCN=   3924.633     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      332 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27073        16.737        .36208E-03   -1.5604    
   2  Index         5.3822        7.6886        .52878E-02    .76513E-01
   3  Normalizat    .36380        .17737        .36189E-03   -1.1922    
   4  Prefactor     1.5734        .20817        .21921E-03   -.75505    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30093e-11
Minuit parameter uncertainties:
  1  4.25777
  2  7.98819
  3  0.17764
  4  0.208285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538548': 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): 102
logL (Free Index) = 3924.63330501
delta logL = 0.343336407105

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  2.707e-01  4.258e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  5.382e+00  7.988e+00  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.573e+00  2.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  3.638e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 5.38 +/- 7.99
Photon Flux (Free Index): 5.57e-08 +/- 6.70e-08
Energy Flux (Free Index): 7.20e-06 +/- 1.11e-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/538548/cmap_HighResolution_654307201_654566401_4FGL_J0134.3-3842_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', energy_flux2='7.20e-06', dlogl='3.43e-01', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-29 00:09:40.349922', photon_index_error2='7.99', photon_index2='5.38', ts='0.38', fit_tolerance='1e-08', GAL='1.52', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.11e-05', EG='0.41', time_epoch_completed='1632899380.35', return_code='0', job_id='538548', GAL2='1.57', EG2='0.36', return_code2='102', photon_flux_error2='6.70e-08', ts2='1.13', photon_index='2.49' WHERE bin_id='1601' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 538548: <4FGL_J0134.3-3842_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:00:29 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:00:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:00:30 2021
Terminated at Wed Sep 29 00:09:41 2021
Results reported at Wed Sep 29 00:09:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1601 23.5887 -38.7085 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0134.3-3842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   527.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            552 sec.

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

