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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1453
RA = 23.5887, Dec = -38.7085
tmin = 615945601, tmax = 616204801
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='660899', job_status='RUN', time_executed='2021-08-14 05:38:09.488910', time_epoch_executed='1628944689.49' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660899/ft1_4FGL_J0134.3-3842_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660899/ft1_4FGL_J0134.3-3842_daily_bin1453.fits outfile=/scratch/kocevski/660899/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1453.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=615945601.0 tmax=616204801.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 5.48
user 3.98
sys 0.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.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/660899/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1453.fits evtable="EVENTS" outfile="/scratch/kocevski/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.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 2.25
user 0.35
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.fits" evtable="EVENTS" scfile=/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits sctable="SC_DATA" outfile=/scratch/kocevski/660899/ltcube_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.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/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits
.....................!
real 14.55
user 12.37
sys 0.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/660899/ltcube_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.fits outfile=/scratch/kocevski/660899/expmap_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.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/660899/ltcube_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.fits
.....................!
real 191.99
user 185.27
sys 5.79

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/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.fits scfile=/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits outfile=/scratch/kocevski/660899/cmap_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.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.28
user 0.37
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.fits scfile=/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits outfile=/scratch/kocevski/660899/cmap_HighResolution_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.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.40
user 0.39
sys 0.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/660899/ft2_4FGL_J0134.3-3842_daily_bin1453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660899/Model_4FGL_J0134.3-3842_daily_bin1453.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/660899/ft1_filtered_4FGL_J0134.3-3842_daily_bin1453.fits.....................!
real 114.79
user 110.67
sys 1.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3972       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .65709       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56504       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7321       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30816       1.0000         .10000E-03   10000.    
    10 'norm      '    .13389E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6261       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0776       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.261       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .66140       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1429       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6251.082     FROM MIGRAD    STATUS=FAILED       722 CALLS     2317 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3989        22.054        .14747E-03    .21347E-03
   2  Prefactor     .10000E-03    8.6799        .36285E-03** at limit **
   3  norm          .60505        213.54        .65623E-02    .67450E-03
   4  norm          3.2451        2.6152        .11074E-03    .22853E-03
   5  Prefactor     .10000E-03    5.9603        .18142E-02** at limit **
   6  Prefactor     .56573        1.7875        .18401E-03    .72718E-04
   7  Prefactor     .38503        159.08        .56137E-02    .76253E-03
   8  Prefactor     2.7493        36.376        .24635E-03    .32766E-04
   9  Prefactor     .30955        7.1434        .18979E-02    .11629E-03
  10  norm          .10000E-03    8.4122        .14326E-02** at limit **
  11  Prefactor     7.6238        8.5665        .14522E-03    .34478E-03
  12  norm          .10000E-03    3.1853        .13632E-02** at limit **
  13  Prefactor     9.0755        9.4197        .13303E-03   -.41449E-04
  14  Prefactor     14.266        25.481        .10606E-03    .58525E-04
  15  Prefactor     8.6320        15.220        .13655E-03   -.16110E-03
  16  Prefactor     .10000E-03    10.897        .18142E-02** at limit **
  17  norm          .10000E-03    1.6040        .14149E-02** at limit **
  18  Normalizat    .66115        .16861        .22837E-03    .48682E-03
  19  Prefactor     1.1428        .18960        .21586E-03    .98072E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6251.082     FROM SIMPLEX   STATUS=UNCHANGED    805 CALLS     3122 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3989        22.054        .13608E-05   -1.5164    
   2  Prefactor     .10000E-03    8.6799        .44301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60505        213.54        .27188E-05   -1.5552    
   4  norm          3.2451        2.6152        .11595E-06   -1.5348    
   5  Prefactor     .10000E-03    5.9603        .40773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56573        1.7875        .11118E-06   -1.5558    
   7  Prefactor     .38503        159.08        .15632E-06   -1.5584    
   8  Prefactor     2.7493        36.376        .17111E-06   -1.5376    
   9  Prefactor     .30955        7.1434        .20003E-06   -1.5597    
  10  norm          .10000E-03    8.4122        .27923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6238        8.5665        .10974E-06   -1.5156    
  12  norm          .10000E-03    3.1853        .24252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0755        9.4197        .10525E-06   -1.5105    
  14  Prefactor     14.266        25.481        .10551E-06   -1.4952    
  15  Prefactor     8.6320        15.220        .12071E-06   -1.5120    
  16  Prefactor     .10000E-03    10.897        .34265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6040        .18200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .66115        .16861        .71286E-07   -1.0545    
  19  Prefactor     1.1428        .18960        .62836E-07   -.88109    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6251.082     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     3379 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3985        21.985        .58986E-05   -.50111E-05
   2  Prefactor     .10000E-03    8.6804        .72569E-04** at limit **
   3  norm          .60529        215.83        .13125E-02    .48075E-05
   4  norm          3.2451        2.6143        .44296E-05   -.10266E-05
   5  Prefactor     .10000E-03    5.9607        .36285E-03** at limit **
   6  Prefactor     .56573        1.7867        .73605E-05   -.18535E-05
   7  Prefactor     .38527        162.74        .11227E-02    .14379E-05
   8  Prefactor     2.7492        36.163        .98539E-05   -.11537E-05
   9  Prefactor     .30956        7.0429        .75917E-04    .55408E-05
  10  norm          .10000E-03    8.5956        .28653E-03** at limit **
  11  Prefactor     7.6238        8.5627        .58087E-05   -.58716E-05
  12  norm          .10000E-03    3.1860        .27264E-03** at limit **
  13  Prefactor     9.0755        9.4148        .53210E-05   -.17092E-05
  14  Prefactor     14.266        25.464        .42425E-05   -.10719E-05
  15  Prefactor     8.6321        15.208        .54619E-05    .20814E-05
  16  Prefactor     .10000E-03    10.897        .36285E-03** at limit **
  17  norm          .10000E-03    1.6097        .28297E-03** at limit **
  18  Normalizat    .66115        .16749        .45674E-04   -.43609E-04
  19  Prefactor     1.1428        .18970        .43171E-04   -.38763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.3985
  Prefactor  = 0.0001
  norm       = 0.605293
  norm       = 3.24506
  Prefactor  = 0.0001
  Prefactor  = 0.565729
  Prefactor  = 0.385271
  Prefactor  = 2.74923
  Prefactor  = 0.309556
  norm       = 0.0001
  Prefactor  = 7.62377
  norm       = 0.0001
  Prefactor  = 9.0755
  Prefactor  = 14.2659
  Prefactor  = 8.63215
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.661151
  Prefactor  = 1.14284
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.082     FROM HESSE     STATUS=OK           250 CALLS     3629 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3985        22.071        .11797E-05   -1.5164    
   2  Prefactor     .10000E-03    8.6808        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60529        214.81        .52499E-04   -1.5552    
   4  norm          3.2451        2.6145        .88591E-06   -1.5348    
   5  Prefactor     .10000E-03    5.9607        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56573        1.7868        .14721E-05   -1.5558    
   7  Prefactor     .38527        162.24        .44910E-04   -1.5584    
   8  Prefactor     2.7492        36.225        .19708E-05   -1.5376    
   9  Prefactor     .30956        7.0421        .30367E-05   -1.5597    
  10  norm          .10000E-03    8.6031        .57306E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6238        8.5625        .11617E-05   -1.5156    
  12  norm          .10000E-03    3.1860        .54527E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0755        9.4178        .10642E-05   -1.5105    
  14  Prefactor     14.266        25.542        .84850E-06   -1.4952    
  15  Prefactor     8.6321        15.238        .10924E-05   -1.5120    
  16  Prefactor     .10000E-03    10.897        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6099        .56595E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .66115        .16724        .91348E-05   -1.0545    
  19  Prefactor     1.1428        .18972        .86343E-05   -.88109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07738e-12
