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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1061
RA = 53.5556, Dec = -37.4327
tmin = 514339201, tmax = 514598401
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='652968', job_status='RUN', time_executed='2021-08-18 17:57:41.609863', time_epoch_executed='1629334661.61' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652968

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652968/ft1_4FGL_J0334.2-3725_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652968/ft1_4FGL_J0334.2-3725_daily_bin1061.fits outfile=/scratch/kocevski/652968/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1061.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=514339201.0 tmax=514598401.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 9.65
user 3.92
sys 5.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.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/652968/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.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 5.93
user 0.34
sys 5.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/652968/ltcube_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.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/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits
.....................!
real 18.03
user 11.54
sys 6.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/652968/ltcube_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.fits outfile=/scratch/kocevski/652968/expmap_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.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/652968/ltcube_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.fits
.....................!
real 197.65
user 185.42
sys 11.71

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 179 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-3725 @ 53.5556 -37.4327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits scfile=/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits outfile=/scratch/kocevski/652968/cmap_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.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.5556 yref=-37.4327 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 5.60
user 0.38
sys 5.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits scfile=/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits outfile=/scratch/kocevski/652968/cmap_HighResolution_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.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.5556 yref=-37.4327 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 5.84
user 0.37
sys 5.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652968/Model_4FGL_J0334.2-3725_daily_bin1061.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/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits....................!
real 130.66
user 122.06
sys 8.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits', '/scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits', expMap='/scratch/kocevski/652968/expmap_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.fits', expCube='/scratch/kocevski/652968/ltcube_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652968/Model_4FGL_J0334.2-3725_daily_bin1061.xml', optimizer='MINUIT')

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

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  3.336e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/652968/ft1_filtered_4FGL_J0334.2-3725_daily_bin1061.fits
Spacecraft file(s): /scratch/kocevski/652968/ft2_4FGL_J0334.2-3725_daily_bin1061.fits
Exposure map: /scratch/kocevski/652968/expmap_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.fits
Exposure cube: /scratch/kocevski/652968/ltcube_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652968/Model_4FGL_J0334.2-3725_daily_bin1061.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) = 5875.53566934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.986       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96545E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4823       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7323       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67669E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .74502E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7651       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8722       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98303       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81813       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+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=   5874.865     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     2450 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0989        .18142E-02** at limit **
   2  Prefactor     .10000E-03    10.485        .18142E-02** at limit **
   3  Prefactor     .10000E-03    80.796        .18142E-02** at limit **
   4  Prefactor     3.4366        45.736        .21833E-03   -.20568E-04
   5  Prefactor     .10000E-03    8.2254        .18142E-02** at limit **
   6  Prefactor     36.994        20.906        .65900E-04    .70731E-05
   7  Prefactor     .10001E-03    38.158        .12242    ** at limit **
   8  norm          3.4823        2.5003        .99426E-04   -.29500E-04
   9  norm          .10000E-03    .57859        .78825E-03** at limit **
  10  Prefactor     3.9999        111.90        .20179E-03   -.10423E-04
  11  Prefactor     .10000E-03    12.363        .18142E-02** at limit **
  12  Prefactor     5.7335        10.656        .16776E-03   -.99684E-04
  13  norm          1.8044        .83654        .45867E-04    .37700E-03
  14  Prefactor     .10003E-03    270.91        .20999E-02** at limit **
  15  norm          .74865E-01    .16133        .46782E-03    .10664E-02
  16  norm          .10000E-03    2.5215        .11846E-02** at limit **
  17  Prefactor     5.7773        25.559        .16728E-03   -.29360E-04
  18  Prefactor     9.1194        8.5172        .13270E-03   -.78303E-04
  19  Prefactor     .10000E-03    8.9363        .36285E-03** at limit **
  20  norm          3.8723        .73118        .27182E-04   -.18612E-03
  21  Normalizat    .98293        .18257        .21015E-03   -.18365E-03
  22  Prefactor     .81812        .20539        .26870E-03    .33776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43657
  Prefactor  = 0.0001
  Prefactor  = 36.9942
  Prefactor  = 0.000100007
  norm       = 3.48234
  norm       = 0.0001
  Prefactor  = 3.99993
  Prefactor  = 0.0001
  Prefactor  = 5.73346
  norm       = 1.80437
  Prefactor  = 0.000100025
  norm       = 0.0748647
  norm       = 0.0001
  Prefactor  = 5.77728
  Prefactor  = 9.11937
  Prefactor  = 0.0001
  norm       = 3.87228
  Normalizat = 0.982929
  Prefactor  = 0.818119
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.865     FROM HESSE     STATUS=OK           332 CALLS     2782 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    80.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4366        45.718        .87334E-05   -1.5337    
   5  Prefactor     .10000E-03    8.2267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.994        20.909        .26360E-05   -1.4491    
   7  Prefactor     .10001E-03    36.605        .12581       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4823        2.5003        .39771E-05   -1.5335    
   9  norm          .10000E-03    .57967        .15765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9999        111.94        .80715E-05   -1.5308    
  11  Prefactor     .10000E-03    12.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7335        10.651        .67105E-05   -1.5229    
  13  norm          1.8044        .83653        .18347E-05   -1.5439    
  14  Prefactor     .10003E-03    271.00        .41997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .74865E-01    .16102        .18713E-04   -1.5653    
  16  norm          .10000E-03    2.5218        .23692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7773        25.558        .66911E-05   -1.5227    
  18  Prefactor     9.1194        8.5167        .53081E-05   -1.5104    
  19  Prefactor     .10000E-03    8.9367        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8723        .73117        .10873E-05   -1.5314    
  21  Normalizat    .98293        .18261        .42030E-04   -.93605    
  22  Prefactor     .81812        .20556        .53740E-04   -.99064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37599e-09
