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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin588
RA = 344.025, Dec = -27.6739
tmin = 391737601, tmax = 391996801
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='591013', job_status='RUN', time_executed='2021-09-29 02:43:36.458178', time_epoch_executed='1632908616.46' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591013/ft1_4FGL_J2256.0-2740_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591013/ft1_4FGL_J2256.0-2740_daily_bin588.fits outfile=/scratch/kocevski/591013/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin588.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=391737601.0 tmax=391996801.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 3.31
user 3.08
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.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/591013/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.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 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/591013/ltcube_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.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/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits
.....................!
real 11.77
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/591013/ltcube_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.fits outfile=/scratch/kocevski/591013/expmap_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.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/591013/ltcube_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.fits
.....................!
real 190.15
user 185.19
sys 4.65

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2256.0-2740 @ 344.025 -27.6739

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits scfile=/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits outfile=/scratch/kocevski/591013/cmap_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.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=344.025 yref=-27.6739 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 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits scfile=/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits outfile=/scratch/kocevski/591013/cmap_HighResolution_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.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=344.025 yref=-27.6739 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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591013/Model_4FGL_J2256.0-2740_daily_bin588.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/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits.....................!
real 49.81
user 48.54
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits', '/scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits', expMap='/scratch/kocevski/591013/expmap_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.fits', expCube='/scratch/kocevski/591013/ltcube_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591013/Model_4FGL_J2256.0-2740_daily_bin588.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2256.0-2740'

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/591013/ft1_filtered_4FGL_J2256.0-2740_daily_bin588.fits
Spacecraft file(s): /scratch/kocevski/591013/ft2_4FGL_J2256.0-2740_daily_bin588.fits
Exposure map: /scratch/kocevski/591013/expmap_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.fits
Exposure cube: /scratch/kocevski/591013/ltcube_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591013/Model_4FGL_J2256.0-2740_daily_bin588.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) = 6520.36657883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6771       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22035       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    33.173       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.158       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50652E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.575       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80989       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6520.325     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2428 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6753        14.802       -.47024E-06    .61153E-05
   2  Prefactor     .10000E-03    4.8885        .14506E-06** at limit **
   3  norm          .10000E-03    10.422       -.18742E-07** at limit **
   4  Prefactor     21.973        17.381       -.55453E-05    .52285E-03
   5  Prefactor     .28461        5.7139       -.15250E-05    .61138E-04
   6  norm          1.8941        3.2004       -.17780E-05   -.74168E-03
   7  Prefactor     74.563        55.282        .65656E-05    .50815E-04
   8  Prefactor     .10000E-03    10.922        .12910E-06** at limit **
   9  norm          33.172        7.1405        .37116E-06   -.28724E-03
  10  Prefactor     .10000E-03    7.1238       -.83078E-07** at limit **
  11  Prefactor     12.150        8.9766       -.18290E-05   -.13129E-03
  12  norm          .10000E-03    .33778        .22707E-06** at limit **
  13  Prefactor     .10000E-03    46.204        .58397E-06** at limit **
  14  Prefactor     .10000E-03    18.586       -.20919E-06** at limit **
  15  Prefactor     .10000E-03    4.8647        .13779E-06** at limit **
  16  norm          .10000E-03    3.1077       -.35384E-08** at limit **
  17  Prefactor     .10000E-03    6.7942        .13392E-06** at limit **
  18  norm          2.3422        2.1370       -.17119E-07    .28521E-03
  19  Prefactor     .10760E-03    25.935       -.27028E-05** at limit **
  20  Prefactor     35.543        54.528        .60055E-05   -.49128E-04
  21  Normalizat    .80997        .15805        .55157E-06    .34832E-03
  22  Prefactor     .90377        .15387        .32574E-06    .31964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.67531
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9729
  Prefactor  = 0.284609
  norm       = 1.89412
  Prefactor  = 74.5631
  Prefactor  = 0.0001
  norm       = 33.1722
  Prefactor  = 0.0001
  Prefactor  = 12.1497
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34218
  Prefactor  = 0.000107596
  Prefactor  = 35.5433
  Normalizat = 0.809968
  Prefactor  = 0.903768
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.325     FROM HESSE     STATUS=OK           344 CALLS     2772 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6753        14.810        .12882E-03   -1.5086    
   2  Prefactor     .10000E-03    4.9762        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.973        17.043        .85451E-04   -1.4770    
   5  Prefactor     .28461        80.883        .35360E-02   -1.5601    
   6  norm          1.8941        3.2575        .14386E-03   -1.5433    
   7  Prefactor     74.563        56.837        .46475E-04   -1.3979    
   8  Prefactor     .10000E-03    11.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          33.172        7.1373        .69573E-04   -1.4555    
  10  Prefactor     .10000E-03    7.1425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.150        8.6163        .11488E-03   -1.5011    
  12  norm          .10000E-03    1.2504        .84170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9046        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1339        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3422        2.1282        .10614E-03   -1.5402    
  19  Prefactor     .10760E-03    31.583        .10135       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.543        54.374        .67190E-04   -1.4515    
  21  Normalizat    .80997        .18813        .24041E-03   -.99700    
  22  Prefactor     .90377        .18389        .22978E-03   -.96010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41988e-09
