/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7386
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1572
RA = 23.5887, Dec = -38.7085
tmin = 646790401, tmax = 647049601
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='661050', job_status='RUN', time_executed='2021-08-14 05:40:49.894226', time_epoch_executed='1628944849.89' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661050/ft1_4FGL_J0134.3-3842_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661050/ft1_4FGL_J0134.3-3842_daily_bin1572.fits outfile=/scratch/kocevski/661050/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1572.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=646790401.0 tmax=647049601.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.57
user 3.37
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661050/ft1_filtered_4FGL_J0134.3-3842_daily_bin1572.fits" evtable="EVENTS" scfile=/scratch/kocevski/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits sctable="SC_DATA" outfile=/scratch/kocevski/661050/ltcube_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.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/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits
.....................!
real 12.69
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661050/ft1_filtered_4FGL_J0134.3-3842_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/661050/ltcube_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.fits outfile=/scratch/kocevski/661050/expmap_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.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/661050/ltcube_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.fits
.....................!
real 191.88
user 185.42
sys 5.59

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/661050/ft1_filtered_4FGL_J0134.3-3842_daily_bin1572.fits scfile=/scratch/kocevski/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits outfile=/scratch/kocevski/661050/cmap_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661050/ft1_filtered_4FGL_J0134.3-3842_daily_bin1572.fits scfile=/scratch/kocevski/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits outfile=/scratch/kocevski/661050/cmap_HighResolution_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.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.71
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/661050/ft1_filtered_4FGL_J0134.3-3842_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/661050/ft2_4FGL_J0134.3-3842_daily_bin1572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/661050/Model_4FGL_J0134.3-3842_daily_bin1572.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/661050/ft1_filtered_4FGL_J0134.3-3842_daily_bin1572.fits.....................!
real 96.40
user 94.62
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.724       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11933E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .26921E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.960       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0642       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.059       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.974       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .45988       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96203       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72446       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=   5036.238     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2210 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.708        30.848       -.27625E-05    .92144E-04
   2  Prefactor     .10004E-03    9.2575       -.16028E-06** at limit **
   3  norm          .10000E-03    81.067        .84268E-05** at limit **
   4  norm          .10000E-03    1.2531       -.79127E-08** at limit **
   5  Prefactor     .10000E-03    6.4698       -.51107E-08** at limit **
   6  Prefactor     .63863        2.4595       -.93020E-06   -.41329E-03
   7  Prefactor     23.444        24.639       -.11130E-05    .37985E-04
   8  Prefactor     4.8459        34.939        .75812E-07   -.14132E-04
   9  Prefactor     15.963        5.5518       -.19874E-06    .12790E-03
  10  norm          4.7311        3.5084       -.13145E-06   -.13116E-03
  11  Prefactor     6.0640        4.3516       -.19154E-07    .16850E-03
  12  norm          .10000E-03    1.4054        .30709E-07** at limit **
  13  Prefactor     13.067        12.033        .19319E-05   -.24675E-03
  14  Prefactor     19.062        25.993       -.15484E-05    .57092E-04
  15  Prefactor     18.966        14.837       -.31075E-05    .33838E-03
  16  Prefactor     .10000E-03    14.854        .43113E-06** at limit **
  17  norm          .45732        1.8263       -.13479E-05   -.12720E-02
  18  Normalizat    .96195        .17111        .12980E-05    .82944E-04
  19  Prefactor     .72456        .17936       -.33141E-07    .12175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7083
  Prefactor  = 0.00010004
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.638634
  Prefactor  = 23.4443
  Prefactor  = 4.84594
  Prefactor  = 15.9626
  norm       = 4.73106
  Prefactor  = 6.06397
  norm       = 0.0001
  Prefactor  = 13.067
  Prefactor  = 19.0624
  Prefactor  = 18.9663
  Prefactor  = 0.0001
  norm       = 0.457317
  Normalizat = 0.961945
  Prefactor  = 0.724562
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.238     FROM HESSE     STATUS=OK           282 CALLS     2492 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.708        30.743        .72285E-04   -1.4599    
   2  Prefactor     .10004E-03    12.438        .57326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    80.804        .21435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2717        .77560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4747        .17630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .63863        3.9848        .20673E-02   -1.5548    
   7  Prefactor     23.444        24.768        .82731E-04   -1.4739    
   8  Prefactor     4.8459        34.757        .18266E-03   -1.5268    
   9  Prefactor     15.963        5.5493        .89834E-04   -1.4909    
  10  norm          4.7311        3.5174        .11008E-03   -1.5273    
  11  Prefactor     6.0640        4.3521        .12133E-03   -1.5215    
  12  norm          .10000E-03    1.4062        .82073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.067        11.816        .11081E-03   -1.4985    
  14  Prefactor     19.062        26.160        .91743E-04   -1.4834    
  15  Prefactor     18.966        14.454        .91949E-04   -1.4837    
  16  Prefactor     .10000E-03    14.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .45732        2.3442        .20345E-03   -1.5573    
  18  Normalizat    .96195        .20577        .20573E-03   -.94316    
  19  Prefactor     .72456        .21272        .26523E-03   -1.0257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06305e-09