Minuit parameter uncertainties:
  1  7.03627e-06
  2  1.436e-05
  3  0.000155477
  4  25.0921
  5  1.01708e-06
  6  20.913
  7  0.00104555
  8  2.50033
  9  1.28731e-06
  10  42.4083
  11  2.73541e-06
  12  10.6546
  13  0.836535
  14  0.00526593
  15  0.161018
  16  9.09643e-06
  17  24.3197
  18  8.51785
  19  1.70867e-05
  20  0.731168
  21  0.18273
  22  0.205752
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  3.482e+00  2.500e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.181e-01  2.058e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.829e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.26e-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) = 5874.56684752
delta logL = 0.298570876927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.44799176
delta logL = 0.417426640435

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5874.448     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80471        .96120        .12492E-01   -.27798E-02
   2  alpha         .84748        .47917        .34994        .58531E-04
   3  Normalizat    .99265        .14708        .46082E-01    .58464E-04
   4  Prefactor     .82523        .17414        .44035E-01    .77208E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.804706
  alpha      = 0.84748
  Normalizat = 0.992646
  Prefactor  = 0.825234
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.448     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80471        4.6300        .63346E-03   -1.5529    
   2  alpha         .84748        1.5685        .15274E-02   -.72216    
   3  Normalizat    .99265        .17286        .20939E-03   -.93277    
   4  Prefactor     .82523        .20548        .26802E-03   -.98805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4281e-10
Minuit parameter uncertainties:
  1  3.86068
  2  1.85749
  3  0.172957
  4  0.205667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652968': 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) = 5874.44797831
delta logL = 0.417440084171

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  8.047e-01  3.861e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  8.475e-01  1.857e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.252e-01  2.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.926e-01  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.85
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 0.85 +/- 1.86
Photon Flux (Free Index): 4.55e-09 +/- 1.24e-08
Energy Flux (Free Index): 5.25e-05 +/- 1.02e-04

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/652968/cmap_HighResolution_514339201_514598401_4FGL_J0334.2-3725_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='5.25e-05', photon_flux_error='1.76e-08', dlogl='4.17e-01', energy_flux='1.76e-05', photon_flux2='4.55e-09', job_status='DONE', time_completed='2021-08-18 18:09:56.133498', photon_index_error2='1.86', photon_index2='0.85', ts='5.03', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.98', time_epoch_completed='1629335396.13', return_code='0', job_id='652968', GAL2='0.83', EG2='0.99', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='1.24e-08', ts2='5.85', photon_index='1.92' WHERE bin_id='1061' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:09:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 652968: <4FGL_J0334.2-3725_daily_bin1061> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1061> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Aug 18 17:55:28 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 17:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 17:55:29 2021
Terminated at Wed Aug 18 18:09:57 2021
Results reported at Wed Aug 18 18:09:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1061 53.5556 -37.4327 514339201 514598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0334.2-3725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   816.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

