/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 158 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin388
RA = 344.025, Dec = -27.6739
tmin = 339897601, tmax = 340156801
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='590703', job_status='RUN', time_executed='2021-09-29 02:43:08.836804', time_epoch_executed='1632908588.84' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590703

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590703/ft1_4FGL_J2256.0-2740_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590703/ft1_4FGL_J2256.0-2740_daily_bin388.fits outfile=/scratch/kocevski/590703/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin388.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=339897601.0 tmax=340156801.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.29
user 3.07
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590703/ft1_filtered_4FGL_J2256.0-2740_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/590703/ltcube_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.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/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits
.....................!
real 12.10
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590703/ft1_filtered_4FGL_J2256.0-2740_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/590703/ltcube_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.fits outfile=/scratch/kocevski/590703/expmap_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.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/590703/ltcube_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.fits
.....................!
real 191.98
user 186.20
sys 5.47

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/590703/ft1_filtered_4FGL_J2256.0-2740_daily_bin388.fits scfile=/scratch/kocevski/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits outfile=/scratch/kocevski/590703/cmap_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590703/ft1_filtered_4FGL_J2256.0-2740_daily_bin388.fits scfile=/scratch/kocevski/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits outfile=/scratch/kocevski/590703/cmap_HighResolution_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590703/ft1_filtered_4FGL_J2256.0-2740_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/590703/ft2_4FGL_J2256.0-2740_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590703/Model_4FGL_J2256.0-2740_daily_bin388.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/590703/ft1_filtered_4FGL_J2256.0-2740_daily_bin388.fits.....................!
real 34.53
user 33.27
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.378       1.0000         .10000E-03   10000.    
     6 'norm      '    .10547E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.607       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15029E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .58451       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24364E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.758       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    32.017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    98.457       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .59733       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=   3542.568     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     2791 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.755        26.674        .59273E-04    .25337E-04
   2  Prefactor     .10006E-03    35.072        .35146E-02** at limit **
   3  norm          .10000E-03    27.524        .18142E-02** at limit **
   4  Prefactor     .10000E-03    36.748        .18142E-02** at limit **
   5  Prefactor     13.379        13.306        .10951E-03    .80662E-04
   6  norm          .10000E-03    6.7429        .20460E-02** at limit **
   7  Prefactor     48.360        61.514        .57678E-04    .28306E-03
   8  Prefactor     16.611        17.541        .98282E-04   -.26628E-03
   9  norm          .10000E-03    2.1084        .84174E-03** at limit **
  10  Prefactor     .10000E-03    10.132        .18142E-02** at limit **
  11  Prefactor     .10001E-03    105.86        .28895E-02** at limit **
  12  norm          .58450        .65689        .50307E-03    .72366E-03
  13  Prefactor     .10000E-03    63.640        .14727    ** at limit **
  14  Prefactor     14.758        13.784        .10426E-03    .31622E-05
  15  Prefactor     .10000E-03    6.3187        .14573E-02** at limit **
  16  norm          32.015        13.727        .70814E-04   -.14598E-03
  17  Prefactor     .10000E-03    20.022        .18142E-02** at limit **
  18  norm          .10000E-03    3.6251        .17210E-02** at limit **
  19  Prefactor     .10000E-03    14.309        .18142E-02** at limit **
  20  Prefactor     98.491        136.31        .40513E-04    .62298E-04
  21  Normalizat    1.0626        .26539        .21891E-03   -.13370E-03
  22  Prefactor     .59718        .23408        .26411E-03   -.33703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.7549
  Prefactor  = 0.00010006
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 13.3793
  norm       = 0.0001
  Prefactor  = 48.3603
  Prefactor  = 16.6108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.5845
  Prefactor  = 0.000100001
  Prefactor  = 14.7578
  Prefactor  = 0.0001
  norm       = 32.0154
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.491
  Normalizat = 1.06259
  Prefactor  = 0.597183
 **********
 **   18 **HESSE 
 **********

 FCN=   3542.568     FROM HESSE     STATUS=OK           332 CALLS     3123 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.755        26.674        .11855E-04   -1.4354    
   2  Prefactor     .10006E-03    35.390        .70292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.379        13.305        .43805E-05   -1.4976    
   6  norm          .10000E-03    6.7523        .40920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.360        61.382        .11536E-04   -1.4316    
   8  Prefactor     16.611        17.540        .39313E-05   -1.4893    
   9  norm          .10000E-03    2.1084        .16835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    107.07        .57791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .58450        .65435        .20123E-04   -1.5555    
  13  Prefactor     .10000E-03    63.196        .14813       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.758        13.783        .41705E-05   -1.4939    
  15  Prefactor     .10000E-03    6.3192        .29146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.015        13.727        .14163E-04   -1.4576    
  17  Prefactor     .10000E-03    20.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6320        .34419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     98.491        136.31        .81025E-05   -1.3720    
  21  Normalizat    1.0626        .26545        .43781E-04   -.90962    
  22  Prefactor     .59718        .23424        .52821E-04   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57376e-09
Minuit parameter uncertainties:
  1  26.681
  2  0.00291057
  3  0.000373958
  4  0.000687084
  5  13.308
  6  6.3253e-05
  7  61.462
  8  17.5455
  9  3.06779e-06
  10  8.30097e-07
  11  0.00220395
  12  0.654359
  13  0.000538743
  14  13.7862
  15  9.80982e-06
  16  13.7284
  17  0.000302758
  18  3.85315e-05
  19  0.000165771
  20  136.745
  21  0.265782
  22  0.234626
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.204e-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:  5.972e-01  2.346e-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.063e+00  2.658e-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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590703/likelihoodResults_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.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) = 3542.56765666
delta logL = -4.47871884717e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3542.56762631
delta logL = -1.44445498336e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45242E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1851       1.0000          .0000       10.000    
     3 'Normalizat'    1.0626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59722       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=   3542.568     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      273 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    13.395        .60520E-01** at limit **
   2  Index         3.1910        5.9497        .50000       -.72074E-06
   3  Normalizat    1.0626        .57630E-02    .39785E-01    .47057E-04
   4  Prefactor     .59719        .53715E-02    .59703E-01    .40915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 3.19101
  Normalizat = 1.06259
  Prefactor  = 0.597188
 **********
 **   18 **HESSE 
 **********

 FCN=   3542.568     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      316 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    20.104        .50931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1910        7.9282        .50000       -.37020    
   3  Normalizat    1.0626        .61420E-02    .21891E-03   -.90962    
   4  Prefactor     .59719        .57170E-02    .26411E-03   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39829e-09
Minuit parameter uncertainties:
  1  0.000647651
  2  228.179
  3  0.00614201
  4  0.00571703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590703': 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): 102
logL (Free Index) = 3542.56761173
delta logL = 1.39160874824e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.477e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.191e+00  2.282e+02  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:  5.972e-01  5.717e-03  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.063e+00  6.142e-03  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/590703/cmap_HighResolution_339897601_340156801_4FGL_J2256.0-2740_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-29 02:51:35.045393', job_id='590703', GAL2='0.60', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632909095.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='1.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='388' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 590703: <4FGL_J2256.0-2740_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin388 344.025 -27.6739 339897601 340156801 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 :                                   504.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            675 sec.

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

