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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1057
RA = 53.5556, Dec = -37.4327
tmin = 513302401, tmax = 513561601
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='652963', job_status='RUN', time_executed='2021-08-18 17:56:40.358203', time_epoch_executed='1629334600.36' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652963/ft1_4FGL_J0334.2-3725_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652963/ft1_4FGL_J0334.2-3725_daily_bin1057.fits outfile=/scratch/kocevski/652963/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1057.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=513302401.0 tmax=513561601.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 5.40
user 5.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652963/ft1_filtered_4FGL_J0334.2-3725_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/652963/ltcube_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.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/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits
.....................!
real 11.97
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652963/ft1_filtered_4FGL_J0334.2-3725_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/652963/ltcube_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.fits outfile=/scratch/kocevski/652963/expmap_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.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/652963/ltcube_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.fits
.....................!
real 189.10
user 184.61
sys 4.13

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/652963/ft1_filtered_4FGL_J0334.2-3725_daily_bin1057.fits scfile=/scratch/kocevski/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits outfile=/scratch/kocevski/652963/cmap_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652963/ft1_filtered_4FGL_J0334.2-3725_daily_bin1057.fits scfile=/scratch/kocevski/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits outfile=/scratch/kocevski/652963/cmap_HighResolution_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652963/ft1_filtered_4FGL_J0334.2-3725_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/652963/ft2_4FGL_J0334.2-3725_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652963/Model_4FGL_J0334.2-3725_daily_bin1057.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/652963/ft1_filtered_4FGL_J0334.2-3725_daily_bin1057.fits......................!
real 77.48
user 76.05
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1005       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.654       1.0000         .10000E-03   10000.    
    13 'norm      '    .56203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.425       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.579       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8540       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .46849       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2210       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=   3564.091     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2386 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8237        .20899E-07** at limit **
   2  Prefactor     .10000E-03    48.127       -.35850E-05** at limit **
   3  Prefactor     .10000E-03    95.148       -.59358E-05** at limit **
   4  Prefactor     .10000E-03    13.386        .17110E-06** at limit **
   5  Prefactor     .10000E-03    113.62        .14786E-04** at limit **
   6  Prefactor     61.488        33.354       -.18008E-06    .30341E-05
   7  Prefactor     .10000E-03    29.700        .53673E-06** at limit **
   8  norm          2.1005        2.2032        .91604E-07    .19937E-04
   9  norm          1.6222        1.0059       -.59285E-07    .80511E-04
  10  Prefactor     61.586        70.453       -.18810E-05    .45786E-05
  11  Prefactor     .10000E-03    64.074        .11017E-04** at limit **
  12  Prefactor     18.655        21.149        .98465E-06    .10923E-03
  13  norm          .56207        .72549        .48152E-06    .51727E-03
  14  Prefactor     .10000E-03    238.21        .24692E-04** at limit **
  15  norm          .10000E-03    .20022       -.26279E-06** at limit **
  16  norm          10.950        10.209       -.59551E-06    .12401E-03
  17  Prefactor     16.717        43.785       -.18681E-05    .60081E-05
  18  Prefactor     51.424        29.007        .26831E-06    .10217E-03
  19  Prefactor     13.581        21.447       -.59335E-06    .43833E-04
  20  norm          4.8539        1.4438        .26298E-07    .21705E-03
  21  Normalizat    .46840        .21469        .29855E-05    .62265E-04
  22  Prefactor     1.2212        .23700       -.40415E-06    .15716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4878
  Prefactor  = 0.0001
  norm       = 2.10051
  norm       = 1.62218
  Prefactor  = 61.5862
  Prefactor  = 0.000100001
  Prefactor  = 18.6551
  norm       = 0.562068
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 10.9495
  Prefactor  = 16.7174
  Prefactor  = 51.424
  Prefactor  = 13.5809
  norm       = 4.8539
  Normalizat = 0.468397
  Prefactor  = 1.22118
 **********
 **   18 **HESSE 
 **********

 FCN=   3564.091     FROM HESSE     STATUS=OK           344 CALLS     2730 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8247        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    95.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    110.94        .51123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     61.488        33.352        .51171E-04   -1.4138    
   7  Prefactor     .10000E-03    29.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1005        2.2093        .88131E-04   -1.5418    
   9  norm          1.6222        1.0021        .45264E-04   -1.5453    
  10  Prefactor     61.586        70.426        .51136E-04   -1.4137    
  11  Prefactor     .10000E-03    63.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.655        21.151        .92733E-04   -1.4844    
  13  norm          .56207        .69498        .56449E-03   -1.5558    
  14  Prefactor     .10000E-03    236.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .23900        .51419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.950        10.168        .12108E-03   -1.5046    
  17  Prefactor     16.717        43.742        .97986E-04   -1.4890    
  18  Prefactor     51.424        28.940        .55926E-04   -1.4273    
  19  Prefactor     13.581        21.568        .10870E-03   -1.4971    
  20  norm          4.8539        1.4613        .32777E-04   -1.5267    
  21  Normalizat    .46840        .24808        .30312E-03   -1.1390    
  22  Prefactor     1.2212        .28025        .22824E-03   -.85682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41537e-10