Minuit parameter uncertainties:
  1  30.7588
  2  0.00140446
  3  0.00103495
  4  7.84177e-07
  5  1.37022e-06
  6  3.19059
  7  24.7786
  8  25.9773
  9  5.5495
  10  3.51752
  11  4.35231
  12  3.50279e-06
  13  11.8182
  14  26.1754
  15  14.4571
  16  0.000152853
  17  2.07068
  18  0.20594
  19  0.212958
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  4.846e+00  2.598e+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.246e-01  2.130e-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:  9.619e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 23.589 -38.709
Photon Flux Upper Limit: 8.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/661050/likelihoodResults_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.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) = 5035.58553856
delta logL = 0.652536070115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5035.5067495
delta logL = 0.731325129878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54305       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0011       1.0000          .0000       10.000    
     3 'Normalizat'    .90139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77013       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=   5035.507     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54305        7.5400        .10252E-01    .93936E-03
   2  Index         5.0024        2.7884        .14611        .10350E-03
   3  Normalizat    .90143        .34266E-01    .44919E-01    .53459E-05
   4  Prefactor     .77012        .39089E-01    .43327E-01    .12877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.543049
  Index      = 5.00238
  Normalizat = 0.901426
  Prefactor  = 0.770122
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.507     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      292 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54305        22.304        .46857E-03   -1.5561    
   2  Index         5.0024        7.4418        .50463E-02    .47593E-03
   3  Normalizat    .90143        .14228        .21138E-03   -.96410    
   4  Prefactor     .77012        .15985        .25790E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.42403e-08
Minuit parameter uncertainties:
  1  6.9626
  2  6.76462
  3  0.142336
  4  0.159944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661050': 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) = 5035.5067452
delta logL = 0.73132942185

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  5.430e-01  6.963e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  5.002e+00  6.765e+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:  7.701e-01  1.599e-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:  9.014e-01  1.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 5.00 +/- 6.76
Photon Flux (Free Index): 5.47e-08 +/- 4.82e-08
Energy Flux (Free Index): 7.27e-06 +/- 8.17e-06

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/661050/cmap_HighResolution_646790401_647049601_4FGL_J0134.3-3842_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', comment='SUCCESS', energy_flux2='7.27e-06', dlogl='7.31e-01', photon_flux2='5.47e-08', job_status='DONE', time_completed='2021-08-14 05:51:14.493388', photon_index_error2='6.76', photon_index2='5.00', ts='0.04', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='8.61e-08', energy_flux_error2='8.17e-06', EG='0.96', time_epoch_completed='1628945474.49', return_code='0', job_id='661050', GAL2='0.77', EG2='0.90', return_code2='102', photon_flux_error2='4.82e-08', ts2='1.59', photon_index='2.49' WHERE bin_id='1572' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 661050: <4FGL_J0134.3-3842_daily_bin1572> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1572> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 05:36:06 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 05:38:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 05:38:18 2021
Terminated at Sat Aug 14 05:51:15 2021
Results reported at Sat Aug 14 05:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1572 23.5887 -38.7085 646790401 647049601 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 :                                   617.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            909 sec.

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

