/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 171 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 = 7343
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0153.9+0823_daily_bin290
RA = 28.4972, Dec = 8.3931
tmin = 314496001, tmax = 314755201
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='904611', job_status='RUN', time_executed='2021-08-14 20:00:21.334591', time_epoch_executed='1628996421.33' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904611/ft1_4FGL_J0153.9+0823_daily_bin290.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904611/ft1_4FGL_J0153.9+0823_daily_bin290.fits outfile=/scratch/kocevski/904611/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin290.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=314496001.0 tmax=314755201.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 4.08
user 3.15
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.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/904611/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin290.fits evtable="EVENTS" outfile="/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.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 1.20
user 0.32
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits" evtable="EVENTS" scfile=/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits sctable="SC_DATA" outfile=/scratch/kocevski/904611/ltcube_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.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/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits
.....................!
real 13.18
user 12.00
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits sctable="SC_DATA" expcube=/scratch/kocevski/904611/ltcube_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.fits outfile=/scratch/kocevski/904611/expmap_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.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/904611/ltcube_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.fits
.....................!
real 192.56
user 185.27
sys 6.70

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
Added 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J0153.9+0823 @ 28.4972 8.3931

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits scfile=/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits outfile=/scratch/kocevski/904611/cmap_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.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=28.4972 yref=8.3931 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 1.19
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits scfile=/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits outfile=/scratch/kocevski/904611/cmap_HighResolution_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.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=28.4972 yref=8.3931 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 1.19
user 0.38
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904611/Model_4FGL_J0153.9+0823_daily_bin290.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
Working on...
/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits.....................!
real 84.40
user 82.05
sys 2.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits', '/scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits', expMap='/scratch/kocevski/904611/expmap_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.fits', expCube='/scratch/kocevski/904611/ltcube_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/904611/Model_4FGL_J0153.9+0823_daily_bin290.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0153.9+0823'

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  7.272e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.822e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/904611/ft1_filtered_4FGL_J0153.9+0823_daily_bin290.fits
Spacecraft file(s): /scratch/kocevski/904611/ft2_4FGL_J0153.9+0823_daily_bin290.fits
Exposure map: /scratch/kocevski/904611/expmap_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.fits
Exposure cube: /scratch/kocevski/904611/ltcube_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/904611/Model_4FGL_J0153.9+0823_daily_bin290.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) = 7581.72971273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53631E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.571       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.312       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .61044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.917       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66782E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27274E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6892       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2055       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7581.718     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1603 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.495       -.13617E-06** at limit **
   2  Prefactor     .10000E-03    25.376        .92615E-06** at limit **
   3  Prefactor     .10000E-03    3.2800        .42904E-07** at limit **
   4  norm          17.399        17.128       -.11201E-05   -.54706E-06
   5  Prefactor     2.4462        4.8706        .24470E-05    .29186E-04
   6  Prefactor     .10000E-03    .79464        .36842E-07** at limit **
   7  norm          29.305        7.1351       -.10150E-06    .84583E-04
   8  Prefactor     .10000E-03    .87200       -.32853E-06** at limit **
   9  norm          .61015        .67760       -.56153E-07   -.29760E-03
  10  Prefactor     38.831        26.305        .41148E-05    .33548E-04
  11  Prefactor     .10000E-03    11.272        .42878E-06** at limit **
  12  Prefactor     .10000E-03    21.212       -.20992E-07** at limit **
  13  Prefactor     .10002E-03    6.1289       -.10310E-05** at limit **
  14  Prefactor     .10000E-03    5.6335       -.29948E-06** at limit **
  15  Prefactor     7.6820        7.5234       -.12797E-06    .29452E-04
  16  Normalizat    1.2057        .17372       -.30079E-06    .10001E-03
  17  Prefactor     .87042        .11820       -.34374E-06    .10929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3987
  Prefactor  = 2.44618
  Prefactor  = 0.0001
  norm       = 29.3051
  Prefactor  = 0.0001
  norm       = 0.61015
  Prefactor  = 38.8306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 7.68201
  Normalizat = 1.20575
  Prefactor  = 0.870424
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.718     FROM HESSE     STATUS=OK           225 CALLS     1828 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.446        .21122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3932        .30788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.399        17.132        .95548E-04   -1.4873    
   5  Prefactor     2.4462        4.8837        .13100E-02   -1.5395    
   6  Prefactor     .10000E-03    .80836        .75768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.305        7.1305        .74001E-04   -1.4625    
   8  Prefactor     .10000E-03    .88802        .79529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .61015        .64583        .72783E-03   -1.5552    
  10  Prefactor     38.831        26.336        .64250E-04   -1.4461    
  11  Prefactor     .10000E-03    11.694        .42012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    27.338        .40464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6820        7.5206        .14462E-03   -1.5154    
  16  Normalizat    1.2057        .20006        .27314E-03   -.86425    
  17  Prefactor     .87042        .13580        .21438E-03   -.97182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15068e-09
