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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1087
RA = 23.5887, Dec = -38.7085
tmin = 521078401, tmax = 521337601
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='658340', job_status='RUN', time_executed='2021-08-14 05:30:48.989832', time_epoch_executed='1628944248.99' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658340/ft1_4FGL_J0134.3-3842_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658340/ft1_4FGL_J0134.3-3842_daily_bin1087.fits outfile=/scratch/kocevski/658340/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1087.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=521078401.0 tmax=521337601.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 8.64
user 4.34
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658340/ft1_filtered_4FGL_J0134.3-3842_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/658340/ltcube_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.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/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits
.....................!
real 25.03
user 12.01
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658340/ft1_filtered_4FGL_J0134.3-3842_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/658340/ltcube_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.fits outfile=/scratch/kocevski/658340/expmap_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.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/658340/ltcube_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.fits
.....................!
real 205.35
user 185.23
sys 5.04

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/658340/ft1_filtered_4FGL_J0134.3-3842_daily_bin1087.fits scfile=/scratch/kocevski/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits outfile=/scratch/kocevski/658340/cmap_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.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.07
user 0.39
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658340/ft1_filtered_4FGL_J0134.3-3842_daily_bin1087.fits scfile=/scratch/kocevski/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits outfile=/scratch/kocevski/658340/cmap_HighResolution_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.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 3.23
user 0.41
sys 0.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/658340/ft1_filtered_4FGL_J0134.3-3842_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/658340/ft2_4FGL_J0134.3-3842_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658340/Model_4FGL_J0134.3-3842_daily_bin1087.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/658340/ft1_filtered_4FGL_J0134.3-3842_daily_bin1087.fits.....................!
real 109.69
user 99.38
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    10.093       1.0000         .10000E-03   10000.    
     3 'norm      '    58.623       1.0000         .10000E-03   10000.    
     4 'norm      '    .11168E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.8664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6591       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0760       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7662       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97819       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75684       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=   5320.941     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1862 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5971        .12914E-07** at limit **
   2  Prefactor     10.093        7.4108        .70483E-08   -.33696E-04
   3  norm          58.625        31.286       -.21484E-07    .22664E-04
   4  norm          .10000E-03    1.5366        .26301E-07** at limit **
   5  Prefactor     .10000E-03    9.3899        .15495E-06** at limit **
   6  Prefactor     .10000E-03    1.8392        .37397E-06** at limit **
   7  Prefactor     .10000E-03    6.3845       -.59372E-07** at limit **
   8  Prefactor     .10000E-03    8.1184        .13549E-06** at limit **
   9  Prefactor     .10000E-03    1.3333        .12148E-06** at limit **
  10  norm          5.8664        3.3793        .33744E-07   -.41243E-05
  11  Prefactor     .10000E-03    9.4406       -.33574E-05** at limit **
  12  norm          .10000E-03    2.6832       -.19584E-05** at limit **
  13  Prefactor     2.6592        5.5461        .38883E-06    .23308E-04
  14  Prefactor     3.4068        50.136        .85389E-06    .16640E-06
  15  Prefactor     .10000E-03    4.9756       -.13948E-06** at limit **
  16  Prefactor     8.0765        10.449       -.10767E-07    .78502E-05
  17  norm          3.7664        3.1978        .10931E-06    .78847E-04
  18  Normalizat    .97800        .16423        .19057E-05   -.16846E-03
  19  Prefactor     .75708        .18556       -.34081E-05    .21737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.0931
  norm       = 58.6247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.86643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.65922
  Prefactor  = 3.4068
  Prefactor  = 0.0001
  Prefactor  = 8.07653
  norm       = 3.76643
  Normalizat = 0.978003
  Prefactor  = 0.75708
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.941     FROM HESSE     STATUS=OK           266 CALLS     2128 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5978        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.093        7.4131        .12613E-03   -1.5072    
   3  norm          58.625        31.343        .52398E-04   -1.4175    
   4  norm          .10000E-03    6.7348        .17492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1952        .18953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3970        .18001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3507        .82242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.8664        3.3793        .98288E-04   -1.5224    
  11  Prefactor     .10000E-03    9.6462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7427        .11685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6592        5.5224        .24110E-03   -1.5382    
  14  Prefactor     3.4068        51.176        .21839E-03   -1.5339    
  15  Prefactor     .10000E-03    4.9824        .15891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0765        10.446        .14108E-03   -1.5140    
  17  norm          3.7664        3.1962        .11510E-03   -1.5320    
  18  Normalizat    .97800        .18530        .19823E-03   -.93771    
  19  Prefactor     .75708        .20645        .25791E-03   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21291e-10
Minuit parameter uncertainties:
  1  4.44168e-06
  2  7.41382
  3  31.3516
  4  6.3999e-05
  5  1.18319e-05
  6  2.59167e-05
  7  7.40975e-06
  8  1.66466e-05
  9  1.80611e-06
  10  3.37941
  11  5.91479e-05
  12  2.27291e-05
  13  5.52341
  14  26.4348
  15  5.50763e-06
  16  10.4483
  17  3.19634
  18  0.185424
  19  0.206663
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.665e-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:  7.571e-01  2.067e-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.780e-01  1.854e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658340/likelihoodResults_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.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) = 5320.9411148
delta logL = -0.000585575156947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5320.94052924
delta logL = -1.48356775753e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5320.941     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    190.92        .18142E-02** at limit **
   2  Index         2.4269        8.5915        .50000        .53756E-05
   3  Normalizat    .97801        .18162E-01    .19823E-03   -.16632E-05
   4  Prefactor     .75708        .21150E-01    .25791E-03   -.21599E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100534
  Index      = 2.42693
  Normalizat = 0.978005
  Prefactor  = 0.757078
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.941     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    761.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4269        5.9918        .50000       -.54056    
   3  Normalizat    .97801        .40576E-01    .79291E-05   -.93771    
   4  Prefactor     .75708        .47244E-01    .10316E-04   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59974e-08
Minuit parameter uncertainties:
  1  0.0408663
  2  1995.91
  3  0.040577
  4  0.0472467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658340': 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) = 5320.94052917
delta logL = 5.44041540707e-08

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.005e-04  4.087e-02  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.427e+00  1.996e+03  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.571e-01  4.725e-02  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.780e-01  4.058e-02  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/658340/cmap_HighResolution_521078401_521337601_4FGL_J0134.3-3842_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-08-14 05:42:02.445090', job_id='658340', GAL2='0.76', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1628944922.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1087' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:42:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 658340: <4FGL_J0134.3-3842_daily_bin1087> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1087> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 05:25:43 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 05:26:44 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:44 2021
Terminated at Sat Aug 14 05:42:04 2021
Results reported at Sat Aug 14 05:42:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1087 23.5887 -38.7085 521078401 521337601 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 :                                   609.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            981 sec.

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

