/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 45 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 = 7409
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0336.4+3224_daily_bin1317
RA = 54.1015, Dec = 32.4111
tmin = 580694401, tmax = 580953601
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='690123', job_status='RUN', time_executed='2021-08-18 19:53:53.547732', time_epoch_executed='1629341633.55' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/690123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/690123/ft1_4FGL_J0336.4+3224_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/690123/ft1_4FGL_J0336.4+3224_daily_bin1317.fits outfile=/scratch/kocevski/690123/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin1317.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=580694401.0 tmax=580953601.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 10.02
user 2.58
sys 7.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/690123/ltcube_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.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/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits
.....................!
real 20.31
user 11.81
sys 8.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/690123/ltcube_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.fits outfile=/scratch/kocevski/690123/expmap_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.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/690123/ltcube_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.fits
.....................!
real 200.00
user 185.41
sys 14.12

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/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits scfile=/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits outfile=/scratch/kocevski/690123/cmap_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.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 7.63
user 0.38
sys 7.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits scfile=/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits outfile=/scratch/kocevski/690123/cmap_HighResolution_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.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 7.62
user 0.37
sys 7.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/690123/Model_4FGL_J0336.4+3224_daily_bin1317.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/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits.....................!
real 73.48
user 62.45
sys 10.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits', '/scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits', expMap='/scratch/kocevski/690123/expmap_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.fits', expCube='/scratch/kocevski/690123/ltcube_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/690123/Model_4FGL_J0336.4+3224_daily_bin1317.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/690123/ft1_filtered_4FGL_J0336.4+3224_daily_bin1317.fits
Spacecraft file(s): /scratch/kocevski/690123/ft2_4FGL_J0336.4+3224_daily_bin1317.fits
Exposure map: /scratch/kocevski/690123/expmap_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.fits
Exposure cube: /scratch/kocevski/690123/ltcube_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/690123/Model_4FGL_J0336.4+3224_daily_bin1317.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) = 2794.01697041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0205       1.0000         .10000E-03   10000.    
     2 'norm      '    .23303E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21279E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .77524E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55372E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6730       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    22.922       1.0000         .10000E-03   10000.    
     9 'norm      '    .19981E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    519.05       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0061       1.0000         .10000E-03   10000.    
    13 'norm      '    23.632       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.3239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2793.924     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      980 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    1089.3       -.20024E-04** at limit **
   2  norm          .10000E-03    24.289       -.13130E-08** at limit **
   3  Prefactor     .10000E-03    14.856       -.21784E-06** at limit **
   4  Prefactor     .10000E-03    63.989        .16379E-05** at limit **
   5  Prefactor     .10000E-03    17.164       -.73161E-06** at limit **
   6  norm          2.6629        1.1858        .22574E-06    .13750E-03
   7  Prefactor     .10000E-03    1.4134       -.95387E-06** at limit **
   8  norm          23.109        11.639        .36838E-06    .38399E-04
   9  norm          .10000E-03    21.324        .12771E-05** at limit **
  10  norm          .10000E-03    2.8583       -.74939E-06** at limit **
  11  Prefactor     567.98        339.61        .15928E-05    .51694E-02
  12  norm          16.082        66.855        .17018E-05   -.46450E-02
  13  norm          27.958        52.928        .11201E-05    .10235E-04
  14  Normalizat    .10000E-01    .40096       -.33947E-05** at limit **
  15  Prefactor     1.3194        .11030       -.46061E-06   -.23218E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66291
  Prefactor  = 0.0001
  norm       = 23.1085
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 567.975
  norm       = 16.0824
  norm       = 27.9585
  Normalizat = 0.01
  Prefactor  = 1.31942
 **********
 **   18 **HESSE 
 **********

 FCN=   2793.924     FROM HESSE     STATUS=OK           204 CALLS     1184 TOTAL
                     EDM=   .25E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    1082.0        .40910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    24.451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.661        .10086E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.238        .92654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.137        .10553E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6629        1.1880        .62316E-02   -1.5382    
   7  Prefactor     .10000E-03    1.4057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.109        11.680        .20916E-02   -1.4746    
   9  norm          .10000E-03    21.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.8375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     567.98        342.13        .45078E-03   -1.0895    
  12  norm          16.082        6125.8        .35426E-02   -1.4906    
  13  norm          27.958        51.969        .20600E-02   -1.4650    
  14  Normalizat    .10000E-01    .28787        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3194        .12181        .32205E-01   -.82732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5278e-05
Minuit parameter uncertainties:
  1  0.0430597
  2  5.88391e-06
  3  2.91944e-06
  4  3.20976e-05
  5  1.04376e-05
  6  1.18799
  7  4.45119e-06
  8  11.6811
  9  1.74876e-05
  10  4.35288e-06
  11  343.385
  12  429.903
  13  52.0528
  14  1.97934e-07
  15  0.121833
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.000e-04  4.353e-06  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:  1.319e+00  1.218e-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:  1.000e-02  1.979e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.102 32.411
Photon Flux Upper Limit: 3.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/690123/likelihoodResults_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.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) = 2793.92605101
delta logL = -0.00165720611949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2793.92439479
delta logL = -9.87600742519e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8463       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3193       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=   2793.924     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      234 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    359.40        .87534E-02** at limit **
   2  alpha         1.5906        4.0519        .16665        .55599E-08
   3  Normalizat    .10000E-01    .82577E-01    .15213E-01** at limit **
   4  Prefactor     1.3194        .45650E-01    .15317E-03    .24958E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59062
  Normalizat = 0.01
  Prefactor  = 1.31942
 **********
 **   18 **HESSE 
 **********

 FCN=   2793.924     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2785        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5906        3.5368        .66659E-02   -.37229    
   3  Normalizat    .10000E-01    .39843        .30425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3194        .10041        .30634E-04   -.82731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52048e-10
Minuit parameter uncertainties:
  1  8.13339e-06
  2  334.539
  3  7.85195e-06
  4  0.100423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/690123': 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) = 2793.92438795
delta logL = 5.85687030252e-06

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.000e-04  8.133e-06  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  1.591e+00  3.345e+02  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:  1.319e+00  1.004e-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:  1.000e-02  7.852e-06  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/690123/cmap_HighResolution_580694401_580953601_4FGL_J0336.4+3224_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-05', job_status='DONE', photon_flux_upper_limit='3.90e-07', time_completed='2021-08-18 20:02:33.832741', job_id='690123', GAL2='1.32', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629342153.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='5.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1317' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:02:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 690123: <4FGL_J0336.4+3224_daily_bin1317> in cluster <slac> Done

Job <4FGL_J0336.4+3224_daily_bin1317> 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) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 19:50:55 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:55 2021
Terminated at Wed Aug 18 20:02:35 2021
Results reported at Wed Aug 18 20:02:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0336.4+3224_daily_bin1317 54.1015 32.4111 580694401 580953601 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 :                                   628.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

