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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1604
RA = 29.0777, Dec = -24.3345
tmin = 655084801, tmax = 655344001
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='4216', job_status='RUN', time_executed='2021-10-08 00:05:35.441879', time_epoch_executed='1633676735.44' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4216/ft1_4FGL_J0156.3-2420_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4216/ft1_4FGL_J0156.3-2420_daily_bin1604.fits outfile=/scratch/kocevski/4216/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1604.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.92
user 2.69
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.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/4216/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4216/ltcube_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.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/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits
.....................!
real 15.01
user 14.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4216/ltcube_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.fits outfile=/scratch/kocevski/4216/expmap_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.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/4216/ltcube_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.fits
.....................!
real 192.67
user 187.15
sys 5.12

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/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.fits scfile=/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits outfile=/scratch/kocevski/4216/cmap_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.fits scfile=/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits outfile=/scratch/kocevski/4216/cmap_HighResolution_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4216/ft2_4FGL_J0156.3-2420_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4216/Model_4FGL_J0156.3-2420_daily_bin1604.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/4216/ft1_filtered_4FGL_J0156.3-2420_daily_bin1604.fits.....................!
real 37.84
user 36.50
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31598E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    9.9435       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3274       1.0000         .10000E-03   10000.    
     9 'norm      '    .10757E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.973       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11274E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.373       1.0000         .10000E-03   10000.    
    16 'norm      '    .33446E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21455E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .87184       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93030       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0855       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3824.925     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2695 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8738       -.11356E-07** at limit **
   2  Prefactor     .10000E-03    8.9960       -.46236E-08** at limit **
   3  Prefactor     .10000E-03    134.31        .63106E-05** at limit **
   4  norm          9.9452        4.9009        .13793E-05    .39638E-03
   5  norm          1.6130        1.7320       -.11895E-07    .60628E-04
   6  Prefactor     9.4365        12.525       -.60454E-07    .76884E-04
   7  Prefactor     .10000E-03    10.132       -.26366E-06** at limit **
   8  norm          2.3269        3.1844        .14560E-07    .12873E-04
   9  norm          .10000E-03    2.1134       -.50425E-07** at limit **
  10  norm          4.0045        4.2512       -.16320E-06    .22142E-03
  11  Prefactor     45.994        47.163        .16710E-06   -.29477E-04
  12  norm          2.6026        4.5006        .11567E-06   -.21581E-03
  13  Prefactor     11.239        15.924       -.30729E-06    .80968E-04
  14  Prefactor     .10000E-03    15.960        .14147E-05** at limit **
  15  Prefactor     19.385        18.574        .62303E-06   -.54892E-04
  16  norm          .10002E-03    168.29        .45576E-05** at limit **
  17  Prefactor     .10000E-03    3.2494        .22724E-06** at limit **
  18  Prefactor     .10000E-03    543.32        .84398E-05** at limit **
  19  Prefactor     .10000E-03    10.500        .27031E-07** at limit **
  20  Prefactor     1.6994        116.71       -.94851E-06    .42509E-05
  21  Prefactor     .87198        2.8165       -.71525E-07   -.16424E-03
  22  Normalizat    .93048        .22634        .80404E-06    .16090E-03
  23  Prefactor     1.0854        .24403        .49512E-07    .18383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.94522
  norm       = 1.61296
  Prefactor  = 9.43654
  Prefactor  = 0.0001
  norm       = 2.32687
  norm       = 0.0001
  norm       = 4.0045
  Prefactor  = 45.9935
  norm       = 2.60259
  Prefactor  = 11.2391
  Prefactor  = 0.000100003
  Prefactor  = 19.3849
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.69938
  Prefactor  = 0.871981
  Normalizat = 0.930477
  Prefactor  = 1.08542
 **********
 **   18 **HESSE 
 **********

 FCN=   3824.925     FROM HESSE     STATUS=OK           374 CALLS     3069 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8800        .13335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0458        .18119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    133.07        .48774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.9452        4.9407        .92214E-04   -1.5077    
   5  norm          1.6130        1.7310        .82080E-04   -1.5454    
   6  Prefactor     9.4365        12.499        .13045E-03   -1.5093    
   7  Prefactor     .10000E-03    10.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3269        3.1781        .12216E-03   -1.5403    
   9  norm          .10000E-03    4.2939        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0045        4.2318        .12157E-03   -1.5308    
  11  Prefactor     45.994        47.178        .29567E-03   -1.4351    
  12  norm          2.6026        4.4842        .15870E-03   -1.5385    
  13  Prefactor     11.239        15.949        .11954E-03   -1.5037    
  14  Prefactor     .10000E-03    16.319        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.385        18.336        .90998E-04   -1.4827    
  16  norm          .10002E-03    166.49        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2593        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    540.16        .40330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6994        119.66        .31243E-03   -1.5447    
  21  Prefactor     .87198        2.7782        .18165E-03   -1.5521    
  22  Normalizat    .93048        .27275        .24801E-03   -.95397    
  23  Prefactor     1.0854        .29595        .26225E-03   -.89934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42991e-10
