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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1231
RA = 29.2165, Dec = -47.7352
tmin = 558403201, tmax = 558662401
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='936724', job_status='RUN', time_executed='2021-08-14 21:39:09.458937', time_epoch_executed='1629002349.46' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936724/ft1_4FGL_J0156.8-4744_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936724/ft1_4FGL_J0156.8-4744_daily_bin1231.fits outfile=/scratch/kocevski/936724/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1231.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=558403201.0 tmax=558662401.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 12.33
user 3.64
sys 8.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.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/936724/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1231.fits evtable="EVENTS" outfile="/scratch/kocevski/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.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 8.97
user 0.33
sys 8.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/936724/ltcube_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.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/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits
.....................!
real 22.66
user 12.72
sys 9.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/936724/ltcube_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.fits outfile=/scratch/kocevski/936724/expmap_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.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/936724/ltcube_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.fits
.....................!
real 201.51
user 185.15
sys 15.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/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits scfile=/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits outfile=/scratch/kocevski/936724/cmap_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.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 8.88
user 0.37
sys 8.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits scfile=/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits outfile=/scratch/kocevski/936724/cmap_HighResolution_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.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 8.83
user 0.39
sys 8.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936724/Model_4FGL_J0156.8-4744_daily_bin1231.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/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits.....................!
real 89.71
user 77.11
sys 12.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits', '/scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits', expMap='/scratch/kocevski/936724/expmap_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.fits', expCube='/scratch/kocevski/936724/ltcube_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/936724/Model_4FGL_J0156.8-4744_daily_bin1231.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/936724/ft1_filtered_4FGL_J0156.8-4744_daily_bin1231.fits
Spacecraft file(s): /scratch/kocevski/936724/ft2_4FGL_J0156.8-4744_daily_bin1231.fits
Exposure map: /scratch/kocevski/936724/expmap_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.fits
Exposure cube: /scratch/kocevski/936724/ltcube_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/936724/Model_4FGL_J0156.8-4744_daily_bin1231.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) = 3836.59306269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.5451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9891       1.0000         .10000E-03   10000.    
     9 'norm      '    187.25       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.415       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
    14 'norm      '    15.134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13126E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.905       1.0000         .10000E-03   10000.    
    18 'norm      '    29.752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.275       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0797       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0449       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=   3836.526     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2879 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.248        81.259        .89465E-07    .47087E-06
   2  Prefactor     .10000E-03    43.142       -.45435E-07** at limit **
   3  Prefactor     .10000E-03    34.760       -.34827E-06** at limit **
   4  norm          6.5444        14.979        .24604E-06   -.47824E-05
   5  Prefactor     .10000E-03    26.054        .34550E-06** at limit **
   6  Prefactor     2.1886        7.7109        .10644E-05   -.53700E-04
   7  Prefactor     .10000E-03    2.2232       -.10323E-07** at limit **
   8  Prefactor     7.0373        27.133       -.39453E-05   -.41996E-04
   9  norm          187.21        109.91       -.16240E-06   -.23384E-04
  10  norm          2.2382        25.771        .49206E-05   -.17534E-04
  11  Prefactor     .10000E-03    5.0581        .36117E-07** at limit **
  12  Prefactor     31.399        38.164       -.16668E-05   -.33809E-04
  13  Prefactor     11.874        9.2562       -.36863E-09    .59558E-05
  14  norm          15.135        4.0257        .57489E-07   -.90011E-05
  15  Prefactor     .10000E-03    254.25       -.20056E-05** at limit **
  16  Prefactor     .10000E-03    16.095       -.16183E-07** at limit **
  17  Prefactor     38.907        32.301       -.28720E-07   -.56149E-06
  18  norm          29.748        6.3737       -.38710E-07    .10403E-03
  19  Prefactor     46.142        26.875        .52882E-07   -.13147E-04
  20  Prefactor     .10000E-03    24.614        .41371E-07** at limit **
  21  norm          2.9198        2.4859        .76239E-07   -.91206E-04
  22  Prefactor     11.279        9.9917        .20165E-06   -.62633E-04
  23  Prefactor     .10000E-03    46.740        .32209E-06** at limit **
  24  Normalizat    1.0795        .26777       -.97576E-06    .31289E-04
  25  Prefactor     1.0449        .28271        .68357E-06   -.50686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.2483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.5444
  Prefactor  = 0.0001
  Prefactor  = 2.18858
  Prefactor  = 0.0001
  Prefactor  = 7.03728
  norm       = 187.211
  norm       = 2.2382
  Prefactor  = 0.0001
  Prefactor  = 31.3991
  Prefactor  = 11.8744
  norm       = 15.1352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.907
  norm       = 29.7476
  Prefactor  = 46.1424
  Prefactor  = 0.0001
  norm       = 2.91978
  Prefactor  = 11.2787
  Prefactor  = 0.0001
  Normalizat = 1.07946
  Prefactor  = 1.04493
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.526     FROM HESSE     STATUS=OK           429 CALLS     3308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.248        81.287        .21755E-03   -1.3859    
   2  Prefactor     .10000E-03    43.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.5444        14.975        .15686E-03   -1.5196    
   5  Prefactor     .10000E-03    26.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1886        7.5678        .27822E-03   -1.5412    
   7  Prefactor     .10000E-03    2.2239        .90197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0373        27.121        .15175E-03   -1.5177    
   9  norm          187.21        110.16        .14755E-03   -1.2963    
  10  norm          2.2382        26.342        .27431E-03   -1.5409    
  11  Prefactor     .10000E-03    5.0623        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.399        38.278        .71487E-04   -1.4587    
  13  Prefactor     11.874        9.2574        .11625E-03   -1.5019    
  14  norm          15.135        4.0261        .59156E-04   -1.4930    
  15  Prefactor     .10000E-03    257.99        .20573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.907        32.290        .64260E-04   -1.4460    
  18  norm          29.748        6.3692        .69158E-04   -1.4617    
  19  Prefactor     46.142        26.846        .59036E-04   -1.4348    
  20  Prefactor     .10000E-03    24.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9198        2.4739        .81751E-04   -1.5366    
  22  Prefactor     11.279        9.9676        .11931E-03   -1.5036    
  23  Prefactor     .10000E-03    47.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0795        .31809        .28618E-03   -.90414    
  25  Prefactor     1.0449        .33786        .31375E-03   -.91246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20832e-10
