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


Performing analysis on: 4FGL_J0336.4+3224_daily_bin1321
RA = 54.1015, Dec = 32.4111
tmin = 581731201, tmax = 581990401
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='690129', job_status='RUN', time_executed='2021-08-18 19:56:11.338342', time_epoch_executed='1629341771.34' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/690129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/690129/ft1_4FGL_J0336.4+3224_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/690129/ft1_4FGL_J0336.4+3224_daily_bin1321.fits outfile=/scratch/kocevski/690129/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin1321.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=581731201.0 tmax=581990401.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 11.61
user 2.36
sys 9.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.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/690129/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.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 9.48
user 0.33
sys 9.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/690129/ltcube_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.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/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits
.....................!
real 22.72
user 12.22
sys 10.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/690129/ltcube_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.fits outfile=/scratch/kocevski/690129/expmap_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.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/690129/ltcube_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.fits
.....................!
real 200.67
user 185.05
sys 15.21

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 156 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 J0336.4+3224 @ 54.1015 32.4111

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits scfile=/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits outfile=/scratch/kocevski/690129/cmap_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.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=54.1015 yref=32.4111 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 9.30
user 0.36
sys 8.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits scfile=/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits outfile=/scratch/kocevski/690129/cmap_HighResolution_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.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=54.1015 yref=32.4111 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 9.27
user 0.38
sys 8.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/690129/Model_4FGL_J0336.4+3224_daily_bin1321.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 GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits.........................!
real 40.96
user 27.88
sys 12.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits', '/scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits', expMap='/scratch/kocevski/690129/expmap_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.fits', expCube='/scratch/kocevski/690129/ltcube_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/690129/Model_4FGL_J0336.4+3224_daily_bin1321.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0336.4+3224'

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/690129/ft1_filtered_4FGL_J0336.4+3224_daily_bin1321.fits
Spacecraft file(s): /scratch/kocevski/690129/ft2_4FGL_J0336.4+3224_daily_bin1321.fits
Exposure map: /scratch/kocevski/690129/expmap_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.fits
Exposure cube: /scratch/kocevski/690129/ltcube_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/690129/Model_4FGL_J0336.4+3224_daily_bin1321.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) = 798.905136333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25126E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93765E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.139       1.0000         .10000E-03   10000.    
     9 'norm      '    .59176E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .53062E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    963.76       1.0000         .10000E-03   10000.    
    12 'norm      '    55.937       1.0000         .10000E-03   10000.    
    13 'norm      '    9999.4       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .57736       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .77151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   786.0890     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1439 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.016       -.38623E-06** at limit **
   2  norm          .10000E-03    42.596       -.59165E-06** at limit **
   3  Prefactor     38.443        53.924        .35092E-05    .54355E-04
   4  Prefactor     .10000E-03    199.39       -.22386E-05** at limit **
   5  Prefactor     .10000E-03    14.902        .54284E-06** at limit **
   6  norm          .10000E-03    1.6997       -.17625E-05** at limit **
   7  Prefactor     .10000E-03    27.032       -.38104E-05** at limit **
   8  norm          16.272        11.438       -.54711E-06    .17694E-03
   9  norm          .10000E-03    133.79        .19308E-05** at limit **
  10  norm          .10000E-03    96.962       -.76157E-05** at limit **
  11  Prefactor     450.94        8299.7        .16141E-03   -.39486E-06
  12  norm          .10000E-03    871.62        .95971E-07** at limit **
  13  norm         10000.0        527.14       -.18318E-06** at limit **
  14  Normalizat    .56896        .74151       -.14378E-04    .12682E-04
  15  Prefactor     .77353        .23340        .30088E-05    .97317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.4434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.2716
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 450.944
  norm       = 0.0001
  norm       = 10000
  Normalizat = 0.568956
  Prefactor  = 0.773532
 **********
 **   18 **HESSE 
 **********

 FCN=   786.0890     FROM HESSE     STATUS=OK           178 CALLS     1617 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.007        .18184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    42.787        .17886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.443        54.658        .73717E-04   -1.4467    
   4  Prefactor     .10000E-03    199.17        .18193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.916        .10577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7604        .36183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.884        .19538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.272        11.351        .73372E-04   -1.4901    
   9  norm          .10000E-03    133.81        .21071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    106.95        .37140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     450.94        8313.9        .67772E-03   -1.1428    
  12  norm          .10000E-03    870.05        .26817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        520.07        .23015E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .56896        .74549        .54456E-03   -1.0932    
  15  Prefactor     .77353        .23867        .15120E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14424e-10
Minuit parameter uncertainties:
  1  3.86494e-05
  2  1.99478e-05
  3  54.7295
  4  5.61419e-06
  5  4.66422e-05
  6  1.43261e-06
  7  5.73495e-05
  8  11.353
  9  0.000191158
  10  0.00122432
  11  5037.43
  12  0.000418225
  13  0.000579654
  14  0.759257
  15  0.23899
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.000e-04  1.224e-03  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  2.859e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  4.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.735e-01  2.390e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  5.690e-01  7.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 1.82e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/690129/likelihoodResults_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.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): 102
logL (Free Index) = 786.089050832
delta logL = -4.42590294369e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 786.011586842
delta logL = 0.0774197306461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.987       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5878       1.0000          .0000       5.0000    
     3 'Normalizat'    .64494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   786.0116     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.969        30.326        .12087E-03    .12896E-03
   2  alpha         1.5865        1.6590        .19944E-01    .27888E-05
   3  Normalizat    .64542        .74891        .51050E-03    .11868E-03
   4  Prefactor     .73011        .26062        .15494E-03    .48610E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9693
  alpha      = 1.58645
  Normalizat = 0.64542
  Prefactor  = 0.730112
 **********
 **   18 **HESSE 
 **********

 FCN=   786.0116     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.969        30.604        .48348E-05   -1.5045    
   2  alpha         1.5865        1.6711        .79777E-03   -.37408    
   3  Normalizat    .64542        .74883        .10210E-03   -1.0609    
   4  Prefactor     .73011        .26070        .30988E-04   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69738e-10
Minuit parameter uncertainties:
  1  30.6477
  2  1.86419
  3  0.761131
  4  0.261139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/690129': 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) = 786.011585351
delta logL = 0.0774212216804

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.097e+01  3.065e+01  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  1.586e+00  1.864e+00  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  4.691e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.093e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.301e-01  2.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  6.454e-01  7.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.102 32.411

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/690129/cmap_HighResolution_581731201_581990401_4FGL_J0336.4+3224_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-04', job_status='DONE', photon_flux_upper_limit='1.82e-06', time_completed='2021-08-18 20:04:16.177376', job_id='690129', GAL2='0.73', fit_tolerance='1e-08', EG2='0.65', EG='0.57', time_epoch_completed='1629342256.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='7.74e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1321' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:04:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 690129: <4FGL_J0336.4+3224_daily_bin1321> in cluster <slac> Done

Job <4FGL_J0336.4+3224_daily_bin1321> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 18 19:50:54 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 19:50:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 19:50:56 2021
Terminated at Wed Aug 18 20:04:17 2021
Results reported at Wed Aug 18 20:04:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0336.4+3224_daily_bin1321 54.1015 32.4111 581731201 581990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0336.4+3224 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             212.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

