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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin463
RA = 29.0777, Dec = -24.3345
tmin = 359337601, tmax = 359596801
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='912593', job_status='RUN', time_executed='2021-08-14 20:22:45.945798', time_epoch_executed='1628997765.95' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912593

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912593/ft1_4FGL_J0156.3-2420_daily_bin463.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912593/ft1_4FGL_J0156.3-2420_daily_bin463.fits outfile=/scratch/kocevski/912593/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin463.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=359337601.0 tmax=359596801.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.35
user 3.12
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.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/912593/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin463.fits evtable="EVENTS" outfile="/scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.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/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits" evtable="EVENTS" scfile=/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits sctable="SC_DATA" outfile=/scratch/kocevski/912593/ltcube_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.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/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits
.....................!
real 13.83
user 13.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/912593/ltcube_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.fits outfile=/scratch/kocevski/912593/expmap_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.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/912593/ltcube_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.fits
.....................!
real 191.12
user 185.92
sys 4.63

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

Setting source of interest to:
4FGL J0156.3-2420 @ 29.0777 -24.3345

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits scfile=/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits outfile=/scratch/kocevski/912593/cmap_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.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=29.0777 yref=-24.3345 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits scfile=/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits outfile=/scratch/kocevski/912593/cmap_HighResolution_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.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=29.0777 yref=-24.3345 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912593/Model_4FGL_J0156.3-2420_daily_bin463.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/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits.....................!
real 52.10
user 50.70
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits', '/scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits', expMap='/scratch/kocevski/912593/expmap_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.fits', expCube='/scratch/kocevski/912593/ltcube_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912593/Model_4FGL_J0156.3-2420_daily_bin463.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.3-2420'

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  4.171e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/912593/ft1_filtered_4FGL_J0156.3-2420_daily_bin463.fits
Spacecraft file(s): /scratch/kocevski/912593/ft2_4FGL_J0156.3-2420_daily_bin463.fits
Exposure map: /scratch/kocevski/912593/expmap_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.fits
Exposure cube: /scratch/kocevski/912593/ltcube_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912593/Model_4FGL_J0156.3-2420_daily_bin463.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) = 6346.841048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0605       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1126       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5475       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2048       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.468       1.0000         .10000E-03   10000.    
     8 'norm      '    .58894       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6164       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8689       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .65688       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62002       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6346.836     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2540 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0604        6.6840        .44686E-02    .11627E-02
   2  Prefactor     7.2314        8.8385        .37291E-02    .29112E-03
   3  Prefactor     3.1198        17.993        .57457E-02    .32336E-03
   4  norm          2.5458        3.0849        .63959E-02   -.42196E-03
   5  norm          2.2048        1.5511        .69266E-02    .30463E-03
   6  Prefactor     .10000E-03    2.9345        .90712E-02** at limit **
   7  Prefactor     14.468        5.0102        .26325E-02    .96663E-03
   8  norm          .58870        .87676        .18200E-01    .13022E-02
   9  norm          2.6165        1.5914        .63039E-02    .69447E-03
  10  norm          1.0853        1.9658        .11519E-01    .83793E-03
  11  Prefactor     .10001E-03    46.999        .90712E-02** at limit **
  12  norm          1.7052        1.7611        .80508E-02    .69143E-04
  13  Prefactor     1.3077        4.8182        .96428E-02    .98969E-03
  14  Prefactor     1.5972        2.4500        .83902E-02    .34377E-03
  15  Prefactor     4.8686        8.0366        .45574E-02   -.92183E-03
  16  norm          .10001E-03    24.431        .90712E-02** at limit **
  17  Prefactor     14.791        6.0208        .26036E-02   -.23093E-02
  18  Prefactor     43.916        32.161        .15124E-02   -.55554E-03
  19  Prefactor     10.770        15.933        .30519E-02    .14764E-03
  20  Prefactor     .10000E-03    10.800        .90712E-02** at limit **
  21  Prefactor     .65820        2.0123        .42017E-01    .14407E-02
  22  Normalizat    .62000        .14934        .41212E-01   -.66245E-03
  23  Prefactor     1.0751        .16667        .38622E-01   -.41940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0604
  Prefactor  = 7.23137
  Prefactor  = 3.11981
  norm       = 2.54578
  norm       = 2.2048
  Prefactor  = 0.0001
  Prefactor  = 14.4675
  norm       = 0.588703
  norm       = 2.61655
  norm       = 1.08527
  Prefactor  = 0.000100009
  norm       = 1.70519
  Prefactor  = 1.30768
  Prefactor  = 1.59725
  Prefactor  = 4.86865
  norm       = 0.000100006
  Prefactor  = 14.7909
  Prefactor  = 43.9162
  Prefactor  = 10.7703
  Prefactor  = 0.0001
  Prefactor  = 0.658196
  Normalizat = 0.619998
  Prefactor  = 1.07506
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.836     FROM HESSE     STATUS=OK           380 CALLS     2920 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0604        6.6640        .17874E-03   -1.5258    
   2  Prefactor     7.2314        8.8177        .14916E-03   -1.5170    
   3  Prefactor     3.1198        16.542        .22983E-03   -1.5355    
   4  norm          2.5458        2.9642        .99233E-04   -1.5389    
   5  norm          2.2048        1.5503        .80593E-04   -1.5411    
   6  Prefactor     .10000E-03    2.9373        .13327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.468        4.9915        .93595E-04   -1.4947    
   8  norm          .58870        .76825        .86209E-03   -1.5555    
   9  norm          2.6165        1.5821        .74400E-04   -1.5384    
  10  norm          1.0853        1.9148        .14121E-03   -1.5500    
  11  Prefactor     .10001E-03    47.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7052        1.7424        .99607E-04   -1.5447    
  13  Prefactor     1.3077        4.7754        .32474E-03   -1.5479    
  14  Prefactor     1.5972        2.4191        .14889E-03   -1.5455    
  15  Prefactor     4.8686        7.9916        .18230E-03   -1.5267    
  16  norm          .10001E-03    24.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.791        6.0250        .10414E-03   -1.4939    
  18  Prefactor     43.916        32.114        .60497E-04   -1.4382    
  19  Prefactor     10.770        15.926        .61038E-03   -1.5051    
  20  Prefactor     .10000E-03    10.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .65820        1.8570        .19209E-02   -1.5546    
  22  Normalizat    .62000        .16939        .24419E-03   -1.0714    
  23  Prefactor     1.0751        .19166        .22809E-03   -.90268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50629e-09
