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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1219
RA = 29.0777, Dec = -24.3345
tmin = 555292801, tmax = 555552001
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='916758', job_status='RUN', time_executed='2021-08-14 20:38:41.533977', time_epoch_executed='1628998721.53' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916758/ft1_4FGL_J0156.3-2420_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916758/ft1_4FGL_J0156.3-2420_daily_bin1219.fits outfile=/scratch/kocevski/916758/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1219.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=555292801.0 tmax=555552001.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.93
user 3.41
sys 8.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916758/ft1_filtered_4FGL_J0156.3-2420_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/916758/ltcube_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.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/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits
.....................!
real 22.99
user 13.32
sys 9.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916758/ft1_filtered_4FGL_J0156.3-2420_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/916758/ltcube_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.fits outfile=/scratch/kocevski/916758/expmap_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.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/916758/ltcube_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.fits
.....................!
real 204.32
user 185.79
sys 17.23

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/916758/ft1_filtered_4FGL_J0156.3-2420_daily_bin1219.fits scfile=/scratch/kocevski/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits outfile=/scratch/kocevski/916758/cmap_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.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 11.42
user 0.38
sys 8.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916758/ft1_filtered_4FGL_J0156.3-2420_daily_bin1219.fits scfile=/scratch/kocevski/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits outfile=/scratch/kocevski/916758/cmap_HighResolution_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.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.14
user 0.40
sys 8.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916758/ft1_filtered_4FGL_J0156.3-2420_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/916758/ft2_4FGL_J0156.3-2420_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916758/Model_4FGL_J0156.3-2420_daily_bin1219.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/916758/ft1_filtered_4FGL_J0156.3-2420_daily_bin1219.fits......................!
real 34.55
user 20.05
sys 12.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2436       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.196       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1209       1.0000         .10000E-03   10000.    
     8 'norm      '    3.8992       1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.210       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35857E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    110.96       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    335.37       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .45561       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86756       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=   1119.407     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     3723 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4425        .94933E-03** at limit **
   2  Prefactor     .10000E-03    13.423        .11973E-02** at limit **
   3  Prefactor     .10000E-03    14.245        .12316E-02** at limit **
   4  norm          4.2441        3.8803        .58409E-04    .15322E-03
   5  norm          .10000E-03    3.1340        .57764E-03** at limit **
   6  Prefactor     39.201        43.941        .64022E-04    .29158E-04
   7  Prefactor     9.1180        11.963        .11192E-03    .26767E-04
   8  norm          3.8994        2.2216        .34931E-04    .14236E-03
   9  norm          .10000E-03    2.8506        .55028E-03** at limit **
  10  norm          .10000E-03    4.2654        .67457E-03** at limit **
  11  Prefactor     31.149        110.67        .71722E-04    .29721E-05
  12  norm          4.3866        4.9808        .70006E-04    .39706E-04
  13  Prefactor     .10000E-03    34.080        .18142E-02** at limit **
  14  Prefactor     .10000E-03    53.355        .18142E-02** at limit **
  15  Prefactor     .10000E-03    361.03        .42808E-02** at limit **
  16  norm          110.89        132.33        .19093E-03   -.45550E-05
  17  Prefactor     .10000E-03    27.411        .17099E-02** at limit **
  18  Prefactor     .10000E-03    142.64        .18142E-02** at limit **
  19  Prefactor     335.56        496.26        .11109E-03   -.48661E-05
  20  Prefactor     .10000E-03    121.68        .18142E-02** at limit **
  21  Prefactor     .10000E-03    107.52        .18142E-02** at limit **
  22  Normalizat    .45555        .39531        .28764E-03    .66944E-04
  23  Prefactor     .86760        .39817        .22998E-03    .11123E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.24409
  norm       = 0.0001
  Prefactor  = 39.2012
  Prefactor  = 9.11798
  norm       = 3.89937
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 31.1492
  norm       = 4.38664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 110.89
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 335.558
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.455552
  Prefactor  = 0.867604
 **********
 **   18 **HESSE 
 **********

 FCN=   1119.407     FROM HESSE     STATUS=OK           346 CALLS     4069 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4425        .18987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.423        .23945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.246        .24632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2441        3.8802        .11682E-04   -1.5296    
   5  norm          .10000E-03    3.1341        .11553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.201        43.941        .12804E-04   -1.4455    
   7  Prefactor     9.1180        11.963        .44766E-05   -1.5104    
   8  norm          3.8994        2.2216        .69862E-05   -1.5313    
   9  norm          .10000E-03    2.8506        .11006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.2654        .13491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.149        110.60        .28689E-05   -1.4591    
  12  norm          4.3866        4.9799        .28002E-05   -1.5289    
  13  Prefactor     .10000E-03    34.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    362.22        .17123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          110.89        130.94        .76374E-05   -1.3598    
  17  Prefactor     .10000E-03    27.413        .34198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    142.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     335.56        496.27        .22218E-04   -1.2024    
  20  Prefactor     .10000E-03    121.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    107.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .45555        .39555        .11506E-04   -1.1452    
  23  Prefactor     .86760        .39845        .91990E-05   -.97282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26918e-10
