/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 149 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 = 7444
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin376
RA = 344.025, Dec = -27.6739
tmin = 336787201, tmax = 337046401
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='590686', job_status='RUN', time_executed='2021-09-29 02:43:01.273988', time_epoch_executed='1632908581.27' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590686

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590686/ft1_4FGL_J2256.0-2740_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590686/ft2_4FGL_J2256.0-2740_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590686/ft1_4FGL_J2256.0-2740_daily_bin376.fits outfile=/scratch/kocevski/590686/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin376.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=336787201.0 tmax=337046401.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 6.75
user 6.46
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590686/ft2_4FGL_J2256.0-2740_daily_bin376.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/590686/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin376.fits evtable="EVENTS" outfile="/scratch/kocevski/590686/ft1_filtered_4FGL_J2256.0-2740_daily_bin376.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590686/ft1_filtered_4FGL_J2256.0-2740_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/590686/ft2_4FGL_J2256.0-2740_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/590686/ltcube_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.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/590686/ft2_4FGL_J2256.0-2740_daily_bin376.fits
.....................!
real 11.44
user 11.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590686/ft1_filtered_4FGL_J2256.0-2740_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/590686/ft2_4FGL_J2256.0-2740_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/590686/ltcube_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.fits outfile=/scratch/kocevski/590686/expmap_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.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/590686/ltcube_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.fits
.....................!
real 190.79
user 185.20
sys 5.28

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/590686/ft1_filtered_4FGL_J2256.0-2740_daily_bin376.fits scfile=/scratch/kocevski/590686/ft2_4FGL_J2256.0-2740_daily_bin376.fits outfile=/scratch/kocevski/590686/cmap_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590686/ft1_filtered_4FGL_J2256.0-2740_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/590686/ft2_4FGL_J2256.0-2740_daily_bin376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590686/Model_4FGL_J2256.0-2740_daily_bin376.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/590686/ft1_filtered_4FGL_J2256.0-2740_daily_bin376.fits.....................!
real 50.41
user 49.04
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.592       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.751       1.0000         .10000E-03   10000.    
     9 'norm      '    11.094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13624E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0366       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6247       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.429       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96800       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84746       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6598.275     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2423 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8901         .0000    ** at limit **
   2  Prefactor     .10000E-03    2.3060         .0000    ** at limit **
   3  norm          .10000E-03    4.9674         .0000    ** at limit **
   4  Prefactor     .10000E-03    6.8700         .0000    ** at limit **
   5  Prefactor     11.595        9.2344         .0000        .18351E-02
   6  norm          2.0721        1.5384         .0000        .14656E-03
   7  Prefactor     .10000E-03    18.035         .0000    ** at limit **
   8  Prefactor     13.758        9.8195         .0000        .53225E-02
   9  norm          11.094        4.0758         .0000       -.17046E-03
  10  Prefactor     .10000E-03    3.7096         .0000    ** at limit **
  11  Prefactor     .10000E-03    3.1075         .0000    ** at limit **
  12  norm          .13650E-01    .39045         .0000        .21283E-02
  13  Prefactor     .10000E-03    23.900         .0000    ** at limit **
  14  Prefactor     .70084        15.435         .0000        .23645E-01
  15  Prefactor     9.0370        8.1533         .0000       -.15981E-02
  16  norm          7.6257        7.1023         .0000        .11222E-02
  17  Prefactor     .10000E-03    91.412         .0000    ** at limit **
  18  norm          .10000E-03    .95784         .0000    ** at limit **
  19  Prefactor     .10000E-03    4.9416         .0000    ** at limit **
  20  Prefactor     54.159        73.954         .0000        .79460E-06
  21  Normalizat    .96759        .15353         .0000       -.28645E-04
  22  Prefactor     .84789        .14904         .0000       -.17272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.595
  norm       = 2.07207
  Prefactor  = 0.0001
  Prefactor  = 13.7575
  norm       = 11.0943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0136505
  Prefactor  = 0.0001
  Prefactor  = 0.700836
  Prefactor  = 9.03704
  norm       = 7.62573
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1595
  Normalizat = 0.967592
  Prefactor  = 0.84789
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.275     FROM HESSE     STATUS=OK           340 CALLS     2763 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3170        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.9711        .17682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.595        9.2523        .11766E-03   -1.5027    
   6  norm          2.0721        1.5325        .84156E-04   -1.5420    
   7  Prefactor     .10000E-03    18.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.758        9.8884        .10801E-03   -1.4966    
   9  norm          11.094        4.0677        .93032E-04   -1.5042    
  10  Prefactor     .10000E-03    3.7120        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1329        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13650E-01    2.3857        .87773E-03   -1.5685    
  13  Prefactor     .10000E-03    23.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .70084        16.106        .24170E-02   -1.5541    
  15  Prefactor     9.0370        8.2532        .13333E-03   -1.5107    
  16  norm          7.6257        7.1014        .14523E-03   -1.5156    
  17  Prefactor     .10000E-03    92.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5838        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9439        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.159        74.121        .54368E-04   -1.4235    
  21  Normalizat    .96759        .18326        .22140E-03   -.94124    
  22  Prefactor     .84789        .17734        .23506E-03   -.97986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71517e-08
Minuit parameter uncertainties:
  1  1.22496e-05
  2  2.3841e-06
  3  1.98161e-05
  4  8.72372e-06
  5  9.25342
  6  1.53254
  7  8.6952e-05
  8  9.88957
  9  4.06777
  10  1.96797e-06
  11  1.22057e-07
  12  0.35961
  13  0.000152474
  14  6.72088
  15  8.25419
  16  7.10214
  17  9.72248e-06
  18  1.87332e-06
  19  1.14591e-05
  20  74.2473
  21  0.183379
  22  0.177456
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.221e-07  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:  8.479e-01  1.775e-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:  9.676e-01  1.834e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590686/likelihoodResults_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.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) = 6598.27610675
delta logL = -0.00152178163898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6598.27458508
delta logL = -1.1372321751e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0161       1.0000          .0000       10.000    
     3 'Normalizat'    .96756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84795       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=   6598.275     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.378        .13942E-01** at limit **
   2  Index         2.7811        6.6984        .50000       -.12196E-06
   3  Normalizat    .96759        .17050E-01    .22140E-03   -.34507E-04
   4  Prefactor     .84789        .17140E-01    .23506E-03   -.30228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.78111
  Normalizat = 0.967592
  Prefactor  = 0.84789
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.275     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9517        .28022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7811        7.3397        .50000       -.45981    
   3  Normalizat    .96759        .17395        .88558E-05   -.94124    
   4  Prefactor     .84789        .17492        .94024E-05   -.97986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06525e-11
Minuit parameter uncertainties:
  1  1.67253e-05
  2  98.7805
  3  0.174054
  4  0.175039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590686': 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) = 6598.27458441
delta logL = 5.613974281e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.673e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.781e+00  9.878e+01  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.479e-01  1.750e-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:  9.676e-01  1.741e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/590686/cmap_HighResolution_336787201_337046401_4FGL_J2256.0-2740_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-29 02:54:11.879988', job_id='590686', GAL2='0.85', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632909251.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='376' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 590686: <4FGL_J2256.0-2740_daily_bin376> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin376> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:19 2021
Job was executed on host(s) <bullet0237>, 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:54:12 2021
Results reported at Wed Sep 29 02:54:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin376 344.025 -27.6739 336787201 337046401 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 :                                   665.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

