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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1617
RA = 53.5556, Dec = -37.4327
tmin = 658454401, tmax = 658713601
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='175093', job_status='RUN', time_executed='2021-12-07 14:08:36.897166', time_epoch_executed='1638914916.9' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175093/ft1_4FGL_J0334.2-3725_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175093/ft1_4FGL_J0334.2-3725_daily_bin1617.fits outfile=/scratch/kocevski/175093/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1617.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=658454401.0 tmax=658713601.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 2.96
user 2.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits" evtable="EVENTS" scfile=/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits sctable="SC_DATA" outfile=/scratch/kocevski/175093/ltcube_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.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/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits
.....................!
real 14.16
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/175093/ltcube_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.fits outfile=/scratch/kocevski/175093/expmap_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.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/175093/ltcube_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.fits
.....................!
real 190.74
user 185.43
sys 4.79

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/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits scfile=/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits outfile=/scratch/kocevski/175093/cmap_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.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 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits scfile=/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits outfile=/scratch/kocevski/175093/cmap_HighResolution_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.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 0.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175093/Model_4FGL_J0334.2-3725_daily_bin1617.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/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits.....................!
real 149.41
user 147.72
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits', '/scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits', expMap='/scratch/kocevski/175093/expmap_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.fits', expCube='/scratch/kocevski/175093/ltcube_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175093/Model_4FGL_J0334.2-3725_daily_bin1617.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/175093/ft1_filtered_4FGL_J0334.2-3725_daily_bin1617.fits
Spacecraft file(s): /scratch/kocevski/175093/ft2_4FGL_J0334.2-3725_daily_bin1617.fits
Exposure map: /scratch/kocevski/175093/expmap_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.fits
Exposure cube: /scratch/kocevski/175093/ltcube_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175093/Model_4FGL_J0334.2-3725_daily_bin1617.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) = 7450.18305172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2804       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5243       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9812       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .33370       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.181       1.0000         .10000E-03   10000.    
    20 'norm      '    .51571       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2266       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75794       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.

 FCN=   7450.181     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2426 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.627        16.948        .25510E-06    .15628E-04
   2  Prefactor     .10000E-03    21.562       -.69781E-05** at limit **
   3  Prefactor     40.329        206.98       -.57434E-04    .35202E-05
   4  Prefactor     .10000E-03    6.6225       -.10235E-05** at limit **
   5  Prefactor     .10000E-03    9.3697       -.91577E-06** at limit **
   6  Prefactor     8.2800        9.9380       -.42876E-06   -.16245E-04
   7  Prefactor     .10000E-03    13.794        .31273E-05** at limit **
   8  norm          4.5240        3.1589       -.15982E-06   -.19736E-03
   9  norm          2.4254        .88903       -.48196E-07    .64598E-05
  10  Prefactor     22.095        25.668       -.60345E-06    .37846E-05
  11  Prefactor     .10000E-03    69.632        .10151E-03** at limit **
  12  Prefactor     8.9805        15.822       -.31629E-07    .22540E-04
  13  norm          2.7526        1.1681       -.14760E-06   -.12219E-02
  14  Prefactor     .10000E-03    93.349       -.14064E-03** at limit **
  15  norm          .33356        .26429        .58458E-08   -.30732E-03
  16  norm          .10000E-03    6.5737        .13230E-05** at limit **
  17  Prefactor     62.813        34.592       -.24827E-05   -.50946E-05
  18  Prefactor     9.6433        14.424       -.29178E-05   -.89155E-04
  19  Prefactor     27.191        14.157       -.18243E-05   -.78488E-04
  20  norm          .51478        .65968        .38159E-06   -.26461E-04
  21  Normalizat    1.2268        .15767        .13470E-05   -.13298E-03
  22  Prefactor     .75770        .17304        .10578E-05   -.66211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6275
  Prefactor  = 0.0001
  Prefactor  = 40.3289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.27997
  Prefactor  = 0.0001
  norm       = 4.52397
  norm       = 2.4254
  Prefactor  = 22.0953
  Prefactor  = 0.000100003
  Prefactor  = 8.98049
  norm       = 2.7526
  Prefactor  = 0.0001
  norm       = 0.333562
  norm       = 0.0001
  Prefactor  = 62.8128
  Prefactor  = 9.64328
  Prefactor  = 27.1915
  norm       = 0.514778
  Normalizat = 1.22677
  Prefactor  = 0.757697
 **********
 **   18 **HESSE 
 **********

 FCN=   7450.181     FROM HESSE     STATUS=OK           350 CALLS     2776 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.627        16.951        .95396E-04   -1.4868    
   2  Prefactor     .10000E-03    21.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.329        207.56        .63091E-04   -1.4437    
   4  Prefactor     .10000E-03    6.6259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2800        9.9385        .13932E-03   -1.5132    
   7  Prefactor     .10000E-03    13.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5240        3.1507        .12152E-03   -1.5283    
   9  norm          2.4254        .88812        .46876E-04   -1.5396    
  10  Prefactor     22.095        25.673        .85211E-04   -1.4768    
  11  Prefactor     .10000E-03    69.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9805        15.735        .13374E-03   -1.5109    
  13  norm          2.7526        1.1689        .58398E-04   -1.5376    
  14  Prefactor     .10000E-03    93.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .33356        .25123        .36842E-03   -1.5592    
  16  norm          .10000E-03    6.7537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.813        34.631        .50630E-04   -1.4121    
  18  Prefactor     9.6433        14.279        .12910E-03   -1.5087    
  19  Prefactor     27.191        13.813        .76841E-04   -1.4665    
  20  norm          .51478        .60199        .63889E-03   -1.5564    
  21  Normalizat    1.2268        .18850        .22224E-03   -.85779    
  22  Prefactor     .75770        .20501        .30941E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20541e-09
