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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1524
RA = 344.025, Dec = -27.6739
tmin = 634348801, tmax = 634608001
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='595377', job_status='RUN', time_executed='2021-09-29 02:56:58.076060', time_epoch_executed='1632909418.08' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595377/ft1_4FGL_J2256.0-2740_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595377/ft1_4FGL_J2256.0-2740_daily_bin1524.fits outfile=/scratch/kocevski/595377/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1524.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=634348801.0 tmax=634608001.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.74
user 3.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595377/ft1_filtered_4FGL_J2256.0-2740_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/595377/ltcube_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.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/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits
.....................!
real 12.40
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595377/ft1_filtered_4FGL_J2256.0-2740_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/595377/ltcube_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.fits outfile=/scratch/kocevski/595377/expmap_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.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/595377/ltcube_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.fits
.....................!
real 190.05
user 184.80
sys 4.90

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/595377/ft1_filtered_4FGL_J2256.0-2740_daily_bin1524.fits scfile=/scratch/kocevski/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits outfile=/scratch/kocevski/595377/cmap_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.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/595377/ft1_filtered_4FGL_J2256.0-2740_daily_bin1524.fits scfile=/scratch/kocevski/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits outfile=/scratch/kocevski/595377/cmap_HighResolution_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.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/595377/ft1_filtered_4FGL_J2256.0-2740_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/595377/ft2_4FGL_J2256.0-2740_daily_bin1524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595377/Model_4FGL_J2256.0-2740_daily_bin1524.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/595377/ft1_filtered_4FGL_J2256.0-2740_daily_bin1524.fits.....................!
real 28.76
user 27.41
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.460       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.325       1.0000         .10000E-03   10000.    
     9 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16451E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    29.224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24149E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76253       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94131       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=   2642.253     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2412 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.275        34.044        .44159E-06    .29392E-04
   2  Prefactor     .10000E-03    6.2176       -.30919E-07** at limit **
   3  norm          .10000E-03    21.445        .83322E-07** at limit **
   4  Prefactor     63.458        46.984        .52453E-06    .63051E-04
   5  Prefactor     .10000E-03    12.924       -.59717E-07** at limit **
   6  norm          3.2511        3.0482        .22831E-08    .40807E-05
   7  Prefactor     .10000E-03    51.859       -.54023E-06** at limit **
   8  Prefactor     29.318        22.026       -.50727E-07   -.63347E-04
   9  norm          .10000E-03    5.4205       -.59909E-06** at limit **
  10  Prefactor     6.0698        29.582       -.16618E-05   -.97290E-04
  11  Prefactor     .10001E-03    67.964       -.32434E-04** at limit **
  12  norm          2.9273        1.3561       -.19689E-06   -.23247E-02
  13  Prefactor     .10013E-03    108.30       -.14313E-04** at limit **
  14  Prefactor     .10000E-03    5.9677        .32849E-08** at limit **
  15  Prefactor     .10000E-03    17.181       -.76454E-06** at limit **
  16  norm          29.221        16.277       -.48160E-06   -.59024E-03
  17  Prefactor     .10012E-03    199.61        .14751E-04** at limit **
  18  norm          .10092E-03    3.0070        .40920E-05** at limit **
  19  Prefactor     19.158        26.245        .59065E-06   -.78049E-05
  20  Prefactor     .10001E-03    90.155       -.40741E-05** at limit **
  21  Normalizat    .76304        .25317       -.19150E-05   -.36643E-03
  22  Prefactor     .94088        .24450        .93524E-06   -.34657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.275
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.4582
  Prefactor  = 0.0001
  norm       = 3.25107
  Prefactor  = 0.0001
  Prefactor  = 29.3178
  norm       = 0.0001
  Prefactor  = 6.06982
  Prefactor  = 0.000100006
  norm       = 2.92728
  Prefactor  = 0.000100126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.221
  Prefactor  = 0.000100116
  norm       = 0.00010092
  Prefactor  = 19.1582
  Prefactor  = 0.000100011
  Normalizat = 0.763045
  Prefactor  = 0.940876
 **********
 **   18 **HESSE 
 **********

 FCN=   2642.253     FROM HESSE     STATUS=OK           336 CALLS     2748 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.275        34.072        .75335E-04   -1.4644    
   2  Prefactor     .10000E-03    6.2269        .12517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     63.458        47.012        .50374E-04   -1.4113    
   5  Prefactor     .10000E-03    12.971        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2511        3.0429        .84364E-04   -1.5347    
   7  Prefactor     .10000E-03    51.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.318        22.083        .73985E-04   -1.4625    
   9  norm          .10000E-03    5.4897        .11659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0698        31.565        .16298E-03   -1.5215    
  11  Prefactor     .10001E-03    69.657        .37061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9273        1.4069        .33341E-04   -1.5366    
  13  Prefactor     .10013E-03    110.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9710        .12265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          29.221        16.316        .74112E-04   -1.4626    
  17  Prefactor     .10012E-03    202.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10092E-03    57.305        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.158        26.044        .91526E-04   -1.4832    
  20  Prefactor     .10001E-03    90.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76304        .29424        .25289E-03   -1.0145    
  22  Prefactor     .94088        .28541        .22985E-03   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76657e-08
