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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1409
RA = 344.025, Dec = -27.6739
tmin = 604540801, tmax = 604800001
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='594214', job_status='RUN', time_executed='2021-09-29 02:51:01.019283', time_epoch_executed='1632909061.02' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594214/ft1_4FGL_J2256.0-2740_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594214/ft1_4FGL_J2256.0-2740_daily_bin1409.fits outfile=/scratch/kocevski/594214/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1409.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=604540801.0 tmax=604800001.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.65
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594214/ft1_filtered_4FGL_J2256.0-2740_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/594214/ltcube_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.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/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits
.....................!
real 11.85
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594214/ft1_filtered_4FGL_J2256.0-2740_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/594214/ltcube_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.fits outfile=/scratch/kocevski/594214/expmap_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.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/594214/ltcube_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.fits
.....................!
real 190.17
user 185.42
sys 4.29

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/594214/ft1_filtered_4FGL_J2256.0-2740_daily_bin1409.fits scfile=/scratch/kocevski/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits outfile=/scratch/kocevski/594214/cmap_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594214/ft1_filtered_4FGL_J2256.0-2740_daily_bin1409.fits scfile=/scratch/kocevski/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits outfile=/scratch/kocevski/594214/cmap_HighResolution_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.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/594214/ft1_filtered_4FGL_J2256.0-2740_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/594214/ft2_4FGL_J2256.0-2740_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594214/Model_4FGL_J2256.0-2740_daily_bin1409.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/594214/ft1_filtered_4FGL_J2256.0-2740_daily_bin1409.fits.....................!
real 38.75
user 37.50
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.500       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.044       1.0000         .10000E-03   10000.    
     6 'norm      '    .10483E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.770       1.0000         .10000E-03   10000.    
     9 'norm      '    .11470E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0421       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0166       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.748       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1227       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90297       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=   4296.997     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2913 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.502        23.209        .15204E-06   -.18373E-05
   2  Prefactor     .10000E-03    6.1516        .43704E-07** at limit **
   3  norm          .10000E-03    14.905        .73667E-07** at limit **
   4  Prefactor     32.762        25.757        .13398E-06    .66452E-05
   5  Prefactor     19.042        16.606       -.92506E-08   -.33485E-04
   6  norm          .10000E-03    1.6317        .10439E-05** at limit **
   7  Prefactor     66.005        61.466       -.15358E-05    .11132E-04
   8  Prefactor     17.770        16.397       -.25189E-06   -.10780E-04
   9  norm          .10000E-03    3.5726       -.28027E-06** at limit **
  10  Prefactor     .10000E-03    7.8261        .43699E-08** at limit **
  11  Prefactor     1.0001        11.523        .58036E-06    .25235E-03
  12  norm          1.0198        .87772       -.26449E-06   -.77080E-04
  13  Prefactor     .10000E-03    18.408        .20563E-06** at limit **
  14  Prefactor     .10000E-03    39.843        .29881E-06** at limit **
  15  Prefactor     .10000E-03    4.0679        .31685E-07** at limit **
  16  norm          .10000E-03    7.1596        .94971E-07** at limit **
  17  Prefactor     .10000E-03    21.527       -.30164E-06** at limit **
  18  norm          11.748        4.8699        .10477E-07   -.13629E-03
  19  Prefactor     .10000E-03    16.340        .13442E-06** at limit **
  20  Prefactor     .10000E-03    90.213       -.16296E-06** at limit **
  21  Normalizat    1.1230        .23525       -.14683E-05    .23664E-05
  22  Prefactor     .90260        .21155        .80721E-06   -.73538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.7624
  Prefactor  = 19.0418
  norm       = 0.0001
  Prefactor  = 66.0053
  Prefactor  = 17.7702
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.00011
  norm       = 1.01982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.123
  Prefactor  = 0.902601
 **********
 **   18 **HESSE 
 **********

 FCN=   4296.997     FROM HESSE     STATUS=OK           342 CALLS     3255 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.502        23.220        .98599E-04   -1.4895    
   2  Prefactor     .10000E-03    6.2032        .15875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.762        25.775        .70012E-04   -1.4563    
   5  Prefactor     19.042        16.607        .91780E-04   -1.4835    
   6  norm          .10000E-03    1.6157        .80533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     66.005        63.323        .49409E-04   -1.4081    
   8  Prefactor     17.770        16.506        .95013E-04   -1.4865    
   9  norm          .10000E-03    6.9264        .22958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8324        .17899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0001        96.502        .31404E-02   -1.5508    
  12  norm          1.0198        1.3377        .45260E-04   -1.5506    
  13  Prefactor     .10000E-03    18.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0716        .12910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.2852        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.748        4.8715        .90199E-04   -1.5022    
  19  Prefactor     .10000E-03    16.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    90.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1230        .28474        .25090E-03   -.89017    
  22  Prefactor     .90260        .25527        .26089E-03   -.96050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71127e-09
Minuit parameter uncertainties:
  1  23.2324
  2  8.08747e-06
  3  5.15382e-05
  4  25.7842
  5  16.6105
  6  9.50386e-07
  7  63.3873
  8  16.5099
  9  0.000297052
  10  1.74348e-05
  11  19.6799
  12  1.33773
  13  9.07182e-05
  14  0.000149974
  15  6.3075e-06
  16  1.87785e-05
  17  0.000127477
  18  4.87163
  19  8.46776e-05
  20  0.000104401
  21  0.285128
  22  0.255609
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e+00  1.968e+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:  9.026e-01  2.556e-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.123e+00  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/594214/likelihoodResults_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.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) = 4296.97474984
delta logL = 0.0218339575458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4296.97012032
delta logL = 0.0264634757996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7048       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3531       1.0000          .0000       10.000    
     3 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90058       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4296.970     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      238 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6978        7.7884         .0000        .13411E-01
   2  Index         2.3521        .63004         .0000       -.59710E-06
   3  Normalizat    1.1234        .21953         .0000       -.45926E-04
   4  Prefactor     .90052        .20719         .0000       -.15408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69777
  Index      = 2.35208
  Normalizat = 1.12344
  Prefactor  = 0.900517
 **********
 **   18 **HESSE 
 **********

 FCN=   4296.970     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6978        8.8157        .16104E-02   -1.5447    
   2  Index         2.3521        1.9203        .94438E-02   -.55811    
   3  Normalizat    1.1234        .26092        .25083E-03   -.89003    
   4  Prefactor     .90052        .24576        .26107E-03   -.96123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25616e-09
Minuit parameter uncertainties:
  1  7.73903
  2  1.99283
  3  0.261218
  4  0.246061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594214': 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) = 4296.97011986
delta logL = 0.0264639313082

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.698e+00  7.739e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.352e+00  1.993e+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.005e-01  2.461e-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.123e+00  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 344.025 -27.674

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/594214/cmap_HighResolution_604540801_604800001_4FGL_J2256.0-2740_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2021-09-29 03:00:40.752647', job_id='594214', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632909640.75', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.65e-02', ts2='0.06', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1409' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 594214: <4FGL_J2256.0-2740_daily_bin1409> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1409 344.025 -27.6739 604540801 604800001 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 :                                   548.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            601 sec.

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

