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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1042
RA = 29.0777, Dec = -24.3345
tmin = 509414401, tmax = 509673601
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='915366', job_status='RUN', time_executed='2021-08-14 20:32:41.170886', time_epoch_executed='1628998361.17' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915366/ft1_4FGL_J0156.3-2420_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915366/ft1_4FGL_J0156.3-2420_daily_bin1042.fits outfile=/scratch/kocevski/915366/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1042.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=509414401.0 tmax=509673601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.75
user 3.45
sys 1.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.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/915366/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1042.fits evtable="EVENTS" outfile="/scratch/kocevski/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/915366/ltcube_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.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/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits
.....................!
real 15.15
user 13.46
sys 1.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/915366/ltcube_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.fits outfile=/scratch/kocevski/915366/expmap_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.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/915366/ltcube_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.fits
.....................!
real 194.80
user 188.10
sys 6.27

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/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits scfile=/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits outfile=/scratch/kocevski/915366/cmap_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.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 1.57
user 0.38
sys 1.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits scfile=/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits outfile=/scratch/kocevski/915366/cmap_HighResolution_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.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 1.61
user 0.40
sys 1.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/915366/ft2_4FGL_J0156.3-2420_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915366/Model_4FGL_J0156.3-2420_daily_bin1042.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/915366/ft1_filtered_4FGL_J0156.3-2420_daily_bin1042.fits.....................!
real 44.29
user 41.55
sys 2.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9330       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1574       1.0000         .10000E-03   10000.    
     4 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13123E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .62880       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7922       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2823       1.0000         .10000E-03   10000.    
    16 'norm      '    .17002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3722       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.241       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8382       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0651       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63589       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=   4335.272     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2530 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9349        9.7614        .25868E-06   -.98888E-04
   2  Prefactor     .10000E-03    6.4967        .95808E-07** at limit **
   3  Prefactor     3.1652        6.3073       -.95085E-06   -.41850E-03
   4  norm          .10000E-03    1.1490        .92573E-06** at limit **
   5  norm          2.2267        1.9837       -.10379E-07   -.89288E-04
   6  Prefactor     5.7244        15.060       -.38473E-06   -.72679E-04
   7  Prefactor     .10000E-03    2.8394        .48724E-06** at limit **
   8  norm          .10000E-03    .52130        .22340E-06** at limit **
   9  norm          .62876        1.5701        .60674E-06    .10023E-03
  10  norm          2.4620        2.5183        .37183E-07   -.10902E-03
  11  Prefactor     .10000E-03    11.877        .42971E-07** at limit **
  12  norm          1.7920        2.0597        .22907E-06   -.62197E-04
  13  Prefactor     4.9826        9.2565        .23914E-06   -.16320E-04
  14  Prefactor     13.939        7.7028        .93596E-07   -.33243E-04
  15  Prefactor     6.2747        7.1234        .21551E-06   -.29926E-04
  16  norm          .10000E-03    59.837        .12476E-06** at limit **
  17  Prefactor     6.3749        7.1373        .25476E-07    .53316E-05
  18  Prefactor     20.245        44.797        .59831E-06   -.42451E-05
  19  Prefactor     5.7315        104.03       -.19693E-05   -.10051E-04
  20  Prefactor     .10000E-03    23.463       -.24219E-06** at limit **
  21  Prefactor     .10000E-03    1.3399       -.63729E-06** at limit **
  22  Normalizat    1.0651        .18121       -.15663E-05   -.18613E-03
  23  Prefactor     .63596        .19624        .35114E-06   -.18471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93489
  Prefactor  = 0.0001
  Prefactor  = 3.16518
  norm       = 0.0001
  norm       = 2.22675
  Prefactor  = 5.72437
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.628764
  norm       = 2.46195
  Prefactor  = 0.0001
  norm       = 1.792
  Prefactor  = 4.98264
  Prefactor  = 13.9387
  Prefactor  = 6.27466
  norm       = 0.0001
  Prefactor  = 6.37495
  Prefactor  = 20.2447
  Prefactor  = 5.73154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0651
  Prefactor  = 0.635958
 **********
 **   18 **HESSE 
 **********

 FCN=   4335.272     FROM HESSE     STATUS=OK           380 CALLS     2910 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9349        9.7293        .20342E-03   -1.5311    
   2  Prefactor     .10000E-03    6.5094        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1652        6.3775        .22811E-03   -1.5352    
   4  norm          .10000E-03    1.5172        .12687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2267        1.9784        .84367E-04   -1.5410    
   6  Prefactor     5.7244        14.989        .16788E-03   -1.5229    
   7  Prefactor     .10000E-03    5.6568        .21016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .53415        .46426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .62876        1.4698        .12567E-02   -1.5549    
  10  norm          2.4620        2.5038        .10129E-03   -1.5394    
  11  Prefactor     .10000E-03    11.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7920        2.0439        .95694E-04   -1.5440    
  13  Prefactor     4.9826        9.2380        .18017E-03   -1.5261    
  14  Prefactor     13.939        7.6969        .10728E-03   -1.4961    
  15  Prefactor     6.2747        7.1009        .16015E-03   -1.5207    
  16  norm          .10000E-03    59.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3749        7.1269        .15900E-03   -1.5203    
  18  Prefactor     20.245        44.770        .89026E-04   -1.4808    
  19  Prefactor     5.7315        105.37        .16621E-03   -1.5229    
  20  Prefactor     .10000E-03    23.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3178        .73766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0651        .20950        .20053E-03   -.90880    
  23  Prefactor     .63596        .22807        .28357E-03   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39955e-10
