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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin865
RA = 344.025, Dec = -27.6739
tmin = 463536001, tmax = 463795201
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='592445', job_status='RUN', time_executed='2021-09-29 02:48:54.719481', time_epoch_executed='1632908934.72' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592445/ft1_4FGL_J2256.0-2740_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592445/ft1_4FGL_J2256.0-2740_daily_bin865.fits outfile=/scratch/kocevski/592445/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin865.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=463536001.0 tmax=463795201.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.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592445/ft1_filtered_4FGL_J2256.0-2740_daily_bin865.fits" evtable="EVENTS" scfile=/scratch/kocevski/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits sctable="SC_DATA" outfile=/scratch/kocevski/592445/ltcube_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.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/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits
.....................!
real 11.64
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592445/ft1_filtered_4FGL_J2256.0-2740_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/592445/ltcube_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.fits outfile=/scratch/kocevski/592445/expmap_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.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/592445/ltcube_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.fits
.....................!
real 190.40
user 185.28
sys 4.65

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 175 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/592445/ft1_filtered_4FGL_J2256.0-2740_daily_bin865.fits scfile=/scratch/kocevski/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits outfile=/scratch/kocevski/592445/cmap_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592445/ft1_filtered_4FGL_J2256.0-2740_daily_bin865.fits scfile=/scratch/kocevski/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits outfile=/scratch/kocevski/592445/cmap_HighResolution_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592445/ft1_filtered_4FGL_J2256.0-2740_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/592445/ft2_4FGL_J2256.0-2740_daily_bin865.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592445/Model_4FGL_J2256.0-2740_daily_bin865.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/592445/ft1_filtered_4FGL_J2256.0-2740_daily_bin865.fits......................!
real 31.74
user 30.52
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20910E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.682       1.0000         .10000E-03   10000.    
     3 'norm      '    39.608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.558       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6225       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33624E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    73.813       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82328       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79441       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=   3190.675     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2373 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.639       -.20567E-05** at limit **
   2  Prefactor     20.678        13.311       -.78275E-07    .25797E-04
   3  norm          39.607        27.285        .26915E-06    .15463E-03
   4  Prefactor     .10000E-03    11.678        .36738E-07** at limit **
   5  Prefactor     .10000E-03    34.641       -.51486E-05** at limit **
   6  norm          .10001E-03    2.6156       -.31736E-05** at limit **
   7  Prefactor     24.946        53.856        .53967E-05    .32185E-03
   8  Prefactor     50.563        21.965        .32272E-06    .21951E-03
   9  norm          5.6264        4.4182        .51645E-06    .75675E-03
  10  Prefactor     .10000E-03    7.7502       -.21371E-06** at limit **
  11  Prefactor     .10006E-03    7.4815       -.17373E-05** at limit **
  12  norm          .10000E-03    .27172       -.76720E-07** at limit **
  13  Prefactor     .10000E-03    45.042        .46476E-05** at limit **
  14  Prefactor     .10000E-03    6.8265       -.93802E-07** at limit **
  15  Prefactor     .10000E-03    19.922        .58919E-06** at limit **
  16  norm          18.737        12.650       -.89590E-07    .97091E-05
  17  Prefactor     .10000E-03    36.305       -.14389E-05** at limit **
  18  norm          .10000E-03    1.7470        .11831E-06** at limit **
  19  Prefactor     .10000E-03    16.397       -.47492E-06** at limit **
  20  Prefactor     73.863        105.12        .81651E-05    .13435E-03
  21  Normalizat    .82405        .23581        .26358E-06    .46490E-03
  22  Prefactor     .79368        .21029        .49692E-06    .44547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.6781
  norm       = 39.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 24.9458
  Prefactor  = 50.5631
  norm       = 5.62643
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.8632
  Normalizat = 0.824048
  Prefactor  = 0.793679
 **********
 **   18 **HESSE 
 **********

 FCN=   3190.675     FROM HESSE     STATUS=OK           328 CALLS     2701 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.678        13.326        .88073E-04   -1.4798    
   3  norm          39.607        27.291        .63689E-04   -1.4448    
   4  Prefactor     .10000E-03    11.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    3.7108        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.946        56.943        .80147E-04   -1.4709    
   8  Prefactor     50.563        22.044        .56401E-04   -1.4285    
   9  norm          5.6264        4.3410        .99653E-04   -1.5234    
  10  Prefactor     .10000E-03    7.7602        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    45.295        .27680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .27685        .57166E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8333        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.737        12.658        .92522E-04   -1.4842    
  17  Prefactor     .10000E-03    36.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7619        .72872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     73.863        106.82        .23366E-03   -1.3987    
  21  Normalizat    .82405        .28117        .23988E-03   -.99183    
  22  Prefactor     .79368        .25266        .22806E-03   -.99962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98917e-09
Minuit parameter uncertainties:
  1  0.000298722
  2  13.3276
  3  27.2997
  4  1.95281e-07
  5  0.000259996
  6  0.000418955
  7  57.0672
  8  22.0477
  9  4.34123
  10  4.57717e-06
  11  0.00330181
  12  1.80795e-08
  13  0.000719878
  14  6.13952e-06
  15  0.000117647
  16  12.6601
  17  0.000224164
  18  1.41517e-07
  19  6.92863e-05
  20  107.103
  21  0.281667
  22  0.25303
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.001e-04  3.302e-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:  7.937e-01  2.530e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  8.240e-01  2.817e-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: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592445/likelihoodResults_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.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) = 3190.6754129
delta logL = -0.0001048062677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3190.64181707
delta logL = 0.0334910278402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6412       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1944       1.0000          .0000       10.000    
     3 'Normalizat'    .80109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80721       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=   3190.642     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      451 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6490        9.4461        .26449E-03    .32667E-05
   2  Index         4.1937        3.4787        .25350E-01    .12988E-05
   3  Normalizat    .80121        .28102        .24291E-03    .23401E-06
   4  Prefactor     .80701        .25634        .22632E-03    .80373E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.649
  Index      = 4.19368
  Normalizat = 0.801209
  Prefactor  = 0.807011
 **********
 **   18 **HESSE 
 **********

 FCN=   3190.642     FROM HESSE     STATUS=OK            25 CALLS      476 TOTAL
                     EDM=   .21E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6490        8.0786        .10580E-04   -1.5451    
   2  Index         4.1937        3.2683        .10140E-02   -.16197    
   3  Normalizat    .80121        .28114        .97164E-05   -1.0002    
   4  Prefactor     .80701        .25667        .90528E-05   -.99470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07837e-14
Minuit parameter uncertainties:
  1  7.30112
  2  3.57221
  3  0.281648
  4  0.257054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592445': 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) = 3190.64181591
delta logL = 0.0334921888057

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.649e+00  7.301e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.194e+00  3.572e+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:  8.070e-01  2.571e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  8.012e-01  2.816e-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/592445/cmap_HighResolution_463536001_463795201_4FGL_J2256.0-2740_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-29 02:56:48.905079', job_id='592445', GAL2='0.81', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1632909408.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.35e-02', ts2='0.08', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='865' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 592445: <4FGL_J2256.0-2740_daily_bin865> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin865> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:26 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:28 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:45:28 2021
Terminated at Wed Sep 29 02:56:49 2021
Results reported at Wed Sep 29 02:56:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin865 344.025 -27.6739 463536001 463795201 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 :                                   471.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            683 sec.

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

