aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 231 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0334.2-4008_daily_bin1722
RA = 53.5566, Dec = -40.145
tmin = 685670401, tmax = 685929601
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='229444', job_status='RUN', time_executed='2022-09-27 00:09:37.704214', time_epoch_executed='1664262577.7' WHERE source_name='4FGL J0334.2-4008' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229444/ft1_4FGL_J0334.2-4008_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229444/ft1_4FGL_J0334.2-4008_daily_bin1722.fits outfile=/scratch/kocevski/229444/ft1_filteredMKT_4FGL_J0334.2-4008_daily_bin1722.fits ra=53.5566 dec=-40.145 rad=12.0 tmin=685670401.0 tmax=685929601.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 3.16
user 2.90
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.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/229444/ft1_filteredMKT_4FGL_J0334.2-4008_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.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.44
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 457

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229444/ltcube_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.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/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits
.....................!
real 11.72
user 11.31
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229444/ltcube_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.fits outfile=/scratch/kocevski/229444/expmap_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.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/229444/ltcube_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.fits
.....................!
real 161.28
user 155.08
sys 4.55

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_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 183 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-4008 @ 53.5566 -40.145

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits scfile=/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits outfile=/scratch/kocevski/229444/cmap_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.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.5566 yref=-40.145 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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits scfile=/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits outfile=/scratch/kocevski/229444/cmap_HighResolution_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.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.5566 yref=-40.145 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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229444/Model_4FGL_J0334.2-4008_daily_bin1722.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/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits.....................!
real 87.85
user 85.81
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits', '/scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits', expMap='/scratch/kocevski/229444/expmap_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.fits', expCube='/scratch/kocevski/229444/ltcube_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229444/Model_4FGL_J0334.2-4008_daily_bin1722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0334.2-4008'

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  1.215e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/229444/ft1_filtered_4FGL_J0334.2-4008_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229444/ft2_4FGL_J0334.2-4008_daily_bin1722.fits
Exposure map: /scratch/kocevski/229444/expmap_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229444/ltcube_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229444/Model_4FGL_J0334.2-4008_daily_bin1722.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) = 5090.15236962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69059E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13606E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .45947E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.895       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.3975       1.0000          .0000       .10000E+07
     6 'Prefactor '    .62537       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.6781       1.0000          .0000       .10000E+07
     8 'Prefactor '    .43329E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .78481E-04   1.0000          .0000       .10000E+07
    10 'norm      '    2.1239       1.0000          .0000       .10000E+07
    11 'Prefactor '    34.240       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18958E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    35.075       1.0000          .0000       .10000E+07
    14 'Prefactor '    .39903E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .80156       1.0000          .0000       .10000E+07
    16 'norm      '    14.559       1.0000          .0000       .10000E+07
    17 'Prefactor '    38.657       1.0000          .0000       .10000E+07
    18 'Prefactor '    10.848       1.0000          .0000       .10000E+07
    19 'Prefactor '    .26322E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .78703       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81326       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1853       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5090.090     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1740 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15398E-05    19.257       -.14877E-06** at limit **
   2  Prefactor     .12114E-05    25.647        .46766E-06** at limit **
   3  norm           .0000        .84106       -.75790E-07** at limit **
   4  Prefactor     13.902        4.8442       -.82276E-07   -.21687E-01
   5  Prefactor     4.4029        4.6011        .43945E-07    .79583E-03
   6  Prefactor     .79395        1.5560       -.24687E-07    .67489E-02
   7  Prefactor     4.7485        13.628       -.40553E-06   -.29616E-01
   8  Prefactor     .61062E-07    16.908       -.19980E-06** at limit **
   9  norm           .0000        3.4624        .50659E-06** at limit **
  10  norm          2.1243        .99295        .62419E-07    .23151E-02
  11  Prefactor     33.809        4.1669        .34695E-07   -.50974E-01
  12  Prefactor     .47430E-05    12.890       -.28956E-07** at limit **
  13  Prefactor     35.124        1.1453        .80458E-08    .82470E-02
  14  Prefactor     .21843E-05    66.546       -.89238E-06** at limit **
  15  norm          .79928        .40406        .11796E-07    .22410E-02
  16  norm          14.820        9.3201        .99296E-08    .38942E-03
  17  Prefactor     40.085        10.767        .26655E-07    .80845E-01
  18  Prefactor     10.856        13.696       -.35378E-07   -.89024E-02
  19  Prefactor     .61062E-09    11.243       -.25384E-06** at limit **
  20  norm          .78660        .50084       -.65205E-07   -.25995E-02
  21  Normalizat    .81124        .21287       -.82306E-05    .42098E-04
  22  Prefactor     1.1861        .24846        .13835E-04    .47237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53982e-06
  Prefactor  = 1.21136e-06
  norm       = 0
  Prefactor  = 13.9018
  Prefactor  = 4.40295
  Prefactor  = 0.793952
  Prefactor  = 4.74847
  Prefactor  = 6.10623e-08
  norm       = 0
  norm       = 2.12434
  Prefactor  = 33.8088
  Prefactor  = 4.74304e-06
  Prefactor  = 35.1245
  Prefactor  = 2.18425e-06
  norm       = 0.799283
  norm       = 14.8204
  Prefactor  = 40.085
  Prefactor  = 10.8561
  Prefactor  = 6.10623e-10
  norm       = 0.7866
  Normalizat = 0.811241
  Prefactor  = 1.18615
 **********
 **   18 **HESSE 
 **********

 FCN=   5090.090     FROM HESSE     STATUS=OK           390 CALLS     2130 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15398E-05    22.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12114E-05    33.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .82308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.902        14.906        .26844E-03   -1.5633    
   5  Prefactor     4.4029        4.6139        .48002E-03   -1.5666    
   6  Prefactor     .79395        106.30        .66985E-03   -1.5690    
   7  Prefactor     4.7485        15.196        .46504E-03   -1.5664    
   8  Prefactor     .61062E-07    17.036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        3.4253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1243        1.0002        .70732E-03   -1.5679    
  11  Prefactor     33.809        32.071        .17092E-03   -1.5592    
  12  Prefactor     .47430E-05    28.035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.124        20.911        .16887E-03   -1.5589    
  14  Prefactor     .21843E-05    71.506        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .79928        .41017        .52819E-03   -1.5690    
  16  norm          14.820        9.3134        .26224E-03   -1.5631    
  17  Prefactor     40.085        38.240        .16085E-03   -1.5581    
  18  Prefactor     10.856        13.774        .30394E-03   -1.5642    
  19  Prefactor     .61062E-09    11.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .78660        .50060        .53907E-04   -1.5690    
  21  Normalizat    .81124        .18513        .43783E-01   -.99653    
  22  Prefactor     1.1861        .20970        .57136E-01   -.86759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9221e-07
