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


Performing analysis on: 4FGL_J0156.8-4744_daily_bin1121
RA = 29.2165, Dec = -47.7352
tmin = 529891201, tmax = 530150401
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='936533', job_status='RUN', time_executed='2021-08-14 21:37:42.891323', time_epoch_executed='1629002262.89' WHERE source_name='4FGL J0156.8-4744' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936533/ft1_4FGL_J0156.8-4744_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936533/ft1_4FGL_J0156.8-4744_daily_bin1121.fits outfile=/scratch/kocevski/936533/ft1_filteredMKT_4FGL_J0156.8-4744_daily_bin1121.fits ra=29.2165 dec=-47.7352 rad=12.0 tmin=529891201.0 tmax=530150401.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.98
user 3.42
sys 1.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936533/ft1_filtered_4FGL_J0156.8-4744_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/936533/ltcube_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.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/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits
.....................!
real 14.80
user 12.95
sys 1.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936533/ft1_filtered_4FGL_J0156.8-4744_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/936533/ltcube_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.fits outfile=/scratch/kocevski/936533/expmap_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.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/936533/ltcube_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.fits
.....................!
real 192.96
user 185.80
sys 6.73

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/936533/ft1_filtered_4FGL_J0156.8-4744_daily_bin1121.fits scfile=/scratch/kocevski/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits outfile=/scratch/kocevski/936533/cmap_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.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.84
user 0.39
sys 1.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936533/ft1_filtered_4FGL_J0156.8-4744_daily_bin1121.fits scfile=/scratch/kocevski/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits outfile=/scratch/kocevski/936533/cmap_HighResolution_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.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.89
user 0.39
sys 1.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936533/ft1_filtered_4FGL_J0156.8-4744_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/936533/ft2_4FGL_J0156.8-4744_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936533/Model_4FGL_J0156.8-4744_daily_bin1121.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/936533/ft1_filtered_4FGL_J0156.8-4744_daily_bin1121.fits.....................!
real 125.30
user 121.87
sys 3.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0491       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    61.961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17378E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7815       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7613       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.075       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9634       1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.964       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98771       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76192       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=   6358.006     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2956 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.908       -.56651E-06** at limit **
   2  Prefactor     9.0487        9.8461        .11973E-07   -.17217E-04
   3  Prefactor     .10000E-03    11.393       -.67206E-07** at limit **
   4  norm          61.960        12.373        .10730E-06   -.40033E-04
   5  Prefactor     14.193        22.582       -.10363E-06   -.75081E-04
   6  Prefactor     .95657        2.8177        .38331E-05   -.12606E-03
   7  Prefactor     .10000E-03    1.5787       -.11262E-06** at limit **
   8  Prefactor     .10000E-03    3.2710       -.21402E-08** at limit **
   9  norm          .10000E-03    37.608       -.12109E-05** at limit **
  10  norm          .10000E-03    2.7013        .40555E-06** at limit **
  11  Prefactor     .10000E-03    5.3943        .94637E-07** at limit **
  12  Prefactor     .10000E-03    27.028        .86606E-06** at limit **
  13  Prefactor     2.7813        3.2013        .26903E-07   -.94632E-05
  14  norm          3.7937        1.5582        .71847E-07   -.17280E-03
  15  Prefactor     20.845        58.718       -.36989E-05   -.67906E-04
  16  Prefactor     .10000E-03    7.8225       -.17482E-07** at limit **
  17  Prefactor     .10000E-03    9.2821       -.57509E-08** at limit **
  18  norm          2.7616        2.4541        .16261E-06   -.85611E-04
  19  Prefactor     .10000E-03    26.707        .31168E-06** at limit **
  20  Prefactor     17.073        27.808        .19287E-06   -.14573E-05
  21  norm          1.8461        1.0030        .86727E-07   -.11192E-03
  22  Prefactor     1.9583        7.3597        .15613E-05    .14574E-04
  23  Prefactor     34.972        19.848       -.53314E-06   -.21332E-03
  24  Normalizat    .98780        .15658       -.23751E-05   -.28491E-03
  25  Prefactor     .76190        .16517        .16822E-05   -.33483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.04874
  Prefactor  = 0.0001
  norm       = 61.9605
  Prefactor  = 14.193
  Prefactor  = 0.956568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78134
  norm       = 3.79368
  Prefactor  = 20.845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76161
  Prefactor  = 0.0001
  Prefactor  = 17.0729
  norm       = 1.84608
  Prefactor  = 1.95832
  Prefactor  = 34.9721
  Normalizat = 0.987797
  Prefactor  = 0.761898
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.006     FROM HESSE     STATUS=OK           425 CALLS     3381 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0487        9.8474        .13324E-03   -1.5106    
   3  Prefactor     .10000E-03    11.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          61.960        12.379        .50976E-04   -1.4132    
   5  Prefactor     14.193        22.682        .10622E-03   -1.4954    
   6  Prefactor     .95657        2.8287        .21740E-03   -1.5512    
   7  Prefactor     .10000E-03    1.5838        .97824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2920        .14076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    37.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.633        .25278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4115        .18082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7813        3.1963        .14510E-03   -1.5374    
  14  norm          3.7937        1.5577        .59310E-04   -1.5318    
  15  Prefactor     20.845        59.022        .87272E-04   -1.4795    
  16  Prefactor     .10000E-03    7.8543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.3018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7616        2.4205        .10650E-03   -1.5376    
  19  Prefactor     .10000E-03    27.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.073        27.807        .96924E-04   -1.4881    
  21  norm          1.8461        .99749        .56347E-04   -1.5436    
  22  Prefactor     1.9583        7.2095        .29601E-03   -1.5428    
  23  Prefactor     34.972        19.650        .67773E-04   -1.4525    
  24  Normalizat    .98780        .18111        .21703E-03   -.93440    
  25  Prefactor     .76190        .19071        .26617E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9444e-10
