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

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


Waiting 9 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7529
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin674
RA = 344.025, Dec = -27.6739
tmin = 414028801, tmax = 414288001
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='591147', job_status='RUN', time_executed='2021-09-29 02:41:07.421854', time_epoch_executed='1632908467.42' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591147/ft1_4FGL_J2256.0-2740_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591147/ft1_4FGL_J2256.0-2740_daily_bin674.fits outfile=/scratch/kocevski/591147/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin674.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.18
user 4.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.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/591147/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.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/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/591147/ltcube_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.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/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits
.....................!
real 12.03
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/591147/ltcube_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.fits outfile=/scratch/kocevski/591147/expmap_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.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/591147/ltcube_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.fits
.....................!
real 192.68
user 187.28
sys 5.09

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/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.fits scfile=/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits outfile=/scratch/kocevski/591147/cmap_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.fits scfile=/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits outfile=/scratch/kocevski/591147/cmap_HighResolution_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/591147/ft2_4FGL_J2256.0-2740_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591147/Model_4FGL_J2256.0-2740_daily_bin674.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/591147/ft1_filtered_4FGL_J2256.0-2740_daily_bin674.fits.....................!
real 32.59
user 31.41
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7729       1.0000         .10000E-03   10000.    
     3 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.434       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.244       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    212.89       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.455       1.0000         .10000E-03   10000.    
     9 'norm      '    .12332E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17582E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12398E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.970       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.403       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81633       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78173       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=   2884.706     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2741 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    80.866        .64034E-05** at limit **
   2  Prefactor     7.7722        16.546       -.13373E-05    .25867E-04
   3  norm          .10000E-03    27.199        .51838E-07** at limit **
   4  Prefactor     19.437        35.184       -.12543E-05   -.90231E-05
   5  Prefactor     43.255        32.631       -.20763E-06    .65138E-04
   6  norm          3.2076        4.2871        .54836E-06    .17175E-03
   7  Prefactor     212.77        135.80       -.26911E-05    .16031E-04
   8  Prefactor     42.445        26.969       -.14017E-05    .52887E-04
   9  norm          .10000E-03    11.227       -.16813E-05** at limit **
  10  Prefactor     .10000E-03    7.6763       -.29987E-06** at limit **
  11  Prefactor     .10000E-03    30.932       -.49647E-05** at limit **
  12  norm          .10000E-03    .30246       -.18355E-06** at limit **
  13  Prefactor     .10000E-03    104.66        .76970E-06** at limit **
  14  Prefactor     .10000E-03    12.977        .27173E-06** at limit **
  15  Prefactor     .10000E-03    7.0395       -.34433E-06** at limit **
  16  norm          .10000E-03    5.5379       -.86131E-06** at limit **
  17  Prefactor     47.872        70.168       -.29016E-05   -.50214E-04
  18  norm          .10000E-03    2.4915        .33206E-06** at limit **
  19  Prefactor     38.890        42.337       -.87144E-06   -.85083E-05
  20  Prefactor     20.282        185.26       -.35112E-05   -.22187E-04
  21  Normalizat    .81619        .34237        .13072E-04    .25898E-04
  22  Prefactor     .78188        .27756       -.97067E-05    .16426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 7.77222
  norm       = 0.0001
  Prefactor  = 19.4371
  Prefactor  = 43.2553
  norm       = 3.20761
  Prefactor  = 212.767
  Prefactor  = 42.4447
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.8716
  norm       = 0.0001
  Prefactor  = 38.8902
  Prefactor  = 20.2823
  Normalizat = 0.816191
  Prefactor  = 0.781882
 **********
 **   18 **HESSE 
 **********

 FCN=   2884.706     FROM HESSE     STATUS=OK           338 CALLS     3079 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    83.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7722        16.509        .14383E-03   -1.5150    
   3  norm          .10000E-03    27.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.437        35.085        .90855E-04   -1.4826    
   5  Prefactor     43.255        32.713        .60963E-04   -1.4392    
   6  norm          3.2076        4.2757        .10797E-03   -1.5350    
   7  Prefactor     212.77        135.10        .13856E-03   -1.2780    
   8  Prefactor     42.445        26.800        .61525E-04   -1.4404    
   9  norm          .10000E-03    11.655        .35128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6836        .14536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .31062        .57629E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    105.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0586        .13923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5794        .12379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.872        70.484        .28948E-03   -1.4323    
  18  norm          .10000E-03    2.5149        .82823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.890        42.336        .64278E-04   -1.4460    
  20  Prefactor     20.282        188.33        .88671E-04   -1.4807    
  21  Normalizat    .81619        .35181        .25775E-03   -.99471    
  22  Prefactor     .78188        .28552        .24027E-03   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78251e-10
