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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin825
RA = 28.4972, Dec = 8.3931
tmin = 453168001, tmax = 453427201
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='907597', job_status='RUN', time_executed='2021-08-14 20:08:34.282533', time_epoch_executed='1628996914.28' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907597

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907597/ft1_4FGL_J0153.9+0823_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907597/ft2_4FGL_J0153.9+0823_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907597/ft1_4FGL_J0153.9+0823_daily_bin825.fits outfile=/scratch/kocevski/907597/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin825.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=453168001.0 tmax=453427201.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 3.61
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907597/ft2_4FGL_J0153.9+0823_daily_bin825.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/907597/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin825.fits evtable="EVENTS" outfile="/scratch/kocevski/907597/ft1_filtered_4FGL_J0153.9+0823_daily_bin825.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907597/ft1_filtered_4FGL_J0153.9+0823_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/907597/ft2_4FGL_J0153.9+0823_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/907597/ltcube_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.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/907597/ft2_4FGL_J0153.9+0823_daily_bin825.fits
.....................!
real 13.11
user 12.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907597/ft1_filtered_4FGL_J0153.9+0823_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/907597/ft2_4FGL_J0153.9+0823_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/907597/ltcube_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.fits outfile=/scratch/kocevski/907597/expmap_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.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/907597/ltcube_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.fits
.....................!
real 189.82
user 185.98
sys 3.45

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/907597/ft1_filtered_4FGL_J0153.9+0823_daily_bin825.fits scfile=/scratch/kocevski/907597/ft2_4FGL_J0153.9+0823_daily_bin825.fits outfile=/scratch/kocevski/907597/cmap_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.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 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907597/ft1_filtered_4FGL_J0153.9+0823_daily_bin825.fits scfile=/scratch/kocevski/907597/ft2_4FGL_J0153.9+0823_daily_bin825.fits outfile=/scratch/kocevski/907597/cmap_HighResolution_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.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 0.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.699       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0048       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98015E-01   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3257       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0007       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=   5306.635     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1608 TOTAL
                     EDM=   .80E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.392        15.413       -.27466E-07    .29961E-05
   2  Prefactor     .10000E-03    17.704       -.81785E-07** at limit **
   3  Prefactor     13.699        7.7495       -.38860E-06    .61108E-04
   4  norm          2.2098        39.034        .45428E-05   -.98106E-05
   5  Prefactor     .10000E-03    2.0109        .35992E-08** at limit **
   6  Prefactor     .10000E-03    1.2760       -.65534E-07** at limit **
   7  norm          .10000E-03    5.0801       -.46091E-07** at limit **
   8  Prefactor     3.0039        3.0071        .24424E-06   -.13171E-04
   9  norm          .10000E-03    .33471       -.44170E-07** at limit **
  10  Prefactor     .10000E-03    20.900        .23800E-06** at limit **
  11  Prefactor     .10000E-03    5.6768        .64610E-07** at limit **
  12  Prefactor     32.053        100.42       -.93305E-05   -.91126E-05
  13  Prefactor     .10000E-03    3.3732        .32287E-07** at limit **
  14  Prefactor     15.995        18.616       -.18629E-06   -.36011E-04
  15  Prefactor     .10004E-03    11.535        .88388E-06** at limit **
  16  Normalizat    1.3256        .21658        .27903E-06   -.54595E-04
  17  Prefactor     1.0008        .14744       -.74771E-07   -.77790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3923
  Prefactor  = 0.0001
  Prefactor  = 13.6987
  norm       = 2.20975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00389
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0532
  Prefactor  = 0.0001
  Prefactor  = 15.9949
  Prefactor  = 0.000100036
  Normalizat = 1.32565
  Prefactor  = 1.00078
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.635     FROM HESSE     STATUS=OK           231 CALLS     1839 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.392        15.423        .10208E-03   -1.4923    
   2  Prefactor     .10000E-03    17.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.699        7.7285        .10822E-03   -1.4968    
   4  norm          2.2098        39.033        .13824E-02   -1.5411    
   5  Prefactor     .10000E-03    2.0129        .10088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3041        .80325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.1881        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0039        2.9980        .11788E-03   -1.5361    
   9  norm          .10000E-03    .41583        .82083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7583        .16949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.053        102.47        .70831E-04   -1.4575    
  13  Prefactor     .10000E-03    3.3827        .13066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.995        18.626        .10016E-03   -1.4908    
  15  Prefactor     .10004E-03    18.512        .69598E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3256        .24688        .28050E-03   -.82804    
  17  Prefactor     1.0008        .16803        .21550E-03   -.92703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29436e-11
Minuit parameter uncertainties:
  1  15.4272
  2  3.9758e-08
  3  7.72903
  4  18.5883
  5  5.93632e-07
  6  1.30468e-06
  7  6.08857e-07
  8  2.99814
  9  9.27106e-08
  10  3.1698e-05
  11  5.50469e-06
  12  103.043
  13  2.58073e-06
  14  18.633
  15  0.00164097
  16  0.247101
  17  0.168116
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  2.210e+00  1.859e+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:  1.001e+00  1.681e-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.326e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/907597/likelihoodResults_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.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) = 5305.43861121
delta logL = 1.19665294154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5305.41185023
delta logL = 1.22341391912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90581       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   5305.412     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90542        10.827        .11032E-01    .86316E-03
   2  alpha         4.0254        4.1451        .26403        .67625E-04
   3  Normalizat    1.2232        .63528E-01    .65560E-01    .25088E-05
   4  Prefactor     1.0328        .42742E-01    .41044E-01   -.33393E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.905417
  alpha      = 4.02539
  Normalizat = 1.22321
  Prefactor  = 1.03282
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.412     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      274 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90542        23.844        .50068E-03   -1.5518    
   2  alpha         4.0254        4.5006        .10946E-01    .65626    
   3  Normalizat    1.2232        .22581        .29002E-03   -.85888    
   4  Prefactor     1.0328        .14734        .21230E-03   -.91644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65276e-10
Minuit parameter uncertainties:
  1  9.2963
  2  4.68746
  3  0.225991
  4  0.147399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907597': 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) = 5305.41185018
delta logL = 1.22341397583

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  9.054e-01  9.296e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  4.025e+00  4.687e+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:  1.033e+00  1.474e-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.223e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 28.497 8.393
Photon Index (Free Index): 4.03 +/- 4.69
Photon Flux (Free Index): 1.00e-07 +/- 9.93e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.20e-05

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/907597/cmap_HighResolution_453168001_453427201_4FGL_J0153.9+0823_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-05', comment='SUCCESS', energy_flux2='1.57e-05', dlogl='1.22e+00', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-08-14 20:17:27.062461', photon_index_error2='4.69', photon_index2='4.03', ts='0.02', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='7.31e-08', energy_flux_error2='1.20e-05', EG='1.33', time_epoch_completed='1628997447.06', return_code='0', job_id='907597', GAL2='1.03', EG2='1.22', return_code2='102', photon_flux_error2='9.93e-08', ts2='2.58', photon_index='1.82' WHERE bin_id='825' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 907597: <4FGL_J0153.9+0823_daily_bin825> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin825> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 20:05:34 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:06:22 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:06:22 2021
Terminated at Sat Aug 14 20:17:27 2021
Results reported at Sat Aug 14 20:17:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin825 28.4972 8.3931 453168001 453427201 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 :                                   531.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            713 sec.

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

