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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin818
RA = 29.0777, Dec = -24.3345
tmin = 451353601, tmax = 451612801
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='914189', job_status='RUN', time_executed='2021-08-14 20:28:46.313248', time_epoch_executed='1628998126.31' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914189/ft1_4FGL_J0156.3-2420_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914189/ft1_4FGL_J0156.3-2420_daily_bin818.fits outfile=/scratch/kocevski/914189/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin818.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=451353601.0 tmax=451612801.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 5.42
user 3.59
sys 1.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914189/ft1_filtered_4FGL_J0156.3-2420_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/914189/ltcube_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.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/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits
.....................!
real 16.25
user 13.95
sys 2.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914189/ft1_filtered_4FGL_J0156.3-2420_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/914189/ltcube_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.fits outfile=/scratch/kocevski/914189/expmap_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.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/914189/ltcube_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.fits
.....................!
real 194.60
user 186.04
sys 7.64

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/914189/ft1_filtered_4FGL_J0156.3-2420_daily_bin818.fits scfile=/scratch/kocevski/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits outfile=/scratch/kocevski/914189/cmap_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.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.04
user 0.40
sys 1.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914189/ft1_filtered_4FGL_J0156.3-2420_daily_bin818.fits scfile=/scratch/kocevski/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits outfile=/scratch/kocevski/914189/cmap_HighResolution_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.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 2.06
user 0.39
sys 1.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914189/ft1_filtered_4FGL_J0156.3-2420_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/914189/ft2_4FGL_J0156.3-2420_daily_bin818.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914189/Model_4FGL_J0156.3-2420_daily_bin818.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/914189/ft1_filtered_4FGL_J0156.3-2420_daily_bin818.fits.....................!
real 53.09
user 49.26
sys 3.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24827E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.780       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2108       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3355       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3149       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3543       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6696       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1685       1.0000         .10000E-03   10000.    
    16 'norm      '    62.872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .44872       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75466       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97712       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=   6062.218     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2588 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6813        .10117E-06** at limit **
   2  Prefactor     .10000E-03    8.8237        .35291E-08** at limit **
   3  Prefactor     10.783        11.317        .11983E-06   -.91172E-05
   4  norm          4.2122        3.0161        .28354E-07   -.47415E-04
   5  norm          3.3359        2.0710        .26103E-07   -.26019E-04
   6  Prefactor     .10000E-03    4.3800        .10074E-07** at limit **
   7  Prefactor     .10000E-03    1.3112       -.11967E-07** at limit **
   8  norm          2.3150        1.1341        .34486E-07   -.50252E-04
   9  norm          1.3546        1.5470        .99894E-07   -.88270E-04
  10  norm          1.2782        2.1860        .33878E-06   -.83958E-04
  11  Prefactor     .10000E-03    34.995        .36257E-07** at limit **
  12  norm          3.6699        1.8698        .32282E-07   -.63761E-04
  13  Prefactor     15.235        10.496        .45466E-07   -.45485E-04
  14  Prefactor     .10000E-03    1.9054       -.53124E-07** at limit **
  15  Prefactor     4.1590        7.8397        .23702E-06    .21676E-04
  16  norm          62.899        48.776        .20802E-05    .14708E-03
  17  Prefactor     .98536        4.6497        .75710E-06   -.20209E-03
  18  Prefactor     11.337        32.816       -.17161E-05   -.32607E-04
  19  Prefactor     .10000E-03    7.6250       -.13773E-07** at limit **
  20  Prefactor     15.474        26.668       -.36951E-06   -.50897E-04
  21  Prefactor     .44962        2.8753        .16969E-05   -.18037E-03
  22  Normalizat    .75463        .14966       -.51640E-06   -.14014E-03
  23  Prefactor     .97711        .17058       -.38952E-06   -.11935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7828
  norm       = 4.21216
  norm       = 3.3359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31499
  norm       = 1.35456
  norm       = 1.27824
  Prefactor  = 0.0001
  norm       = 3.6699
  Prefactor  = 15.2354
  Prefactor  = 0.0001
  Prefactor  = 4.159
  norm       = 62.8991
  Prefactor  = 0.985359
  Prefactor  = 11.3367
  Prefactor  = 0.0001
  Prefactor  = 15.4739
  Prefactor  = 0.449623
  Normalizat = 0.754633
  Prefactor  = 0.977106
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.218     FROM HESSE     STATUS=OK           380 CALLS     2968 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.170        .32560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.783        11.410        .12203E-03   -1.5051    
   4  norm          4.2122        3.0357        .87049E-04   -1.5297    
   5  norm          3.3359        2.0704        .85337E-04   -1.5343    
   6  Prefactor     .10000E-03    4.3908        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3210        .86941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3150        1.1310        .55775E-04   -1.5404    
   9  norm          1.3546        1.5194        .97579E-04   -1.5475    
  10  norm          1.2782        2.1653        .14139E-03   -1.5482    
  11  Prefactor     .10000E-03    35.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6699        1.8692        .72023E-04   -1.5325    
  13  Prefactor     15.235        10.505        .10259E-03   -1.4927    
  14  Prefactor     .10000E-03    1.9278        .10481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1590        7.7894        .19740E-03   -1.5300    
  16  norm          62.899        51.339        .50607E-04   -1.4120    
  17  Prefactor     .98536        7.8887        .28978E-02   -1.5509    
  18  Prefactor     11.337        33.351        .11895E-03   -1.5034    
  19  Prefactor     .10000E-03    7.6258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.474        26.331        .10147E-03   -1.4921    
  21  Prefactor     .44962        3.0168        .25943E-03   -1.5574    
  22  Normalizat    .75463        .17460        .22488E-03   -1.0177    
  23  Prefactor     .97711        .19998        .24114E-03   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35816e-08
