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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1152
RA = 53.5556, Dec = -37.4327
tmin = 537926401, tmax = 538185601
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='655161', job_status='RUN', time_executed='2021-08-18 18:06:27.507204', time_epoch_executed='1629335187.51' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655161/ft1_4FGL_J0334.2-3725_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655161/ft1_4FGL_J0334.2-3725_daily_bin1152.fits outfile=/scratch/kocevski/655161/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1152.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=537926401.0 tmax=538185601.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 15.16
user 6.23
sys 8.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655161/ft1_filtered_4FGL_J0334.2-3725_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/655161/ltcube_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.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/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits
.....................!
real 22.54
user 12.47
sys 9.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655161/ft1_filtered_4FGL_J0334.2-3725_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/655161/ltcube_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.fits outfile=/scratch/kocevski/655161/expmap_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.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/655161/ltcube_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.fits
.....................!
real 204.19
user 187.56
sys 15.56

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/655161/ft1_filtered_4FGL_J0334.2-3725_daily_bin1152.fits scfile=/scratch/kocevski/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits outfile=/scratch/kocevski/655161/cmap_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.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 8.45
user 0.38
sys 8.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655161/ft1_filtered_4FGL_J0334.2-3725_daily_bin1152.fits scfile=/scratch/kocevski/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits outfile=/scratch/kocevski/655161/cmap_HighResolution_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.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 8.47
user 0.38
sys 8.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655161/ft1_filtered_4FGL_J0334.2-3725_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/655161/ft2_4FGL_J0334.2-3725_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655161/Model_4FGL_J0334.2-3725_daily_bin1152.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/655161/ft1_filtered_4FGL_J0334.2-3725_daily_bin1152.fits.....................!
real 145.91
user 133.99
sys 10.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13563E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.389       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7214       1.0000         .10000E-03   10000.    
     9 'norm      '    .27983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.139       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.735       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0825       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .62114       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4421       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.812       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.592       1.0000         .10000E-03   10000.    
    20 'norm      '    .33606       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82329       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71626       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6665.041     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2357 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4687         .0000    ** at limit **
   2  Prefactor     .10035E-03    63.927         .0000    ** at limit **
   3  Prefactor     16.388        66.597         .0000        .21681E-03
   4  Prefactor     1.1290        30.018         .0000        .82497E-02
   5  Prefactor     .10000E-03    6.3696         .0000    ** at limit **
   6  Prefactor     31.857        17.474         .0000       -.13994E-03
   7  Prefactor     .10128E-03    73.315         .0000    ** at limit **
   8  norm          5.7217        2.6771         .0000        .41901E-04
   9  norm          .27983        .32969         .0000        .15303E-05
  10  Prefactor     14.457        25.100         .0000       -.10908E-03
  11  Prefactor     37.138        36.929         .0000       -.13979E-03
  12  Prefactor     21.735        10.905         .0000       -.61138E-03
  13  norm          4.0825        .94860         .0000       -.24727E-03
  14  Prefactor     .10046E-03    95.293         .0000    ** at limit **
  15  norm          .62114        .28370         .0000        .75780E-03
  16  norm          2.4426        5.4561         .0000        .17470E-01
  17  Prefactor     11.813        16.804         .0000       -.21575E-04
  18  Prefactor     .10000E-03    9.7422         .0000    ** at limit **
  19  Prefactor     18.593        8.4567         .0000        .14717E-02
  20  norm          .33606        .30653         .0000        .32632E-03
  21  Normalizat    .82321        .13187         .0000       -.98928E-04
  22  Prefactor     .71630        .15213         .0000       -.10558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100355
  Prefactor  = 16.3885
  Prefactor  = 1.12895
  Prefactor  = 0.0001
  Prefactor  = 31.8572
  Prefactor  = 0.000101283
  norm       = 5.72169
  norm       = 0.279833
  Prefactor  = 14.4566
  Prefactor  = 37.1383
  Prefactor  = 21.7352
  norm       = 4.08254
  Prefactor  = 0.000100457
  norm       = 0.621143
  norm       = 2.44261
  Prefactor  = 11.8134
  Prefactor  = 0.0001
  Prefactor  = 18.5928
  norm       = 0.336057
  Normalizat = 0.823207
  Prefactor  = 0.716297
 **********
 **   18 **HESSE 
 **********

 FCN=   6665.041     FROM HESSE     STATUS=OK           344 CALLS     2701 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10035E-03    65.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.388        66.689        .98933E-04   -1.4898    
   4  Prefactor     1.1290        30.854        .22025E-02   -1.5495    
   5  Prefactor     .10000E-03    6.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.857        17.505        .70993E-04   -1.4579    
   7  Prefactor     .10128E-03    74.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7217        2.6744        .88125E-04   -1.5230    
   9  norm          .27983        .30479        .49330E-03   -1.5602    
  10  Prefactor     14.457        25.094        .10535E-03   -1.4947    
  11  Prefactor     37.138        36.945        .65765E-04   -1.4488    
  12  Prefactor     21.735        10.906        .85915E-04   -1.4775    
  13  norm          4.0825        .94952        .36754E-04   -1.5304    
  14  Prefactor     .10046E-03    95.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .62114        .28155        .26786E-04   -1.5550    
  16  norm          2.4426        5.4163        .13090E-02   -1.5395    
  17  Prefactor     11.813        16.804        .11656E-03   -1.5020    
  18  Prefactor     .10000E-03    9.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.593        8.3794        .92888E-04   -1.4845    
  20  norm          .33606        .31687        .39902E-03   -1.5592    
  21  Normalizat    .82321        .15486        .20728E-03   -.99214    
  22  Prefactor     .71630        .17800        .25864E-03   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09543e-08
