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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1060
RA = 23.5887, Dec = -38.7085
tmin = 514080001, tmax = 514339201
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='657582', job_status='RUN', time_executed='2021-08-14 05:29:30.576009', time_epoch_executed='1628944170.58' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657582

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657582/ft1_4FGL_J0134.3-3842_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657582/ft1_4FGL_J0134.3-3842_daily_bin1060.fits outfile=/scratch/kocevski/657582/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1060.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=514080001.0 tmax=514339201.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 7.41
user 2.62
sys 1.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.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/657582/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.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 4.75
user 0.28
sys 1.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/657582/ltcube_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.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/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits
.....................!
real 11.64
user 9.36
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/657582/ltcube_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.fits outfile=/scratch/kocevski/657582/expmap_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.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/657582/ltcube_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.fits
.....................!
real 151.76
user 145.23
sys 5.34

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/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits scfile=/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits outfile=/scratch/kocevski/657582/cmap_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.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.71
user 0.29
sys 1.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits scfile=/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits outfile=/scratch/kocevski/657582/cmap_HighResolution_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.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.98
user 0.31
sys 1.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657582/Model_4FGL_J0134.3-3842_daily_bin1060.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/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits.....................!
real 64.60
user 59.38
sys 2.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits', '/scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits', expMap='/scratch/kocevski/657582/expmap_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.fits', expCube='/scratch/kocevski/657582/ltcube_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657582/Model_4FGL_J0134.3-3842_daily_bin1060.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/657582/ft1_filtered_4FGL_J0134.3-3842_daily_bin1060.fits
Spacecraft file(s): /scratch/kocevski/657582/ft2_4FGL_J0134.3-3842_daily_bin1060.fits
Exposure map: /scratch/kocevski/657582/expmap_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.fits
Exposure cube: /scratch/kocevski/657582/ltcube_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657582/Model_4FGL_J0134.3-3842_daily_bin1060.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.758       1.0000         .10000E-03   10000.    
     3 'norm      '    43.278       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12729E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89853E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98801       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3924.281     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1863 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.371       -.31177E-06** at limit **
   2  Prefactor     14.755        11.351        .84587E-06    .13310E-05
   3  norm          43.260        39.262       -.21347E-04    .10204E-04
   4  norm          8.3462        4.6622       -.33546E-06   -.68725E-05
   5  Prefactor     .10000E-03    9.3029        .18639E-06** at limit **
   6  Prefactor     3.7991        3.6806       -.16142E-06   -.34488E-04
   7  Prefactor     .10000E-03    12.667        .20844E-05** at limit **
   8  Prefactor     .10000E-03    78.463        .25485E-04** at limit **
   9  Prefactor     .38337E-01    2.8505       -.17425E-05    .87966E-03
  10  norm          .10000E-03    2.3063       -.56144E-07** at limit **
  11  Prefactor     .10000E-03    5.0002       -.64175E-07** at limit **
  12  norm          2.5590        3.8890       -.26518E-06   -.14804E-03
  13  Prefactor     10.303        9.1898       -.44577E-06    .96177E-04
  14  Prefactor     .10000E-03    32.548        .13901E-06** at limit **
  15  Prefactor     9.8833        16.626       -.36864E-05    .10090E-05
  16  Prefactor     .10000E-03    11.645       -.13780E-05** at limit **
  17  norm          .10000E-03    .74178       -.24731E-07** at limit **
  18  Normalizat    .98828        .19155        .30010E-05    .11671E-03
  19  Prefactor     .81591        .21378        .45747E-06    .21714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.7545
  norm       = 43.2598
  norm       = 8.34617
  Prefactor  = 0.0001
  Prefactor  = 3.79907
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0383374
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55903
  Prefactor  = 10.3034
  Prefactor  = 0.0001
  Prefactor  = 9.88328
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.988284
  Prefactor  = 0.815914
 **********
 **   18 **HESSE 
 **********

 FCN=   3924.281     FROM HESSE     STATUS=OK           272 CALLS     2135 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.755        11.365        .10426E-03   -1.4940    
   3  norm          43.260        39.370        .60939E-04   -1.4392    
   4  norm          8.3462        4.6641        .97851E-04   -1.5130    
   5  Prefactor     .10000E-03    9.3083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7991        3.6791        .11376E-03   -1.5318    
   7  Prefactor     .10000E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    79.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38337E-01    8.4359        .33553E-01   -1.5669    
  10  norm          .10000E-03    2.3821        .18576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0515        .13676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5590        3.8735        .14718E-03   -1.5388    
  13  Prefactor     10.303        9.1971        .12483E-03   -1.5066    
  14  Prefactor     .10000E-03    32.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8833        16.666        .12743E-03   -1.5079    
  16  Prefactor     .10000E-03    11.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .74543        .52688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98828        .23036        .20861E-03   -.93424    
  19  Prefactor     .81591        .25688        .26012E-03   -.99144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63269e-09
Minuit parameter uncertainties:
  1  5.73221e-05
  2  11.3665
  3  39.3936
  4  4.66429
  5  1.57053e-05
  6  3.67935
  7  2.02009e-05
  8  0.000448674
  9  1.13606
  10  1.05672e-05
  11  1.14284e-05
  12  3.87393
  13  9.19831
  14  5.13653e-05
  15  16.6739
  16  4.55173e-05
  17  1.53269e-06
  18  0.230589
  19  0.257255
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.487e-04  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:  8.159e-01  2.573e-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.883e-01  2.306e-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: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657582/likelihoodResults_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.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) = 3924.28104693
delta logL = -6.01299484515e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3924.28098653
delta logL = 2.70130840363e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3924.281     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      246 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .30813        .90712E-01** at limit **
   2  Index         2.9228        5.5650        .50000       -.15724E-05
   3  Normalizat    .98829        .60155E-03    .46020E-01    .10873E-03
   4  Prefactor     .81591        .69153E-03    .43924E-01    .74939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.9228
  Normalizat = 0.988287
  Prefactor  = 0.81591
 **********
 **   18 **HESSE 
 **********

 FCN=   3924.281     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    182.51        .51086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9228        5.4629        .50000       -.42843    
   3  Normalizat    .98829        .51919E-02    .20861E-03   -.93424    
   4  Prefactor     .81591        .59682E-02    .26012E-03   -.99144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54781e-08
Minuit parameter uncertainties:
  1  0.00340189
  2  325.625
  3  0.00519187
  4  0.00596816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657582': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3924.28098652
delta logL = 2.82009295915e-07

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  3.402e-03  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.923e+00  3.256e+02  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:  8.159e-01  5.968e-03  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.883e-01  5.192e-03  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/657582/cmap_HighResolution_514080001_514339201_4FGL_J0134.3-3842_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-08-14 05:36:59.037260', job_id='657582', GAL2='0.82', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1628944619.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1060' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:36:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 657582: <4FGL_J0134.3-3842_daily_bin1060> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1060 23.5887 -38.7085 514080001 514339201 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 :                                   451.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            860 sec.

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

