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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1049
RA = 29.2165, Dec = -47.7352
tmin = 511228801, tmax = 511488001
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='935087', job_status='RUN', time_executed='2021-08-14 21:32:07.131412', time_epoch_executed='1629001927.13' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935087/ft1_4FGL_J0156.8-4744_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935087/ft1_4FGL_J0156.8-4744_daily_bin1049.fits outfile=/scratch/kocevski/935087/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1049.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=511228801.0 tmax=511488001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.15
user 3.34
sys 0.76

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.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/935087/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.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.08
user 0.34
sys 0.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/935087/ltcube_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.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/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits
.....................!
real 15.30
user 14.24
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/935087/ltcube_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.fits outfile=/scratch/kocevski/935087/expmap_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.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/935087/ltcube_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.fits
.....................!
real 192.98
user 186.06
sys 5.93

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 187 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0156.8-4744 @ 29.2165 -47.7352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits scfile=/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits outfile=/scratch/kocevski/935087/cmap_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.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.2165 yref=-47.7352 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.10
user 0.39
sys 0.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits scfile=/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits outfile=/scratch/kocevski/935087/cmap_HighResolution_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.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.2165 yref=-47.7352 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.10
user 0.38
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935087/Model_4FGL_J0156.8-4744_daily_bin1049.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits.....................!
real 122.27
user 119.69
sys 1.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits', '/scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits', expMap='/scratch/kocevski/935087/expmap_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.fits', expCube='/scratch/kocevski/935087/ltcube_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935087/Model_4FGL_J0156.8-4744_daily_bin1049.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.8-4744'

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/935087/ft1_filtered_4FGL_J0156.8-4744_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/935087/ft2_4FGL_J0156.8-4744_daily_bin1049.fits
Exposure map: /scratch/kocevski/935087/expmap_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.fits
Exposure cube: /scratch/kocevski/935087/ltcube_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935087/Model_4FGL_J0156.8-4744_daily_bin1049.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) = 6375.6900442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5251       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29646E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.8436       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.778       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8387       1.0000         .10000E-03   10000.    
    14 'norm      '    6.3921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.357       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .41244       1.0000         .10000E-03   10000.    
    18 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7030       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.479       1.0000         .10000E-03   10000.    
    21 'norm      '    .48649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1942       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.323       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90989       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6375.679     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2933 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5219        119.50       -.83262E-05    .12527E-04
   2  Prefactor     .10000E-03    4.0797        .90566E-08** at limit **
   3  Prefactor     .10004E-03    8.2256       -.10421E-05** at limit **
   4  norm          1.8975        1.2722        .11627E-06   -.98004E-03
   5  Prefactor     .10000E-03    7.2516        .17575E-07** at limit **
   6  Prefactor     3.8910        4.3956        .15939E-07   -.19987E-04
   7  Prefactor     2.3394        2.3747        .39951E-07    .31506E-04
   8  Prefactor     .10000E-03    1.9445        .51019E-08** at limit **
   9  norm          .10000E-03    21.022       -.31369E-07** at limit **
  10  norm          6.8443        4.2903       -.18315E-06    .11411E-03
  11  Prefactor     12.778        10.291       -.10638E-06    .21755E-04
  12  Prefactor     .10000E-03    14.539       -.26210E-07** at limit **
  13  Prefactor     2.8385        3.9266       -.12109E-07   -.22158E-05
  14  norm          6.3921        1.8284       -.14887E-07    .46778E-04
  15  Prefactor     12.327        48.739       -.17234E-04    .57475E-04
  16  Prefactor     4.5328        16.915        .42766E-05    .36499E-03
  17  Prefactor     .28879        27.840       -.34472E-05   -.94580E-05
  18  norm          .10000E-03    .93060        .18205E-06** at limit **
  19  Prefactor     6.7000        8.6749        .23737E-06    .80383E-04
  20  Prefactor     20.469        33.529        .33240E-05   -.34750E-04
  21  norm          .48660        .56929       -.56696E-07   -.11150E-03
  22  Prefactor     5.1943        4.7519       -.16921E-06   -.28904E-03
  23  Prefactor     18.322        14.027        .13919E-05   -.83124E-04
  24  Normalizat    .90976        .15509       -.40686E-06    .36116E-03
  25  Prefactor     .90131        .16800        .91318E-06    .19103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5219
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  norm       = 1.8975
  Prefactor  = 0.0001
  Prefactor  = 3.89096
  Prefactor  = 2.3394
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.84426
  Prefactor  = 12.7776
  Prefactor  = 0.0001
  Prefactor  = 2.83849
  norm       = 6.39206
  Prefactor  = 12.3271
  Prefactor  = 4.53283
  Prefactor  = 0.28879
  norm       = 0.0001
  Prefactor  = 6.70003
  Prefactor  = 20.4691
  norm       = 0.486601
  Prefactor  = 5.19426
  Prefactor  = 18.3224
  Normalizat = 0.909756
  Prefactor  = 0.901307
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.679     FROM HESSE     STATUS=OK           449 CALLS     3382 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5219        118.99        .18926E-03   -1.5283    
   2  Prefactor     .10000E-03    4.0804        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    35.656        .43812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8975        5.2309        .14637E-02   -1.5432    
   5  Prefactor     .10000E-03    7.2578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8910        4.3937        .17008E-03   -1.5313    
   7  Prefactor     2.3394        2.3845        .12099E-03   -1.5402    
   8  Prefactor     .10000E-03    1.9496        .10870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8443        4.2873        .12639E-03   -1.5185    
  11  Prefactor     12.778        10.297        .11206E-03   -1.4993    
  12  Prefactor     .10000E-03    14.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8385        3.9114        .17537E-03   -1.5371    
  14  norm          6.3921        1.8277        .26694E-03   -1.5202    
  15  Prefactor     12.327        47.511        .11395E-03   -1.5006    
  16  Prefactor     4.5328        20.010        .19026E-03   -1.5282    
  17  Prefactor     .28879        41.756        .91731E-01   -1.5601    
  18  norm          .10000E-03    1.7477        .14909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7000        8.6255        .15499E-03   -1.5190    
  20  Prefactor     20.469        33.405        .88508E-04   -1.4803    
  21  norm          .48660        .54680        .62687E-03   -1.5568    
  22  Prefactor     5.1943        4.8022        .79621E-03   -1.5252    
  23  Prefactor     18.322        13.965        .93567E-04   -1.4852    
  24  Normalizat    .90976        .18291        .22284E-03   -.96118    
  25  Prefactor     .90131        .19919        .24818E-03   -.96095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05924e-09