Minuit parameter uncertainties:
  1  1.02358e-05
  2  7.43427e-06
  3  3.17727e-06
  4  17.1372
  5  4.88446
  6  7.69765e-07
  7  7.13072
  8  9.54677e-06
  9  0.645842
  10  26.3439
  11  2.42007e-05
  12  3.22837e-05
  13  0.00146076
  14  2.12403e-05
  15  7.52148
  16  0.200188
  17  0.135854
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.740e+01  1.714e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.822e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.704e-01  1.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.206e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 2.17e-05

TS (Fixed Index): 2.63
Ra Dec: 28.497 8.393
Photon Flux Upper Limit: 7.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904611/likelihoodResults_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.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): 0
logL (Free Index) = 7578.8125645
delta logL = 2.90528789957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7578.76455905
delta logL = 2.95329334092

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7578.765     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      276 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6008        18.436        .52901E-02    .44056E-03
   2  alpha         3.7103        1.7112        .14955        .10355E-03
   3  Normalizat    1.0126        .76768E-01    .66341E-01    .15593E-04
   4  Prefactor     .94169        .50543E-01    .45532E-01    .32237E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60084
  alpha      = 3.71029
  Normalizat = 1.01261
  Prefactor  = 0.941691
 **********
 **   18 **HESSE 
 **********

 FCN=   7578.765     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6008        25.244        .61050E-04   -1.5328    
   2  alpha         3.7103        3.8087        .63698E-02    .50535    
   3  Normalizat    1.0126        .21495        .29345E-03   -.92609    
   4  Prefactor     .94169        .14740        .20666E-03   -.94699    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20527e-07
Minuit parameter uncertainties:
  1  19.0795
  2  2.41316
  3  0.215133
  4  0.14746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904611': 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): 102
logL (Free Index) = 7578.76454697
delta logL = 2.95330542847

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  3.601e+00  1.908e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  3.710e+00  2.413e+00  0.000e+00  5.000e+00 ( 1.000e+00)
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.417e-01  1.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.013e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.11
Ra Dec: 28.497 8.393
Photon Index (Free Index): 3.71 +/- 2.41
Photon Flux (Free Index): 1.92e-07 +/- 8.78e-08
Energy Flux (Free Index): 3.25e-05 +/- 1.82e-05

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/904611/cmap_HighResolution_314496001_314755201_4FGL_J0153.9+0823_daily_bin290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-05', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='3.25e-05', photon_flux_error='2.17e-08', dlogl='2.95e+00', energy_flux='2.21e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-08-14 20:10:49.614222', photon_index_error2='2.41', photon_index2='3.71', ts='2.63', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.79e-08', energy_flux_error2='1.82e-05', EG='1.21', time_epoch_completed='1628997049.61', return_code='0', job_id='904611', GAL2='0.94', EG2='1.01', return_code2='102', energy_flux_error='2.17e-05', photon_flux_error2='8.78e-08', ts2='9.11', photon_index='1.82' WHERE bin_id='290' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 904611: <4FGL_J0153.9+0823_daily_bin290> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin290> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:55:38 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:57:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:57:09 2021
Terminated at Sat Aug 14 20:10:50 2021
Results reported at Sat Aug 14 20:10:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin290 28.4972 8.3931 314496001 314755201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0153.9+0823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   638.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            912 sec.

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