Minuit parameter uncertainties:
  1  6.43926e-07
  2  4.57799e-06
  3  11.4119
  4  3.03579
  5  2.07042
  6  1.04576e-06
  7  1.13517e-07
  8  1.13096
  9  1.51945
  10  2.16545
  11  1.33332e-05
  12  1.8692
  13  10.5058
  14  5.3824e-07
  15  7.79127
  16  51.3754
  17  5.57682
  18  33.4057
  19  1.39844e-06
  20  26.3505
  21  2.32921
  22  0.174727
  23  0.200128
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  1.333e-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:  9.771e-01  2.001e-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:  7.546e-01  1.747e-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: 4.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914189/likelihoodResults_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.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) = 6062.21829072
delta logL = -0.000135549163133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6062.21745204
delta logL = 0.000703126910594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35288E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4727       1.0000          .0000       10.000    
     3 'Normalizat'    .75463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97710       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=   6062.217     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      280 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13461        .83294        .60113E-01    .44080E-03
   2  Index         3.2411        .13771        .50000        .94266E-05
   3  Normalizat    .75235        .30672E-02    .43015E-01    .34450E-04
   4  Prefactor     .97848        .37221E-02    .45980E-01    .20416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134607
  Index      = 3.24109
  Normalizat = 0.752346
  Prefactor  = 0.978479
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.217     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13461        2145.2        .15704E-02   -1.5635    
   2  Index         3.2411        5.6686        .25317E-02   -.35947    
   3  Normalizat    .75235        .13408        .22520E-03   -1.0186    
   4  Prefactor     .97848        .12074        .24100E-03   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43019e-10
Minuit parameter uncertainties:
  1  35.3227
  2  71.442
  3  0.134138
  4  0.120774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914189': 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) = 6062.21687787
delta logL = 0.00127729278756

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.346e-01  3.532e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  3.241e+00  7.144e+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:  9.785e-01  1.208e-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:  7.523e-01  1.341e-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/914189/cmap_HighResolution_451353601_451612801_4FGL_J0156.3-2420_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2021-08-14 20:40:04.615535', job_id='914189', GAL2='0.98', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1628998804.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.28e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='818' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:40:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 914189: <4FGL_J0156.3-2420_daily_bin818> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin818> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 14 20:26:04 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:28:03 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:28:03 2021
Terminated at Sat Aug 14 20:40:05 2021
Results reported at Sat Aug 14 20:40:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin818 29.0777 -24.3345 451353601 451612801 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.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            841 sec.

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

