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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin930
RA = 28.4972, Dec = 8.3931
tmin = 480384001, tmax = 480643201
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='907768', job_status='RUN', time_executed='2021-08-14 20:11:54.243775', time_epoch_executed='1628997114.24' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907768/ft1_4FGL_J0153.9+0823_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907768/ft2_4FGL_J0153.9+0823_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907768/ft1_4FGL_J0153.9+0823_daily_bin930.fits outfile=/scratch/kocevski/907768/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin930.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=480384001.0 tmax=480643201.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.27
user 3.29
sys 0.88

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907768/ft1_filtered_4FGL_J0153.9+0823_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/907768/ft2_4FGL_J0153.9+0823_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/907768/ltcube_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.fits outfile=/scratch/kocevski/907768/expmap_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.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/907768/ltcube_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.fits
.....................!
real 192.48
user 185.78
sys 5.90

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/907768/ft1_filtered_4FGL_J0153.9+0823_daily_bin930.fits scfile=/scratch/kocevski/907768/ft2_4FGL_J0153.9+0823_daily_bin930.fits outfile=/scratch/kocevski/907768/cmap_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.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.21
user 0.40
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907768/ft1_filtered_4FGL_J0153.9+0823_daily_bin930.fits scfile=/scratch/kocevski/907768/ft2_4FGL_J0153.9+0823_daily_bin930.fits outfile=/scratch/kocevski/907768/cmap_HighResolution_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.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.20
user 0.41
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35468E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4096       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .67829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11581E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1701       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2611       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0423       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=   6082.058     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1403 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6155        11.596        .21645E-05   -.11367E-03
   2  Prefactor     .10000E-03    107.58       -.50569E-04** at limit **
   3  Prefactor     .10000E-03    1.9735       -.24004E-07** at limit **
   4  norm          .10000E-03    5.1909        .49213E-06** at limit **
   5  Prefactor     .10000E-03    2.8749       -.51673E-07** at limit **
   6  Prefactor     1.4093        2.0744       -.15059E-06   -.51398E-03
   7  norm          3.7417        3.9926       -.19779E-06   -.34827E-04
   8  Prefactor     .10000E-03    1.3780       -.18775E-06** at limit **
   9  norm          .67753        .95372       -.13798E-06   -.13188E-02
  10  Prefactor     8.8186        20.554        .95686E-06    .15013E-05
  11  Prefactor     .10000E-03    8.4794        .54888E-06** at limit **
  12  Prefactor     .10000E-03    53.696        .34948E-05** at limit **
  13  Prefactor     5.1583        10.082        .28339E-05   -.15553E-03
  14  Prefactor     .10000E-03    12.932       -.73345E-06** at limit **
  15  Prefactor     .10000E-03    4.7134       -.27365E-06** at limit **
  16  Normalizat    1.2614        .21125        .43178E-07    .11021E-03
  17  Prefactor     1.0423        .14512       -.40044E-06    .16390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61554
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4093
  norm       = 3.74169
  Prefactor  = 0.000100001
  norm       = 0.677529
  Prefactor  = 8.8186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2614
  Prefactor  = 1.0423
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.058     FROM HESSE     STATUS=OK           223 CALLS     1626 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6155        11.525        .21238E-03   -1.5328    
   2  Prefactor     .10000E-03    107.67        .21318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9803        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.1929        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8857        .12912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4093        2.0484        .13126E-03   -1.5471    
   7  norm          3.7417        3.9820        .15528E-03   -1.5321    
   8  Prefactor     .10000E-03    6.5705        .17315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .67753        .88827        .86379E-03   -1.5543    
  10  Prefactor     8.8186        20.300        .13498E-03   -1.5114    
  11  Prefactor     .10000E-03    8.5575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1583        9.9818        .17680E-03   -1.5254    
  14  Prefactor     .10000E-03    12.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7506        .16535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2614        .24328        .28601E-03   -.84726    
  17  Prefactor     1.0423        .16810        .21195E-03   -.91332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49942e-10
Minuit parameter uncertainties:
  1  11.5318
  2  0.000465895
  3  8.39495e-07
  4  7.36369e-07
  5  1.57367e-06
  6  2.04848
  7  3.98224
  8  0.000133983
  9  0.888288
  10  20.3157
  11  7.75799e-05
  12  2.40115e-05
  13  9.985
  14  2.17753e-06
  15  2.58368e-06
  16  0.2435
  17  0.168183
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  7.364e-07  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:  1.042e+00  1.682e-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.261e+00  2.435e-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: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907768/likelihoodResults_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.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) = 6082.05856371
delta logL = -0.000905666228391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6082.05765805
delta logL = 1.17506715469e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8196       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0423       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=   6082.058     FROM MIGRAD    STATUS=FAILED        84 CALLS      230 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    1019.8        .17357E-02** at limit **
   2  alpha         1.7853        2.5455        .17306        .95397E-06
   3  Normalizat    1.2614        .12607        .28601E-03   -.14310E-05
   4  Prefactor     1.0423        .86405E-01    .21195E-03   -.13946E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6082.058     FROM SIMPLEX   STATUS=UNCHANGED    174 CALLS      404 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    1019.8        .33342E-03** at limit **
   2  alpha         1.7853        2.5455        .49804E-05    .95397E-06
   3  Normalizat    1.2614        .12607        .77224E-06   -.14310E-05
   4  Prefactor     1.0423        .86405E-01    .10200E-06   -.13946E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6082.058     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      435 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2090        .34713E-03** at limit **
   2  alpha         1.7458        4.1241        .69225E-02   -.98537E-08
   3  Normalizat    1.2614        .24079        .11441E-04    .43724E-05
   4  Prefactor     1.0423        .16507        .84780E-05    .61684E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74583
  Normalizat = 1.2614
  Prefactor  = 1.0423
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.058     FROM HESSE     STATUS=OK            23 CALLS      458 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2085        .69427E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7458        3.8038        .13845E-02   -.30644    
   3  Normalizat    1.2614        .24081        .22881E-05   -.84726    
   4  Prefactor     1.0423        .16508        .16956E-05   -.91332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75446e-12
Minuit parameter uncertainties:
  1  3.21694e-06
  2  308.272
  3  0.24102
  4  0.165156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907768': 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) = 6082.05765802
delta logL = 2.88000592263e-08

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  3.217e-06  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.746e+00  3.083e+02  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:  1.042e+00  1.652e-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.261e+00  2.410e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/907768/cmap_HighResolution_480384001_480643201_4FGL_J0153.9+0823_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-08-14 20:21:23.144328', job_id='907768', GAL2='1.04', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1628997683.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='930' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 907768: <4FGL_J0153.9+0823_daily_bin930> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin930> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 20:05:48 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:07:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 20:07:36 2021
Terminated at Sat Aug 14 20:21:24 2021
Results reported at Sat Aug 14 20:21:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin930 28.4972 8.3931 480384001 480643201 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 :                                   578.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            936 sec.

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