Minuit parameter uncertainties:
  1  0.00134771
  2  16.5186
  3  3.9317e-05
  4  35.1217
  5  32.7262
  6  4.27606
  7  135.295
  8  26.8076
  9  0.000113888
  10  1.96449e-05
  11  0.000737834
  12  2.35372e-06
  13  5.62344e-06
  14  1.14613e-05
  15  2.7216e-05
  16  5.31408e-05
  17  70.6067
  18  1.41079e-05
  19  42.3684
  20  124.127
  21  0.352797
  22  0.286056
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  7.378e-04  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.819e-01  2.861e-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.162e-01  3.528e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591147/likelihoodResults_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.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) = 2884.70576934
delta logL = -0.000145268874803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2884.70562722
delta logL = -3.14835642712e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7122       1.0000          .0000       10.000    
     3 'Normalizat'    .81628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78192       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2884.646     FROM MIGRAD    STATUS=FAILED       199 CALLS      386 TOTAL
                     EDM=   .23E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8292        802.79        .18142E-01   -.82242E-02
   2  Index         4.5439        7.3760        .50000       -.21322E-04
   3  Normalizat    .77682        .10229        .25773E-03    .32642E-05
   4  Prefactor     .80497        .96286E-01    .24028E-03    .10116E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2884.646     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      481 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8292        802.79        .28423E-03   -.82242E-02
   2  Index         4.5439        7.3760        .19658E-02   -.21322E-04
   3  Normalizat    .77682        .10229        .81258E-04    .32642E-05
   4  Prefactor     .80497        .96286E-01    .55002E-04    .10116E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2884.646     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      516 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8292        9.9711        .12067E-02    .25663E-03
   2  Index         4.5439        3.2281        .21686E-01   -.29746E-04
   3  Normalizat    .77682        .31891        .10309E-04    .13674E-04
   4  Prefactor     .80497        .28343        .96111E-05    .10800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82923
  Index      = 4.54386
  Normalizat = 0.776817
  Prefactor  = 0.804972
 **********
 **   18 **HESSE 
 **********

 FCN=   2884.646     FROM HESSE     STATUS=OK            23 CALLS      539 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8292        9.7169        .48268E-04   -1.6044    
   2  Index         4.5439        3.1505        .86742E-03   -.91354E-01
   3  Normalizat    .77682        .32009        .20618E-05   -1.0093    
   4  Prefactor     .80497        .28413        .19222E-05   -.99545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06515e-10
Minuit parameter uncertainties:
  1  9.72228
  2  3.4112
  3  0.320865
  4  0.284651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591147': 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) = 2884.6458952
delta logL = 0.0597288662589

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.829e+00  9.722e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.544e+00  3.411e+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.050e-01  2.847e-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.768e-01  3.209e-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/591147/cmap_HighResolution_414028801_414288001_4FGL_J2256.0-2740_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', job_status='DONE', photon_flux_upper_limit='2.05e-07', time_completed='2021-09-29 02:49:34.545813', job_id='591147', GAL2='0.80', fit_tolerance='1e-08', EG2='0.78', EG='0.82', time_epoch_completed='1632908974.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.97e-02', ts2='0.14', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='674' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 591147: <4FGL_J2256.0-2740_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin674 344.025 -27.6739 414028801 414288001 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 :                                   482.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            526 sec.

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

