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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1606
RA = 23.5887, Dec = -38.7085
tmin = 655603201, tmax = 655862401
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='140859', job_status='RUN', time_executed='2021-12-07 12:14:04.026713', time_epoch_executed='1638908044.03' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140859/ft1_4FGL_J0134.3-3842_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140859/ft1_4FGL_J0134.3-3842_daily_bin1606.fits outfile=/scratch/kocevski/140859/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1606.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=655603201.0 tmax=655862401.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 4.31
user 4.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/140859/ltcube_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.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/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits
.....................!
real 12.97
user 12.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/140859/ltcube_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.fits outfile=/scratch/kocevski/140859/expmap_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.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/140859/ltcube_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.fits
.....................!
real 191.59
user 185.99
sys 5.13

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/140859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1606.fits scfile=/scratch/kocevski/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits outfile=/scratch/kocevski/140859/cmap_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1606.fits scfile=/scratch/kocevski/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits outfile=/scratch/kocevski/140859/cmap_HighResolution_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/140859/ft2_4FGL_J0134.3-3842_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140859/Model_4FGL_J0134.3-3842_daily_bin1606.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/140859/ft1_filtered_4FGL_J0134.3-3842_daily_bin1606.fits.....................!
real 95.38
user 93.84
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.208       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.445       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4118       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12614E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9521       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7858       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9189       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15368E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17383E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2095       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79307       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1206       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=   4917.875     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2279 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.198        43.067        .34104E-05   -.49176E-05
   2  Prefactor     .10000E-03    3.1179       -.47242E-07** at limit **
   3  norm          25.430        32.915        .14719E-04   -.85859E-06
   4  norm          5.4117        4.3759       -.54582E-07   -.15647E-03
   5  Prefactor     .10000E-03    6.4738       -.43074E-07** at limit **
   6  Prefactor     .10000E-03    2.7091        .44811E-07** at limit **
   7  Prefactor     1.6036        62.826       -.45508E-05   -.66852E-04
   8  Prefactor     7.2301        25.075       -.11868E-04   -.19373E-04
   9  Prefactor     .10000E-03    1.3694        .86986E-07** at limit **
  10  norm          .10000E-03    1.9042        .54845E-07** at limit **
  11  Prefactor     4.9506        9.1056       -.60908E-05   -.16303E-04
  12  norm          5.7850        7.0068        .23337E-05    .73342E-03
  13  Prefactor     6.9149        12.204        .29093E-05   -.20874E-04
  14  Prefactor     .10050E-03    44.384       -.26476E-05** at limit **
  15  Prefactor     .10000E-03    42.280        .13800E-06** at limit **
  16  Prefactor     .10000E-03    13.235        .65177E-08** at limit **
  17  norm          6.2084        3.3487       -.21465E-07   -.10979E-03
  18  Normalizat    .79351        .18330       -.99814E-07    .20509E-03
  19  Prefactor     1.1201        .20139       -.21570E-06    .17957E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.1977
  Prefactor  = 0.0001
  norm       = 25.43
  norm       = 5.41175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60364
  Prefactor  = 7.23009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.95057
  norm       = 5.78495
  Prefactor  = 6.91485
  Prefactor  = 0.000100498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.20844
  Normalizat = 0.793508
  Prefactor  = 1.12014
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.875     FROM HESSE     STATUS=OK           280 CALLS     2559 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.198        43.011        .56597E-04   -1.4290    
   2  Prefactor     .10000E-03    3.1244        .12093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.430        32.637        .79414E-04   -1.4699    
   4  norm          5.4117        4.3733        .12710E-03   -1.5243    
   5  Prefactor     .10000E-03    6.4770        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7806        .22521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6036        63.577        .32764E-03   -1.5455    
   8  Prefactor     7.2301        25.227        .14931E-03   -1.5170    
   9  Prefactor     .10000E-03    1.3764        .80100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    25.729        .18750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9506        9.1208        .18073E-03   -1.5263    
  12  norm          5.7850        7.2436        .14698E-03   -1.5227    
  13  Prefactor     6.9149        12.162        .15252E-03   -1.5182    
  14  Prefactor     .10050E-03    58.437        .95018E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.2084        3.3531        .89905E-04   -1.5210    
  18  Normalizat    .79351        .22240        .23887E-03   -1.0031    
  19  Prefactor     1.1201        .24511        .23781E-03   -.88826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8801e-10
Minuit parameter uncertainties:
  1  43.0371
  2  9.1415e-06
  3  32.6597
  4  4.3736
  5  9.32793e-06
  6  6.60824e-06
  7  20.217
  8  25.2644
  9  1.01378e-05
  10  7.95574e-05
  11  9.12334
  12  7.24466
  13  12.1665
  14  0.0107951
  15  0.000103805
  16  6.31099e-06
  17  3.35325
  18  0.222657
  19  0.245361
Done.

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

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  7.230e+00  2.526e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.490e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.120e+00  2.454e-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:  7.935e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/140859/likelihoodResults_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.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) = 4917.68755827
delta logL = 0.187441639613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4917.64767955
delta logL = 0.227320360476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0591       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7005       1.0000          .0000       10.000    
     3 'Normalizat'    .76469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1417       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=   4917.648     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0522        146.05        .57986E-02   -.66093E-03
   2  Index         3.7016        6.8261        .16067       -.77851E-04
   3  Normalizat    .76477        .46079E-01    .43148E-01   -.23741E-04
   4  Prefactor     1.1417        .53298E-01    .53347E-01   -.20652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05218
  Index      = 3.70164
  Normalizat = 0.764768
  Prefactor  = 1.14167
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.648     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0522        329.08        .17321E-03   -1.5359    
   2  Index         3.7016        5.5612        .83384E-02   -.26268    
   3  Normalizat    .76477        .18719        .24299E-03   -1.0139    
   4  Prefactor     1.1417        .22140        .23587E-03   -.88146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38394e-09
Minuit parameter uncertainties:
  1  63.7465
  2  11.4604
  3  0.187345
  4  0.221583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140859': 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) = 4917.64767933
delta logL = 0.227320574417

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  3.052e+00  6.375e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  3.702e+00  1.146e+01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  8.319e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.142e+00  2.216e-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:  7.648e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/140859/cmap_HighResolution_655603201_655862401_4FGL_J0134.3-3842_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-12-07 12:24:16.701224', job_id='140859', GAL2='1.14', fit_tolerance='1e-08', EG2='0.76', EG='0.79', time_epoch_completed='1638908656.7', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.27e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1606' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:24:16 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 140859: <4FGL_J0134.3-3842_daily_bin1606> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1606> 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) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:11:04 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:04 2021
Terminated at Tue Dec  7 12:24:17 2021
Results reported at Tue Dec  7 12:24:17 2021

Your job looked like:

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

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

