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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin203
RA = 28.4972, Dec = 8.3931
tmin = 291945601, tmax = 292204801
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='904471', job_status='RUN', time_executed='2021-08-14 20:00:11.106485', time_epoch_executed='1628996411.11' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904471

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904471/ft1_4FGL_J0153.9+0823_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904471/ft2_4FGL_J0153.9+0823_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904471/ft1_4FGL_J0153.9+0823_daily_bin203.fits outfile=/scratch/kocevski/904471/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin203.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=291945601.0 tmax=292204801.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 6.24
user 3.57
sys 2.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904471/ft2_4FGL_J0153.9+0823_daily_bin203.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/904471/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/904471/ft1_filtered_4FGL_J0153.9+0823_daily_bin203.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 2.95
user 0.34
sys 2.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904471/ft1_filtered_4FGL_J0153.9+0823_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/904471/ft2_4FGL_J0153.9+0823_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/904471/ltcube_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.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/904471/ft2_4FGL_J0153.9+0823_daily_bin203.fits
.....................!
real 14.72
user 11.64
sys 3.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904471/ft1_filtered_4FGL_J0153.9+0823_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/904471/ft2_4FGL_J0153.9+0823_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/904471/ltcube_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.fits outfile=/scratch/kocevski/904471/expmap_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.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/904471/ltcube_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.fits
.....................!
real 194.58
user 186.08
sys 8.09

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/904471/ft1_filtered_4FGL_J0153.9+0823_daily_bin203.fits scfile=/scratch/kocevski/904471/ft2_4FGL_J0153.9+0823_daily_bin203.fits outfile=/scratch/kocevski/904471/cmap_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.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 2.86
user 0.38
sys 2.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904471/ft1_filtered_4FGL_J0153.9+0823_daily_bin203.fits scfile=/scratch/kocevski/904471/ft2_4FGL_J0153.9+0823_daily_bin203.fits outfile=/scratch/kocevski/904471/cmap_HighResolution_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.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 2.94
user 0.39
sys 2.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6218       1.0000         .10000E-03   10000.    
     2 'Prefactor '    131.13       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3941       1.0000         .10000E-03   10000.    
     4 'norm      '    .61765E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7433       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1170       1.0000         .10000E-03   10000.    
     9 'norm      '    .20706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3413       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98343       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=   6694.305     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2074 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6210        11.952        .10615E-02    .12701E-03
   2  Prefactor     131.09        77.645        .17581E-03   -.13450E-04
   3  Prefactor     4.3943        5.1540        .96064E-03    .34634E-03
   4  norm          .10000E-03    14.858        .95756E-01** at limit **
   5  Prefactor     .10000E-03    3.6343        .15155E-02** at limit **
   6  Prefactor     3.7434        2.4481        .99728E-04   -.25649E-04
   7  norm          3.0165        4.3112        .19407E-03   -.12770E-04
   8  Prefactor     1.1158        2.7796        .20185E-03    .32442E-04
   9  norm          .20705        .63519        .11322E-03    .13596E-03
  10  Prefactor     .10000E-03    33.121        .18142E-02** at limit **
  11  Prefactor     3.1527        4.9443        .10813E-02    .22376E-03
  12  Prefactor     .10000E-03    31.905        .18142E-02** at limit **
  13  Prefactor     4.4548        8.5335        .19079E-03    .81160E-05
  14  Prefactor     .10000E-03    5.9971        .18142E-02** at limit **
  15  Prefactor     .10000E-03    3.5935        .15120E-02** at limit **
  16  Normalizat    1.3415        .24016        .28444E-03   -.15420E-03
  17  Prefactor     .98332        .16229        .21996E-03   -.20984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62105
  Prefactor  = 131.086
  Prefactor  = 4.39428
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74344
  norm       = 3.01651
  Prefactor  = 1.11578
  norm       = 0.207048
  Prefactor  = 0.0001
  Prefactor  = 3.15273
  Prefactor  = 0.0001
  Prefactor  = 4.45484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34145
  Prefactor  = 0.983324
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.305     FROM HESSE     STATUS=OK           221 CALLS     2295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6210        11.949        .21230E-03   -1.5327    
   2  Prefactor     131.09        77.644        .70325E-05   -1.3413    
   3  Prefactor     4.3943        5.1532        .19213E-03   -1.5289    
   4  norm          .10000E-03    14.545        .97419E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6352        .30311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7434        2.4480        .39891E-05   -1.5321    
   7  norm          3.0165        4.3105        .77630E-05   -1.5361    
   8  Prefactor     1.1158        2.7788        .80739E-05   -1.5497    
   9  norm          .20705        .63514        .45288E-05   -1.5617    
  10  Prefactor     .10000E-03    33.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1527        4.9412        .21626E-03   -1.5353    
  12  Prefactor     .10000E-03    31.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4548        8.5291        .38157E-04   -1.5286    
  14  Prefactor     .10000E-03    5.9973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5938        .30239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3415        .24033        .56888E-04   -.82337    
  17  Prefactor     .98332        .16241        .87984E-05   -.93287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06948e-10
