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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1402
RA = 29.0777, Dec = -24.3345
tmin = 602726401, tmax = 602985601
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='916986', job_status='RUN', time_executed='2021-08-14 20:40:15.550006', time_epoch_executed='1628998815.55' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916986/ft1_4FGL_J0156.3-2420_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916986/ft1_4FGL_J0156.3-2420_daily_bin1402.fits outfile=/scratch/kocevski/916986/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1402.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=602726401.0 tmax=602985601.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 11.27
user 2.87
sys 8.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916986/ft1_filtered_4FGL_J0156.3-2420_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/916986/ltcube_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.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/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits
.....................!
real 24.15
user 14.22
sys 9.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916986/ft1_filtered_4FGL_J0156.3-2420_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/916986/ltcube_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.fits outfile=/scratch/kocevski/916986/expmap_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.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/916986/ltcube_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.fits
.....................!
real 204.43
user 188.27
sys 14.96

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/916986/ft1_filtered_4FGL_J0156.3-2420_daily_bin1402.fits scfile=/scratch/kocevski/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits outfile=/scratch/kocevski/916986/cmap_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.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 8.80
user 0.39
sys 8.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916986/ft1_filtered_4FGL_J0156.3-2420_daily_bin1402.fits scfile=/scratch/kocevski/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits outfile=/scratch/kocevski/916986/cmap_HighResolution_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.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 8.61
user 0.40
sys 8.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916986/ft1_filtered_4FGL_J0156.3-2420_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/916986/ft2_4FGL_J0156.3-2420_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916986/Model_4FGL_J0156.3-2420_daily_bin1402.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/916986/ft1_filtered_4FGL_J0156.3-2420_daily_bin1402.fits.....................!
real 67.90
user 54.58
sys 12.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8133       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.023       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4129       1.0000         .10000E-03   10000.    
     9 'norm      '    .17797E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
    12 'norm      '    .17634E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.799       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11099E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2867       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58749E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.954       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74131       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1010       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=   6848.341     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2598 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6156        .94657E-07** at limit **
   2  Prefactor     .10000E-03    6.3189       -.63440E-06** at limit **
   3  Prefactor     4.8171        5.3580        .24513E-05   -.27623E-03
   4  norm          .10000E-03    .62866       -.81295E-06** at limit **
   5  norm          3.1175        2.0200        .71681E-07    .66302E-04
   6  Prefactor     16.029        11.098       -.95454E-06   -.72588E-04
   7  Prefactor     .10000E-03    1.3723       -.10163E-06** at limit **
   8  norm          1.4128        .98215       -.26352E-08    .28310E-04
   9  norm          .10000E-03    .74698       -.43573E-07** at limit **
  10  norm          .10000E-03    .80449       -.16580E-07** at limit **
  11  Prefactor     15.459        18.327       -.10071E-05   -.38624E-04
  12  norm          .10000E-03    .59865       -.34136E-07** at limit **
  13  Prefactor     .10000E-03    7.7599       -.21785E-06** at limit **
  14  Prefactor     10.798        4.8312       -.14489E-07   -.29862E-04
  15  Prefactor     .10000E-03    6.8525       -.90472E-06** at limit **
  16  norm          14.909        40.414       -.26471E-05   -.76756E-04
  17  Prefactor     3.5204        4.3018       -.44549E-07   -.10925E-03
  18  Prefactor     4.3185        79.929        .53969E-05    .33471E-04
  19  Prefactor     .10023E-03    28.517       -.10464E-05** at limit **
  20  Prefactor     34.951        24.160        .26324E-06    .37584E-04
  21  Prefactor     .10000E-03    .75736        .54311E-08** at limit **
  22  Normalizat    .74146        .14290       -.17698E-06    .21846E-03
  23  Prefactor     1.1010        .16376        .35929E-06    .13917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.81712
  norm       = 0.0001
  norm       = 3.11749
  Prefactor  = 16.0288
  Prefactor  = 0.0001
  norm       = 1.41276
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.4591
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.798
  Prefactor  = 0.000100001
  norm       = 14.9089
  Prefactor  = 3.52044
  Prefactor  = 4.31849
  Prefactor  = 0.000100226
  Prefactor  = 34.951
  Prefactor  = 0.0001
  Normalizat = 0.741457
  Prefactor  = 1.10098
 **********
 **   18 **HESSE 
 **********

 FCN=   6848.341     FROM HESSE     STATUS=OK           378 CALLS     2976 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8171        5.6095        .91685E-03   -1.5269    
   4  norm          .10000E-03    .99263        .12761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1175        2.0166        .90521E-04   -1.5355    
   6  Prefactor     16.029        11.104        .10006E-03   -1.4907    
   7  Prefactor     .10000E-03    1.3962        .94586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4128        .97702        .65459E-04   -1.5470    
   9  norm          .10000E-03    3.1331        .13649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .81723        .72419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.459        18.359        .10188E-03   -1.4921    
  12  norm          .10000E-03    14.382        .12160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.8299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.798        4.8301        .11490E-03   -1.5051    
  15  Prefactor     .10000E-03    6.9778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.909        41.074        .10363E-03   -1.4936    
  17  Prefactor     3.5204        4.2904        .17898E-03   -1.5333    
  18  Prefactor     4.3185        80.222        .19459E-03   -1.5292    
  19  Prefactor     .10023E-03    244.60        .84577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.951        24.141        .67782E-04   -1.4525    
  21  Prefactor     .10000E-03    .75788        .70329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74146        .16332        .22915E-03   -1.0228    
  23  Prefactor     1.1010        .19075        .23006E-03   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5509e-09