Minuit parameter uncertainties:
  1  0.0118683
  2  0.0126937
  3  1.54926e-06
  4  14.906
  5  4.6139
  6  18.3737
  7  15.1962
  8  0.00203953
  9  5.47751e-06
  10  1.00019
  11  32.0715
  12  0.0230628
  13  20.9106
  14  0.0249953
  15  0.410165
  16  9.31345
  17  38.2399
  18  13.7739
  19  0.000168793
  20  0.500601
  21  0.185271
  22  0.209851
Done.

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

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  2.124e+00  1.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  2.078e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.186e+00  2.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  8.112e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.99
Ra Dec: 53.557 -40.145
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.60e-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) = 5089.06260035
delta logL = 1.02720400604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5088.93123992
delta logL = 1.15856443756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3821       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4059       1.0000          .0000       5.0000    
     3 'Normalizat'    .84311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5088.931     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3820        .86555        .92526E-03   -.62440E-03
   2  alpha         1.4058        .32501        .20888       -.36814E-04
   3  Normalizat    .84312        .17726        .44170E-01    .12905E-04
   4  Prefactor     1.1770        .20923        .57414E-01    .46875E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38202
  alpha      = 1.40584
  Normalizat = 0.84312
  Prefactor  = 1.17696
 **********
 **   18 **HESSE 
 **********

 FCN=   5088.931     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3820        1.2285        .44681E-05   -1.5684    
   2  alpha         1.4058        .47678        .88461E-02   -.45300    
   3  Normalizat    .84312        .21105        .25072E-03   -.98489    
   4  Prefactor     1.1770        .24908        .25388E-03   -.87043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6186e-12
Minuit parameter uncertainties:
  1  1.22848
  2  0.480434
  3  0.211259
  4  0.249331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229444': 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) = 5088.93123991
delta logL = 1.15856445319

Extracting fit parameters...

4FGL J0334.2-4008
   Spectrum: LogParabola
277         norm:  1.382e+00  1.228e+00  0.000e+00  1.000e+06 ( 1.000e-11)
278        alpha:  1.406e+00  4.804e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  7.230e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  5.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.177e+00  2.493e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  8.431e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.27
Ra Dec: 53.557 -40.145
Photon Index (Free Index): 1.41 +/- 0.48
Photon Flux (Free Index): 3.34e-08 +/- 3.02e-08
Energy Flux (Free Index): 7.01e-05 +/- 5.76e-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/229444/cmap_HighResolution_685670401_685929601_4FGL_J0334.2-4008_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='7.01e-05', photon_flux_error='3.40e-08', dlogl='1.16e+00', energy_flux='3.40e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2022-09-27 00:17:35.168553', photon_index_error2='0.48', photon_index2='1.41', ts='12.99', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='5.76e-05', EG='0.81', time_epoch_completed='1664263055.17', return_code='0', job_id='229444', GAL2='1.18', EG2='0.84', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='3.02e-08', ts2='15.27', photon_index='2.08' WHERE bin_id='1722' AND source_name='4FGL J0334.2-4008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:17:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 229444: <4FGL_J0334.2-4008_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0334.2-4008_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:12 2022
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:05:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:05:39 2022
Terminated at Tue Sep 27 00:17:35 2022
Results reported at Tue Sep 27 00:17:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-4008_daily_bin1722 53.5566 -40.145 685670401 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0334.2-4008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            743 sec.

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

