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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1214
RA = 29.0777, Dec = -24.3345
tmin = 553996801, tmax = 554256001
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='916751', job_status='RUN', time_executed='2021-08-14 20:37:51.932749', time_epoch_executed='1628998671.93' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916751/ft1_4FGL_J0156.3-2420_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916751/ft1_4FGL_J0156.3-2420_daily_bin1214.fits outfile=/scratch/kocevski/916751/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1214.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=553996801.0 tmax=554256001.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 7.35
user 2.42
sys 4.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916751/ft1_filtered_4FGL_J0156.3-2420_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/916751/ltcube_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.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/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits
.....................!
real 22.08
user 13.07
sys 5.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916751/ft1_filtered_4FGL_J0156.3-2420_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/916751/ltcube_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.fits outfile=/scratch/kocevski/916751/expmap_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.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/916751/ltcube_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.fits
.....................!
real 205.56
user 186.11
sys 12.47

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/916751/ft1_filtered_4FGL_J0156.3-2420_daily_bin1214.fits scfile=/scratch/kocevski/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits outfile=/scratch/kocevski/916751/cmap_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.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 5.14
user 0.39
sys 4.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916751/ft1_filtered_4FGL_J0156.3-2420_daily_bin1214.fits scfile=/scratch/kocevski/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits outfile=/scratch/kocevski/916751/cmap_HighResolution_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.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 5.21
user 0.40
sys 4.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916751/ft1_filtered_4FGL_J0156.3-2420_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/916751/ft2_4FGL_J0156.3-2420_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916751/Model_4FGL_J0156.3-2420_daily_bin1214.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/916751/ft1_filtered_4FGL_J0156.3-2420_daily_bin1214.fits.....................!
real 49.28
user 41.75
sys 7.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.905       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1359       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .80420       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4224       1.0000         .10000E-03   10000.    
     9 'norm      '    .10933E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10598E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.229       1.0000         .10000E-03   10000.    
    16 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9260       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.190       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33271E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78322       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2341       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=   4671.017     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2565 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.900        12.732        .92462E-07   -.14179E-03
   2  Prefactor     .10000E-03    13.038       -.19714E-06** at limit **
   3  Prefactor     .10000E-03    2.6593        .77247E-07** at limit **
   4  norm          1.1360        1.2050       -.19522E-07    .37234E-04
   5  norm          2.7722        2.8794       -.20386E-06   -.54163E-04
   6  Prefactor     12.863        14.441        .30595E-05    .56721E-03
   7  Prefactor     .80617        3.1440        .68126E-06   -.22570E-03
   8  norm          2.4228        1.4444        .25467E-07   -.98079E-04
   9  norm          .10000E-03    1.9289       -.66129E-07** at limit **
  10  norm          .10000E-03    2.9068        .11470E-06** at limit **
  11  Prefactor     .10000E-03    28.499       -.49487E-06** at limit **
  12  norm          3.6611        2.4557        .64337E-07   -.11495E-03
  13  Prefactor     .10000E-03    4.1859       -.98132E-07** at limit **
  14  Prefactor     .10000E-03    1.8672       -.84103E-07** at limit **
  15  Prefactor     11.233        9.6035        .31819E-06    .80459E-04
  16  norm          .10000E-03    20.968       -.46969E-06** at limit **
  17  Prefactor     5.9267        5.1811        .13723E-05   -.12825E-02
  18  Prefactor     .10000E-03    25.039       -.98430E-06** at limit **
  19  Prefactor     64.026        65.375       -.60245E-06   -.62966E-04
  20  Prefactor     .10000E-03    24.035        .13218E-05** at limit **
  21  Prefactor     .10000E-03    4.3824        .24439E-06** at limit **
  22  Normalizat    .78321        .18863       -.98056E-06   -.11404E-04
  23  Prefactor     1.2339        .21266       -.12713E-06   -.37965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13603
  norm       = 2.77216
  Prefactor  = 12.8633
  Prefactor  = 0.80617
  norm       = 2.42282
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.66115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2333
  norm       = 0.0001
  Prefactor  = 5.9267
  Prefactor  = 0.0001
  Prefactor  = 64.0264
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.783209
  Prefactor  = 1.23393
 **********
 **   18 **HESSE 
 **********

 FCN=   4671.017     FROM HESSE     STATUS=OK           372 CALLS     2937 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.900        12.771        .44887E-03   -1.4815    
   2  Prefactor     .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6612        .10883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1360        1.2025        .43719E-04   -1.5495    
   5  norm          2.7722        2.8823        .11191E-03   -1.5375    
   6  Prefactor     12.863        15.658        .11166E-03   -1.4991    
   7  Prefactor     .80617        3.1042        .22903E-03   -1.5528    
   8  norm          2.4228        1.4422        .60428E-04   -1.5397    
   9  norm          .10000E-03    3.5782        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.1482        .21975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6611        2.4495        .82276E-04   -1.5325    
  13  Prefactor     .10000E-03    4.1921        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8761        .91193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.233        9.5926        .11956E-03   -1.5038    
  16  norm          .10000E-03    20.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9267        5.9245        .79973E-03   -1.5221    
  18  Prefactor     .10000E-03    25.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     64.026        64.368        .50089E-04   -1.4106    
  20  Prefactor     .10000E-03    24.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0163        .27308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78321        .21700        .25367E-03   -1.0069    
  23  Prefactor     1.2339        .24987        .24417E-03   -.85294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80973e-09
