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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1349
RA = 53.5556, Dec = -37.4327
tmin = 588988801, tmax = 589248001
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='655476', job_status='RUN', time_executed='2021-08-18 18:05:48.976271', time_epoch_executed='1629335148.98' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655476/ft1_4FGL_J0334.2-3725_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655476/ft1_4FGL_J0334.2-3725_daily_bin1349.fits outfile=/scratch/kocevski/655476/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1349.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=588988801.0 tmax=589248001.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.41
user 2.89
sys 4.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.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/655476/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.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 4.52
user 0.32
sys 4.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/655476/ltcube_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.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/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits
.....................!
real 17.01
user 11.99
sys 4.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/655476/ltcube_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.fits outfile=/scratch/kocevski/655476/expmap_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.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/655476/ltcube_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.fits
.....................!
real 195.07
user 185.25
sys 9.08

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/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.fits scfile=/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits outfile=/scratch/kocevski/655476/cmap_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.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 4.39
user 0.37
sys 3.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.fits scfile=/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits outfile=/scratch/kocevski/655476/cmap_HighResolution_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.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 4.34
user 0.40
sys 3.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/655476/ft2_4FGL_J0334.2-3725_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655476/Model_4FGL_J0334.2-3725_daily_bin1349.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/655476/ft1_filtered_4FGL_J0334.2-3725_daily_bin1349.fits.....................!
real 173.85
user 166.03
sys 6.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    99.777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3508       1.0000         .10000E-03   10000.    
     9 'norm      '    .38171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.566       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.034       1.0000         .10000E-03   10000.    
    13 'norm      '    17.868       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45369E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .46797       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2312       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1713       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83844       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3255       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=   8155.614     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2388 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4814       -.47748E-06** at limit **
   2  Prefactor     32.779        35.081       -.12298E-06    .25247E-05
   3  Prefactor     98.983        205.18       -.45155E-05   -.10824E-04
   4  Prefactor     5.7562        30.403        .93464E-06   -.21650E-05
   5  Prefactor     .10000E-03    4.4143       -.51622E-08** at limit **
   6  Prefactor     .10000E-03    7.8386        .42844E-06** at limit **
   7  Prefactor     .10000E-03    16.521        .33983E-06** at limit **
   8  norm          1.3508        1.3033       -.10694E-06   -.83960E-04
   9  norm          .38098        .56765        .72838E-06    .18121E-02
  10  Prefactor     .10000E-03    15.679        .25529E-06** at limit **
  11  Prefactor     12.574        36.621        .26311E-06   -.33628E-06
  12  Prefactor     22.030        14.197       -.18588E-06   -.84391E-04
  13  norm          17.868        1.8855        .11822E-07   -.63336E-04
  14  Prefactor     .10000E-03    72.376        .78387E-06** at limit **
  15  norm          .46791        .27354        .41503E-07   -.45385E-04
  16  norm          4.4097        4.6205       -.52511E-09   -.45738E-04
  17  Prefactor     44.418        36.492        .10992E-06   -.30500E-04
  18  Prefactor     3.2338        10.603        .94984E-06   -.75220E-05
  19  Prefactor     .10000E-03    8.4257        .41162E-06** at limit **
  20  norm          3.1718        .70285       -.38944E-07   -.17738E-03
  21  Normalizat    .83859        .18742       -.42509E-05    .65258E-04
  22  Prefactor     1.3253        .21231        .32749E-05   -.34387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.7793
  Prefactor  = 98.9828
  Prefactor  = 5.75617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35081
  norm       = 0.380976
  Prefactor  = 0.0001
  Prefactor  = 12.5742
  Prefactor  = 22.0299
  norm       = 17.8676
  Prefactor  = 0.0001
  norm       = 0.467906
  norm       = 4.40966
  Prefactor  = 44.418
  Prefactor  = 3.23377
  Prefactor  = 0.0001
  norm       = 3.17175
  Normalizat = 0.838589
  Prefactor  = 1.32534
 **********
 **   18 **HESSE 
 **********

 FCN=   8155.614     FROM HESSE     STATUS=OK           348 CALLS     2736 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.779        35.081        .69972E-04   -1.4562    
   3  Prefactor     98.983        205.33        .20123E-03   -1.3715    
   4  Prefactor     5.7562        30.474        .16745E-03   -1.5228    
   5  Prefactor     .10000E-03    4.4166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3508        1.3323        .98636E-04   -1.5476    
   9  norm          .38098        .58144        .89704E-03   -1.5585    
  10  Prefactor     .10000E-03    15.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.574        36.618        .11300E-03   -1.4999    
  12  Prefactor     22.030        14.230        .85330E-04   -1.4769    
  13  norm          17.868        1.8865        .38463E-04   -1.4862    
  14  Prefactor     .10000E-03    72.488        .21205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46791        .26551        .33608E-04   -1.5571    
  16  norm          4.4097        4.6111        .18993E-03   -1.5288    
  17  Prefactor     44.418        36.637        .60190E-04   -1.4374    
  18  Prefactor     3.2338        10.551        .22535E-03   -1.5348    
  19  Prefactor     .10000E-03    8.5650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1718        .70187        .32943E-04   -1.5352    
  21  Normalizat    .83859        .20548        .28784E-03   -.98653    
  22  Prefactor     1.3253        .23512        .28029E-03   -.82557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20175e-09
