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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1396
RA = 29.0777, Dec = -24.3345
tmin = 601171201, tmax = 601430401
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='916977', job_status='RUN', time_executed='2021-08-14 20:39:16.138385', time_epoch_executed='1628998756.14' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916977/ft1_4FGL_J0156.3-2420_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916977/ft1_4FGL_J0156.3-2420_daily_bin1396.fits outfile=/scratch/kocevski/916977/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1396.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=601171201.0 tmax=601430401.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 8.43
user 3.44
sys 4.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.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/916977/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1396.fits evtable="EVENTS" outfile="/scratch/kocevski/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.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 5.29
user 0.33
sys 4.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/916977/ltcube_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.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/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits
.....................!
real 17.97
user 12.28
sys 5.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/916977/ltcube_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.fits outfile=/scratch/kocevski/916977/expmap_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.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/916977/ltcube_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.fits
.....................!
real 198.42
user 186.23
sys 11.37

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/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits scfile=/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits outfile=/scratch/kocevski/916977/cmap_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.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 6.45
user 0.38
sys 4.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits scfile=/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits outfile=/scratch/kocevski/916977/cmap_HighResolution_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.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 8.40
user 0.40
sys 4.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916977/Model_4FGL_J0156.3-2420_daily_bin1396.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/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits.....................!
real 48.13
user 38.12
sys 7.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits', '/scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits', expMap='/scratch/kocevski/916977/expmap_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.fits', expCube='/scratch/kocevski/916977/ltcube_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916977/Model_4FGL_J0156.3-2420_daily_bin1396.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/916977/ft1_filtered_4FGL_J0156.3-2420_daily_bin1396.fits
Spacecraft file(s): /scratch/kocevski/916977/ft2_4FGL_J0156.3-2420_daily_bin1396.fits
Exposure map: /scratch/kocevski/916977/expmap_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.fits
Exposure cube: /scratch/kocevski/916977/ltcube_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916977/Model_4FGL_J0156.3-2420_daily_bin1396.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) = 4106.91912309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42888       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3417       1.0000         .10000E-03   10000.    
     4 'norm      '    .19043E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12835E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12123E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7193       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1120       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0159       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0849       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71461       1.0000         .10000E-03   10000.    
    16 'norm      '    .22279E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11502E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13849E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.045       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5887       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66085       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96467       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=   4106.916     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2620 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41263        8.7075        .58102E-01   -.20559E-03
   2  Prefactor     .10000E-03    3.9349        .90712E-02** at limit **
   3  Prefactor     5.3970        11.302        .43472E-02    .33000E-03
   4  norm          .10001E-03    1.9269        .45403E-01** at limit **
   5  norm          .10000E-03    1.7843        .90712E-02** at limit **
   6  Prefactor     .10000E-03    7.4515        .90712E-02** at limit **
   7  Prefactor     .10000E-03    3.3877        .36489E-01** at limit **
   8  norm          2.7191        1.4165        .61742E-02    .18621E-03
   9  norm          .10000E-03    .92571        .90712E-02** at limit **
  10  norm          2.4596        3.6105        .65182E-02    .27712E-03
  11  Prefactor     9.2581        43.378        .33193E-02    .12003E-03
  12  norm          1.0176        2.0108        .12942E-01    .79986E-03
  13  Prefactor     7.0881        9.0100        .37677E-02    .25445E-02
  14  Prefactor     11.789        5.8492        .29185E-02   -.17416E-02
  15  Prefactor     .71300        10.751        .12118E-01    .85840E-03
  16  norm          .10002E-03    28.268        .10065E-01** at limit **
  17  Prefactor     .10000E-03    8.5433        .90712E-02** at limit **
  18  Prefactor     .10000E-03    11.256        .90712E-02** at limit **
  19  Prefactor     34.446        55.106        .17170E-02   -.17242E-04
  20  Prefactor     .10000E-03    11.871        .90712E-02** at limit **
  21  Prefactor     2.5816        3.2724        .63404E-02    .12218E-03
  22  Normalizat    .66049        .16944        .41765E-01   -.12498E-04
  23  Prefactor     .96471        .18676        .45824E-01   -.43429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.412628
  Prefactor  = 0.0001
  Prefactor  = 5.39704
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 2.71911
  norm       = 0.0001
  norm       = 2.45964
  Prefactor  = 9.25813
  norm       = 1.01762
  Prefactor  = 7.08806
  Prefactor  = 11.7893
  Prefactor  = 0.713004
  norm       = 0.000100022
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 34.4458
  Prefactor  = 0.000100001
  Prefactor  = 2.58155
  Normalizat = 0.66049
  Prefactor  = 0.964708
 **********
 **   18 **HESSE 
 **********

 FCN=   4106.916     FROM HESSE     STATUS=OK           374 CALLS     2994 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41263        32.483        .35978E-02   -1.5580    
   2  Prefactor     .10000E-03    3.9378        .12414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3970        9.2377        .17389E-03   -1.5243    
   4  norm          .10001E-03    10.660        .14026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8638        .16705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4698        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9175        .22328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7191        1.4143        .53016E-04   -1.5378    
   9  norm          .10000E-03    .93699        .60118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4596        3.6086        .13396E-03   -1.5394    
  11  Prefactor     9.2581        43.286        .13277E-03   -1.5099    
  12  norm          1.0176        1.9710        .11825E-03   -1.5506    
  13  Prefactor     7.0881        8.9998        .15071E-03   -1.5175    
  14  Prefactor     11.789        5.8546        .10401E-03   -1.5021    
  15  Prefactor     .71300        10.982        .40118E-03   -1.5539    
  16  norm          .10002E-03    28.282        .20130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.446        55.079        .68679E-04   -1.4533    
  20  Prefactor     .10000E-03    11.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5816        3.2609        .12588E-03   -1.5387    
  22  Normalizat    .66049        .19813        .22334E-03   -1.0547    
  23  Prefactor     .96471        .22003        .22134E-03   -.93915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42309e-08
