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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1084
RA = 29.0777, Dec = -24.3345
tmin = 520300801, tmax = 520560001
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='915431', job_status='RUN', time_executed='2021-08-14 20:34:54.509846', time_epoch_executed='1628998494.51' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915431/ft1_4FGL_J0156.3-2420_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915431/ft1_4FGL_J0156.3-2420_daily_bin1084.fits outfile=/scratch/kocevski/915431/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1084.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.77
user 5.82
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.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/915431/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.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.30
user 0.34
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/915431/ltcube_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.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/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits
.....................!
real 15.64
user 14.40
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/915431/ltcube_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.fits outfile=/scratch/kocevski/915431/expmap_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.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/915431/ltcube_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.fits
.....................!
real 192.67
user 185.65
sys 6.24

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/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.fits scfile=/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits outfile=/scratch/kocevski/915431/cmap_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.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 2.45
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.fits scfile=/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits outfile=/scratch/kocevski/915431/cmap_HighResolution_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.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.60
user 0.38
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/915431/ft2_4FGL_J0156.3-2420_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915431/Model_4FGL_J0156.3-2420_daily_bin1084.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/915431/ft1_filtered_4FGL_J0156.3-2420_daily_bin1084.fits....................!
real 44.04
user 39.31
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.885       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2969       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8949       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1792       1.0000         .10000E-03   10000.    
     9 'norm      '    .33196E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .72989E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5815       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2044       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .54755       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=   4344.066     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2554 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.895        11.059        .61083E-06    .46365E-03
   2  Prefactor     .10000E-03    17.444       -.74837E-06** at limit **
   3  Prefactor     .10000E-03    19.365        .21018E-05** at limit **
   4  norm          7.3010        2.7964       -.46360E-06   -.28957E-02
   5  norm          2.3942        1.9488        .22040E-08    .15568E-03
   6  Prefactor     9.8928        14.730        .34307E-06    .21760E-03
   7  Prefactor     .10000E-03    1.3171        .99385E-08** at limit **
   8  norm          2.1795        1.2950        .24895E-07    .91627E-04
   9  norm          .10003E-03    6.7578       -.56321E-05** at limit **
  10  norm          .10000E-03    3.3970        .32398E-05** at limit **
  11  Prefactor     .10000E-03    53.236       -.17708E-05** at limit **
  12  norm          .10000E-03    .53454        .92721E-08** at limit **
  13  Prefactor     6.0377        16.355        .48365E-06    .27678E-03
  14  Prefactor     2.5834        5.4553        .15567E-05    .12492E-02
  15  Prefactor     .10000E-03    9.9996       -.93905E-06** at limit **
  16  norm          .10000E-03    85.298       -.11244E-05** at limit **
  17  Prefactor     .10000E-03    2.0225        .59944E-07** at limit **
  18  Prefactor     .10000E-03    90.092        .36743E-05** at limit **
  19  Prefactor     .10000E-03    10.415        .17035E-05** at limit **
  20  Prefactor     .10000E-03    6.4343       -.22536E-06** at limit **
  21  Prefactor     .10000E-03    1.1033       -.25331E-08** at limit **
  22  Normalizat    1.2041        .18065       -.12224E-05    .26589E-03
  23  Prefactor     .54765        .19547        .15676E-05    .20288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8948
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 7.30097
  norm       = 2.3942
  Prefactor  = 9.89282
  Prefactor  = 0.0001
  norm       = 2.17954
  norm       = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.03773
  Prefactor  = 2.5834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20409
  Prefactor  = 0.547653
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.066     FROM HESSE     STATUS=OK           364 CALLS     2918 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.895        11.089        .11620E-03   -1.5018    
   2  Prefactor     .10000E-03    17.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.3010        2.8751        .67646E-04   -1.5167    
   5  norm          2.3942        1.9496        .79922E-04   -1.5398    
   6  Prefactor     9.8928        14.658        .12739E-03   -1.5079    
   7  Prefactor     .10000E-03    1.3200        .73844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1795        1.2944        .55817E-04   -1.5413    
   9  norm          .10003E-03    9.2705        .14322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.064        .16646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .53846        .47042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0377        16.206        .16343E-03   -1.5216    
  14  Prefactor     2.5834        5.5244        .20547E-03   -1.5386    
  15  Prefactor     .10000E-03    10.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    85.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0350        .91514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    90.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4371        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1047        .67611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2041        .20235        .18362E-03   -.86477    
  23  Prefactor     .54765        .22324        .30131E-03   -1.0984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18959e-09
Minuit parameter uncertainties:
  1  11.0913
  2  4.19212e-05
  3  0.000456757
  4  2.87511
  5  1.9497
  6  14.6629
  7  3.84031e-06
  8  1.29437
  9  0.000984844
  10  0.000134464
  11  0.000489587
  12  5.93118e-07
  13  16.2176
  14  5.52547
  15  7.22287e-05
  16  0.000285713
  17  5.61688e-06
  18  0.00128079
  19  0.000218206
  20  2.27447e-05
  21  2.98904e-07
  22  0.202484
  23  0.223599
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.896e-04  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:  5.477e-01  2.236e-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.204e+00  2.025e-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: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915431/likelihoodResults_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.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) = 4344.06613453
delta logL = -8.91416202649e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4344.06604548
delta logL = -9.2133632279e-08

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 'Index     '    1.8858       1.0000          .0000       10.000    
     3 'Normalizat'    1.2041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54765       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=   4344.066     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    904.00        .90712E-02** at limit **
   2  Index         1.9256        8.9719        .50000       -.70210E-05
   3  Normalizat    1.2041        .18014E-01    .34792E-01   -.44876E-05
   4  Prefactor     .54765        .20738E-01    .68076E-01    .21908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.92559
  Normalizat = 1.20409
  Prefactor  = 0.547651
 **********
 **   18 **HESSE 
 **********

 FCN=   4344.066     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2266.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9256        5.8860        .50000       -.66224    
   3  Normalizat    1.2041        .30285E-01    .18362E-03   -.86477    
   4  Prefactor     .54765        .34793E-01    .30131E-03   -1.0984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.64241e-09
Minuit parameter uncertainties:
  1  0.00461435
  2  27.3776
  3  0.0302859
  4  0.0347941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915431': 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) = 4344.06604542
delta logL = -2.40970621235e-08

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.614e-03  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.926e+00  2.738e+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:  5.477e-01  3.479e-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.204e+00  3.029e-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/915431/cmap_HighResolution_520300801_520560001_4FGL_J0156.3-2420_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', job_status='DONE', photon_flux_upper_limit='6.09e-08', time_completed='2021-08-14 20:44:42.054401', job_id='915431', GAL2='0.55', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1628999082.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-2.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1084' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 915431: <4FGL_J0156.3-2420_daily_bin1084> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1084> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:30:53 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:32:04 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:32:04 2021
Terminated at Sat Aug 14 20:44:43 2021
Results reported at Sat Aug 14 20:44:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1084 29.0777 -24.3345 520300801 520560001 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 :                                   588.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            830 sec.

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

