/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 87 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0153.9+0823_daily_bin11
RA = 28.4972, Dec = 8.3931
tmin = 242179201, tmax = 242438401
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='903172', job_status='RUN', time_executed='2021-08-14 19:55:37.039454', time_epoch_executed='1628996137.04' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903172/ft1_4FGL_J0153.9+0823_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903172/ft1_4FGL_J0153.9+0823_daily_bin11.fits outfile=/scratch/kocevski/903172/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin11.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=242179201.0 tmax=242438401.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 5.51
user 1.26
sys 4.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.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/903172/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.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 4.93
user 0.33
sys 4.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/903172/ltcube_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.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/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits
.....................!
real 17.51
user 12.67
sys 4.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/903172/ltcube_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.fits outfile=/scratch/kocevski/903172/expmap_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.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/903172/ltcube_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.fits
.....................!
real 196.53
user 185.45
sys 10.67

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/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits scfile=/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits outfile=/scratch/kocevski/903172/cmap_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.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 4.47
user 0.37
sys 4.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits scfile=/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits outfile=/scratch/kocevski/903172/cmap_HighResolution_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.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 4.47
user 0.37
sys 4.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/903172/Model_4FGL_J0153.9+0823_daily_bin11.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/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits.....................!
real 71.94
user 65.28
sys 6.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits', '/scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits', expMap='/scratch/kocevski/903172/expmap_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.fits', expCube='/scratch/kocevski/903172/ltcube_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/903172/Model_4FGL_J0153.9+0823_daily_bin11.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/903172/ft1_filtered_4FGL_J0153.9+0823_daily_bin11.fits
Spacecraft file(s): /scratch/kocevski/903172/ft2_4FGL_J0153.9+0823_daily_bin11.fits
Exposure map: /scratch/kocevski/903172/expmap_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.fits
Exposure cube: /scratch/kocevski/903172/ltcube_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/903172/Model_4FGL_J0153.9+0823_daily_bin11.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) = 5742.93492772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.605       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12883E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2988       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6357       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84724       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=   5742.869     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1369 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.603        11.706        .22915E-06   -.12250E-05
   2  Prefactor     .10000E-03    20.335        .51191E-05** at limit **
   3  Prefactor     .10000E-03    1.1674       -.28745E-07** at limit **
   4  norm          .10000E-03    14.133        .31513E-05** at limit **
   5  Prefactor     2.3051        1.4491        .46974E-07   -.50130E-03
   6  Prefactor     .10000E-03    1.2875        .10152E-08** at limit **
   7  norm          .10000E-03    1.6545        .56051E-08** at limit **
   8  Prefactor     3.2988        2.3494        .43376E-08    .16836E-04
   9  norm          4.6356        1.2656        .37121E-08   -.48378E-05
  10  Prefactor     .10000E-03    5.3169        .23509E-10** at limit **
  11  Prefactor     .10000E-03    3.9727       -.92091E-07** at limit **
  12  Prefactor     .10000E-03    17.054       -.74183E-05** at limit **
  13  Prefactor     .10000E-03    9.8133       -.33372E-06** at limit **
  14  Prefactor     .10000E-03    3.2984        .55708E-07** at limit **
  15  Prefactor     .10000E-03    3.1422        .22871E-08** at limit **
  16  Normalizat    1.1265        .18648       -.15623E-06   -.33440E-05
  17  Prefactor     .84726        .12648        .84457E-07   -.23311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.30515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.29879
  norm       = 4.63558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12654
  Prefactor  = 0.847257
 **********
 **   18 **HESSE 
 **********

 FCN=   5742.869     FROM HESSE     STATUS=OK           227 CALLS     1596 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.603        11.713        .11760E-03   -1.5027    
   2  Prefactor     .10000E-03    20.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1688        .79959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3051        7.2167        .13515E-02   -1.5404    
   6  Prefactor     .10000E-03    3.7099        .28820E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6620        .95173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2988        2.3484        .94272E-04   -1.5345    
   9  norm          4.6356        1.2698        .42668E-04   -1.5277    
  10  Prefactor     .10000E-03    5.3186        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0006        .14748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2988        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1486        .13119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1265        .21590        .26299E-03   -.88904    
  17  Prefactor     .84726        .14635        .20498E-03   -.98009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24324e-10
Minuit parameter uncertainties:
  1  11.7158
  2  2.96047e-06
  3  3.21096e-08
  4  6.55307e-06
  5  7.21945
  6  3.89803e-05
  7  5.75061e-08
  8  2.34847
  9  1.26984
  10  2.02707e-07
  11  7.9227e-07
  12  4.78017e-06
  13  3.98493e-06
  14  9.50901e-08
  15  1.86409e-07
  16  0.216071
  17  0.146418
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  6.553e-06  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.473e-01  1.464e-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.127e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/903172/likelihoodResults_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.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) = 5742.86928926
delta logL = -0.000335524164257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5742.86895376
delta logL = -2.15250111069e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8264       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84725       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5742.869     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      243 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    688.77        .18142E-02** at limit **
   2  alpha         1.8854        3.4226        .50000       -.77989E-08
   3  Normalizat    1.1265        .37087E-01    .26299E-03   -.11542E-04
   4  Prefactor     .84726        .25587E-01    .20498E-03   -.15640E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88542
  Normalizat = 1.12654
  Prefactor  = 0.847257
 **********
 **   18 **HESSE 
 **********

 FCN=   5742.869     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6162.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8854        2.5663        .50000       -.24838    
   3  Normalizat    1.1265        .93227E-01    .10520E-04   -.88904    
   4  Prefactor     .84726        .64319E-01    .81994E-05   -.98009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11921e-09
Minuit parameter uncertainties:
  1  0.000653193
  2  3303.9
  3  0.0932409
  4  0.0643249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903172': 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) = 5742.86895372
delta logL = 2.11521182791e-08

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  6.532e-04  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.885e+00  3.304e+03  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:  8.473e-01  6.432e-02  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.127e+00  9.324e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.497 8.393

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/903172/cmap_HighResolution_242179201_242438401_4FGL_J0153.9+0823_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-05', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-08-14 20:05:15.519386', job_id='903172', GAL2='0.85', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1628996715.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='11' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:05:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 903172: <4FGL_J0153.9+0823_daily_bin11> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin11> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 19:50:52 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:52:57 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:52:57 2021
Terminated at Sat Aug 14 20:05:16 2021
Results reported at Sat Aug 14 20:05:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin11 28.4972 8.3931 242179201 242438401 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 :                                   639.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            864 sec.

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