Minuit parameter uncertainties:
  1  2.4555e-06
  2  3.56654e-06
  3  5.61011
  4  2.25542e-05
  5  2.01669
  6  11.1051
  7  1.77524e-08
  8  0.977032
  9  7.0269e-05
  10  1.13313e-06
  11  18.3658
  12  0.000234054
  13  6.35194e-06
  14  4.83031
  15  0.000159944
  16  41.1515
  17  4.29074
  18  37.2833
  19  0.0149334
  20  24.1473
  21  1.13724e-08
  22  0.163431
  23  0.190868
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.546e+01  1.837e+01  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.101e+00  1.909e-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.415e-01  1.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 29.078 -24.334
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 7.88e-09 +/- 9.35e-09
Energy Flux (Fixed Index): 6.36e-06 +/- 7.56e-06

TS (Fixed Index): 1.85
Ra Dec: 29.078 -24.334
Photon Flux Upper Limit: 3.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916986/likelihoodResults_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.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) = 6848.09067858
delta logL = 0.250422395061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6848.06538426
delta logL = 0.275716715181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.270       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3749       1.0000          .0000       10.000    
     3 'Normalizat'    .74654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0978       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=   6848.065     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.297        1177.5        .22240E-02   -.62465E-05
   2  Index         1.3752        6.4034        .31418       -.10147E-04
   3  Normalizat    .74652        .11040        .42909E-01   -.24178E-03
   4  Prefactor     1.0977        .82885E-01    .37672E-01   -.29422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2968
  Index      = 1.37524
  Normalizat = 0.746524
  Prefactor  = 1.09773
 **********
 **   18 **HESSE 
 **********

 FCN=   6848.065     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.297        23.206        .88962E-04   -1.4807    
   2  Index         1.3752        .69078        .12729E-01   -.81097    
   3  Normalizat    .74652        .15655        .22840E-03   -1.0208    
   4  Prefactor     1.0977        .18908        .23031E-03   -.89539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38922e-11
Minuit parameter uncertainties:
  1  23.216
  2  0.695501
  3  0.156639
  4  0.189193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916986': 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) = 6848.06538345
delta logL = 0.275717530561

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  2.030e+01  2.322e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.375e+00  6.955e-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.098e+00  1.892e-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.465e-01  1.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 29.078 -24.334
Photon Index (Free Index): 1.38 +/- 0.70
Photon Flux (Free Index): 3.98e-09 +/- 5.67e-09
Energy Flux (Free Index): 1.91e-05 +/- 3.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/916986/cmap_HighResolution_602726401_602985601_4FGL_J0156.3-2420_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', comment='SUCCESS', photon_flux='7.88e-09', energy_flux2='1.91e-05', photon_flux_error='9.35e-09', dlogl='2.76e-01', energy_flux='6.36e-06', photon_flux2='3.98e-09', job_status='DONE', time_completed='2021-08-14 20:53:53.519963', photon_index_error2='0.70', photon_index2='1.38', ts='1.85', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='3.94e-08', energy_flux_error2='3.50e-05', EG='0.74', time_epoch_completed='1628999633.52', return_code='0', job_id='916986', GAL2='1.10', EG2='0.75', return_code2='0', energy_flux_error='7.56e-06', photon_flux_error2='5.67e-09', ts2='2.40', photon_index='1.94' WHERE bin_id='1402' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:53:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 916986: <4FGL_J0156.3-2420_daily_bin1402> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1402 29.0777 -24.3345 602726401 602985601 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 :                                   945.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             248.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            1071 sec.

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