Minuit parameter uncertainties:
  1  12.7731
  2  3.76508e-05
  3  3.59364e-06
  4  1.20252
  5  2.88245
  6  15.6634
  7  3.10486
  8  1.44217
  9  5.22007e-05
  10  2.6297e-05
  11  8.68973e-05
  12  2.44954
  13  5.70352e-06
  14  3.15772e-06
  15  9.59393
  16  7.83541e-05
  17  5.92511
  18  0.000168535
  19  64.4382
  20  0.000229229
  21  7.05354e-06
  22  0.217243
  23  0.250115
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  8.690e-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:  1.234e+00  2.501e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  7.832e-01  2.172e-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: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916751/likelihoodResults_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.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) = 4671.01717465
delta logL = -0.000166915789123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4671.01700782
delta logL = -8.38545020088e-08

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 'Index     '    1.8670       1.0000          .0000       10.000    
     3 'Normalizat'    .78322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4671.017     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1446.8        .90712E-02** at limit **
   2  Index         1.8802        5.8363        .50000       -.38469E-05
   3  Normalizat    .78321        .36095E-01    .43391E-01    .13741E-04
   4  Prefactor     1.2339        .42802E-01    .55221E-01    .25441E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88016
  Normalizat = 0.783209
  Prefactor  = 1.23393
 **********
 **   18 **HESSE 
 **********

 FCN=   4671.017     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6458.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8802        8.6249        .50000       -.67381    
   3  Normalizat    .78321        .58872E-01    .25367E-03   -1.0069    
   4  Prefactor     1.2339        .69819E-01    .24417E-03   -.85294    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44008e-09
Minuit parameter uncertainties:
  1  0.000408231
  2  42.6694
  3  0.0588766
  4  0.0698239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916751': 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) = 4671.0170078
delta logL = -6.0258571466e-08

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  4.082e-04  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.880e+00  4.267e+01  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  2.411e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.234e+00  6.982e-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:  7.832e-01  5.888e-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/916751/cmap_HighResolution_553996801_554256001_4FGL_J0156.3-2420_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-08-14 20:48:31.718718', job_id='916751', GAL2='1.23', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1628999311.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-6.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1214' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:48:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 916751: <4FGL_J0156.3-2420_daily_bin1214> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1214> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 20:35:46 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:35:50 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:35:50 2021
Terminated at Sat Aug 14 20:48:32 2021
Results reported at Sat Aug 14 20:48:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1214 29.0777 -24.3345 553996801 554256001 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 :                                   699.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            766 sec.

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