Minuit parameter uncertainties:
  1  14.8156
  2  2.76657e-05
  3  1.70451e-06
  4  17.0464
  5  9.60729
  6  3.25777
  7  56.8782
  8  2.95521e-05
  9  7.13746
  10  2.58295e-05
  11  8.61715
  12  2.46263e-05
  13  2.32071e-05
  14  1.56044e-05
  15  2.57304e-05
  16  2.70437e-06
  17  5.8212e-06
  18  2.12824
  19  0.0309947
  20  54.4501
  21  0.188286
  22  0.184018
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.215e+01  8.617e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.038e-01  1.840e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  8.100e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.16e-05

TS (Fixed Index): 3.01
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591013/likelihoodResults_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.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) = 6519.60478082
delta logL = 0.719830884132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6519.59605847
delta logL = 0.728553241409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1518       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1245       1.0000          .0000       10.000    
     3 'Normalizat'    .78002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92716       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+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=   6519.596     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      262 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1507        8.1775        .12338E-03    .23940E-02
   2  Index         4.1258        1.2090        .10743E-01    .27683E-03
   3  Normalizat    .77988        .18314        .24430E-03   -.43089E-03
   4  Prefactor     .92725        .18168        .22721E-03   -.32979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.15069
  Index      = 4.12577
  Normalizat = 0.779884
  Prefactor  = 0.927245
 **********
 **   18 **HESSE 
 **********

 FCN=   6519.596     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1507        7.5497        .49350E-05   -1.5103    
   2  Index         4.1258        1.1174        .42972E-03   -.17575    
   3  Normalizat    .77988        .18337        .48860E-04   -1.0082    
   4  Prefactor     .92725        .18188        .45443E-04   -.95195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37218e-09
Minuit parameter uncertainties:
  1  7.55052
  2  1.12718
  3  0.18351
  4  0.182001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591013': 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) = 6519.59605709
delta logL = 0.728554619875

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  9.151e+00  7.551e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.126e+00  1.127e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.272e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  7.799e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.13 +/- 1.13
Photon Flux (Free Index): 1.06e-07 +/- 5.71e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.82e-06

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/591013/cmap_HighResolution_391737601_391996801_4FGL_J2256.0-2740_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='1.55e-05', photon_flux_error='5.89e-08', dlogl='7.29e-01', energy_flux='1.64e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 02:54:29.962260', photon_index_error2='1.13', photon_index2='4.13', ts='3.01', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='8.82e-06', EG='0.81', time_epoch_completed='1632909269.96', return_code='0', job_id='591013', GAL2='0.93', EG2='0.78', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.71e-08', ts2='4.89', photon_index='3.02' WHERE bin_id='588' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 591013: <4FGL_J2256.0-2740_daily_bin588> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin588> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:41 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:42 2021
Terminated at Wed Sep 29 02:54:30 2021
Results reported at Wed Sep 29 02:54:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin588 344.025 -27.6739 391737601 391996801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2256.0-2740 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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

