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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin585
RA = 344.025, Dec = -27.6739
tmin = 390960001, tmax = 391219201
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='591008', job_status='RUN', time_executed='2021-09-29 02:43:51.790644', time_epoch_executed='1632908631.79' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591008/ft1_4FGL_J2256.0-2740_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591008/ft2_4FGL_J2256.0-2740_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591008/ft1_4FGL_J2256.0-2740_daily_bin585.fits outfile=/scratch/kocevski/591008/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin585.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.52
user 4.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591008/ft1_filtered_4FGL_J2256.0-2740_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/591008/ft2_4FGL_J2256.0-2740_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/591008/ltcube_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.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/591008/ft2_4FGL_J2256.0-2740_daily_bin585.fits
.....................!
real 11.85
user 11.37
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591008/ft1_filtered_4FGL_J2256.0-2740_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/591008/ft2_4FGL_J2256.0-2740_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/591008/ltcube_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.fits outfile=/scratch/kocevski/591008/expmap_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.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/591008/ltcube_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.fits
.....................!
real 191.82
user 186.35
sys 5.12

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/591008/ft1_filtered_4FGL_J2256.0-2740_daily_bin585.fits scfile=/scratch/kocevski/591008/ft2_4FGL_J2256.0-2740_daily_bin585.fits outfile=/scratch/kocevski/591008/cmap_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591008/ft1_filtered_4FGL_J2256.0-2740_daily_bin585.fits scfile=/scratch/kocevski/591008/ft2_4FGL_J2256.0-2740_daily_bin585.fits outfile=/scratch/kocevski/591008/cmap_HighResolution_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.889       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.895       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40935E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12259E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.05       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76840       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0118       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=   4361.232     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     3115 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.736        26.979        .59285E-04    .40270E-05
   2  Prefactor     .10000E-03    3.1066        .11347E-02** at limit **
   3  norm          36.869        28.328        .66000E-04    .15158E-04
   4  Prefactor     30.880        27.126        .72092E-04    .12143E-04
   5  Prefactor     .10000E-03    4.8468        .14189E-02** at limit **
   6  norm          .10000E-03    1.0118        .64688E-03** at limit **
   7  Prefactor     10.035        41.188        .12639E-03    .13763E-04
   8  Prefactor     .10000E-03    21.825        .36285E-03** at limit **
   9  norm          21.331        7.9556        .86720E-04    .20236E-03
  10  Prefactor     5.7440        19.942        .16757E-03    .44439E-04
  11  Prefactor     13.901        13.682        .10745E-03    .18854E-03
  12  norm          .10000E-03    .28542        .67551E-04** at limit **
  13  Prefactor     .10000E-03    25.467        .18142E-02** at limit **
  14  Prefactor     .10000E-03    30.315        .36285E-03** at limit **
  15  Prefactor     .10000E-03    9.3592        .18142E-02** at limit **
  16  norm          7.6313        9.2627        .14518E-03   -.57557E-04
  17  Prefactor     .10000E-03    215.58        .38931E-03** at limit **
  18  norm          1.2297        2.7797        .15519E-03   -.95159E-04
  19  Prefactor     .10000E-03    58.254        .11356    ** at limit **
  20  Prefactor     107.18        144.12        .19434E-03    .99447E-05
  21  Normalizat    .76844        .25879        .26395E-03    .14429E-04
  22  Prefactor     1.0119        .24008        .22886E-03    .27569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.7357
  Prefactor  = 0.0001
  norm       = 36.8695
  Prefactor  = 30.8797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0351
  Prefactor  = 0.0001
  norm       = 21.3306
  Prefactor  = 5.744
  Prefactor  = 13.9006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.63134
  Prefactor  = 0.000100001
  norm       = 1.22971
  Prefactor  = 0.000100001
  Prefactor  = 107.18
  Normalizat = 0.768443
  Prefactor  = 1.01186
 **********
 **   18 **HESSE 
 **********

 FCN=   4361.232     FROM HESSE     STATUS=OK           330 CALLS     3445 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.736        26.982        .23714E-05   -1.4354    
   2  Prefactor     .10000E-03    3.1067        .22695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.869        28.330        .26400E-05   -1.4493    
   4  Prefactor     30.880        27.121        .28837E-05   -1.4596    
   5  Prefactor     .10000E-03    4.8469        .28377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0118        .12938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.035        41.160        .50555E-05   -1.5074    
   8  Prefactor     .10000E-03    21.826        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.331        7.9552        .17344E-04   -1.4784    
  10  Prefactor     5.7440        19.933        .67027E-05   -1.5229    
  11  Prefactor     13.901        13.678        .42981E-05   -1.4962    
  12  norm          .10000E-03    .28542        .13510E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.316        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6313        9.2626        .58071E-05   -1.5155    
  17  Prefactor     .10000E-03    215.60        .77862E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2297        2.7784        .62077E-05   -1.5486    
  19  Prefactor     .10000E-03    57.148        .11486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     107.18        144.12        .77737E-05   -1.3634    
  21  Normalizat    .76844        .25911        .10558E-04   -1.0125    
  22  Prefactor     1.0119        .24041        .91545E-05   -.92335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77297e-11
