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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1607
RA = 23.5887, Dec = -38.7085
tmin = 655862401, tmax = 656121601
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='140860', job_status='RUN', time_executed='2021-12-07 12:14:08.049990', time_epoch_executed='1638908048.05' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140860/ft1_4FGL_J0134.3-3842_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140860/ft1_4FGL_J0134.3-3842_daily_bin1607.fits outfile=/scratch/kocevski/140860/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1607.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=655862401.0 tmax=656121601.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.12
user 4.36
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.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/140860/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/140860/ltcube_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.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/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits
.....................!
real 12.39
user 11.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/140860/ltcube_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.fits outfile=/scratch/kocevski/140860/expmap_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.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/140860/ltcube_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.fits
.....................!
real 191.04
user 185.32
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/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits scfile=/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits outfile=/scratch/kocevski/140860/cmap_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.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 0.58
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits scfile=/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits outfile=/scratch/kocevski/140860/cmap_HighResolution_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.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 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/140860/ft2_4FGL_J0134.3-3842_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140860/Model_4FGL_J0134.3-3842_daily_bin1607.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/140860/ft1_filtered_4FGL_J0134.3-3842_daily_bin1607.fits.....................!
real 85.26
user 82.93
sys 2.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38349E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.313       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .70375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63317E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2479       1.0000         .10000E-03   10000.    
    12 'norm      '    .14375E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50756       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .69781       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=   4242.661     FROM MIGRAD    STATUS=FAILED       709 CALLS     2245 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    142.98        .42566E-03** at limit **
   2  Prefactor     12.316        11.011        .57078E-03    .46528E-04
   3  norm          .10000E-03    20.442        .18142E-02** at limit **
   4  norm          .70304        5.8806        .29441E-02    .40534E-02
   5  Prefactor     .10000E-03    15.432        .18142E-02** at limit **
   6  Prefactor     .20176E-01    8.5838        .32156E-01    .26007E-03
   7  Prefactor     .10000E-03    9.6104        .18142E-02** at limit **
   8  Prefactor     17.512        21.875        .95723E-04    .14252E-05
   9  Prefactor     .10000E-03    2.8278        .21076E-03** at limit **
  10  norm          .10000E-03    3.9347        .24784E-03** at limit **
  11  Prefactor     4.2400        6.8762        .19550E-03    .12794E-05
  12  norm          .10000E-03    7.1497        .24015E-02** at limit **
  13  Prefactor     .80062        18.922        .49845E-03   -.79600E-05
  14  Prefactor     27.843        24.797        .75866E-04   -.34016E-04
  15  Prefactor     .10000E-03    11.243        .18142E-02** at limit **
  16  Prefactor     .37205        137.90        .45128E-02    .58275E-03
  17  norm          .10000E-03    1.1610        .67833E-03** at limit **
  18  Normalizat    1.2086        .21081        .19507E-03    .10989E-03
  19  Prefactor     .69790        .23206        .28045E-03   -.12566E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4242.661     FROM SIMPLEX   STATUS=UNCHANGED    982 CALLS     3227 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.98        .12823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.316        11.011        .21450E-06   -1.5006    
   3  norm          .10000E-03    20.442        .64914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .70304        5.8806        .22174E-06   -1.5540    
   5  Prefactor     .10000E-03    15.432        .30309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20176E-01    8.5838        .22596E-06   -1.5680    
   7  Prefactor     .10000E-03    9.6104        .40098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.512        21.875        .21244E-06   -1.4871    
   9  Prefactor     .10000E-03    2.8278        .16489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9347        .23597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2400        6.8762        .21863E-06   -1.5296    
  12  norm          .10000E-03    7.1497        .28913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .80062        18.922        .21778E-06   -1.5529    
  14  Prefactor     27.843        24.797        .20753E-06   -1.4652    
  15  Prefactor     .10000E-03    11.243        .33215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .37205        137.90        .22491E-06   -1.5586    
  17  norm          .10000E-03    1.1610        .10584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2086        .21081        .12340E-06   -.86339    
  19  Prefactor     .69790        .23206        .14807E-06   -1.0361    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4242.661     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     3494 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    142.99        .85131E-04** at limit **
   2  Prefactor     12.316        11.010        .22831E-04   -.14938E-05
   3  norm          .10000E-03    20.444        .36285E-03** at limit **
   4  norm          .70304        5.8712        .58883E-03    .16235E-03
   5  Prefactor     .10000E-03    15.434        .36285E-03** at limit **
   6  Prefactor     .20176E-01    5.3071        .42729E-01    .16382E-03
   7  Prefactor     .10000E-03    9.6112        .36285E-03** at limit **
   8  Prefactor     17.512        21.873        .38289E-05   -.59383E-06
   9  Prefactor     .10000E-03    2.8279        .42152E-04** at limit **
  10  norm          .10000E-03    3.9348        .49569E-04** at limit **
  11  Prefactor     4.2400        6.8735        .78199E-05    .58153E-06
  12  norm          .10000E-03    7.1626        .48030E-03** at limit **
  13  Prefactor     .80062        18.907        .19938E-04    .11404E-06
  14  Prefactor     27.843        24.779        .30346E-05    .74926E-06
  15  Prefactor     .10000E-03    11.242        .36285E-03** at limit **
  16  Prefactor     .37205        141.01        .90255E-03    .98250E-06
  17  norm          .10000E-03    1.1612        .13567E-03** at limit **
  18  Normalizat    1.2086        .21070        .39013E-04   -.55367E-05
  19  Prefactor     .69791        .23202        .11218E-04   -.34456E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.3162
  norm       = 0.0001
  norm       = 0.70304
  Prefactor  = 0.0001
  Prefactor  = 0.0201764
  Prefactor  = 0.0001
  Prefactor  = 17.5123
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.23996
  norm       = 0.0001
  Prefactor  = 0.800624
  Prefactor  = 27.8433
  Prefactor  = 0.0001
  Prefactor  = 0.372054
  norm       = 0.0001
  Normalizat = 1.20856
  Prefactor  = 0.697905
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.661     FROM HESSE     STATUS=OK           260 CALLS     3754 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.99        .85131E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.316        11.006        .91325E-06   -1.5006    
   3  norm          .10000E-03    20.444        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .70304        5.8664        .11777E-03   -1.5540    
   5  Prefactor     .10000E-03    15.434        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20176E-01    6.4765        .37892E-01   -1.5680    
   7  Prefactor     .10000E-03    9.6113        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.512        21.925        .76578E-06   -1.4871    
   9  Prefactor     .10000E-03    2.8279        .84304E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9348        .99138E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2400        6.8762        .15640E-05   -1.5296    
  12  norm          .10000E-03    7.1632        .96061E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .80062        18.907        .39876E-05   -1.5529    
  14  Prefactor     27.843        24.895        .60693E-06   -1.4652    
  15  Prefactor     .10000E-03    11.242        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .37205        141.02        .36102E-04   -1.5586    
  17  norm          .10000E-03    1.1612        .27133E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2086        .21081        .78027E-05   -.86339    
  19  Prefactor     .69791        .23197        .22436E-05   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0182e-10
