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


Performing analysis on: 4FGL_J0134.3-3842_daily_bin1330
RA = 23.5887, Dec = -38.7085
tmin = 584064001, tmax = 584323201
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='659790', job_status='RUN', time_executed='2021-08-14 05:36:06.451682', time_epoch_executed='1628944566.45' WHERE source_name='4FGL J0134.3-3842' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659790/ft1_4FGL_J0134.3-3842_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659790/ft1_4FGL_J0134.3-3842_daily_bin1330.fits outfile=/scratch/kocevski/659790/ft1_filteredMKT_4FGL_J0134.3-3842_daily_bin1330.fits ra=23.5887 dec=-38.7085 rad=12.0 tmin=584064001.0 tmax=584323201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.37
user 4.27
sys 2.80

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659790/ft1_filtered_4FGL_J0134.3-3842_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/659790/ltcube_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.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/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits
.....................!
real 14.89
user 11.36
sys 3.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659790/ft1_filtered_4FGL_J0134.3-3842_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/659790/ltcube_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.fits outfile=/scratch/kocevski/659790/expmap_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.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/659790/ltcube_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.fits
.....................!
real 197.04
user 185.96
sys 8.43

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/659790/ft1_filtered_4FGL_J0134.3-3842_daily_bin1330.fits scfile=/scratch/kocevski/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits outfile=/scratch/kocevski/659790/cmap_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.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 3.62
user 0.38
sys 2.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659790/ft1_filtered_4FGL_J0134.3-3842_daily_bin1330.fits scfile=/scratch/kocevski/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits outfile=/scratch/kocevski/659790/cmap_HighResolution_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.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 4.01
user 0.39
sys 2.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659790/ft1_filtered_4FGL_J0134.3-3842_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/659790/ft2_4FGL_J0134.3-3842_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659790/Model_4FGL_J0134.3-3842_daily_bin1330.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/659790/ft1_filtered_4FGL_J0134.3-3842_daily_bin1330.fits.....................!
real 121.33
user 112.29
sys 4.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.061       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6174       1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.059       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.982       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8394       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91631       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .67382       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=   6099.254     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1616 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.102       -.22369E-05** at limit **
   2  Prefactor     .10000E-03    1.4136       -.10338E-07** at limit **
   3  norm          17.050        20.907       -.54131E-05    .23154E-03
   4  norm          2.2739        2.2004       -.10137E-06   -.26664E-03
   5  Prefactor     .10000E-03    11.403        .16300E-05** at limit **
   6  Prefactor     .10000E-03    .89994       -.12854E-07** at limit **
   7  Prefactor     .10000E-03    23.977       -.75290E-05** at limit **
   8  Prefactor     .10000E-03    27.412        .94405E-05** at limit **
   9  Prefactor     3.6171        3.2573       -.24173E-06   -.53960E-03
  10  norm          .10000E-03    1.3747       -.36468E-07** at limit **
  11  Prefactor     27.058        11.787        .33811E-06    .17069E-03
  12  norm          1.2941        4.2698       -.15602E-05   -.92911E-03
  13  Prefactor     6.2935        8.3408       -.28225E-06   -.11295E-03
  14  Prefactor     .10000E-03    10.753       -.12481E-05** at limit **
  15  Prefactor     .10000E-03    7.0080       -.30719E-07** at limit **
  16  Prefactor     16.989        13.990       -.41569E-07    .10198E-04
  17  norm          2.8394        1.8011       -.30898E-07   -.10042E-03
  18  Normalizat    .91648        .13015        .50010E-06    .33680E-05
  19  Prefactor     .67363        .14943        .28267E-06    .29811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 17.0502
  norm       = 2.27394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 3.61715
  norm       = 0.0001
  Prefactor  = 27.0576
  norm       = 1.2941
  Prefactor  = 6.29353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9891
  norm       = 2.83935
  Normalizat = 0.916479
  Prefactor  = 0.673632
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.254     FROM HESSE     STATUS=OK           268 CALLS     1884 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4181        .90676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.050        20.579        .96966E-04   -1.4882    
   4  norm          2.2739        2.1946        .11044E-03   -1.5406    
   5  Prefactor     .10000E-03    11.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .91683        .72321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6171        3.2723        .12706E-03   -1.5328    
  10  norm          .10000E-03    1.4300        .17873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.058        11.694        .77013E-04   -1.4667    
  12  norm          1.2941        4.4896        .26549E-03   -1.5480    
  13  Prefactor     6.2935        8.3443        .16000E-03   -1.5206    
  14  Prefactor     .10000E-03    10.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.989        13.974        .97191E-04   -1.4883    
  17  norm          2.8394        1.7987        .81041E-04   -1.5371    
  18  Normalizat    .91648        .15386        .19028E-03   -.95883    
  19  Prefactor     .67363        .17603        .25375E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98291e-09
Minuit parameter uncertainties:
  1  0.000349655
  2  4.18238e-07
  3  20.5874
  4  2.19465
  5  5.68234e-05
  6  8.62841e-07
  7  0.000412243
  8  0.000637128
  9  3.27241
  10  2.25413e-06
  11  11.6945
  12  4.49081
  13  8.34584
  14  5.88977e-05
  15  1.98681e-07
  16  13.9767
  17  1.79875
  18  0.153934
  19  0.17617
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  6.736e-01  1.762e-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.165e-01  1.539e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659790/likelihoodResults_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.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) = 6099.25371495
delta logL = -0.000177187695044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6099.24363441
delta logL = 0.00990334474136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39750       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8103       1.0000          .0000       10.000    
     3 'Normalizat'    .91435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67265       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=   6099.243     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      306 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41233        5.3268        .52021E-01    .71659E-03
   2  Index         3.8124        .80621        .50000        .52252E-05
   3  Normalizat    .91037        .59326E-02    .45085E-01   -.28227E-04
   4  Prefactor     .67750        .69106E-02    .42036E-01    .50087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.412333
  Index      = 3.81236
  Normalizat = 0.910371
  Prefactor  = 0.677496
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.243     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      341 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41233        920.83        .19055E-02   -1.5580    
   2  Index         3.8124        6.4117        .68831E-02   -.23982    
   3  Normalizat    .91037        .12013        .19087E-03   -.96097    
   4  Prefactor     .67750        .12253        .25309E-03   -1.0442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.18302e-09
Minuit parameter uncertainties:
  1  39.5917
  2  46.2292
  3  0.120168
  4  0.122574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659790': 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) = 6099.24325773
delta logL = 0.0102800243876

Extracting fit parameters...

4FGL J0134.3-3842
   Spectrum: PowerLaw
283    Prefactor:  4.123e-01  3.959e+01  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  3.812e+00  4.623e+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:  6.775e-01  1.226e-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.104e-01  1.202e-01  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/659790/cmap_HighResolution_584064001_584323201_4FGL_J0134.3-3842_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-08-14 05:47:36.795199', job_id='659790', GAL2='0.68', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1628945256.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.03e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1330' AND source_name='4FGL J0134.3-3842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 05:47:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 659790: <4FGL_J0134.3-3842_daily_bin1330> in cluster <slac> Done

Job <4FGL_J0134.3-3842_daily_bin1330> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 05:31:46 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 05:33:35 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:33:35 2021
Terminated at Sat Aug 14 05:47:37 2021
Results reported at Sat Aug 14 05:47:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0134.3-3842_daily_bin1330 23.5887 -38.7085 584064001 584323201 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 :                                   711.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            951 sec.

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