Minuit parameter uncertainties:
  1  26.989
  2  7.62751e-08
  3  28.3405
  4  27.1317
  5  4.82164e-07
  6  6.91335e-08
  7  40.6952
  8  7.56188e-06
  9  7.95563
  10  19.9559
  11  13.6808
  12  1.29148e-06
  13  2.20447e-05
  14  5.236e-05
  15  1.64731e-05
  16  9.2643
  17  0.00093886
  18  2.77873
  19  0.00037484
  20  144.59
  21  0.259522
  22  0.240661
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.390e+01  1.368e+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:  1.012e+00  2.407e-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.684e-01  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 9.51e-08 +/- 9.35e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.85e-05

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

Saving results to:
/scratch/kocevski/591008/likelihoodResults_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.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) = 4361.03943411
delta logL = 0.192943814926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4361.03153105
delta logL = 0.200846877046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.521       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6987       1.0000          .0000       10.000    
     3 'Normalizat'    .74163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0326       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=   4361.032     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      229 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.520        11.268        .11320E-03    .25618E-02
   2  Index         3.6988        1.2162        .11918E-01    .33817E-03
   3  Normalizat    .74163        .24600        .26817E-03   -.17364E-03
   4  Prefactor     1.0326        .23651        .22688E-03   -.17585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5204
  Index      = 3.69877
  Normalizat = 0.741633
  Prefactor  = 1.03257
 **********
 **   18 **HESSE 
 **********

 FCN=   4361.032     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.520        10.904        .22640E-04   -1.5000    
   2  Index         3.6988        1.1770        .47674E-03   -.26328    
   3  Normalizat    .74163        .24642        .10727E-04   -1.0227    
   4  Prefactor     1.0326        .23682        .45376E-04   -.91652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41165e-09
Minuit parameter uncertainties:
  1  10.9054
  2  1.18898
  3  0.246788
  4  0.237058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591008': 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) = 4361.03153104
delta logL = 0.200846888242

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.252e+01  1.091e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.699e+00  1.189e+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:  1.033e+00  2.371e-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.416e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.70 +/- 1.19
Photon Flux (Free Index): 1.16e-07 +/- 8.58e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.37e-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/591008/cmap_HighResolution_390960001_391219201_4FGL_J2256.0-2740_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', comment='SUCCESS', photon_flux='9.51e-08', energy_flux2='1.83e-05', photon_flux_error='9.35e-08', dlogl='2.01e-01', energy_flux='1.88e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-29 02:53:17.754970', photon_index_error2='1.19', photon_index2='3.70', ts='2.02', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.42e-07', energy_flux_error2='1.37e-05', EG='0.77', time_epoch_completed='1632909197.76', return_code='0', job_id='591008', GAL2='1.03', EG2='0.74', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='8.58e-08', ts2='2.55', photon_index='3.02' WHERE bin_id='585' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:53:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 591008: <4FGL_J2256.0-2740_daily_bin585> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin585> 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) <bullet0094>, 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:53:18 2021
Results reported at Wed Sep 29 02:53:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin585 344.025 -27.6739 390960001 391219201 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 :                                   564.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            757 sec.

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

