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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1410
RA = 29.0777, Dec = -24.3345
tmin = 604800001, tmax = 605059201
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='916997', job_status='RUN', time_executed='2021-08-14 20:40:36.957191', time_epoch_executed='1628998836.96' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916997/ft1_4FGL_J0156.3-2420_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916997/ft1_4FGL_J0156.3-2420_daily_bin1410.fits outfile=/scratch/kocevski/916997/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1410.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=604800001.0 tmax=605059201.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 14.53
user 4.92
sys 9.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.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/916997/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.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 9.93
user 0.35
sys 9.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/916997/ltcube_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.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/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits
.....................!
real 24.21
user 13.35
sys 10.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/916997/ltcube_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.fits outfile=/scratch/kocevski/916997/expmap_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.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/916997/ltcube_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.fits
.....................!
real 204.59
user 187.28
sys 16.79

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/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.fits scfile=/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits outfile=/scratch/kocevski/916997/cmap_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.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 10.31
user 0.38
sys 9.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.fits scfile=/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits outfile=/scratch/kocevski/916997/cmap_HighResolution_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.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 10.44
user 0.41
sys 9.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/916997/ft2_4FGL_J0156.3-2420_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916997/Model_4FGL_J0156.3-2420_daily_bin1410.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/916997/ft1_filtered_4FGL_J0156.3-2420_daily_bin1410.fits.....................!
real 45.58
user 31.11
sys 14.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60680       1.0000         .10000E-03   10000.    
     4 'norm      '    .36396E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1951       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1515       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9936       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4898       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    49.840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.381       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    112.33       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2472       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90106       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83402       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=   2831.983     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2606 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1660       -.12224E-07** at limit **
   2  Prefactor     .10000E-03    30.972       -.64585E-07** at limit **
   3  Prefactor     .61741        19.999        .98148E-06   -.70584E-04
   4  norm          .10000E-03    3.3370       -.25844E-06** at limit **
   5  norm          .10000E-03    3.2843       -.14700E-07** at limit **
   6  Prefactor     42.070        34.227        .96284E-07   -.48260E-05
   7  Prefactor     8.2022        9.4265        .51375E-07   -.67968E-04
   8  norm          .10000E-03    .74635       -.25483E-07** at limit **
   9  norm          3.1505        4.6151        .19710E-06   -.11963E-04
  10  norm          .10000E-03    6.4194       -.17300E-07** at limit **
  11  Prefactor     .10000E-03    21.535       -.25779E-08** at limit **
  12  norm          1.9935        2.5281        .53545E-07   -.28153E-04
  13  Prefactor     4.4864        19.286        .83325E-06    .19861E-04
  14  Prefactor     3.6610        9.3188        .27805E-06   -.28253E-04
  15  Prefactor     .10000E-03    12.142        .73849E-06** at limit **
  16  norm          49.856        50.233        .18426E-05    .93887E-04
  17  Prefactor     29.380        16.060        .73714E-07    .26088E-04
  18  Prefactor     .10000E-03    166.60        .61546E-06** at limit **
  19  Prefactor     112.35        77.305        .20030E-05    .10962E-03
  20  Prefactor     63.864        58.910       -.76454E-06   -.35940E-04
  21  Prefactor     4.2470        5.3300        .13167E-05   -.10160E-03
  22  Normalizat    .90125        .25276       -.49247E-06   -.98928E-05
  23  Prefactor     .83387        .26347       -.28402E-06   -.10530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.617413
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.0696
  Prefactor  = 8.20223
  norm       = 0.0001
  norm       = 3.15049
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9935
  Prefactor  = 4.48635
  Prefactor  = 3.66099
  Prefactor  = 0.0001
  norm       = 49.8558
  Prefactor  = 29.3798
  Prefactor  = 0.0001
  Prefactor  = 112.348
  Prefactor  = 63.864
  Prefactor  = 4.24704
  Normalizat = 0.901249
  Prefactor  = 0.833874
 **********
 **   18 **HESSE 
 **********

 FCN=   2831.983     FROM HESSE     STATUS=OK           374 CALLS     2980 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1685        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .61741        45.047        .38022E-02   -1.5551    
   4  norm          .10000E-03    14.584        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3378        .93868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.070        34.070        .61805E-04   -1.4410    
   7  Prefactor     8.2022        9.1453        .14005E-03   -1.5135    
   8  norm          .10000E-03    .75737        .44854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1505        4.5659        .12207E-03   -1.5353    
  10  norm          .10000E-03    6.6716        .26226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9935        2.5172        .90790E-04   -1.5426    
  13  Prefactor     4.4864        19.085        .19002E-03   -1.5284    
  14  Prefactor     3.6610        9.2527        .21113E-03   -1.5325    
  15  Prefactor     .10000E-03    12.263        .18000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          49.856        51.182        .56804E-04   -1.4295    
  17  Prefactor     29.380        16.041        .73914E-04   -1.4623    
  18  Prefactor     .10000E-03    167.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.35        79.972        .18978E-03   -1.3584    
  20  Prefactor     63.864        59.169        .50213E-04   -1.4108    
  21  Prefactor     4.2470        5.5204        .69142E-03   -1.5296    
  22  Normalizat    .90125        .29649        .23755E-03   -.96416    
  23  Prefactor     .83387        .30830        .27088E-03   -.98492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80244e-08
