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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1589
RA = 23.5887, Dec = -38.7085
tmin = 651196801, tmax = 651456001
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='880362', job_status='RUN', time_executed='2021-08-24 00:02:53.302065', time_epoch_executed='1629788573.3' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880362/ft1_4FGL_J0134.3-3842_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880362/ft1_4FGL_J0134.3-3842_daily_bin1589.fits outfile=/scratch/kocevski/880362/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1589.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=651196801.0 tmax=651456001.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.81
user 3.29
sys 2.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.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/880362/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1589.fits evtable="EVENTS" outfile="/scratch/kocevski/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.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.80
user 0.32
sys 2.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/880362/ltcube_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.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/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits
.....................!
real 14.68
user 11.63
sys 2.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/880362/ltcube_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.fits outfile=/scratch/kocevski/880362/expmap_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.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/880362/ltcube_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.fits
.....................!
real 194.18
user 184.68
sys 8.37

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/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.fits scfile=/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits outfile=/scratch/kocevski/880362/cmap_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.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 2.58
user 0.37
sys 2.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.fits scfile=/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits outfile=/scratch/kocevski/880362/cmap_HighResolution_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.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 2.81
user 0.37
sys 2.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/880362/ft2_4FGL_J0134.3-3842_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880362/Model_4FGL_J0134.3-3842_daily_bin1589.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/880362/ft1_filtered_4FGL_J0134.3-3842_daily_bin1589.fits.....................!
real 91.42
user 86.23
sys 4.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    73.535       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.338       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.332       1.0000         .10000E-03   10000.    
    12 'norm      '    .69805E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.719       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2744       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .52125       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=   4460.325     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1854 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.842        46.568        .41475E-05    .41786E-04
   2  Prefactor     .10000E-03    11.697       -.12719E-04** at limit **
   3  norm          73.545        46.877        .96679E-05    .28983E-04
   4  norm          .10000E-03    .91464       -.49217E-08** at limit **
   5  Prefactor     .10000E-03    8.8002        .48477E-05** at limit **
   6  Prefactor     .10000E-03    2.1736       -.31365E-07** at limit **
   7  Prefactor     .10000E-03    5.9905       -.35155E-06** at limit **
   8  Prefactor     .10000E-03    14.930        .22163E-04** at limit **
   9  Prefactor     13.339        5.5046       -.14512E-06   -.12090E-02
  10  norm          .10000E-03    1.9063        .15027E-07** at limit **
  11  Prefactor     10.317        9.2749        .81011E-07   -.70380E-03
  12  norm          .10020E-03    3.7663        .14087E-05** at limit **
  13  Prefactor     28.720        15.443        .45817E-06   -.66033E-04
  14  Prefactor     .10000E-03    13.389        .36598E-05** at limit **
  15  Prefactor     .10000E-03    24.959       -.11491E-04** at limit **
  16  Prefactor     .10000E-03    12.210       -.10264E-04** at limit **
  17  norm          .10000E-03    .78563       -.23501E-07** at limit **
  18  Normalizat    1.2741        .18811       -.15234E-05    .28282E-04
  19  Prefactor     .52140        .20134        .15457E-06   -.98767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8417
  Prefactor  = 0.0001
  norm       = 73.5446
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.339
  norm       = 0.0001
  Prefactor  = 10.3169
  norm       = 0.000100201
  Prefactor  = 28.72
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27414
  Prefactor  = 0.521397
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.325     FROM HESSE     STATUS=OK           260 CALLS     2114 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.842        46.599        .73347E-04   -1.4615    
   2  Prefactor     .10000E-03    11.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          73.545        46.946        .46819E-04   -1.3991    
   4  norm          .10000E-03    .91603        .62376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2264        .19221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9944        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.339        5.5169        .47980E-03   -1.4977    
  10  norm          .10000E-03    1.9280        .90022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.317        8.5247        .12466E-03   -1.5065    
  12  norm          .10020E-03    25.481        .22813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.720        15.452        .74760E-04   -1.4636    
  14  Prefactor     .10000E-03    13.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .78978        .57801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2741        .21349        .19403E-03   -.84342    
  19  Prefactor     .52140        .22708        .31910E-03   -1.1100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46521e-09
Minuit parameter uncertainties:
  1  46.6561
  2  5.54203e-05
  3  46.9694
  4  6.56349e-07
  5  1.32e-05
  6  2.74419e-06
  7  2.65082e-07
  8  5.26214e-06
  9  5.51715
  10  4.77184e-06
  11  8.52566
  12  0.00452817
  13  15.4544
  14  1.33535e-05
  15  0.000177989
  16  3.07255e-05
  17  1.37406e-06
  18  0.213637
  19  0.227478
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  5.262e-06  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:  5.214e-01  2.275e-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:  1.274e+00  2.136e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880362/likelihoodResults_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.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) = 4460.32566057
delta logL = -0.000318129134939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4460.32534358
delta logL = -1.1402180462e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1894       1.0000          .0000       10.000    
     3 'Normalizat'    1.2741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52140       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=   4460.325     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10250E-03    3.2544        .18142E-01** at limit **
   2  Index         3.0983        5.8195        .50000        .13034E-04
   3  Normalizat    1.2741        .23608E-02    .19403E-03    .15293E-04
   4  Prefactor     .52140        .25926E-02    .31910E-03   -.15854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102496
  Index      = 3.09832
  Normalizat = 1.27414
  Prefactor  = 0.5214
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.325     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10250E-03    468.62        .44016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0983        6.4211        .50000       -.39016    
   3  Normalizat    1.2741        .29196E-01    .77612E-05   -.84342    
   4  Prefactor     .52140        .32060E-01    .12764E-04   -1.1100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37032e-08
Minuit parameter uncertainties:
  1  0.0689443
  2  1052.92
  3  0.0291964
  4  0.0320607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880362': 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) = 4460.32534341
delta logL = -9.67388587014e-07

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.025e-04  6.894e-02  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  3.098e+00  1.053e+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:  5.214e-01  3.206e-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:  1.274e+00  2.920e-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/880362/cmap_HighResolution_651196801_651456001_4FGL_J0134.3-3842_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-08-24 00:12:45.723491', job_id='880362', GAL2='0.52', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1629789165.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='-9.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1589' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 00:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 880362: <4FGL_J0134.3-3842_daily_bin1589> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1589> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 24 00:00:39 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 00:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 00:00:40 2021
Terminated at Tue Aug 24 00:12:46 2021
Results reported at Tue Aug 24 00:12:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1589 23.5887 -38.7085 651196801 651456001 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 :                                   626.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