Minuit parameter uncertainties:
  1  9.73325
  2  7.54315e-07
  3  6.37883
  4  3.91952e-05
  5  1.97842
  6  14.999
  7  0.000141003
  8  1.71333e-07
  9  1.46984
  10  2.50396
  11  1.09565e-06
  12  2.04401
  13  9.24065
  14  7.69747
  15  7.10182
  16  1.298e-05
  17  7.12782
  18  44.8445
  19  49.2512
  20  3.51043e-05
  21  5.93676e-06
  22  0.209666
  23  0.228407
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.096e-06  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:  6.360e-01  2.284e-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:  1.065e+00  2.097e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915366/likelihoodResults_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.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) = 4335.27203374
delta logL = -0.000392014387216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4335.27164166
delta logL = 6.40648067929e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9121       1.0000          .0000       10.000    
     3 'Normalizat'    1.0651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63596       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=   4335.272     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10122E-03    82.665        .18142E-02** at limit **
   2  Index         1.8598        8.6623        .50000        .15103E-04
   3  Normalizat    1.0651        .10902E-01    .20053E-03    .10195E-03
   4  Prefactor     .63596        .12235E-01    .28357E-03    .99909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101218
  Index      = 1.85985
  Normalizat = 1.0651
  Prefactor  = 0.63596
 **********
 **   18 **HESSE 
 **********

 FCN=   4335.272     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10122E-03    358.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8598        6.5028        .50000       -.67902    
   3  Normalizat    1.0651        .23369E-01    .40105E-04   -.90880    
   4  Prefactor     .63596        .26225E-01    .11343E-04   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08267e-08
Minuit parameter uncertainties:
  1  0.0420711
  2  437.518
  3  0.023369
  4  0.0262252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915366': 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) = 4335.27164143
delta logL = 2.91341166303e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.012e-04  4.207e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.860e+00  4.375e+02  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:  6.360e-01  2.623e-02  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:  1.065e+00  2.337e-02  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/915366/cmap_HighResolution_509414401_509673601_4FGL_J0156.3-2420_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-03', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-08-14 20:42:07.320828', job_id='915366', GAL2='0.64', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1628998927.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='2.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1042' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:42:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 915366: <4FGL_J0156.3-2420_daily_bin1042> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1042> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:30:48 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:31:47 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:31:47 2021
Terminated at Sat Aug 14 20:42:08 2021
Results reported at Sat Aug 14 20:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1042 29.0777 -24.3345 509414401 509673601 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 :                                   577.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            680 sec.

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