Minuit parameter uncertainties:
  1  22.0953
  2  5.992e-07
  3  22.887
  4  2.61456
  5  2.92213e-07
  6  1.78697
  7  15.8536
  8  19.9735
  9  2.95282
  10  7.72591e-06
  11  8.56388
  12  1.0174e-06
  13  9.41934
  14  25.5613
  15  15.2447
  16  1.28075e-06
  17  8.26564e-07
  18  0.167365
  19  0.189835
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  2.749e+00  1.997e+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.143e+00  1.898e-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:  6.612e-01  1.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/660899/likelihoodResults_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.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) = 6250.58598666
delta logL = 0.496360538069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6250.47048261
delta logL = 0.611864584575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94727       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4956       1.0000          .0000       10.000    
     3 'Normalizat'    .61315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1776       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=   6250.470     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      225 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94744        16.694        .12978E-01    .84699E-03
   2  Index         4.4958        3.2955        .12488        .14867E-03
   3  Normalizat    .61316        .30639E-01    .41119E-01    .25239E-04
   4  Prefactor     1.1776        .37292E-01    .35183E-01    .51017E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.947441
  Index      = 4.49582
  Normalizat = 0.613159
  Prefactor  = 1.17762
 **********
 **   18 **HESSE 
 **********

 FCN=   6250.470     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94744        43.901        .73931E-03   -1.5513    
   2  Index         4.4958        7.2479        .65479E-02   -.10101    
   3  Normalizat    .61316        .11523        .23654E-03   -1.0743    
   4  Prefactor     1.1776        .13859        .21304E-03   -.87023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08869e-07
Minuit parameter uncertainties:
  1  12.9081
  2  7.31865
  3  0.115273
  4  0.138637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660899': 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) = 6250.47048242
delta logL = 0.61186477931

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  9.474e-01  1.291e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  4.496e+00  7.319e+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.178e+00  1.386e-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:  6.132e-01  1.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 4.50 +/- 7.32
Photon Flux (Free Index): 3.73e-08 +/- 3.56e-08
Energy Flux (Free Index): 5.21e-06 +/- 7.21e-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/660899/cmap_HighResolution_615945601_616204801_4FGL_J0134.3-3842_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', comment='SUCCESS', energy_flux2='5.21e-06', dlogl='6.12e-01', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-08-14 05:51:18.014086', photon_index_error2='7.32', photon_index2='4.50', ts='0.02', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='6.51e-08', energy_flux_error2='7.21e-06', EG='0.66', time_epoch_completed='1628945478.01', return_code='0', job_id='660899', GAL2='1.18', EG2='0.61', return_code2='102', photon_flux_error2='3.56e-08', ts2='1.36', photon_index='2.49' WHERE bin_id='1453' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 660899: <4FGL_J0134.3-3842_daily_bin1453> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1453> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 05:35:54 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 05:36:43 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:36:43 2021
Terminated at Sat Aug 14 05:51:19 2021
Results reported at Sat Aug 14 05:51:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1453 23.5887 -38.7085 615945601 616204801 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 :                                   782.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            925 sec.

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

