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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin901
RA = 344.025, Dec = -27.6739
tmin = 472867201, tmax = 473126401
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='592499', job_status='RUN', time_executed='2021-09-29 02:49:29.271986', time_epoch_executed='1632908969.27' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592499/ft1_4FGL_J2256.0-2740_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592499/ft1_4FGL_J2256.0-2740_daily_bin901.fits outfile=/scratch/kocevski/592499/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin901.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=472867201.0 tmax=473126401.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.90
user 3.68
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.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/592499/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin901.fits evtable="EVENTS" outfile="/scratch/kocevski/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.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/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/592499/ltcube_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.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/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits
.....................!
real 12.07
user 11.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/592499/ltcube_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.fits outfile=/scratch/kocevski/592499/expmap_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.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/592499/ltcube_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.fits
.....................!
real 189.08
user 184.63
sys 4.10

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/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.fits scfile=/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits outfile=/scratch/kocevski/592499/cmap_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.fits scfile=/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits outfile=/scratch/kocevski/592499/cmap_HighResolution_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/592499/ft2_4FGL_J2256.0-2740_daily_bin901.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592499/Model_4FGL_J2256.0-2740_daily_bin901.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/592499/ft1_filtered_4FGL_J2256.0-2740_daily_bin901.fits.....................!
real 33.95
user 32.60
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.484       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14310E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    63.970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8051       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61900E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0671       1.0000         .10000E-03   10000.    
     9 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12431E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.821       1.0000         .10000E-03   10000.    
    12 'norm      '    .10898E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.880       1.0000         .10000E-03   10000.    
    17 'Prefactor '    94.945       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2937       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.340       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95316       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=   3595.522     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2350 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.484        17.026        .30936E-02   -.88353E-04
   2  Prefactor     .10005E-03    8.7380        .90944E-01** at limit **
   3  norm          63.970        34.448        .12544E-02    .14743E-03
   4  Prefactor     29.124        25.154        .18563E-02    .84493E-03
   5  Prefactor     .10000E-03    6.8351        .90712E-02** at limit **
   6  norm          4.8028        3.3696        .45882E-02   -.29153E-04
   7  Prefactor     .10000E-03    322.65        .10524E-01** at limit **
   8  Prefactor     9.0756        17.600        .33276E-02   -.14834E-03
   9  norm          .10000E-03    4.2119        .90712E-02** at limit **
  10  Prefactor     .10000E-03    18.923        .90712E-02** at limit **
  11  Prefactor     15.806        12.976        .25173E-02    .46319E-03
  12  norm          .10000E-03    .39985        .17209E-01** at limit **
  13  Prefactor     .10000E-03    23.949        .90712E-02** at limit **
  14  Prefactor     .10000E-03    15.910        .90712E-02** at limit **
  15  Prefactor     .10000E-03    9.0271        .90712E-02** at limit **
  16  norm          26.881        13.909        .19317E-02   -.35247E-03
  17  Prefactor     94.945        80.655        .10312E-02    .53139E-03
  18  norm          2.2938        4.2090        .67754E-02    .35667E-03
  19  Prefactor     10.337        36.271        .31151E-02    .12050E-03
  20  Prefactor     .10000E-03    67.544        .90712E-02** at limit **
  21  Normalizat    .86403        .24910        .44448E-01    .13548E-03
  22  Prefactor     .95370        .22179        .45679E-01    .11461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4845
  Prefactor  = 0.000100054
  norm       = 63.9699
  Prefactor  = 29.1235
  Prefactor  = 0.0001
  norm       = 4.80284
  Prefactor  = 0.0001
  Prefactor  = 9.07557
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8059
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.8809
  Prefactor  = 94.9447
  norm       = 2.2938
  Prefactor  = 10.337
  Prefactor  = 0.000100003
  Normalizat = 0.864026
  Prefactor  = 0.953695
 **********
 **   18 **HESSE 
 **********

 FCN=   3595.522     FROM HESSE     STATUS=OK           346 CALLS     2696 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.484        17.023        .12375E-03   -1.5060    
   2  Prefactor     .10005E-03    18.484        .55003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          63.970        34.451        .50174E-04   -1.4107    
   4  Prefactor     29.124        25.170        .74250E-04   -1.4628    
   5  Prefactor     .10000E-03    6.8449        .15309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8028        3.3602        .88233E-04   -1.5270    
   7  Prefactor     .10000E-03    329.07        .42095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0756        17.636        .13310E-03   -1.5105    
   9  norm          .10000E-03    4.2635        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.806        12.370        .10069E-03   -1.4913    
  12  norm          .10000E-03    .46079        .69922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0494        .17565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.881        13.909        .77268E-04   -1.4671    
  17  Prefactor     94.945        81.084        .41248E-04   -1.3756    
  18  norm          2.2938        4.1469        .14556E-03   -1.5405    
  19  Prefactor     10.337        35.885        .12460E-03   -1.5065    
  20  Prefactor     .10000E-03    67.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86403        .29861        .26357E-03   -.97736    
  22  Prefactor     .95370        .26449        .23834E-03   -.94289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32602e-09