Minuit parameter uncertainties:
  1  16.9555
  2  1.30256e-05
  3  184
  4  4.22464e-06
  5  6.29988e-06
  6  9.94052
  7  1.94833e-05
  8  3.15083
  9  0.888123
  10  25.6854
  11  0.000933483
  12  15.7424
  13  1.16895
  14  0.000188701
  15  0.251234
  16  1.89569e-05
  17  34.642
  18  14.2841
  19  13.8145
  20  0.601994
  21  0.188608
  22  0.205213
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  4.524e+00  3.151e+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:  7.577e-01  2.052e-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:  1.227e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.59e-05

TS (Fixed Index): 3.84
Ra Dec: 53.556 -37.433
Photon Flux Upper Limit: 7.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175093/likelihoodResults_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.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) = 7448.52090228
delta logL = 1.66026198822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7448.50873139
delta logL = 1.67243287447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8501       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9510       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80629       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=   7448.509     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8501        19.950        .60207E-02   -.60178E-04
   2  alpha         2.9510        3.8315        .23066        .79736E-04
   3  Normalizat    1.1538        .63210E-01    .36140E-01    .14142E-04
   4  Prefactor     .80629        .64023E-01    .67908E-01    .13816E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85014
  alpha      = 2.95097
  Normalizat = 1.15376
  Prefactor  = 0.806289
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.509     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8501        2.8068        .64791E-04   -1.5370    
   2  alpha         2.9510        .64921        .91612E-02    .18138    
   3  Normalizat    1.1538        .18658        .22754E-03   -.88044    
   4  Prefactor     .80629        .20604        .30044E-03   -.99497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11428e-09
Minuit parameter uncertainties:
  1  2.80696
  2  0.656997
  3  0.18669
  4  0.206233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175093': 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) = 7448.50873139
delta logL = 1.67243287512

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  2.850e+00  2.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.951e+00  6.570e-01  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.063e-01  2.062e-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:  1.154e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.25
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 2.95 +/- 0.66
Photon Flux (Free Index): 9.24e-08 +/- 4.92e-08
Energy Flux (Free Index): 2.00e-05 +/- 9.62e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/175093/cmap_HighResolution_658454401_658713601_4FGL_J0334.2-3725_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-05', comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='2.00e-05', photon_flux_error='2.22e-08', dlogl='1.67e+00', energy_flux='2.28e-05', photon_flux2='9.24e-08', job_status='DONE', time_completed='2021-12-07 14:22:02.819064', photon_index_error2='0.66', photon_index2='2.95', ts='3.84', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='7.98e-08', energy_flux_error2='9.62e-06', EG='1.23', time_epoch_completed='1638915722.82', return_code='0', job_id='175093', GAL2='0.81', EG2='1.15', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.92e-08', ts2='7.25', photon_index='1.92' WHERE bin_id='1617' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:22:02 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 175093: <4FGL_J0334.2-3725_daily_bin1617> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1617> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 14:05:28 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:07:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:07:34 2021
Terminated at Tue Dec  7 14:22:03 2021
Results reported at Tue Dec  7 14:22:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1617 53.5556 -37.4327 658454401 658713601 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 :                                   804.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            995 sec.

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