Minuit parameter uncertainties:
  1  81.3933
  2  2.5337e-05
  3  6.89454e-05
  4  14.9838
  5  4.64681e-05
  6  7.57108
  7  7.98512e-07
  8  27.1689
  9  110.278
  10  15.3651
  11  2.9996e-06
  12  38.3083
  13  9.25856
  14  4.02616
  15  0.000523381
  16  1.13609e-06
  17  32.3043
  18  6.36939
  19  26.8532
  20  2.39175e-05
  21  2.47403
  22  9.96902
  23  0.000113135
  24  0.318651
  25  0.338547
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  7.037e+00  2.717e+01  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:  1.045e+00  3.385e-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:  1.079e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 29.216 -47.735
Photon Flux Upper Limit: 1.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936724/likelihoodResults_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.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): 0
logL (Free Index) = 3836.52404294
delta logL = 0.00203144333682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3836.5234875
delta logL = 0.0025868808566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2728       1.0000          .0000       10.000    
     3 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0463       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.

 FCN=   3836.523     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3967        904.23        .39674E-02    .16317E-03
   2  Index         2.2730        5.8383        .16819        .49850E-04
   3  Normalizat    1.0773        .68909E-01    .64749E-01    .56611E-05
   4  Prefactor     1.0466        .78488E-01    .70863E-01    .71964E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.39668
  Index      = 2.27302
  Normalizat = 1.07734
  Prefactor  = 1.0466
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.523     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3967        22.446        .15870E-03   -1.5202    
   2  Index         2.2730        1.2382        .96366E-02   -.57686    
   3  Normalizat    1.0773        .30740        .28641E-03   -.90483    
   4  Prefactor     1.0466        .33481        .31352E-03   -.91192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60734e-11
Minuit parameter uncertainties:
  1  22.4761
  2  1.25699
  3  0.307915
  4  0.335479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936724': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3836.52348703
delta logL = 0.00258735159287

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  6.397e+00  2.248e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.273e+00  1.257e+00  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:  1.047e+00  3.355e-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:  1.077e+00  3.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/936724/cmap_HighResolution_558403201_558662401_4FGL_J0156.8-4744_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.85e-07', time_completed='2021-08-14 21:51:42.396010', job_id='936724', GAL2='1.05', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629003102.4', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.59e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1231' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 936724: <4FGL_J0156.8-4744_daily_bin1231> in cluster <slac> Done

Job <4FGL_J0156.8-4744_daily_bin1231> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 21:35:39 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 21:36:17 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:36:17 2021
Terminated at Sat Aug 14 21:51:44 2021
Results reported at Sat Aug 14 21:51:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1231 29.2165 -47.7352 558403201 558662401 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 :                                   880.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            965 sec.

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