Minuit parameter uncertainties:
  1  17.0312
  2  0.00199372
  3  34.4617
  4  25.1794
  5  5.06569e-08
  6  3.36037
  7  0.000657718
  8  17.646
  9  1.02818e-05
  10  0.000117222
  11  12.3719
  12  4.42966e-07
  13  0.000197173
  14  1.69627e-05
  15  7.7025e-06
  16  13.9102
  17  81.1784
  18  4.1474
  19  35.9604
  20  0.00092241
  21  0.299186
  22  0.264845
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.581e+01  1.237e+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:  9.537e-01  2.648e-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.640e-01  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 8.45e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/592499/likelihoodResults_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.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) = 3595.22355623
delta logL = 0.298582111555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3595.22251536
delta logL = 0.299622986658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3367       1.0000          .0000       10.000    
     3 'Normalizat'    .80438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0049       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=   3595.223     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.332        21.234        .11898E-03    .16363E-03
   2  Index         4.3382        2.9068        .11904E-01    .26644E-04
   3  Normalizat    .80423        .29054        .27211E-03    .37476E-04
   4  Prefactor     1.0051        .27075        .23306E-03    .87910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3325
  Index      = 4.33824
  Normalizat = 0.804228
  Prefactor  = 1.00508
 **********
 **   18 **HESSE 
 **********

 FCN=   3595.223     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.332        16.665        .47592E-05   -1.5035    
   2  Index         4.3382        2.3379        .47615E-03   -.13274    
   3  Normalizat    .80423        .29095        .10884E-04   -.99912    
   4  Prefactor     1.0051        .26996        .46613E-04   -.92560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20289e-11
Minuit parameter uncertainties:
  1  16.6716
  2  2.4346
  3  0.291519
  4  0.270327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592499': 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) = 3595.22251495
delta logL = 0.299623392001

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.133e+01  1.667e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.338e+00  2.435e+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.005e+00  2.703e-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.042e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.34 +/- 2.43
Photon Flux (Free Index): 1.48e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.10e-05 +/- 1.54e-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/592499/cmap_HighResolution_472867201_473126401_4FGL_J2256.0-2740_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.10e-05', photon_flux_error='8.45e-08', dlogl='3.00e-01', energy_flux='2.13e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-29 02:57:35.611256', photon_index_error2='2.43', photon_index2='4.34', ts='2.38', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.73e-07', energy_flux_error2='1.54e-05', EG='0.86', time_epoch_completed='1632909455.61', return_code='0', job_id='592499', GAL2='1.01', EG2='0.80', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='1.04e-07', ts2='3.16', photon_index='3.02' WHERE bin_id='901' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 592499: <4FGL_J2256.0-2740_daily_bin901> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin901> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:30 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:31 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:31 2021
Terminated at Wed Sep 29 02:57:36 2021
Results reported at Wed Sep 29 02:57:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin901 344.025 -27.6739 472867201 473126401 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 :                                   487.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