Minuit parameter uncertainties:
  1  9.39302e-07
  2  35.103
  3  206.832
  4  26.5094
  5  5.75172e-07
  6  6.64932e-06
  7  1.18856e-05
  8  1.33236
  9  0.581448
  10  2.52693e-06
  11  36.6839
  12  14.2325
  13  1.88649
  14  4.14836e-05
  15  0.265513
  16  4.61143
  17  36.6551
  18  10.5575
  19  1.36643e-05
  20  0.701871
  21  0.205675
  22  0.235312
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.351e+00  1.332e+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:  1.325e+00  2.353e-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:  8.386e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.16
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 9.51e-09 +/- 9.38e-09
Energy Flux (Fixed Index): 6.81e-06 +/- 6.72e-06

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) = 8152.05071511
delta logL = 3.56335941369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8151.75960968
delta logL = 3.85446484605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61835E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .10936E-07   1.0000          .0000       5.0000    
     3 'Normalizat'    .84455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3237       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=   8151.760     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61859E-01    .88957E-01    .37296E-02   -.73648E-02
   2  alpha         .21372E-12    .81011        .46267    ** at limit **
   3  Normalizat    .84459        .15886        .64845E-01    .92060E-05
   4  Prefactor     1.3237        .19038        .63399E-01    .83638E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0618594
  alpha      = 2.13718e-13
  Normalizat = 0.844587
  Prefactor  = 1.32369
 **********
 **   18 **HESSE 
 **********

 FCN=   8151.760     FROM HESSE     STATUS=OK            35 CALLS      293 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61859E-01    .63145E-01    .19805E-03   -1.5658    
   2  alpha         .21372E-12    3.1575        .45842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84459        .19393        .28685E-03   -.98436    
   4  Prefactor     1.3237        .23260        .28039E-03   -.82605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44224e-10
Minuit parameter uncertainties:
  1  0.063145
  2  1.11349e-06
  3  0.194093
  4  0.232781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655476': 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) = 8151.75960957
delta logL = 3.8544649532

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  6.186e-02  6.315e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.137e-13  1.113e-06  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:  1.324e+00  2.328e-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:  8.446e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.85
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.53e-09 +/- 2.59e-09
Energy Flux (Free Index): 9.79e-05 +/- 9.98e-05

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/655476/cmap_HighResolution_588988801_589248001_4FGL_J0334.2-3725_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.51e-09', energy_flux2='9.79e-05', photon_flux_error='9.38e-09', dlogl='3.85e+00', energy_flux='6.81e-06', photon_flux2='2.53e-09', job_status='DONE', time_completed='2021-08-18 18:20:10.595462', photon_index_error2='0.00', photon_index2='0.00', ts='12.16', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='9.98e-05', EG='0.84', time_epoch_completed='1629336010.6', return_code='0', job_id='655476', GAL2='1.32', EG2='0.84', return_code2='0', energy_flux_error='6.72e-06', photon_flux_error2='2.59e-09', ts2='19.85', photon_index='1.92' WHERE bin_id='1349' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:20:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 655476: <4FGL_J0334.2-3725_daily_bin1349> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1349> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 18 18:04:33 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 18:04:34 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:04:34 2021
Terminated at Wed Aug 18 18:20:12 2021
Results reported at Wed Aug 18 18:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1349 53.5556 -37.4327 588988801 589248001 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 :                                   906.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