Minuit parameter uncertainties:
  1  1.0747e-05
  2  2.34973e-05
  3  0.00108241
  4  4.94093
  5  1.73108
  6  12.502
  7  6.99367e-05
  8  3.17836
  9  6.57214e-05
  10  4.23207
  11  47.2167
  12  4.48482
  13  15.9554
  14  0.000442077
  15  18.3409
  16  0.00399571
  17  1.87624e-05
  18  0.000813027
  19  9.16329e-06
  20  28.5792
  21  2.77856
  22  0.273155
  23  0.296398
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  4.599e+01  4.722e+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:  1.085e+00  2.964e-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:  9.305e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 29.078 -24.334
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 2.34e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.94e-05

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

Saving results to:
/scratch/kocevski/4216/likelihoodResults_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.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) = 3824.91391069
delta logL = 0.0106375930259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3824.90978109
delta logL = 0.0147671898712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.959       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8133       1.0000          .0000       10.000    
     3 'Normalizat'    .93448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0828       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3824.910     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      256 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.963        59.004        .56180E-04   -.21072E-03
   2  Index         1.8132        .72887        .85225E-02   -.12551E-03
   3  Normalizat    .93458        .25757        .24753E-03    .17651E-03
   4  Prefactor     1.0827        .29226        .26255E-03    .18594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9627
  Index      = 1.81322
  Normalizat = 0.934577
  Prefactor  = 1.08271
 **********
 **   18 **HESSE 
 **********

 FCN=   3824.910     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.963        57.902        .11236E-04   -1.4279    
   2  Index         1.8132        .71520        .34090E-03   -.69106    
   3  Normalizat    .93458        .25771        .49505E-04   -.95256    
   4  Prefactor     1.0827        .29250        .52509E-04   -.90021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41122e-10
Minuit parameter uncertainties:
  1  57.966
  2  0.719376
  3  0.258048
  4  0.29293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4216': 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) = 3824.90978102
delta logL = 0.0147672607795

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  5.096e+01  5.797e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.813e+00  7.194e-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.083e+00  2.929e-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:  9.346e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 1.81 +/- 0.72
Photon Flux (Free Index): 2.00e-08 +/- 2.79e-08
Energy Flux (Free Index): 2.31e-05 +/- 3.65e-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/4216/cmap_HighResolution_655084801_655344001_4FGL_J0156.3-2420_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', photon_flux='2.34e-08', energy_flux2='2.31e-05', photon_flux_error='2.40e-08', dlogl='1.48e-02', energy_flux='1.89e-05', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-10-08 00:14:13.304391', photon_index_error2='0.72', photon_index2='1.81', ts='3.24', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='3.65e-05', EG='0.93', time_epoch_completed='1633677253.3', return_code='0', job_id='4216', GAL2='1.08', EG2='0.93', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='2.79e-08', ts2='3.27', photon_index='1.94' WHERE bin_id='1604' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:14:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 4216: <4FGL_J0156.3-2420_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:38 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:02:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:02:14 2021
Terminated at Fri Oct  8 00:14:13 2021
Results reported at Fri Oct  8 00:14:13 2021

Your job looked like:

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

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