Minuit parameter uncertainties:
  1  8.14999e-06
  2  0.0096117
  3  66.247
  4  11.8101
  5  2.28562e-05
  6  17.5075
  7  0.0195866
  8  2.67448
  9  0.304788
  10  25.112
  11  36.9675
  12  10.9068
  13  0.94952
  14  0.0132287
  15  0.281549
  16  5.4174
  17  16.8108
  18  4.35997e-05
  19  8.3799
  20  0.316874
  21  0.154944
  22  0.178143
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  5.722e+00  2.674e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.163e-01  1.781e-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.232e-01  1.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.22
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.35e-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) = 6664.67117501
delta logL = 0.369751775418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6664.62406077
delta logL = 0.41686601424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9296       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6149       1.0000          .0000       5.0000    
     3 'Normalizat'    .83195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71132       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=   6664.624     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9296        3.0644        .41227E-02    .48608E-02
   2  alpha         1.6149        .32357        .24457        .49806E-05
   3  Normalizat    .83191        .12831        .44026E-01    .40403E-04
   4  Prefactor     .71135        .15112        .42552E-01   -.99977E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92959
  alpha      = 1.61487
  Normalizat = 0.83191
  Prefactor  = 0.711354
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.624     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9296        2.8522        .91703E-04   -1.5221    
   2  alpha         1.6149        .32123        .10131E-01   -.36190    
   3  Normalizat    .83191        .14987        .20633E-03   -.98896    
   4  Prefactor     .71135        .17664        .25948E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36621e-09
Minuit parameter uncertainties:
  1  2.85224
  2  0.322252
  3  0.149946
  4  0.176779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655161': 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) = 6664.62406073
delta logL = 0.416866052548

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  5.930e+00  2.852e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.615e+00  3.223e-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:  7.114e-01  1.768e-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.319e-01  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.05
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 1.61 +/- 0.32
Photon Flux (Free Index): 3.13e-08 +/- 1.79e-08
Energy Flux (Free Index): 4.59e-05 +/- 3.28e-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/655161/cmap_HighResolution_537926401_538185601_4FGL_J0334.2-3725_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='4.59e-05', photon_flux_error='1.88e-08', dlogl='4.17e-01', energy_flux='2.89e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-08-18 18:20:20.203174', photon_index_error2='0.32', photon_index2='1.61', ts='11.22', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='0.82', time_epoch_completed='1629336020.2', return_code='0', job_id='655161', GAL2='0.71', EG2='0.83', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='1.79e-08', ts2='12.05', photon_index='1.92' WHERE bin_id='1152' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 655161: <4FGL_J0334.2-3725_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1152 53.5556 -37.4327 537926401 538185601 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 :                                   937.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            978 sec.

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