Minuit parameter uncertainties:
  1  11.9566
  2  77.7048
  3  5.15374
  4  4.81112e-05
  5  5.72641e-06
  6  2.44808
  7  4.31091
  8  2.77908
  9  0.635156
  10  3.19454e-05
  11  4.94184
  12  3.7222e-05
  13  8.5314
  14  2.62019e-06
  15  2.93858e-06
  16  0.240529
  17  0.162495
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  4.811e-05  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:  9.833e-01  1.625e-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.341e+00  2.405e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904471/likelihoodResults_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.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) = 6694.3049092
delta logL = -1.70478788277e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6694.26840538
delta logL = 0.0364867724757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61995       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3897       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98772       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6694.268     FROM MIGRAD    STATUS=FAILED        88 CALLS      349 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62100        347.83        .17918E-02    .52759E-02
   2  alpha         3.3886        3.4557        .28769E-01    .28511E-03
   3  Normalizat    1.3251        .12374        .28598E-03    .17934E-02
   4  Prefactor     .98752        .85902E-01    .21956E-03    .19426E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6694.268     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      445 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62100        347.83        .45201E-03    .52759E-02
   2  alpha         3.3886        3.4557        .67817E-02    .28511E-03
   3  Normalizat    1.3251        .12374        .20080E-03    .17934E-02
   4  Prefactor     .98752        .85902E-01    .77837E-04    .19426E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6694.268     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      482 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62307        129.33        .71672E-04   -.13657E-03
   2  alpha         3.3868        3.0373        .11508E-02   -.56707E-05
   3  Normalizat    1.3251        .25718        .57196E-04    .93938E-04
   4  Prefactor     .98752        .17311        .43912E-04    .52892E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.623071
  alpha      = 3.38681
  Normalizat = 1.32514
  Prefactor  = 0.987516
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.268     FROM HESSE     STATUS=OK            23 CALLS      505 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62307        39.228        .28669E-05   -1.5550    
   2  alpha         3.3868        3.3672        .46031E-04    .36262    
   3  Normalizat    1.3251        .24781        .11439E-04   -.82819    
   4  Prefactor     .98752        .16441        .87824E-05   -.93147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4918e-10
Minuit parameter uncertainties:
  1  9.89378
  2  7.38229
  3  0.248028
  4  0.164497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904471': 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) = 6694.26840445
delta logL = 0.0364877027032

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  6.231e-01  9.894e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  3.387e+00  7.382e+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.875e-01  1.645e-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.325e+00  2.480e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/904471/cmap_HighResolution_291945601_292204801_4FGL_J0153.9+0823_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-05', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-08-14 20:11:24.394328', job_id='904471', GAL2='0.99', fit_tolerance='1e-08', EG2='1.33', EG='1.34', time_epoch_completed='1628997084.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.65e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='203' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:11:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 904471: <4FGL_J0153.9+0823_daily_bin203> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin203> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:55:27 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:56: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:56:09 2021
Terminated at Sat Aug 14 20:11:25 2021
Results reported at Sat Aug 14 20:11:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin203 28.4972 8.3931 291945601 292204801 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 :                                   707.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            958 sec.

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

