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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1070
RA = 23.5887, Dec = -38.7085
tmin = 516672001, tmax = 516931201
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='657596', job_status='RUN', time_executed='2021-08-14 05:28:12.629690', time_epoch_executed='1628944092.63' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657596/ft1_4FGL_J0134.3-3842_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657596/ft2_4FGL_J0134.3-3842_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657596/ft1_4FGL_J0134.3-3842_daily_bin1070.fits outfile=/scratch/kocevski/657596/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1070.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=516672001.0 tmax=516931201.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 3.89
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657596/ft1_filtered_4FGL_J0134.3-3842_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/657596/ft2_4FGL_J0134.3-3842_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/657596/ltcube_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.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/657596/ft2_4FGL_J0134.3-3842_daily_bin1070.fits
.....................!
real 11.90
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657596/ft1_filtered_4FGL_J0134.3-3842_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/657596/ft2_4FGL_J0134.3-3842_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/657596/ltcube_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.fits outfile=/scratch/kocevski/657596/expmap_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.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/657596/ltcube_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.fits
.....................!
real 194.59
user 185.12
sys 4.56

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/657596/ft1_filtered_4FGL_J0134.3-3842_daily_bin1070.fits scfile=/scratch/kocevski/657596/ft2_4FGL_J0134.3-3842_daily_bin1070.fits outfile=/scratch/kocevski/657596/cmap_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.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 1.77
user 0.38
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657596/ft1_filtered_4FGL_J0134.3-3842_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/657596/ft2_4FGL_J0134.3-3842_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657596/Model_4FGL_J0134.3-3842_daily_bin1070.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/657596/ft1_filtered_4FGL_J0134.3-3842_daily_bin1070.fits.....................!
real 95.46
user 91.17
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6621       1.0000         .10000E-03   10000.    
     3 'norm      '    58.310       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2066       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2522       1.0000         .10000E-03   10000.    
    10 'norm      '    6.6102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3501       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90464       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0059       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=   4956.815     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1852 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.571        .33036E-05** at limit **
   2  Prefactor     3.6617        4.0139        .81585E-06   -.14152E-02
   3  norm          58.305        33.725       -.38455E-05   -.11876E-03
   4  norm          3.6324        2.9183        .49909E-06    .14150E-03
   5  Prefactor     .10000E-03    4.5658        .62384E-07** at limit **
   6  Prefactor     1.2067        2.4065       -.44221E-07   -.11798E-03
   7  Prefactor     14.579        24.169       -.35474E-05   -.47802E-04
   8  Prefactor     .10000E-03    13.024       -.23602E-05** at limit **
   9  Prefactor     4.2517        3.5712       -.97062E-06   -.18500E-03
  10  norm          6.6100        4.2605        .16612E-07    .14922E-04
  11  Prefactor     2.3497        5.2521        .12505E-07   -.85145E-04
  12  norm          .10000E-03    1.4327        .13545E-07** at limit **
  13  Prefactor     42.202        16.798       -.45230E-06   -.16522E-04
  14  Prefactor     .10000E-03    7.6462        .26002E-06** at limit **
  15  Prefactor     .10000E-03    8.6632       -.32859E-06** at limit **
  16  Prefactor     .10000E-03    8.5279       -.52826E-06** at limit **
  17  norm          .10000E-03    1.4104       -.17296E-07** at limit **
  18  Normalizat    .90475        .17950        .15835E-05   -.37255E-04
  19  Prefactor     1.0057        .20361       -.36497E-06    .71494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.6617
  norm       = 58.305
  norm       = 3.63245
  Prefactor  = 0.0001
  Prefactor  = 1.20669
  Prefactor  = 14.5795
  Prefactor  = 0.0001
  Prefactor  = 4.25172
  norm       = 6.61002
  Prefactor  = 2.3497
  norm       = 0.0001
  Prefactor  = 42.2025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.904745
  Prefactor  = 1.00575
 **********
 **   18 **HESSE 
 **********

 FCN=   4956.815     FROM HESSE     STATUS=OK           268 CALLS     2120 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6617        7.9789        .10554E-02   -1.5325    
   3  norm          58.305        33.879        .52538E-04   -1.4179    
   4  norm          3.6324        2.9164        .10467E-03   -1.5327    
   5  Prefactor     .10000E-03    4.5663        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2067        2.3572        .14826E-03   -1.5488    
   7  Prefactor     14.579        24.353        .10489E-03   -1.4944    
   8  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2517        3.5788        .11729E-03   -1.5296    
  10  norm          6.6100        4.2654        .11241E-03   -1.5194    
  11  Prefactor     2.3497        5.2411        .23378E-03   -1.5401    
  12  norm          .10000E-03    1.4363        .82280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.202        16.821        .61707E-04   -1.4408    
  14  Prefactor     .10000E-03    7.6501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4462        .16326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .90475        .21346        .22624E-03   -.96294    
  19  Prefactor     1.0057        .24111        .25376E-03   -.92538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55339e-09
Minuit parameter uncertainties:
  1  8.08066e-05
  2  7.9812
  3  33.8898
  4  2.91653
  5  1.83361e-06
  6  2.35734
  7  24.3693
  8  4.31748e-05
  9  3.579
  10  4.26565
  11  5.24208
  12  3.45153e-07
  13  16.8233
  14  2.65496e-06
  15  1.37945e-05
  16  1.31906e-05
  17  3.09849e-06
  18  0.213658
  19  0.241367
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.317e-05  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.006e+00  2.414e-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.047e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/657596/likelihoodResults_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.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): 102
logL (Free Index) = 4956.81501122
delta logL = -0.000365209844858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4956.8146464
delta logL = -3.88143234886e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4981       1.0000          .0000       10.000    
     3 'Normalizat'    .90462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       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=   4956.815     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.684        .90712E-02** at limit **
   2  Index         2.5062        6.0717        .50000       -.56736E-05
   3  Normalizat    .90475        .17087        .44961E-01    .13715E-04
   4  Prefactor     1.0057        .20199        .44009E-01    .10946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50625
  Normalizat = 0.904747
  Prefactor  = 1.00575
 **********
 **   18 **HESSE 
 **********

 FCN=   4956.815     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5062        6.2514        .50000       -.52216    
   3  Normalizat    .90475        .20151        .22624E-03   -.96294    
   4  Prefactor     1.0057        .23824        .25376E-03   -.92538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66569e-11
Minuit parameter uncertainties:
  1  7.44965e-06
  2  4.70324
  3  0.201673
  4  0.238494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657596': 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) = 4956.81464599
delta logL = 2.12558006751e-08

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  7.450e-06  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.506e+00  4.703e+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.006e+00  2.385e-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.047e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 23.589 -38.709

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/657596/cmap_HighResolution_516672001_516931201_4FGL_J0134.3-3842_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-08-14 05:38:04.135878', job_id='657596', GAL2='1.01', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1628944684.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1070' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:38:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 657596: <4FGL_J0134.3-3842_daily_bin1070> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1070> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 14 05:22:41 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 05:26:27 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:26:27 2021
Terminated at Sat Aug 14 05:38:05 2021
Results reported at Sat Aug 14 05:38:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1070 23.5887 -38.7085 516672001 516931201 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 :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            924 sec.

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

