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


Performing analysis on: 4FGL_J0156.3-2420_daily_bin1036
RA = 29.0777, Dec = -24.3345
tmin = 507859201, tmax = 508118401
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='915356', job_status='RUN', time_executed='2021-08-14 20:33:17.205693', time_epoch_executed='1628998397.21' WHERE source_name='4FGL J0156.3-2420' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915356/ft1_4FGL_J0156.3-2420_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915356/ft1_4FGL_J0156.3-2420_daily_bin1036.fits outfile=/scratch/kocevski/915356/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1036.fits ra=29.0777 dec=-24.3345 rad=12.0 tmin=507859201.0 tmax=508118401.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.21
user 3.93
sys 1.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.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/915356/ft1_filteredMKT_4FGL_J0156.3-2420_daily_bin1036.fits evtable="EVENTS" outfile="/scratch/kocevski/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.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 3.45
user 0.36
sys 1.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/915356/ltcube_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.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/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits
.....................!
real 16.57
user 13.34
sys 1.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/915356/ltcube_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.fits outfile=/scratch/kocevski/915356/expmap_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.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/915356/ltcube_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.fits
.....................!
real 198.12
user 188.30
sys 6.34

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/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.fits scfile=/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits outfile=/scratch/kocevski/915356/cmap_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.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 1.84
user 0.38
sys 1.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.fits scfile=/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits outfile=/scratch/kocevski/915356/cmap_HighResolution_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.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 1.87
user 0.39
sys 1.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/915356/ft2_4FGL_J0156.3-2420_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915356/Model_4FGL_J0156.3-2420_daily_bin1036.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/915356/ft1_filtered_4FGL_J0156.3-2420_daily_bin1036.fits.....................!
real 39.85
user 36.69
sys 2.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2893       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9776       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82306E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4482       1.0000         .10000E-03   10000.    
    12 'norm      '    .16165E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.025       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11514E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58841       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3402       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=   3982.590     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2507 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2534        .19461E-05** at limit **
   2  Prefactor     .10000E-03    23.598       -.11517E-05** at limit **
   3  Prefactor     .10000E-03    2.3133        .10986E-07** at limit **
   4  norm          .10000E-03    .55813        .88709E-08** at limit **
   5  norm          1.2891        1.2491        .65443E-07    .23941E-03
   6  Prefactor     .10000E-03    9.3752        .47697E-06** at limit **
   7  Prefactor     1.9760        3.7867        .11152E-05   -.38847E-03
   8  norm          .10000E-03    .33017        .19863E-07** at limit **
   9  norm          .10023E-03    1.2795        .67033E-08** at limit **
  10  norm          2.7524        3.4211        .90811E-06   -.25584E-03
  11  Prefactor     7.4379        74.534       -.29319E-04   -.26982E-05
  12  norm          .10000E-03    1.5600       -.80750E-06** at limit **
  13  Prefactor     .10000E-03    6.3875       -.14294E-05** at limit **
  14  Prefactor     5.3536        6.5349       -.14570E-05   -.23205E-03
  15  Prefactor     .10000E-03    4.8467       -.12171E-05** at limit **
  16  norm          .10000E-03    35.220       -.10236E-04** at limit **
  17  Prefactor     .10000E-03    6.9065        .12155E-05** at limit **
  18  Prefactor     44.059        60.975        .44994E-04    .62532E-04
  19  Prefactor     .10000E-03    27.767        .94955E-05** at limit **
  20  Prefactor     .10000E-03    27.237        .87649E-05** at limit **
  21  Prefactor     .10000E-03    2.4981        .76132E-08** at limit **
  22  Normalizat    .58841        .18169       -.35005E-05    .12955E-03
  23  Prefactor     1.3401        .21105       -.77435E-06    .13158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.28911
  Prefactor  = 0.0001
  Prefactor  = 1.97597
  norm       = 0.0001
  norm       = 0.00010023
  norm       = 2.75236
  Prefactor  = 7.43786
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.35359
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 44.0592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.588408
  Prefactor  = 1.34014
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.590     FROM HESSE     STATUS=OK           364 CALLS     2871 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2874        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3148        .93737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .55904        .46025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2891        1.2794        .67683E-03   -1.5481    
   6  Prefactor     .10000E-03    9.4020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9760        3.7275        .16092E-03   -1.5427    
   8  norm          .10000E-03    .33775        .35404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10023E-03    23.223        .13298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7524        3.3626        .12121E-03   -1.5376    
  11  Prefactor     7.4379        74.439        .14696E-03   -1.5162    
  12  norm          .10000E-03    5.8086        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3993        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3536        6.5342        .16793E-03   -1.5245    
  15  Prefactor     .10000E-03    4.8661        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0139        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.059        61.023        .60422E-04   -1.4379    
  19  Prefactor     .10000E-03    27.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5160        .97407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58841        .20762        .25714E-03   -1.0848    
  23  Prefactor     1.3401        .24698        .21409E-03   -.82121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00387e-08