Minuit parameter uncertainties:
  1  4.71782e-05
  2  9.84919
  3  1.026e-05
  4  12.3797
  5  22.6962
  6  2.82911
  7  1.96185e-06
  8  1.22746e-06
  9  0.000155606
  10  0.000496437
  11  1.06987e-05
  12  9.89335e-05
  13  3.19646
  14  1.5577
  15  59.1876
  16  7.8925e-06
  17  4.04514e-06
  18  2.42059
  19  0.000105342
  20  27.8278
  21  0.997495
  22  7.21271
  23  19.654
  24  0.181224
  25  0.19087
Done.

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

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.227e-06  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:  7.619e-01  1.909e-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.878e-01  1.812e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936533/likelihoodResults_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.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) = 6358.00723222
delta logL = -0.00144671779526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6358.00578523
delta logL = 2.73089426628e-07

Fit tolerance = 1e-08

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

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

 FCN=   6358.006     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10479E-03    1.2185        .14335E-01** at limit **
   2  Index         1.9966        7.4754        .50000        .34024E-04
   3  Normalizat    .98780        .21019E-02    .21703E-03   -.16029E-04
   4  Prefactor     .76190        .23037E-02    .26617E-03   -.42285E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104786
  Index      = 1.9966
  Normalizat = 0.987797
  Prefactor  = 0.7619
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.006     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10479E-03    92.986        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9966        8.9919        .50000       -.64435    
   3  Normalizat    .98780        .18751E-01    .86811E-05   -.93440    
   4  Prefactor     .76190        .20548E-01    .10647E-04   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34205e-07
Minuit parameter uncertainties:
  1  0.042257
  2  618.709
  3  0.0187511
  4  0.0205484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936533': 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) = 6358.00578405
delta logL = 1.4560564523e-06

Extracting fit parameters...

4FGL J0156.8-4744
   Spectrum: PowerLaw
273    Prefactor:  1.048e-04  4.226e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.997e+00  6.187e+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:  7.619e-01  2.055e-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.878e-01  1.875e-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/936533/cmap_HighResolution_529891201_530150401_4FGL_J0156.8-4744_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-08-14 21:51:56.817496', job_id='936533', GAL2='0.76', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629003116.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1121' AND source_name='4FGL J0156.8-4744' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 21:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 936533: <4FGL_J0156.8-4744_daily_bin1121> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.8-4744_daily_bin1121 29.2165 -47.7352 529891201 530150401 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 :                                   865.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            992 sec.

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

