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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1093
RA = 53.5556, Dec = -37.4327
tmin = 522633601, tmax = 522892801
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='653017', job_status='RUN', time_executed='2021-08-18 17:56:49.341469', time_epoch_executed='1629334609.34' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653017/ft1_4FGL_J0334.2-3725_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653017/ft1_4FGL_J0334.2-3725_daily_bin1093.fits outfile=/scratch/kocevski/653017/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1093.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=522633601.0 tmax=522892801.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.16
user 3.31
sys 0.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.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/653017/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.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 1.03
user 0.33
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/653017/ltcube_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.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/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits
.....................!
real 12.69
user 11.64
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/653017/ltcube_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.fits outfile=/scratch/kocevski/653017/expmap_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.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/653017/ltcube_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.fits
.....................!
real 190.52
user 184.60
sys 5.44

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/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.fits scfile=/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits outfile=/scratch/kocevski/653017/cmap_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.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 1.10
user 0.35
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.fits scfile=/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits outfile=/scratch/kocevski/653017/cmap_HighResolution_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.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 1.06
user 0.37
sys 0.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/653017/ft2_4FGL_J0334.2-3725_daily_bin1093.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653017/Model_4FGL_J0334.2-3725_daily_bin1093.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/653017/ft1_filtered_4FGL_J0334.2-3725_daily_bin1093.fits.....................!
real 115.27
user 112.95
sys 2.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24214E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3481       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    93.113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4993       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.786       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9430       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94667       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4478       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=   5459.560     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2382 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.250        22.177        .88236E-06    .72999E-05
   2  Prefactor     59.370        64.607       -.26824E-04    .13031E-05
   3  Prefactor     .10000E-03    187.22       -.14129E-04** at limit **
   4  Prefactor     .10000E-03    13.512        .10652E-04** at limit **
   5  Prefactor     .10000E-03    6.8701        .16904E-07** at limit **
   6  Prefactor     .10000E-03    34.501       -.64359E-05** at limit **
   7  Prefactor     .10000E-03    13.849       -.17334E-04** at limit **
   8  norm          3.3479        3.6317       -.18689E-06   -.37954E-03
   9  norm          .10000E-03    .50612       -.30475E-07** at limit **
  10  Prefactor     .10000E-03    24.538        .10305E-04** at limit **
  11  Prefactor     .10000E-03    20.084       -.86699E-05** at limit **
  12  Prefactor     .10000E-03    14.947        .90889E-05** at limit **
  13  norm          1.5084        .93140       -.59563E-08   -.34200E-04
  14  Prefactor     .10000E-03    95.339        .10973E-04** at limit **
  15  norm          .10000E-03    .90227E-01   -.14552E-07** at limit **
  16  norm          .10000E-03    2.5890       -.33648E-07** at limit **
  17  Prefactor     93.129        51.762        .71601E-05   -.21445E-05
  18  Prefactor     8.5013        10.917       -.29085E-06   -.51709E-04
  19  Prefactor     14.792        14.079       -.37252E-07   -.61571E-04
  20  norm          2.9426        .95388       -.24272E-07   -.86434E-04
  21  Normalizat    .94637        .19781       -.54801E-06   -.14823E-04
  22  Prefactor     1.4479        .23119        .97603E-06   -.62453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.25
  Prefactor  = 59.3702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.34788
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50835
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 93.1291
  Prefactor  = 8.50126
  Prefactor  = 14.7918
  norm       = 2.94264
  Normalizat = 0.946374
  Prefactor  = 1.44794
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.560     FROM HESSE     STATUS=OK           338 CALLS     2720 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.250        22.178        .83058E-04   -1.4743    
   2  Prefactor     59.370        64.615        .52055E-04   -1.4165    
   3  Prefactor     .10000E-03    187.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3479        3.6174        .14108E-03   -1.5342    
   9  norm          .10000E-03    .90771        .10138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5084        .92794        .54231E-04   -1.5462    
  14  Prefactor     .10000E-03    95.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .96886E-01    .43196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5995        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     93.129        51.822        .41648E-04   -1.3775    
  18  Prefactor     8.5013        10.901        .13750E-03   -1.5125    
  19  Prefactor     14.792        14.229        .10416E-03   -1.4939    
  20  norm          2.9426        .96544        .35548E-04   -1.5365    
  21  Normalizat    .94637        .23533        .27019E-03   -.94849    
  22  Prefactor     1.4479        .27673        .26695E-03   -.79008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23092e-11
Minuit parameter uncertainties:
  1  22.1863
  2  64.6916
  3  0.000190419
  4  9.5551e-06
  5  2.25793e-06
  6  2.22963e-05
  7  6.54729e-07
  8  3.6176
  9  2.76364e-06
  10  9.4478e-06
  11  6.58144e-07
  12  2.22841e-05
  13  0.927952
  14  2.1723e-05
  15  3.81726e-07
  16  3.83595e-06
  17  51.8468
  18  10.9035
  19  14.2324
  20  0.965446
  21  0.235584
  22  0.277015
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  3.348e+00  3.618e+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.448e+00  2.770e-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.464e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.36e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/653017/likelihoodResults_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.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) = 5459.2707892
delta logL = 0.289647084627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5459.26558426
delta logL = 0.294852022765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6684       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6024       1.0000          .0000       5.0000    
     3 'Normalizat'    .91257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4711       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=   5459.266     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6691        61.712        .62374E-02    .39514E-03
   2  alpha         2.6019        3.4916        .29613        .48869E-04
   3  Normalizat    .91290        .82620E-01    .45062E-01   -.44574E-04
   4  Prefactor     1.4706        .77890E-01    .59973E-01   -.12281E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66905
  alpha      = 2.60191
  Normalizat = 0.912898
  Prefactor  = 1.47061
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.266     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6691        3.9681        .10352E-03   -1.5381    
   2  alpha         2.6019        1.1002        .15270E-01    .40777E-01
   3  Normalizat    .91290        .24061        .27457E-03   -.96008    
   4  Prefactor     1.4706        .28120        .26520E-03   -.78366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14526e-11
Minuit parameter uncertainties:
  1  3.96851
  2  1.13934
  3  0.240897
  4  0.281501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653017': 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) = 5459.26558262
delta logL = 0.294853664886

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  2.669e+00  3.969e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.602e+00  1.139e+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:  1.471e+00  2.815e-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.129e-01  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 2.60 +/- 1.14
Photon Flux (Free Index): 4.87e-08 +/- 5.32e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.29e-05

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/653017/cmap_HighResolution_522633601_522892801_4FGL_J0334.2-3725_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-05', comment='SUCCESS', photon_flux='2.36e-08', energy_flux2='1.34e-05', photon_flux_error='2.55e-08', dlogl='2.95e-01', energy_flux='1.69e-05', photon_flux2='4.87e-08', job_status='DONE', time_completed='2021-08-18 18:08:04.539773', photon_index_error2='1.14', photon_index2='2.60', ts='1.32', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='1.29e-05', EG='0.95', time_epoch_completed='1629335284.54', return_code='0', job_id='653017', GAL2='1.47', EG2='0.91', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='5.32e-08', ts2='1.91', photon_index='1.92' WHERE bin_id='1093' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 653017: <4FGL_J0334.2-3725_daily_bin1093> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1093> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Aug 18 17:55:31 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 17:55:32 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:32 2021
Terminated at Wed Aug 18 18:08:05 2021
Results reported at Wed Aug 18 18:08:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1093 53.5556 -37.4327 522633601 522892801 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 :                                   681.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

