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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin669
RA = 344.025, Dec = -27.6739
tmin = 412732801, tmax = 412992001
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='591139', job_status='RUN', time_executed='2021-09-29 02:43:38.337460', time_epoch_executed='1632908618.34' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591139

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591139/ft1_4FGL_J2256.0-2740_daily_bin669.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591139/ft1_4FGL_J2256.0-2740_daily_bin669.fits outfile=/scratch/kocevski/591139/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin669.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=412732801.0 tmax=412992001.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.45
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits" evtable="EVENTS" scfile=/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits sctable="SC_DATA" outfile=/scratch/kocevski/591139/ltcube_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.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/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits
.....................!
real 11.60
user 11.28
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits sctable="SC_DATA" expcube=/scratch/kocevski/591139/ltcube_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.fits outfile=/scratch/kocevski/591139/expmap_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.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/591139/ltcube_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.fits
.....................!
real 191.01
user 185.74
sys 4.95

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/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits scfile=/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits outfile=/scratch/kocevski/591139/cmap_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits scfile=/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits outfile=/scratch/kocevski/591139/cmap_HighResolution_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591139/Model_4FGL_J2256.0-2740_daily_bin669.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/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits.....................!
real 35.50
user 34.27
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits', '/scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits', expMap='/scratch/kocevski/591139/expmap_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.fits', expCube='/scratch/kocevski/591139/ltcube_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/591139/Model_4FGL_J2256.0-2740_daily_bin669.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/591139/ft1_filtered_4FGL_J2256.0-2740_daily_bin669.fits
Spacecraft file(s): /scratch/kocevski/591139/ft2_4FGL_J2256.0-2740_daily_bin669.fits
Exposure map: /scratch/kocevski/591139/expmap_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.fits
Exposure cube: /scratch/kocevski/591139/ltcube_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/591139/Model_4FGL_J2256.0-2740_daily_bin669.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) = 3642.76110665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.571       1.0000         .10000E-03   10000.    
     3 'norm      '    45.672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.191       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.906       1.0000         .10000E-03   10000.    
    12 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28590E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.599       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5155       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72708       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=   3642.746     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2359 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.107        28.340        .82485E-06   -.13373E-04
   2  Prefactor     13.579        28.521        .49181E-05    .27895E-05
   3  norm          45.676        43.917        .22219E-05   -.17127E-04
   4  Prefactor     37.193        54.746       -.28030E-04    .33763E-05
   5  Prefactor     31.197        22.002       -.52109E-06   -.23222E-04
   6  norm          3.5701        3.2950        .44535E-07   -.90608E-04
   7  Prefactor     .10000E-03    37.765       -.39872E-05** at limit **
   8  Prefactor     .10000E-03    22.991       -.20185E-07** at limit **
   9  norm          .10000E-03    2.8730        .33003E-06** at limit **
  10  Prefactor     .10000E-03    23.054        .19855E-04** at limit **
  11  Prefactor     14.943        15.885       -.11948E-05   -.44329E-03
  12  norm          .10000E-03    .45585        .15207E-06** at limit **
  13  Prefactor     65.594        110.89        .13545E-03    .25384E-04
  14  Prefactor     7.2218        13.200        .26653E-06   -.52957E-04
  15  Prefactor     .10000E-03    11.411        .12692E-06** at limit **
  16  norm          .10000E-03    22.801       -.17878E-04** at limit **
  17  Prefactor     .10003E-03    546.35       -.49746E-03** at limit **
  18  norm          .10000E-03    3.7670       -.57254E-06** at limit **
  19  Prefactor     14.608        38.446        .10113E-04    .18646E-04
  20  Prefactor     .10000E-03    159.21        .49674E-04** at limit **
  21  Normalizat    1.5151        .28403       -.91004E-06    .70518E-03
  22  Prefactor     .72729        .24192       -.15847E-05    .36114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1066
  Prefactor  = 13.5794
  norm       = 45.6762
  Prefactor  = 37.1928
  Prefactor  = 31.1971
  norm       = 3.57011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9425
  norm       = 0.0001
  Prefactor  = 65.5936
  Prefactor  = 7.22176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 14.6082
  Prefactor  = 0.0001
  Normalizat = 1.51509
  Prefactor  = 0.72729
 **********
 **   18 **HESSE 
 **********

 FCN=   3642.746     FROM HESSE     STATUS=OK           342 CALLS     2701 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.107        28.351        .11066E-03   -1.4984    
   2  Prefactor     13.579        28.516        .10873E-03   -1.4971    
   3  norm          45.676        43.871        .59327E-04   -1.4355    
   4  Prefactor     37.193        54.751        .65693E-04   -1.4487    
   5  Prefactor     31.197        22.090        .71743E-04   -1.4590    
   6  norm          3.5701        3.2923        .98920E-04   -1.5330    
   7  Prefactor     .10000E-03    37.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8873        .99710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.943        15.159        .10374E-03   -1.4935    
  12  norm          .10000E-03    .51227        .74599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.594        110.91        .24800E-03   -1.4086    
  14  Prefactor     7.2218        13.200        .14929E-03   -1.5170    
  15  Prefactor     .10000E-03    11.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    547.32        .19880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9062        .22773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.608        38.655        .10483E-03   -1.4943    
  20  Prefactor     .10000E-03    159.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5151        .34921        .24815E-03   -.77355    
  22  Prefactor     .72729        .29252        .30412E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54439e-09
