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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1081
RA = 29.0777, Dec = -24.3345
tmin = 519523201, tmax = 519782401
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='915426', job_status='RUN', time_executed='2021-08-14 20:35:23.150246', time_epoch_executed='1628998523.15' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915426

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915426/ft1_4FGL_J0156.3-2420_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915426/ft1_4FGL_J0156.3-2420_daily_bin1081.fits outfile=/scratch/kocevski/915426/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1081.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=519523201.0 tmax=519782401.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.11
user 2.72
sys 3.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.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/915426/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.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 3.50
user 0.32
sys 3.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/915426/ltcube_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.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/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits
.....................!
real 14.20
user 10.03
sys 3.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/915426/ltcube_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.fits outfile=/scratch/kocevski/915426/expmap_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.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/915426/ltcube_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.fits
.....................!
real 196.19
user 186.24
sys 9.36

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/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.fits scfile=/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits outfile=/scratch/kocevski/915426/cmap_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.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 3.60
user 0.39
sys 3.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.fits scfile=/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits outfile=/scratch/kocevski/915426/cmap_HighResolution_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.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 3.51
user 0.39
sys 3.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/915426/ft2_4FGL_J0156.3-2420_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915426/Model_4FGL_J0156.3-2420_daily_bin1081.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/915426/ft1_filtered_4FGL_J0156.3-2420_daily_bin1081.fits.....................!
real 50.09
user 44.18
sys 5.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55018       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4399       1.0000         .10000E-03   10000.    
     9 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3495       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1016       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80286       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=   4792.284     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2210 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1572       -.35724E-07** at limit **
   2  Prefactor     .10000E-03    7.0992        .36099E-06** at limit **
   3  Prefactor     .10000E-03    6.4010       -.11325E-07** at limit **
   4  norm          .10000E-03    .88079        .57734E-07** at limit **
   5  norm          2.2359        1.9709        .23748E-07    .51756E-03
   6  Prefactor     .10000E-03    16.973       -.68314E-06** at limit **
   7  Prefactor     .55556        7.4125        .53478E-05    .15779E-02
   8  norm          3.4400        1.4058        .19971E-07    .91034E-03
   9  norm          .10101E-03    7.4329       -.56102E-05** at limit **
  10  norm          2.6613        2.2427       -.25866E-07    .59755E-03
  11  Prefactor     .10000E-03    11.001        .23675E-06** at limit **
  12  norm          .10000E-03    .81992       -.26829E-06** at limit **
  13  Prefactor     .10000E-03    7.6042       -.38017E-07** at limit **
  14  Prefactor     1.8693        5.8646       -.17627E-05   -.73540E-04
  15  Prefactor     .10000E-03    4.5118        .12921E-05** at limit **
  16  norm          2.2932        107.63        .12266E-07    .31976E-04
  17  Prefactor     5.3851        6.9482        .31329E-06    .32329E-03
  18  Prefactor     7.1085        50.318        .26168E-05    .13578E-04
  19  Prefactor     .10000E-03    34.607       -.26687E-05** at limit **
  20  Prefactor     .10000E-03    31.401       -.73228E-07** at limit **
  21  Prefactor     .10000E-03    1.5192       -.66061E-07** at limit **
  22  Normalizat    1.0028        .16730       -.71673E-06    .98983E-03
  23  Prefactor     .80296        .17993        .16733E-05    .82608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.23592
  Prefactor  = 0.0001
  Prefactor  = 0.555565
  norm       = 3.43997
  norm       = 0.000101014
  norm       = 2.66127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86928
  Prefactor  = 0.0001
  norm       = 2.2932
  Prefactor  = 5.38512
  Prefactor  = 7.10855
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00281
  Prefactor  = 0.802963
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.284     FROM HESSE     STATUS=OK           370 CALLS     2580 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1906        .13783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1237        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4512        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .89118        .63256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2359        1.9769        .88301E-04   -1.5409    
   6  Prefactor     .10000E-03    17.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55556        9.0381        .21468E-02   -1.5559    
   8  norm          3.4400        1.4062        .50446E-04   -1.5337    
   9  norm          .10101E-03    27.574        .12809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6613        2.2308        .91140E-04   -1.5382    
  11  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3530        .12161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8693        5.8720        .27033E-03   -1.5435    
  15  Prefactor     .10000E-03    4.4608        .14227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2932        108.30        .26743E-03   -1.5405    
  17  Prefactor     5.3851        6.9066        .17323E-03   -1.5244    
  18  Prefactor     7.1085        49.605        .15053E-03   -1.5175    
  19  Prefactor     .10000E-03    34.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.5241        .83336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0028        .19160        .19734E-03   -.92936    
  23  Prefactor     .80296        .21112        .25493E-03   -.99619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22644e-08
Minuit parameter uncertainties:
  1  3.77211e-06
  2  5.26582e-05
  3  3.13607e-06
  4  4.03031e-06
  5  1.97696
  6  0.000114934
  7  4.48202
  8  1.40625
  9  0.0105814
  10  2.23087
  11  4.45356e-05
  12  2.2679e-05
  13  5.86932e-06
  14  5.8738
  15  2.068e-05
  16  31.5792
  17  6.90759
  18  37.6008
  19  0.00082381
  20  4.29538e-05
  21  4.09238e-06
  22  0.191729
  23  0.211336
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.454e-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:  8.030e-01  2.113e-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.003e+00  1.917e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915426/likelihoodResults_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.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) = 4792.28430459
delta logL = -0.000432797781286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4792.28387175
delta logL = 4.04133970733e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9146       1.0000          .0000       10.000    
     3 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80300       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=   4792.284     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      232 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10229E-03    123.45        .18142E-02** at limit **
   2  Index         1.8382        9.0782        .50000        .13912E-04
   3  Normalizat    1.0028        .12612E-01    .19734E-03    .62219E-05
   4  Prefactor     .80296        .14813E-01    .25492E-03    .40137E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102286
  Index      = 1.83818
  Normalizat = 1.00281
  Prefactor  = 0.802961
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.284     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10229E-03    511.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8382        5.6933        .50000       -.68460    
   3  Normalizat    1.0028        .26832E-01    .78935E-05   -.92936    
   4  Prefactor     .80296        .31511E-01    .10197E-04   -.99619    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38845e-08
Minuit parameter uncertainties:
  1  0.0689622
  2  829.233
  3  0.026832
  4  0.0315122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915426': 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) = 4792.28387148
delta logL = 3.0861247069e-07

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.023e-04  6.896e-02  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.838e+00  8.292e+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:  8.030e-01  3.151e-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.003e+00  2.683e-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/915426/cmap_HighResolution_519523201_519782401_4FGL_J0156.3-2420_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-03', job_status='DONE', photon_flux_upper_limit='3.11e-08', time_completed='2021-08-14 20:45:18.675014', job_id='915426', GAL2='0.80', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1628999118.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1081' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:45:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 915426: <4FGL_J0156.3-2420_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1081 29.0777 -24.3345 519523201 519782401 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 :                                   640.58 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             257.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            868 sec.

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