Minuit parameter uncertainties:
  1  1.66199e-06
  2  2.06208e-05
  3  6.2078e-05
  4  1.22814e-05
  5  5.57457e-05
  6  33.362
  7  5.19163e-05
  8  2.20934
  9  1.00212
  10  70.522
  11  0.00036426
  12  21.1594
  13  0.694989
  14  0.00108804
  15  5.4302e-07
  16  10.1698
  17  43.8261
  18  28.9475
  19  21.5805
  20  1.46134
  21  0.248667
  22  0.28059
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  2.101e+00  2.209e+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.221e+00  2.806e-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:  4.684e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.55e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/652963/likelihoodResults_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.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) = 3563.84158671
delta logL = 0.249011546139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3563.82377535
delta logL = 0.266822913621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6921       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3051       1.0000          .0000       5.0000    
     3 'Normalizat'    .47621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2165       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=   3563.824     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6860        1.7569        .80893E-02   -.23639E-03
   2  alpha         1.3042        .58001        .39000       -.13576E-04
   3  Normalizat    .47566        .19922        .67973E-01    .98604E-04
   4  Prefactor     1.2172        .23498        .51702E-01   -.94584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68599
  alpha      = 1.30421
  Normalizat = 0.47566
  Prefactor  = 1.21721
 **********
 **   18 **HESSE 
 **********

 FCN=   3563.824     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6860        2.0503        .78531E-04   -1.5448    
   2  alpha         1.3042        .74141        .15507E-01   -.49874    
   3  Normalizat    .47566        .23468        .30090E-03   -1.1356    
   4  Prefactor     1.2172        .27751        .22856E-03   -.85803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9327e-10
Minuit parameter uncertainties:
  1  2.05036
  2  0.75628
  3  0.235164
  4  0.27784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652963': 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) = 3563.82376736
delta logL = 0.266830900451

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.686e+00  2.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.304e+00  7.563e-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.217e+00  2.778e-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:  4.757e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.22
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 1.30 +/- 0.76
Photon Flux (Free Index): 7.68e-09 +/- 9.82e-09
Energy Flux (Free Index): 2.67e-05 +/- 4.70e-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/652963/cmap_HighResolution_513302401_513561601_4FGL_J0334.2-3725_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-05', comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='2.67e-05', photon_flux_error='1.55e-08', dlogl='2.67e-01', energy_flux='1.06e-05', photon_flux2='7.68e-09', job_status='DONE', time_completed='2021-08-18 18:05:50.234886', photon_index_error2='0.76', photon_index2='1.30', ts='3.69', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='6.81e-08', energy_flux_error2='4.70e-05', EG='0.47', time_epoch_completed='1629335150.23', return_code='0', job_id='652963', GAL2='1.22', EG2='0.48', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='9.82e-09', ts2='4.22', photon_index='1.92' WHERE bin_id='1057' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 652963: <4FGL_J0334.2-3725_daily_bin1057> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1057 53.5556 -37.4327 513302401 513561601 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 :                                   546.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