Minuit parameter uncertainties:
  1  28.3805
  2  28.5447
  3  43.9019
  4  54.8247
  5  22.0961
  6  3.29246
  7  3.5726e-05
  8  0.000128173
  9  3.23114e-06
  10  1.58314e-05
  11  15.1629
  12  2.54474e-06
  13  111.257
  14  13.2051
  15  2.95366e-05
  16  9.22094e-06
  17  0.00757841
  18  5.03481e-05
  19  38.7215
  20  2.65374e-05
  21  0.349766
  22  0.293142
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.494e+01  1.516e+01  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:  7.273e-01  2.931e-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:  1.515e+00  3.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 1.04e-07
Energy Flux (Fixed Index): 2.02e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/591139/likelihoodResults_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.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) = 3640.05207047
delta logL = 2.69420359086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3639.86207953
delta logL = 2.88419453227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44261       1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.3103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88105       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.

 FCN=   3639.862     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      359 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44267        5.2760        .41340E-02    .48110E-03
   2  Index        10.0000        7.8544        .50000    ** at limit **
   3  Normalizat    1.3092        .22736        .59215E-01    .82171E-05
   4  Prefactor     .88208        .20138        .44763E-01    .21031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.442666
  Index      = 10
  Normalizat = 1.30919
  Prefactor  = 0.882075
 **********
 **   18 **HESSE 
 **********

 FCN=   3639.862     FROM HESSE     STATUS=OK            37 CALLS      396 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44267        .28895        .18409E-04   -1.5575    
   2  Index        10.0000        1.3750        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3092        .34190        .26188E-03   -.83292    
   4  Prefactor     .88208        .29964        .13942E-02   -.96770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4184e-12
Minuit parameter uncertainties:
  1  0.288953
  2  6.32604e-06
  3  0.342489
  4  0.3002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591139': 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) = 3639.86207248
delta logL = 2.88420158179

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.427e-01  2.890e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  6.326e-06  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:  8.821e-01  3.002e-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:  1.309e+00  3.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.01e-07 +/- 1.90e-07
Energy Flux (Free Index): 3.36e-05 +/- 2.14e-05

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/591139/cmap_HighResolution_412732801_412992001_4FGL_J2256.0-2740_daily_bin669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.36e-05', photon_flux_error='1.04e-07', dlogl='2.88e+00', energy_flux='2.02e-05', photon_flux2='3.01e-07', job_status='DONE', time_completed='2021-09-29 02:51:49.984915', photon_index_error2='0.00', photon_index2='10.00', ts='1.25', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='3.02e-07', energy_flux_error2='2.14e-05', EG='1.52', time_epoch_completed='1632909109.98', return_code='0', job_id='591139', GAL2='0.88', EG2='1.31', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.90e-07', ts2='7.69', photon_index='3.02' WHERE bin_id='669' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 591139: <4FGL_J2256.0-2740_daily_bin669> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin669> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:48 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:50 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:50 2021
Terminated at Wed Sep 29 02:51:50 2021
Results reported at Wed Sep 29 02:51:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin669 344.025 -27.6739 412732801 412992001 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 :                                   491.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

