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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1604
RA = 23.5887, Dec = -38.7085
tmin = 655084801, tmax = 655344001
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='4189', job_status='RUN', time_executed='2021-10-08 00:05:12.574693', time_epoch_executed='1633676712.57' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4189/ft1_4FGL_J0134.3-3842_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4189/ft1_4FGL_J0134.3-3842_daily_bin1604.fits outfile=/scratch/kocevski/4189/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1604.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.91
user 2.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.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/4189/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4189/ltcube_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.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/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits
.....................!
real 14.95
user 14.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4189/ltcube_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.fits outfile=/scratch/kocevski/4189/expmap_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.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/4189/ltcube_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.fits
.....................!
real 191.61
user 185.16
sys 5.84

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/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.fits scfile=/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits outfile=/scratch/kocevski/4189/cmap_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.fits scfile=/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits outfile=/scratch/kocevski/4189/cmap_HighResolution_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.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.56
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.fits', '/scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits', expMap='/scratch/kocevski/4189/expmap_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.fits', expCube='/scratch/kocevski/4189/ltcube_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4189/Model_4FGL_J0134.3-3842_daily_bin1604.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/4189/ft1_filtered_4FGL_J0134.3-3842_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/4189/ft2_4FGL_J0134.3-3842_daily_bin1604.fits
Exposure map: /scratch/kocevski/4189/expmap_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.fits
Exposure cube: /scratch/kocevski/4189/ltcube_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4189/Model_4FGL_J0134.3-3842_daily_bin1604.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) = 5665.41856044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.782       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    52.389       1.0000         .10000E-03   10000.    
     4 'norm      '    .49441E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79212       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7354       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8163       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8649       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2141       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71502       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=   5665.417     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1884 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.785        31.641        .96534E-07   -.95649E-05
   2  Prefactor     .10000E-03    4.2868       -.69769E-06** at limit **
   3  norm          52.394        35.201        .23480E-06   -.23662E-04
   4  norm          .10000E-03    23.765       -.66971E-05** at limit **
   5  Prefactor     .10000E-03    5.5084       -.19533E-06** at limit **
   6  Prefactor     .10000E-03    2.1395       -.47034E-06** at limit **
   7  Prefactor     7.1167        17.480       -.37028E-06   -.52814E-04
   8  Prefactor     42.253        36.114        .23076E-06    .14481E-03
   9  Prefactor     .79415        7.6776       -.40600E-05    .43004E-03
  10  norm          2.7355        4.0128       -.51337E-06   -.48242E-03
  11  Prefactor     3.8182        11.049       -.10334E-05   -.34424E-03
  12  norm          3.5882        6.7204       -.52639E-06   -.54154E-03
  13  Prefactor     .10000E-03    4.8718       -.28067E-06** at limit **
  14  Prefactor     .10000E-03    12.321       -.76104E-06** at limit **
  15  Prefactor     .10000E-03    4.4638       -.27628E-06** at limit **
  16  Prefactor     .10000E-03    5.9034       -.22674E-06** at limit **
  17  norm          2.8651        2.3515       -.11417E-06   -.17163E-03
  18  Normalizat    1.2139        .18399       -.22746E-05    .17777E-03
  19  Prefactor     .71508        .19185        .49937E-05    .26501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7852
  Prefactor  = 0.0001
  norm       = 52.3938
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11665
  Prefactor  = 42.2531
  Prefactor  = 0.794152
  norm       = 2.73549
  Prefactor  = 3.81819
  norm       = 3.58817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86508
  Normalizat = 1.21394
  Prefactor  = 0.715077
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.417     FROM HESSE     STATUS=OK           270 CALLS     2154 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.785        31.642        .59911E-04   -1.4369    
   2  Prefactor     .10000E-03    4.3371        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          52.394        35.313        .55412E-04   -1.4259    
   4  norm          .10000E-03    22.987        .17792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5144        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2550        .21579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1167        17.502        .15039E-03   -1.5174    
   8  Prefactor     42.253        36.140        .61656E-04   -1.4407    
   9  Prefactor     .79415        8.9785        .27904E-02   -1.5530    
  10  norm          2.7355        4.0327        .17779E-03   -1.5377    
  11  Prefactor     3.8182        10.659        .20661E-03   -1.5317    
  12  norm          3.5882        6.4593        .19847E-03   -1.5329    
  13  Prefactor     .10000E-03    4.8881        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4756        .15539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9111        .17866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8651        2.3501        .10112E-03   -1.5369    
  18  Normalizat    1.2139        .20969        .20730E-03   -.86173    
  19  Prefactor     .71508        .21939        .29165E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67603e-09
Minuit parameter uncertainties:
  1  31.6543
  2  5.22575e-05
  3  35.3267
  4  0.000279831
  5  1.15678e-05
  6  2.30404e-05
  7  17.5141
  8  36.1585
  9  5.34118
  10  4.03309
  11  10.6643
  12  6.46055
  13  3.12193e-05
  14  0.000123835
  15  3.22133e-05
  16  8.28236e-06
  17  2.35017
  18  0.209833
  19  0.219656
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  4.225e+01  3.616e+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:  7.151e-01  2.197e-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:  1.214e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 23.589 -38.709
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/4189/likelihoodResults_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.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) = 5665.02511858
delta logL = 0.39213979844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5665.00115764
delta logL = 0.41610073778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.919       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0535       1.0000          .0000       10.000    
     3 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73649       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5665.001     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.934        33.205        .80246E-04   -.31919E-03
   2  Index         3.0537        .76680        .50251E-02   -.13997E-03
   3  Normalizat    1.1850        .20243        .20938E-03    .27062E-02
   4  Prefactor     .73700        .22037        .28762E-03    .18349E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.934
  Index      = 3.05367
  Normalizat = 1.18498
  Prefactor  = 0.737002
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.001     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.934        29.169        .32099E-05   -1.4709    
   2  Index         3.0537        .67356        .20101E-03   -.39983    
   3  Normalizat    1.1850        .20264        .41877E-04   -.87068    
   4  Prefactor     .73700        .22042        .57524E-04   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30076e-09
Minuit parameter uncertainties:
  1  29.1854
  2  0.675986
  3  0.202774
  4  0.220679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4189': 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) = 5665.00115184
delta logL = 0.416106531487

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  2.493e+01  2.919e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  3.054e+00  6.760e-01  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:  7.370e-01  2.207e-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:  1.185e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.95
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 3.05 +/- 0.68
Photon Flux (Free Index): 7.85e-08 +/- 5.41e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.06e-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/4189/cmap_HighResolution_655084801_655344001_4FGL_J0134.3-3842_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='1.53e-05', photon_flux_error='4.74e-08', dlogl='4.16e-01', energy_flux='1.63e-05', photon_flux2='7.85e-08', job_status='DONE', time_completed='2021-10-08 00:15:35.608933', photon_index_error2='0.68', photon_index2='3.05', ts='2.08', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.06e-05', EG='1.21', time_epoch_completed='1633677335.61', return_code='0', job_id='4189', GAL2='0.74', EG2='1.18', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='5.41e-08', ts2='2.95', photon_index='2.49' WHERE bin_id='1604' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 4189: <4FGL_J0134.3-3842_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:35 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:01:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:01:47 2021
Terminated at Fri Oct  8 00:15:36 2021
Results reported at Fri Oct  8 00:15:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1604 23.5887 -38.7085 655084801 655344001 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            901 sec.

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