Minuit parameter uncertainties:
  1  1.82241e-05
  2  1.06606e-05
  3  8.96613e-05
  4  3.88046
  5  2.0902e-05
  6  43.9772
  7  11.9662
  8  2.22165
  9  1.89946e-05
  10  6.97587e-06
  11  111.337
  12  4.98035
  13  0.000124101
  14  0.000250118
  15  0.000747374
  16  131.287
  17  6.38253e-05
  18  0.000933074
  19  502.773
  20  0.000242023
  21  0.000696708
  22  0.398016
  23  0.39979
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  3.115e+01  1.113e+02  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.676e-01  3.998e-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:  4.556e-01  3.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 29.078 -24.334
Photon Flux Upper Limit: 2.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916758/likelihoodResults_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.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) = 1119.34501868
delta logL = 0.0620013173959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1119.33594865
delta logL = 0.0710713447152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.318       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5345       1.0000          .0000       10.000    
     3 'Normalizat'    .44173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86965       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=   1119.336     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.313        87.250        .88858E-04    .20224E-03
   2  Index         2.5352        1.7476        .59670E-02    .11117E-03
   3  Normalizat    .44125        .36086        .29210E-03   -.78095E-04
   4  Prefactor     .87015        .39218        .22956E-03   -.13008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3131
  Index      = 2.53516
  Normalizat = 0.441252
  Prefactor  = 0.870146
 **********
 **   18 **HESSE 
 **********

 FCN=   1119.336     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.313        72.897        .17772E-04   -1.4806    
   2  Index         2.5352        1.5256        .23868E-03   -.51550    
   3  Normalizat    .44125        .36075        .11684E-04   -1.1522    
   4  Prefactor     .87015        .39200        .45911E-04   -.97192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94735e-10
Minuit parameter uncertainties:
  1  73.2191
  2  1.55877
  3  0.362677
  4  0.393272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916758': 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) = 1119.33594762
delta logL = 0.0710723733102

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  2.031e+01  7.322e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  2.535e+00  1.559e+00  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.701e-01  3.933e-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:  4.413e-01  3.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/916758/cmap_HighResolution_555292801_555552001_4FGL_J0156.3-2420_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2021-08-14 20:47:26.436799', job_id='916758', GAL2='0.87', fit_tolerance='1e-08', EG2='0.44', EG='0.46', time_epoch_completed='1628999246.44', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.11e-02', ts2='0.24', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1219' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 916758: <4FGL_J0156.3-2420_daily_bin1219> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1219> 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) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:35:51 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:51 2021
Terminated at Sat Aug 14 20:47:30 2021
Results reported at Sat Aug 14 20:47:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1219 29.0777 -24.3345 555292801 555552001 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 :                                   664.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            704 sec.

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