Minuit parameter uncertainties:
  1  46.4944
  2  2.50792e-07
  3  0.00232179
  4  5.23218
  5  1.27262e-06
  6  4.39411
  7  2.38456
  8  1.01156e-07
  9  1.12898e-06
  10  4.28752
  11  10.2982
  12  6.3009e-06
  13  3.91171
  14  1.82772
  15  47.6569
  16  19.0578
  17  6.9489
  18  2.35552e-05
  19  8.62714
  20  33.4356
  21  0.546808
  22  4.80251
  23  13.9675
  24  0.183032
  25  0.199348
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.012e-07  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.013e-01  1.993e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.098e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935087/likelihoodResults_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.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) = 6375.68095433
delta logL = -0.00242563887696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6375.67852893
delta logL = -2.37785570789e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1714       1.0000          .0000       10.000    
     3 'Normalizat'    .90968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6375.679     FROM MIGRAD    STATUS=FAILED        88 CALLS      235 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10170E-03    31.545        .11074E-02** at limit **
   2  Index         2.1046        8.7662        .50000        .76353E-04
   3  Normalizat    .90976        .14382E-01    .22284E-03    .70813E-04
   4  Prefactor     .90131        .16039E-01    .24818E-03    .21163E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6375.679     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      362 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    31.545        .15338E-03** at limit **
   2  Index         2.0897        8.7662        .50805E-02    .76353E-04
   3  Normalizat    .90972        .14382E-01    .17021E-04    .70813E-04
   4  Prefactor     .90127        .16039E-01    .17892E-04    .21163E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6375.679     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      419 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.790        .22148E-02** at limit **
   2  Index         1.6514        7.0481        .50000        .84128E-09
   3  Normalizat    .90975        .14931E-01    .89135E-05    .31631E-04
   4  Prefactor     .90131        .16652E-01    .99272E-05    .18094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65138
  Normalizat = 0.909755
  Prefactor  = 0.901308
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.679     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      448 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    182.31        .44297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6514        6.4610        .50000       -.73384    
   3  Normalizat    .90975        .34036E-01    .17827E-05   -.96118    
   4  Prefactor     .90131        .37954E-01    .19854E-05   -.96095    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.5316e-13
Minuit parameter uncertainties:
  1  2.35262e-06
  2  685.186
  3  0.0340364
  4  0.0379554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935087': 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) = 6375.67852286
delta logL = 5.83001110499e-06

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.353e-06  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.651e+00  6.852e+02  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.612e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.013e-01  3.796e-02  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.098e-01  3.404e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.216 -47.735

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/935087/cmap_HighResolution_511228801_511488001_4FGL_J0156.8-4744_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-03', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2021-08-14 21:46:16.420949', job_id='935087', GAL2='0.90', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629002776.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1049' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 935087: <4FGL_J0156.8-4744_daily_bin1049> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1049> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 21:30:20 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 21:30:25 2021
Terminated at Sat Aug 14 21:46:17 2021
Results reported at Sat Aug 14 21:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1049 29.2165 -47.7352 511228801 511488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.8-4744 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            957 sec.

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