Minuit parameter uncertainties:
  1  6.66498
  2  8.81931
  3  14.3738
  4  2.96433
  5  1.55035
  6  3.64688e-05
  7  4.99167
  8  0.768263
  9  1.58214
  10  1.91491
  11  0.00131605
  12  1.74241
  13  4.77675
  14  2.41921
  15  7.99337
  16  0.000749082
  17  6.02523
  18  32.1266
  19  15.9321
  20  2.94802e-05
  21  1.85716
  22  0.169528
  23  0.191778
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.316e-03  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.939e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.075e+00  1.918e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.200e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.078 -24.334
Photon Flux Upper Limit: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912593/likelihoodResults_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.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) = 6346.83581295
delta logL = -9.99351250357e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6346.83571294
delta logL = 7.88077159086e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9959       1.0000          .0000       10.000    
     3 'Normalizat'    .62000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6346.836     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    647.47        .90712E-02** at limit **
   2  Index         2.0343        8.6341        .50000       -.61652E-05
   3  Normalizat    .62000        .12036E-01    .41212E-01   -.13256E-03
   4  Prefactor     1.0751        .14559E-01    .38622E-01    .32746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0343
  Normalizat = 0.619999
  Prefactor  = 1.07506
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.836     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9150.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0343        7.7586        .50000       -.63495    
   3  Normalizat    .62000        .13081        .24419E-03   -1.0714    
   4  Prefactor     1.0751        .15822        .22809E-03   -.90268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.03929e-09
Minuit parameter uncertainties:
  1  0.0046139
  2  62.8322
  3  0.130873
  4  0.158289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912593': 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) = 6346.83571287
delta logL = 1.41027157952e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.614e-03  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  2.034e+00  6.283e+01  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.075e+00  1.583e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.200e-01  1.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.078 -24.334

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/912593/cmap_HighResolution_359337601_359596801_4FGL_J0156.3-2420_daily_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-08-14 20:33:41.335275', job_id='912593', GAL2='1.08', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1628998421.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='463' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:33:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 912593: <4FGL_J0156.3-2420_daily_bin463> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin463> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:20:58 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:22:33 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:22:33 2021
Terminated at Sat Aug 14 20:33:42 2021
Results reported at Sat Aug 14 20:33:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin463 29.0777 -24.3345 359337601 359596801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.3-2420 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            764 sec.

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