Minuit parameter uncertainties:
  1  4.93233e-07
  2  11.0079
  3  6.16801e-07
  4  4.06192
  5  3.09447e-07
  6  0.721256
  7  2.18498e-07
  8  21.9347
  9  1.53399e-08
  10  5.18419e-08
  11  6.87751
  12  1.15836e-06
  13  7.78356
  14  24.9043
  15  2.10182e-08
  16  14.5192
  17  2.25182e-08
  18  0.210954
  19  0.232288
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.751e+01  2.193e+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:  6.979e-01  2.323e-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.209e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 23.589 -38.709
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 6.75e-06 +/- 8.45e-06

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

Saving results to:
/scratch/kocevski/140860/likelihoodResults_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.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): 0
logL (Free Index) = 4242.65174938
delta logL = 0.00944557328512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4242.64755058
delta logL = 0.0136443708079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.338       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6609       1.0000          .0000       10.000    
     3 'Normalizat'    1.2052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70017       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=   4242.648     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.343        25.323        .10227E-03   -.24716E-03
   2  Index         2.6631        1.1261        .83403E-02   -.90200E-04
   3  Normalizat    1.2048        .20625        .19533E-03    .87793E-03
   4  Prefactor     .70055        .23004        .27997E-03    .60930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3433
  Index      = 2.66313
  Normalizat = 1.20483
  Prefactor  = 0.700551
 **********
 **   18 **HESSE 
 **********

 FCN=   4242.648     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.343        23.977        .20454E-04   -1.4924    
   2  Index         2.6631        1.0667        .33361E-03   -.48632    
   3  Normalizat    1.2048        .20630        .39065E-04   -.86454    
   4  Prefactor     .70055        .23011        .55994E-04   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30367e-09
Minuit parameter uncertainties:
  1  23.9916
  2  1.07738
  3  0.206437
  4  0.230424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140860': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4242.64754507
delta logL = 0.0136498819511

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  1.534e+01  2.399e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.663e+00  1.077e+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:  7.006e-01  2.304e-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.205e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 23.589 -38.709
Photon Index (Free Index): 2.66 +/- 1.08
Photon Flux (Free Index): 2.60e-08 +/- 3.60e-08
Energy Flux (Free Index): 6.46e-06 +/- 8.03e-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/140860/cmap_HighResolution_655862401_656121601_4FGL_J0134.3-3842_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.67e-03', comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='6.46e-06', photon_flux_error='2.88e-08', dlogl='1.36e-02', energy_flux='6.75e-06', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-12-07 12:25:12.101998', photon_index_error2='1.08', photon_index2='2.66', ts='1.08', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='8.03e-06', EG='1.21', time_epoch_completed='1638908712.1', return_code='0', job_id='140860', GAL2='0.70', EG2='1.20', return_code2='0', energy_flux_error='8.45e-06', photon_flux_error2='3.60e-08', ts2='1.10', photon_index='2.49' WHERE bin_id='1607' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:25:12 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 140860: <4FGL_J0134.3-3842_daily_bin1607> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1607> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:10:18 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:11:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:11:05 2021
Terminated at Tue Dec  7 12:25:12 2021
Results reported at Tue Dec  7 12:25:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1607 23.5887 -38.7085 655862401 656121601 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 :                                   660.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             281.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            894 sec.

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

