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


Performing analysis on: 4FGL_J0334.2-4008_daily_bin1050
RA = 53.5566, Dec = -40.145
tmin = 511488001, tmax = 511747201
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='664737', job_status='RUN', time_executed='2021-08-18 18:33:31.291647', time_epoch_executed='1629336811.29' WHERE source_name='4FGL J0334.2-4008' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664737/ft1_4FGL_J0334.2-4008_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664737/ft1_4FGL_J0334.2-4008_daily_bin1050.fits outfile=/scratch/kocevski/664737/ft1_filteredMKT_4FGL_J0334.2-4008_daily_bin1050.fits ra=53.5566 dec=-40.145 rad=12.0 tmin=511488001.0 tmax=511747201.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 3.52
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.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/664737/ft1_filteredMKT_4FGL_J0334.2-4008_daily_bin1050.fits evtable="EVENTS" outfile="/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/664737/ltcube_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.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/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits
.....................!
real 11.94
user 11.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/664737/ltcube_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.fits outfile=/scratch/kocevski/664737/expmap_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.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/664737/ltcube_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.fits
.....................!
real 191.54
user 185.13
sys 5.81

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 183 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 J0334.2-4008 @ 53.5566 -40.145

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits scfile=/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits outfile=/scratch/kocevski/664737/cmap_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.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=53.5566 yref=-40.145 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits scfile=/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits outfile=/scratch/kocevski/664737/cmap_HighResolution_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.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=53.5566 yref=-40.145 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664737/Model_4FGL_J0334.2-4008_daily_bin1050.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/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits.....................!
real 126.55
user 124.59
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits', '/scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits', expMap='/scratch/kocevski/664737/expmap_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.fits', expCube='/scratch/kocevski/664737/ltcube_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664737/Model_4FGL_J0334.2-4008_daily_bin1050.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0334.2-4008'

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  1.215e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/664737/ft1_filtered_4FGL_J0334.2-4008_daily_bin1050.fits
Spacecraft file(s): /scratch/kocevski/664737/ft2_4FGL_J0334.2-4008_daily_bin1050.fits
Exposure map: /scratch/kocevski/664737/expmap_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.fits
Exposure cube: /scratch/kocevski/664737/ltcube_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664737/Model_4FGL_J0334.2-4008_daily_bin1050.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) = 6116.64486034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.334       1.0000         .10000E-03   10000.    
     3 'norm      '    .86403E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.477       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.845       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8496       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6203       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.101       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8561       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1084       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0901       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6116.640     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2519 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9302        .34505E-07** at limit **
   2  Prefactor     38.334        36.228        .32367E-06    .11065E-04
   3  norm          .86481E-01    .59077       -.66690E-06   -.93477E-03
   4  Prefactor     .10000E-03    72.836       -.88920E-05** at limit **
   5  Prefactor     .10000E-03    7.6496       -.14956E-06** at limit **
   6  Prefactor     7.6979        6.8916       -.18211E-05   -.51773E-04
   7  Prefactor     .10000E-03    14.940        .68887E-06** at limit **
   8  Prefactor     18.152        17.464       -.71720E-06    .63969E-04
   9  Prefactor     73.485        37.920        .46464E-05   -.23142E-05
  10  norm          .10000E-03    1.0023       -.15286E-06** at limit **
  11  norm          .91466        .66188       -.74611E-07   -.86816E-04
  12  Prefactor     .10000E-03    28.879       -.25501E-04** at limit **
  13  Prefactor     34.847        29.724        .57298E-06    .25595E-06
  14  Prefactor     5.8503        7.6962       -.97336E-06   -.56598E-04
  15  Prefactor     .10000E-03    31.918        .30466E-04** at limit **
  16  norm          .10000E-03    .11948       -.23193E-07** at limit **
  17  norm          5.6211        4.7968        .33853E-07   -.55448E-05
  18  Prefactor     29.165        38.783       -.25002E-04    .14033E-04
  19  Prefactor     18.100        13.798        .80551E-07   -.35069E-05
  20  Prefactor     9.8560        13.042        .14988E-05   -.41893E-04
  21  norm          5.1088        1.0943       -.35870E-07    .45987E-03
  22  Normalizat    1.0897        .15471        .28254E-05    .70738E-04
  23  Prefactor     .62724        .17046       -.51392E-06    .21115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.3343
  norm       = 0.0864807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.69788
  Prefactor  = 0.0001
  Prefactor  = 18.1516
  Prefactor  = 73.4847
  norm       = 0.0001
  norm       = 0.914664
  Prefactor  = 0.0001
  Prefactor  = 34.8468
  Prefactor  = 5.85034
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.62112
  Prefactor  = 29.1653
  Prefactor  = 18.0998
  Prefactor  = 9.85598
  norm       = 5.10883
  Normalizat = 1.08967
  Prefactor  = 0.627237
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.640     FROM HESSE     STATUS=OK           376 CALLS     2895 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.334        36.230        .64735E-04   -1.4469    
   3  norm          .86481E-01    1.2146        .11549E-02   -1.5649    
   4  Prefactor     .10000E-03    72.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6979        6.8923        .14455E-03   -1.5153    
   7  Prefactor     .10000E-03    15.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.152        17.494        .94016E-04   -1.4856    
   9  Prefactor     73.485        37.956        .23419E-03   -1.3991    
  10  norm          .10000E-03    1.0136        .76441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .91466        .65436        .51960E-04   -1.5517    
  12  Prefactor     .10000E-03    28.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.847        29.724        .67888E-04   -1.4527    
  14  Prefactor     5.8503        7.6910        .16605E-03   -1.5224    
  15  Prefactor     .10000E-03    31.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .24531        .52184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6211        4.7782        .15217E-03   -1.5234    
  18  Prefactor     29.165        38.905        .74159E-04   -1.4627    
  19  Prefactor     18.100        13.785        .94138E-04   -1.4857    
  20  Prefactor     9.8560        13.175        .12764E-03   -1.5080    
  21  norm          5.1088        1.1101        .31637E-04   -1.5256    
  22  Normalizat    1.0897        .17877        .20573E-03   -.90084    
  23  Prefactor     .62724        .19647        .30215E-03   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78219e-10