Minuit parameter uncertainties:
  1  34.0952
  2  3.81943e-06
  3  2.9846e-05
  4  47.04
  5  4.11853e-06
  6  3.04305
  7  0.000136658
  8  22.0889
  9  7.59612e-06
  10  27.7062
  11  0.0012932
  12  1.40689
  13  0.00749001
  14  1.67409e-06
  15  2.34999e-05
  16  16.3183
  17  0.00973859
  18  0.014539
  19  26.0593
  20  0.00195434
  21  0.29485
  22  0.285866
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.293e-03  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.409e-01  2.859e-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.630e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/595377/likelihoodResults_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.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): 102
logL (Free Index) = 2642.25338498
delta logL = -6.83809112161e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2642.25338496
delta logL = -6.83650309838e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96335E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0227       1.0000          .0000       10.000    
     3 'Normalizat'    .76303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94089       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=   2642.247     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      268 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4880        151.96        .90715E-02   -.22814E-03
   2  Index         2.4724        1.9175        .47252       -.44659E-05
   3  Normalizat    .75875        .24643        .43126E-01    .38621E-05
   4  Prefactor     .94171        .24297        .45524E-01    .14103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48796
  Index      = 2.47239
  Normalizat = 0.758751
  Prefactor  = 0.941712
 **********
 **   18 **HESSE 
 **********

 FCN=   2642.247     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4880        30.851        .36286E-03   -1.5952    
   2  Index         2.4724        2.1282        .10148E-01   -.52999    
   3  Normalizat    .75875        .28447        .25345E-03   -1.0162    
   4  Prefactor     .94171        .28384        .22965E-03   -.94698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00974e-10
Minuit parameter uncertainties:
  1  13.5583
  2  2.22559
  3  0.285031
  4  0.284285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595377': 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) = 2642.24716144
delta logL = 0.00615515951222

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.488e+00  1.356e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.472e+00  2.226e+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.417e-01  2.843e-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.588e-01  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/595377/cmap_HighResolution_634348801_634608001_4FGL_J2256.0-2740_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', job_status='DONE', photon_flux_upper_limit='2.09e-07', time_completed='2021-09-29 03:05:43.221475', job_id='595377', GAL2='0.94', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632909943.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.16e-03', ts2='0.01', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1524' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 595377: <4FGL_J2256.0-2740_daily_bin1524> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1524> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:17 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:19 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:55:19 2021
Terminated at Wed Sep 29 03:05:43 2021
Results reported at Wed Sep 29 03:05:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1524 344.025 -27.6739 634348801 634608001 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 :                                   449.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            626 sec.

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

