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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1358
RA = 29.0777, Dec = -24.3345
tmin = 591321601, tmax = 591580801
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='916932', job_status='RUN', time_executed='2021-08-14 20:39:39.949739', time_epoch_executed='1628998779.95' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916932/ft1_4FGL_J0156.3-2420_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916932/ft1_4FGL_J0156.3-2420_daily_bin1358.fits outfile=/scratch/kocevski/916932/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1358.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=591321601.0 tmax=591580801.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 7.36
user 2.68
sys 4.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916932/ft1_filtered_4FGL_J0156.3-2420_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/916932/ltcube_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.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/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits
.....................!
real 19.11
user 13.16
sys 5.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916932/ft1_filtered_4FGL_J0156.3-2420_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/916932/ltcube_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.fits outfile=/scratch/kocevski/916932/expmap_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.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/916932/ltcube_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.fits
.....................!
real 198.61
user 186.50
sys 10.18

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/916932/ft1_filtered_4FGL_J0156.3-2420_daily_bin1358.fits scfile=/scratch/kocevski/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits outfile=/scratch/kocevski/916932/cmap_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.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 5.09
user 0.38
sys 4.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916932/ft1_filtered_4FGL_J0156.3-2420_daily_bin1358.fits scfile=/scratch/kocevski/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits outfile=/scratch/kocevski/916932/cmap_HighResolution_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.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 5.57
user 0.38
sys 4.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916932/ft1_filtered_4FGL_J0156.3-2420_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/916932/ft2_4FGL_J0156.3-2420_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916932/Model_4FGL_J0156.3-2420_daily_bin1358.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/916932/ft1_filtered_4FGL_J0156.3-2420_daily_bin1358.fits.....................!
real 52.56
user 42.99
sys 7.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1308       1.0000         .10000E-03   10000.    
     5 'norm      '    5.3307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4826       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0553       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21205E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9280       1.0000         .10000E-03   10000.    
    16 'norm      '    .10636E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.008       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12969E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0448       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2123       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=   4874.373     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2547 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3462       -.22556E-06** at limit **
   2  Prefactor     .10000E-03    49.371       -.11036E-04** at limit **
   3  Prefactor     .10000E-03    9.6475        .26245E-06** at limit **
   4  norm          6.1324        3.7691       -.58533E-06    .55135E-04
   5  norm          5.3313        3.2195       -.28424E-06    .29068E-03
   6  Prefactor     22.068        25.785       -.10246E-05    .96627E-04
   7  Prefactor     .10000E-03    2.6361       -.66315E-07** at limit **
   8  norm          .10000E-03    .47672       -.51364E-07** at limit **
   9  norm          1.4826        2.1825       -.58516E-06   -.38544E-03
  10  norm          3.2131        3.9822       -.11649E-05   -.35433E-03
  11  Prefactor     .10000E-03    20.133        .16745E-05** at limit **
  12  norm          3.0559        2.3819       -.50779E-06   -.15147E-03
  13  Prefactor     21.139        19.157       -.36642E-05   -.19809E-03
  14  Prefactor     .10013E-03    4.5924        .21457E-05** at limit **
  15  Prefactor     6.9312        7.1589       -.98595E-08    .45463E-04
  16  norm          .10000E-03    20.446       -.27780E-05** at limit **
  17  Prefactor     .10000E-03    5.2565        .30638E-06** at limit **
  18  Prefactor     .10000E-03    15.346       -.81771E-05** at limit **
  19  Prefactor     18.909        49.500       -.14167E-03    .85896E-05
  20  Prefactor     .10000E-03    87.874        .32169E-04** at limit **
  21  Prefactor     .10000E-03    1.3058        .32475E-06** at limit **
  22  Normalizat    1.0447        .20781        .65190E-05   -.19334E-03
  23  Prefactor     1.2123        .22798        .63719E-05   -.21997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.13239
  norm       = 5.33131
  Prefactor  = 22.068
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.48264
  norm       = 3.21314
  Prefactor  = 0.0001
  norm       = 3.05593
  Prefactor  = 21.1385
  Prefactor  = 0.000100134
  Prefactor  = 6.93123
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04467
  Prefactor  = 1.21233
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.373     FROM HESSE     STATUS=OK           366 CALLS     2913 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1324        3.7616        .10225E-03   -1.5213    
   5  norm          5.3313        3.2159        .91827E-04   -1.5246    
   6  Prefactor     22.068        25.681        .85276E-04   -1.4768    
   7  Prefactor     .10000E-03    2.6480        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .47881        .47073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4826        2.1428        .11805E-03   -1.5464    
  10  norm          3.2131        3.9704        .14420E-03   -1.5349    
  11  Prefactor     .10000E-03    20.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0559        2.3776        .91988E-04   -1.5358    
  13  Prefactor     21.139        18.996        .87144E-04   -1.4788    
  14  Prefactor     .10013E-03    16.098        .28464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9312        7.1600        .15242E-03   -1.5181    
  16  norm          .10000E-03    20.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3177        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.909        49.571        .91865E-04   -1.4838    
  20  Prefactor     .10000E-03    89.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3096        .77917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0447        .24329        .25409E-03   -.91549    
  23  Prefactor     1.2123        .26773        .27171E-03   -.85953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61974e-09
Minuit parameter uncertainties:
  1  3.57714e-05
  2  0.000548806
  3  2.76311e-05
  4  3.76171
  5  3.21604
  6  25.6939
  7  1.14319e-05
  8  3.16517e-06
  9  2.14289
  10  3.97075
  11  1.90268e-05
  12  2.37772
  13  19.0009
  14  0.00293731
  15  7.1609
  16  4.32106e-05
  17  6.91991e-05
  18  3.69206e-05
  19  49.6789
  20  0.000234739
  21  3.72185e-05
  22  0.243554
  23  0.26803
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.903e-05  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.212e+00  2.680e-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.045e+00  2.436e-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: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916932/likelihoodResults_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.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) = 4874.37297973
delta logL = -0.000235150163462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4874.37274459
delta logL = -7.35417415854e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8552       1.0000          .0000       10.000    
     3 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2124       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=   4874.373     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6301.9        .90712E-02** at limit **
   2  Index         1.8445        6.9869        .50000        .37746E-05
   3  Normalizat    1.0447        .73277E-01    .40926E-01    .12000E-04
   4  Prefactor     1.2123        .84000E-01    .61434E-01    .30678E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84449
  Normalizat = 1.04467
  Prefactor  = 1.21233
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.373     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    484.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8445        8.2738        .50000       -.68297    
   3  Normalizat    1.0447        .23076        .25409E-03   -.91549    
   4  Prefactor     1.2123        .26440        .27171E-03   -.85953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43482e-10
Minuit parameter uncertainties:
  1  0.000276834
  2  18.8287
  3  0.230981
  4  0.264688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916932': 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) = 4874.37274448
delta logL = 1.07274900074e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  2.768e-04  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.844e+00  1.883e+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.212e+00  2.647e-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.045e+00  2.310e-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/916932/cmap_HighResolution_591321601_591580801_4FGL_J0156.3-2420_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-08-14 20:50:14.861965', job_id='916932', GAL2='1.21', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1628999414.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1358' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:50:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1358 29.0777 -24.3345 591321601 591580801 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 :                                   696.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            856 sec.

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