Minuit parameter uncertainties:
  1  3.37049e-06
  2  36.2513
  3  0.647825
  4  3.51683e-05
  5  1.71457e-05
  6  6.89304
  7  5.34157e-05
  8  17.4986
  9  37.9689
  10  2.45987e-06
  11  0.654364
  12  1.07872e-05
  13  29.7362
  14  7.6923
  15  3.97184e-05
  16  3.84498e-06
  17  4.7785
  18  38.9387
  19  13.7875
  20  13.1789
  21  1.11013
  22  0.178873
  23  0.196687
Done.

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

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  9.147e-01  6.544e-01  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  6.272e-01  1.967e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.090e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.07
Ra Dec: 53.557 -40.145
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.05e-05

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) = 6116.47213147
delta logL = 0.167953780634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6116.46663468
delta logL = 0.173450568974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88989       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5189       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6116.467     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88989        9.9248        .10142E-01   -.17302E-02
   2  alpha         2.5189        3.5208        .41153        .13265E-04
   3  Normalizat    1.0674        .53193E-01    .39514E-01   -.19205E-04
   4  Prefactor     .64272        .53870E-01    .67507E-01    .55751E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.889889
  alpha      = 2.51894
  Normalizat = 1.06744
  Prefactor  = 0.642715
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.467     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88989        .63444        .45429E-04   -1.5519    
   2  alpha         2.5189        .76558        .15872E-01    .75771E-02
   3  Normalizat    1.0674        .17684        .20756E-03   -.90804    
   4  Prefactor     .64272        .19820        .29873E-03   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8126e-10
Minuit parameter uncertainties:
  1  0.63444
  2  0.778078
  3  0.17694
  4  0.198418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664737': 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) = 6116.46663468
delta logL = 0.173450569174

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  8.899e-01  6.344e-01  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.519e+00  7.781e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  7.230e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  6.427e-01  1.984e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.067e+00  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 53.557 -40.145
Photon Index (Free Index): 2.52 +/- 0.78
Photon Flux (Free Index): 4.68e-08 +/- 3.87e-08
Energy Flux (Free Index): 1.30e-05 +/- 8.49e-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/664737/cmap_HighResolution_511488001_511747201_4FGL_J0334.2-4008_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='1.30e-05', photon_flux_error='2.23e-08', dlogl='1.73e-01', energy_flux='1.46e-05', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-08-18 18:44:48.349944', photon_index_error2='0.78', photon_index2='2.52', ts='5.07', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='8.49e-06', EG='1.09', time_epoch_completed='1629337488.35', return_code='0', job_id='664737', GAL2='0.64', EG2='1.07', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.87e-08', ts2='5.39', photon_index='2.08' WHERE bin_id='1050' AND source_name='4FGL J0334.2-4008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:44:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 664737: <4FGL_J0334.2-4008_daily_bin1050> in cluster <slac> Done

Job <4FGL_J0334.2-4008_daily_bin1050> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 18 18:31:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 18:31:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 18:31:42 2021
Terminated at Wed Aug 18 18:44:49 2021
Results reported at Wed Aug 18 18:44:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-4008_daily_bin1050 53.5566 -40.145 511488001 511747201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0334.2-4008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            789 sec.

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

