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


Performing analysis on: 4FGL_J0336.4+3224_daily_bin1429
RA = 54.1015, Dec = 32.4111
tmin = 609724801, tmax = 609984001
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='691713', job_status='RUN', time_executed='2021-08-18 19:59:23.378658', time_epoch_executed='1629341963.38' WHERE source_name='4FGL J0336.4+3224' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691713/ft1_4FGL_J0336.4+3224_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691713/ft2_4FGL_J0336.4+3224_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691713/ft1_4FGL_J0336.4+3224_daily_bin1429.fits outfile=/scratch/kocevski/691713/ft1_filteredMKT_4FGL_J0336.4+3224_daily_bin1429.fits ra=54.1015 dec=32.4111 rad=12.0 tmin=609724801.0 tmax=609984001.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 2.65
user 2.36
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691713/ft1_filtered_4FGL_J0336.4+3224_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/691713/ft2_4FGL_J0336.4+3224_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/691713/ltcube_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.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/691713/ft2_4FGL_J0336.4+3224_daily_bin1429.fits
.....................!
real 12.35
user 11.90
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691713/ft1_filtered_4FGL_J0336.4+3224_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/691713/ft2_4FGL_J0336.4+3224_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/691713/ltcube_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.fits outfile=/scratch/kocevski/691713/expmap_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.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/691713/ltcube_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.fits
.....................!
real 190.51
user 185.58
sys 4.35

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/691713/ft1_filtered_4FGL_J0336.4+3224_daily_bin1429.fits scfile=/scratch/kocevski/691713/ft2_4FGL_J0336.4+3224_daily_bin1429.fits outfile=/scratch/kocevski/691713/cmap_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.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 0.61
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691713/ft1_filtered_4FGL_J0336.4+3224_daily_bin1429.fits scfile=/scratch/kocevski/691713/ft2_4FGL_J0336.4+3224_daily_bin1429.fits outfile=/scratch/kocevski/691713/cmap_HighResolution_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.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 0.61
user 0.38
sys 0.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29433E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    38.028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8049       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13771E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    179.39       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4163       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .74534       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0379       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=   9571.295     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1559 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.240        .47248E-06** at limit **
   2  norm          38.497        54.751        .15848E-05    .11724E-04
   3  Prefactor     46.166        24.352        .12427E-05   -.21694E-05
   4  Prefactor     .10000E-03    1238.0        .13050E-05** at limit **
   5  Prefactor     .10000E-03    13.138        .48025E-06** at limit **
   6  norm          2.0541        .95434        .13320E-06    .55414E-04
   7  Prefactor     8.7987        3.5844        .15888E-06   -.29674E-03
   8  norm          .10000E-03    2.9936        .88014E-06** at limit **
   9  norm          .10000E-03    13.286        .10302E-06** at limit **
  10  norm          .10000E-03    1.2885        .41888E-06** at limit **
  11  Prefactor     .10000E-03    80.686        .61305E-06** at limit **
  12  norm          178.16        112.28        .95223E-06   -.22805E-03
  13  norm          8.4152        4.7006        .26881E-05   -.31813E-03
  14  Normalizat    .74526        .38823       -.11749E-04   -.17339E-03
  15  Prefactor     1.0379        .76352E-01    .69294E-06   -.40253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 38.4969
  Prefactor  = 46.1662
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.05409
  Prefactor  = 8.79874
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 178.157
  norm       = 8.41524
  Normalizat = 0.745257
  Prefactor  = 1.03795
 **********
 **   18 **HESSE 
 **********

 FCN=   9571.295     FROM HESSE     STATUS=OK           180 CALLS     1739 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.267        .19849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          38.497        54.691        .64994E-04   -1.4466    
   3  Prefactor     46.166        24.337        .59203E-04   -1.4348    
   4  Prefactor     .10000E-03    1253.2        .11697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0541        .95342        .58025E-04   -1.5421    
   7  Prefactor     8.7987        3.4985        .10763E-03   -1.5115    
   8  norm          .10000E-03    9.9482        .32089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    15.170        .20664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    80.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          178.16        111.47        .15068E-03   -1.3030    
  13  norm          8.4152        4.6830        .69092E-03   -1.5128    
  14  Normalizat    .74526        .38773        .79402E-03   -1.0213    
  15  Prefactor     1.0379        .78097E-01    .14068E-03   -.91475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96059e-10
Minuit parameter uncertainties:
  1  4.11522e-05
  2  54.7626
  3  24.3427
  4  0.00318959
  5  2.04984e-05
  6  0.953429
  7  3.49856
  8  0.000202709
  9  1.19352e-05
  10  0.000351478
  11  2.71072e-05
  12  111.6
  13  4.68321
  14  0.389168
  15  0.0781051
Done.

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

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  1.000e-04  3.515e-04  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.038e+00  7.811e-02  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:  7.453e-01  3.892e-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: 2.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/691713/likelihoodResults_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.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) = 9571.29568549
delta logL = -0.000313885035212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9571.29537304
delta logL = -1.42845055962e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16309E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7755       1.0000          .0000       5.0000    
     3 'Normalizat'    .74574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0379       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=   9570.984     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      309 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36090        .59658        .21870E-02    .11788E-02
   2  alpha          .0000        3.1438        .16589    ** at limit **
   3  Normalizat    .75378        .36446        .79395E-03    .22681E-05
   4  Prefactor     1.0340        .76346E-01    .14068E-03   -.16163E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.360897
  alpha      = 0
  Normalizat = 0.753777
  Prefactor  = 1.03404
 **********
 **   18 **HESSE 
 **********

 FCN=   9570.984     FROM HESSE     STATUS=OK            27 CALLS      336 TOTAL
                     EDM=   .58E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36090        .57620        .87481E-04   -1.5588    
   2  alpha          .0000        3.1270        .33177E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .75378        .36441        .15879E-03   -1.0181    
   4  Prefactor     1.0340        .76328E-01    .56271E-05   -.91603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84972e-16
Minuit parameter uncertainties:
  1  0.576211
  2  5.02652e-09
  3  0.365596
  4  0.0763364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691713': 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) = 9570.98432595
delta logL = 0.311045662624

Extracting fit parameters...

4FGL J0336.4+3224
   Spectrum: LogParabola
287         norm:  3.609e-01  5.762e-01  1.000e-04  1.000e+04 ( 1.000e-11)
288        alpha:  0.000e+00  5.027e-09  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.034e+00  7.634e-02  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:  7.538e-01  3.656e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/691713/cmap_HighResolution_609724801_609984001_4FGL_J0336.4+3224_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-05', job_status='DONE', photon_flux_upper_limit='2.11e-07', time_completed='2021-08-18 20:11:46.023326', job_id='691713', GAL2='1.03', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629342706.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.11e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1429' AND source_name='4FGL J0336.4+3224' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:11:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 691713: <4FGL_J0336.4+3224_daily_bin1429> in cluster <slac> Done

Job <4FGL_J0336.4+3224_daily_bin1429> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 18 19:57:05 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 19:57:06 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:57:06 2021
Terminated at Wed Aug 18 20:11:46 2021
Results reported at Wed Aug 18 20:11:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0336.4+3224_daily_bin1429 54.1015 32.4111 609724801 609984001 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 :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