Minuit parameter uncertainties:
  1  1.37728e-05
  2  0.000132162
  3  1.64192e-06
  4  3.45904e-07
  5  1.27943
  6  1.75777e-05
  7  3.72794
  8  1.35013e-06
  9  0.0046202
  10  3.36287
  11  47.1361
  12  2.89781e-05
  13  3.15923e-05
  14  6.53505
  15  9.13815e-05
  16  0.000545024
  17  2.68349e-05
  18  61.1097
  19  3.17133e-05
  20  2.28416e-05
  21  5.05146e-06
  22  0.207897
  23  0.2472
Done.

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

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  7.438e+00  4.714e+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.340e+00  2.472e-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:  5.884e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/915356/likelihoodResults_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.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) = 3982.51402567
delta logL = 0.0763529134701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3982.49973633
delta logL = 0.0906422495409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.858       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3794       1.0000          .0000       10.000    
     3 'Normalizat'    .59068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3360       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=   3982.500     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      328 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.882        51.246        .89880E-04    .40476E-05
   2  Index         1.3803        1.0464        .14097E-01   -.24189E-05
   3  Normalizat    .59102        .20206        .25655E-03   -.43604E-04
   4  Prefactor     1.3356        .24614        .21435E-03    .65725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8821
  Index      = 1.38032
  Normalizat = 0.591021
  Prefactor  = 1.33556
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.500     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.882        51.942        .35952E-05   -1.4816    
   2  Index         1.3803        1.0604        .56389E-03   -.80949    
   3  Normalizat    .59102        .20223        .10262E-04   -1.0837    
   4  Prefactor     1.3356        .24635        .42870E-04   -.82256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84984e-11
Minuit parameter uncertainties:
  1  52.0605
  2  1.0779
  3  0.202479
  4  0.246567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915356': 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) = 3982.49973446
delta logL = 0.0906441287257

Extracting fit parameters...

4FGL J0156.3-2420
   Spectrum: PowerLaw
266    Prefactor:  1.988e+01  5.206e+01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.380e+00  1.078e+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:  1.336e+00  2.466e-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:  5.910e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/915356/cmap_HighResolution_507859201_508118401_4FGL_J0156.3-2420_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-08-14 20:42:39.204088', job_id='915356', GAL2='1.34', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1628998959.2', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='9.06e-02', ts2='0.21', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1036' AND source_name='4FGL J0156.3-2420' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:42:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 915356: <4FGL_J0156.3-2420_daily_bin1036> in cluster <slac> Done

Job <4FGL_J0156.3-2420_daily_bin1036> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:30:47 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:31:47 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:31:47 2021
Terminated at Sat Aug 14 20:42:40 2021
Results reported at Sat Aug 14 20:42:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.3-2420_daily_bin1036 29.0777 -24.3345 507859201 508118401 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 :                                   570.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            713 sec.

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

