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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1594
RA = 53.5556, Dec = -37.4327
tmin = 652492801, tmax = 652752001
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='711548', job_status='RUN', time_executed='2021-09-08 00:06:24.604671', time_epoch_executed='1631084784.6' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711548/ft1_4FGL_J0334.2-3725_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711548/ft1_4FGL_J0334.2-3725_daily_bin1594.fits outfile=/scratch/kocevski/711548/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1594.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=652492801.0 tmax=652752001.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 4.48
user 4.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.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/711548/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1594.fits evtable="EVENTS" outfile="/scratch/kocevski/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/711548/ltcube_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.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/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits
.....................!
real 16.56
user 16.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/711548/ltcube_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.fits outfile=/scratch/kocevski/711548/expmap_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.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/711548/ltcube_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.fits
.....................!
real 199.38
user 193.88
sys 4.94

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/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.fits scfile=/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits outfile=/scratch/kocevski/711548/cmap_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.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.63
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.fits scfile=/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits outfile=/scratch/kocevski/711548/cmap_HighResolution_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/711548/ft2_4FGL_J0334.2-3725_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711548/Model_4FGL_J0334.2-3725_daily_bin1594.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/711548/ft1_filtered_4FGL_J0334.2-3725_daily_bin1594.fits.....................!
real 141.04
user 139.37
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4166       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8673       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6073       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.0314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0834       1.0000         .10000E-03   10000.    
    16 'norm      '    13.353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9638       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5153       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3764       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77832       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0247       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=   6747.368     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2316 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4166        10.162        .10557E-06   -.27885E-04
   2  Prefactor     .10000E-03    37.329        .18484E-05** at limit **
   3  Prefactor     .10001E-03    72.506       -.46703E-05** at limit **
   4  Prefactor     6.6471        14.979        .21365E-05   -.23663E-03
   5  Prefactor     .10000E-03    8.1786       -.83547E-07** at limit **
   6  Prefactor     .10000E-03    6.1749       -.45810E-07** at limit **
   7  Prefactor     .10001E-03    29.902       -.62641E-05** at limit **
   8  norm          4.8669        3.1503        .46577E-07    .80147E-05
   9  norm          2.6073        .96865       -.59090E-08   -.16850E-03
  10  Prefactor     .10000E-03    14.490        .28398E-05** at limit **
  11  Prefactor     .10000E-03    13.313       -.26134E-05** at limit **
  12  Prefactor     .10000E-03    10.059        .26187E-06** at limit **
  13  norm          9.0315        1.4251        .17382E-07    .46401E-03
  14  Prefactor     .10001E-03    39.230        .65046E-05** at limit **
  15  norm          1.0834        .33401        .86511E-08    .57644E-03
  16  norm          13.353        7.4934       -.70073E-07    .25613E-04
  17  Prefactor     2.9577        95.783       -.47726E-05   -.47969E-04
  18  Prefactor     .10000E-03    2.6183       -.17017E-07** at limit **
  19  Prefactor     6.5152        7.1683        .27381E-05   -.11629E-02
  20  norm          2.3764        .62607       -.11521E-06    .53319E-03
  21  Normalizat    .77825        .15378        .17111E-06    .80862E-04
  22  Prefactor     1.0248        .17625       -.44445E-06    .86837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.41657
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 6.6471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 4.86686
  norm       = 2.60725
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.03148
  Prefactor  = 0.000100015
  norm       = 1.08341
  norm       = 13.3531
  Prefactor  = 2.95768
  Prefactor  = 0.0001
  Prefactor  = 6.51523
  norm       = 2.37644
  Normalizat = 0.778246
  Prefactor  = 1.02477
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.368     FROM HESSE     STATUS=OK           344 CALLS     2660 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4166        10.161        .73635E-03   -1.5163    
   2  Prefactor     .10000E-03    37.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    73.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6471        15.196        .77820E-03   -1.5192    
   5  Prefactor     .10000E-03    8.2001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    31.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8669        3.1470        .11249E-03   -1.5267    
   9  norm          2.6073        .96732        .46809E-04   -1.5385    
  10  Prefactor     .10000E-03    14.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.0315        1.4274        .37421E-04   -1.5107    
  14  Prefactor     .10001E-03    41.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0834        .33442        .24572E-04   -1.5500    
  16  norm          13.353        7.5048        .10961E-03   -1.4977    
  17  Prefactor     2.9577        96.603        .23587E-03   -1.5364    
  18  Prefactor     .10000E-03    2.6207        .12980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5152        7.8279        .78614E-03   -1.5197    
  20  norm          2.3764        .63618        .30653E-04   -1.5400    
  21  Normalizat    .77825        .18170        .25349E-03   -1.0088    
  22  Prefactor     1.0248        .20788        .26349E-03   -.91908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91329e-09
Minuit parameter uncertainties:
  1  10.1637
  2  0.000408467
  3  0.00151542
  4  15.2046
  5  1.27493e-05
  6  6.85347e-06
  7  0.00128623
  8  3.14715
  9  0.967329
  10  0.000408649
  11  0.000365103
  12  1.88279e-05
  13  1.42739
  14  0.00155522
  15  0.334419
  16  7.50532
  17  33.8657
  18  1.73803e-06
  19  7.82916
  20  0.636184
  21  0.181845
  22  0.208044
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  4.867e+00  3.147e+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.025e+00  2.080e-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:  7.782e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.75
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.59e-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) = 6747.13397544
delta logL = 0.23394766705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6747.11606632
delta logL = 0.251856784845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5444       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2966       1.0000          .0000       5.0000    
     3 'Normalizat'    .75885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0360       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=   6747.116     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5457        50.958        .47211E-02    .17700E-03
   2  alpha         2.2963        3.6213        .33007        .46922E-04
   3  Normalizat    .75889        .72509E-01    .43071E-01    .19024E-04
   4  Prefactor     1.0360        .67642E-01    .59271E-01    .40098E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54574
  alpha      = 2.2963
  Normalizat = 0.758889
  Prefactor  = 1.03597
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.116     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5457        3.0401        .96771E-04   -1.5282    
   2  alpha         2.2963        .54146        .11435E-01   -.81572E-01
   3  Normalizat    .75889        .17800        .25620E-03   -1.0161    
   4  Prefactor     1.0360        .20818        .26209E-03   -.91540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75969e-12
Minuit parameter uncertainties:
  1  3.04022
  2  0.54582
  3  0.178141
  4  0.208346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711548': 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) = 6747.11606614
delta logL = 0.251856966493

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  4.546e+00  3.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.296e+00  5.458e-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:  1.036e+00  2.083e-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:  7.589e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 2.30 +/- 0.55
Photon Flux (Free Index): 5.23e-08 +/- 3.78e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/711548/cmap_HighResolution_652492801_652752001_4FGL_J0334.2-3725_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.98e-05', photon_flux_error='2.21e-08', dlogl='2.52e-01', energy_flux='2.46e-05', photon_flux2='5.23e-08', job_status='DONE', time_completed='2021-09-08 00:18:15.821573', photon_index_error2='0.55', photon_index2='2.30', ts='5.75', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.78', time_epoch_completed='1631085495.82', return_code='0', job_id='711548', GAL2='1.04', EG2='0.76', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='3.78e-08', ts2='6.23', photon_index='1.92' WHERE bin_id='1594' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:18:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 711548: <4FGL_J0334.2-3725_daily_bin1594> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1594> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 00:05:56 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:06:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:06:10 2021
Terminated at Wed Sep  8 00:18:16 2021
Results reported at Wed Sep  8 00:18:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1594 53.5556 -37.4327 652492801 652752001 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             374.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            740 sec.

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