Minuit parameter uncertainties:
  1  7.32538
  2  2.37835e-06
  3  9.24015
  4  0.000607031
  5  2.32892e-06
  6  0.000126
  7  0.000199691
  8  1.41436
  9  2.8077e-06
  10  3.6089
  11  40.0848
  12  1.97116
  13  9.00152
  14  5.85484
  15  5.59731
  16  0.0015907
  17  0.000175257
  18  0.000401834
  19  55.1601
  20  0.000169093
  21  3.2611
  22  0.198343
  23  0.220229
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  9.258e+00  4.008e+01  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:  9.647e-01  2.202e-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.605e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/916977/likelihoodResults_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.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) = 4106.45354076
delta logL = 0.462834319401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4106.40658326
delta logL = 0.509791821883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3800       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5661       1.0000          .0000       10.000    
     3 'Normalizat'    .60835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0002       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=   4106.407     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      262 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3572        33.202        .92639E-02    .55133E-03
   2  Index         3.5714        2.8500        .81650E-01    .16204E-03
   3  Normalizat    .60809        .43982E-01    .41053E-01    .25636E-04
   4  Prefactor     1.0008        .50698E-01    .45930E-01   -.18437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.35724
  Index      = 3.57145
  Normalizat = 0.608092
  Prefactor  = 1.0008
 **********
 **   18 **HESSE 
 **********

 FCN=   4106.407     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3572        71.806        .75626E-04   -1.5475    
   2  Index         3.5714        6.7667        .41729E-02   -.28975    
   3  Normalizat    .60809        .17608        .23189E-03   -1.0764    
   4  Prefactor     1.0008        .19880        .21762E-03   -.92703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49528e-09
Minuit parameter uncertainties:
  1  19.7685
  2  5.54605
  3  0.176247
  4  0.198941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916977': 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) = 4106.40656934
delta logL = 0.50980574528

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.357e+00  1.977e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  3.571e+00  5.546e+00  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.001e+00  1.989e-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.081e-01  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 3.57 +/- 5.55
Photon Flux (Free Index): 4.57e-08 +/- 6.51e-08
Energy Flux (Free Index): 7.47e-06 +/- 8.40e-06

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/916977/cmap_HighResolution_601171201_601430401_4FGL_J0156.3-2420_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', comment='SUCCESS', energy_flux2='7.47e-06', dlogl='5.10e-01', photon_flux2='4.57e-08', job_status='DONE', time_completed='2021-08-14 20:49:37.111777', photon_index_error2='5.55', photon_index2='3.57', ts='0.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='6.31e-08', energy_flux_error2='8.40e-06', EG='0.66', time_epoch_completed='1628999377.11', return_code='0', job_id='916977', GAL2='1.00', EG2='0.61', return_code2='102', photon_flux_error2='6.51e-08', ts2='1.15', photon_index='1.94' WHERE bin_id='1396' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 916977: <4FGL_J0156.3-2420_daily_bin1396> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1396> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 20:36:03 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:37:17 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:37:17 2021
Terminated at Sat Aug 14 20:49:38 2021
Results reported at Sat Aug 14 20:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1396 29.0777 -24.3345 601171201 601430401 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            815 sec.

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