Minuit parameter uncertainties:
  1  4.14885e-07
  2  8.99609e-06
  3  10.555
  4  6.91053e-05
  5  1.00607e-06
  6  34.0853
  7  9.14686
  8  4.63454e-07
  9  4.56643
  10  1.17381e-06
  11  4.36672e-06
  12  2.51737
  13  18.5161
  14  9.25632
  15  6.14595e-05
  16  51.2276
  17  16.0437
  18  7.28906e-05
  19  80.0492
  20  59.2234
  21  5.52106
  22  0.297026
  23  0.308939
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.339e-01  3.089e-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:  9.012e-01  2.970e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916997/likelihoodResults_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.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) = 2831.98276289
delta logL = -0.000219711516365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2831.98254451
delta logL = -1.33408548209e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2567       1.0000          .0000       10.000    
     3 'Normalizat'    .90124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2831.983     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      267 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10243E-03    5.5952        .18142E-01** at limit **
   2  Index         2.1833        6.3645        .50000        .15618E-04
   3  Normalizat    .90125        .33730E-02    .23755E-03   -.39675E-04
   4  Prefactor     .83387        .37342E-02    .27088E-03   -.28099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102427
  Index      = 2.18328
  Normalizat = 0.901249
  Prefactor  = 0.833874
 **********
 **   18 **HESSE 
 **********

 FCN=   2831.983     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10243E-03    96.197        .21191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1833        5.4252        .50000       -.59843    
   3  Normalizat    .90125        .14077E-01    .95019E-05   -.96416    
   4  Prefactor     .83387        .15584E-01    .10835E-04   -.98492    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.2724e-09
Minuit parameter uncertainties:
  1  0.0306075
  2  258.763
  3  0.0140769
  4  0.0155845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916997': 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) = 2831.98254394
delta logL = -7.57187535783e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.339e-01  1.558e-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:  9.012e-01  1.408e-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/916997/cmap_HighResolution_604800001_605059201_4FGL_J0156.3-2420_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-08-14 20:50:58.249501', job_id='916997', GAL2='0.83', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1628999458.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-7.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1410' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:50:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 916997: <4FGL_J0156.3-2420_daily_bin1410> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1410> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 20:36:05 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:37:24 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:37:24 2021
Terminated at Sat Aug 14 20:51:00 2021
Results reported at Sat Aug 14 20:51:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1410 29.0777 -24.3345 604800001 605059201 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            895 sec.

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

