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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1319
RA = 344.025, Dec = -27.6739
tmin = 581212801, tmax = 581472001
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='594083', job_status='RUN', time_executed='2021-09-29 02:50:40.999727', time_epoch_executed='1632909041.0' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594083/ft1_4FGL_J2256.0-2740_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594083/ft2_4FGL_J2256.0-2740_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594083/ft1_4FGL_J2256.0-2740_daily_bin1319.fits outfile=/scratch/kocevski/594083/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1319.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=581212801.0 tmax=581472001.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 2.99
user 2.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594083/ft1_filtered_4FGL_J2256.0-2740_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/594083/ft2_4FGL_J2256.0-2740_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/594083/ltcube_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.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/594083/ft2_4FGL_J2256.0-2740_daily_bin1319.fits
.....................!
real 12.61
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594083/ft1_filtered_4FGL_J2256.0-2740_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/594083/ft2_4FGL_J2256.0-2740_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/594083/ltcube_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.fits outfile=/scratch/kocevski/594083/expmap_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.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/594083/ltcube_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.fits
.....................!
real 192.16
user 186.96
sys 4.84

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594083/ft1_filtered_4FGL_J2256.0-2740_daily_bin1319.fits scfile=/scratch/kocevski/594083/ft2_4FGL_J2256.0-2740_daily_bin1319.fits outfile=/scratch/kocevski/594083/cmap_HighResolution_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.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/594083/ft1_filtered_4FGL_J2256.0-2740_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/594083/ft2_4FGL_J2256.0-2740_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594083/Model_4FGL_J2256.0-2740_daily_bin1319.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/594083/ft1_filtered_4FGL_J2256.0-2740_daily_bin1319.fits.....................!
real 61.96
user 60.60
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .20215E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.846       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6268       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3951       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6212       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.070       1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.555       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2994       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71198       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=   7957.762     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2381 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4995        .35696E-06** at limit **
   2  Prefactor     .10000E-03    2.1538        .10322E-06** at limit **
   3  norm          .10058E-03    15.805        .35624E-05** at limit **
   4  Prefactor     3.8838        9.8338        .16746E-07   -.90889E-06
   5  Prefactor     14.848        12.213       -.64344E-06   -.32743E-03
   6  norm          1.0257        1.5584        .10532E-05    .14753E-02
   7  Prefactor     .10000E-03    20.669       -.74257E-07** at limit **
   8  Prefactor     .10000E-03    5.3126       -.54063E-06** at limit **
   9  norm          1.6267        1.7958       -.86038E-07   -.22652E-03
  10  Prefactor     .10000E-03    3.3252        .87382E-08** at limit **
  11  Prefactor     9.3980        10.682       -.34121E-06   -.15032E-03
  12  norm          2.6863        .87298        .53609E-08   -.84959E-03
  13  Prefactor     5.4137        132.20       -.50920E-05   -.40690E-04
  14  Prefactor     .10000E-03    10.987        .51879E-06** at limit **
  15  Prefactor     6.6211        6.5136        .35075E-07   -.48358E-04
  16  norm          8.1812        5.8867       -.21034E-07   -.37123E-04
  17  Prefactor     36.074        41.065       -.36229E-06   -.84204E-05
  18  norm          .10000E-03    1.4584        .32775E-06** at limit **
  19  Prefactor     79.558        29.824       -.14198E-06   -.29962E-04
  20  Prefactor     .10000E-03    40.702        .28834E-06** at limit **
  21  Normalizat    1.2993        .17930        .25238E-05   -.63989E-03
  22  Prefactor     .71217        .16569       -.38045E-05   -.34335E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100578
  Prefactor  = 3.88382
  Prefactor  = 14.8477
  norm       = 1.02572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62672
  Prefactor  = 0.0001
  Prefactor  = 9.39803
  norm       = 2.68629
  Prefactor  = 5.41368
  Prefactor  = 0.0001
  Prefactor  = 6.62113
  norm       = 8.18125
  Prefactor  = 36.0736
  norm       = 0.0001
  Prefactor  = 79.5579
  Prefactor  = 0.0001
  Normalizat = 1.29927
  Prefactor  = 0.712167
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.762     FROM HESSE     STATUS=OK           346 CALLS     2727 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1697        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10058E-03    71.938        .59628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8838        9.8229        .20478E-03   -1.5314    
   5  Prefactor     14.848        12.247        .10395E-03   -1.4937    
   6  norm          1.0257        1.5699        .15267E-02   -1.5505    
   7  Prefactor     .10000E-03    20.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6267        1.7956        .12087E-03   -1.5453    
  10  Prefactor     .10000E-03    3.3260        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3980        11.044        .13075E-03   -1.5095    
  12  norm          2.6863        .90292        .35952E-04   -1.5380    
  13  Prefactor     5.4137        133.69        .17114E-03   -1.5243    
  14  Prefactor     .10000E-03    11.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6211        6.4879        .15595E-03   -1.5193    
  16  norm          8.1812        5.8839        .14017E-03   -1.5136    
  17  Prefactor     36.074        41.154        .66729E-04   -1.4506    
  18  norm          .10000E-03    1.4829        .10505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.558        29.828        .45027E-04   -1.3922    
  20  Prefactor     .10000E-03    40.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2993        .19901        .22355E-03   -.83588    
  22  Prefactor     .71217        .17916        .28161E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88147e-09
Minuit parameter uncertainties:
  1  2.34457e-05
  2  3.706e-06
  3  0.0129148
  4  9.82702
  5  12.2493
  6  1.56997
  7  5.93975e-05
  8  2.39584e-05
  9  1.79568
  10  1.66461e-07
  11  11.046
  12  0.902924
  13  53.9402
  14  4.45573e-05
  15  6.48854
  16  5.88427
  17  41.186
  18  9.82975e-06
  19  29.834
  20  2.72088e-05
  21  0.199124
  22  0.179306
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  9.398e+00  1.105e+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:  7.122e-01  1.793e-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.299e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 7.55e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/594083/likelihoodResults_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.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) = 7956.12366401
delta logL = 1.6385354279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7956.12109259
delta logL = 1.64110684684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4090       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1889       1.0000          .0000       10.000    
     3 'Normalizat'    1.2354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75692       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=   7956.121     FROM MIGRAD    STATUS=FAILED        85 CALLS      283 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4092        8.1557        .99266E-04   -.15392E-03
   2  Index         5.1889        1.9906        .11002E-01    .33184E-03
   3  Normalizat    1.2354        .19029        .22786E-03    .13338E-03
   4  Prefactor     .75691        .17989        .27399E-03    .70373E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7956.121     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      362 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4092        8.1557        .88278E-04   -1.5243    
   2  Index         5.1889        1.9906        .10313E-02    .37791E-01
   3  Normalizat    1.2354        .19029        .18785E-03   -.85517    
   4  Prefactor     .75691        .17989        .26505E-03   -1.0134    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7956.121     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      390 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4092        6.3316        .39707E-05   -.11453E-04
   2  Index         5.1889        1.5619        .22005E-02    .13792E-04
   3  Normalizat    1.2354        .19032        .45572E-04   -.19958E-06
   4  Prefactor     .75691        .18009        .10959E-04   -.20747E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40925
  Index      = 5.18891
  Normalizat = 1.23536
  Prefactor  = 0.756915
 **********
 **   18 **HESSE 
 **********

 FCN=   7956.121     FROM HESSE     STATUS=OK            25 CALLS      415 TOTAL
                     EDM=   .72E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4092        6.1227        .79413E-06   -1.5243    
   2  Index         5.1889        1.5116        .44010E-03    .37792E-01
   3  Normalizat    1.2354        .19042        .91143E-05   -.85517    
   4  Prefactor     .75691        .18019        .21919E-05   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16972e-14
Minuit parameter uncertainties:
  1  6.12344
  2  1.53563
  3  0.190524
  4  0.180334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594083': 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) = 7956.12109259
delta logL = 1.64110685146

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.409e+00  6.123e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.189e+00  1.536e+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:  7.569e-01  1.803e-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.235e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.19 +/- 1.54
Photon Flux (Free Index): 1.18e-07 +/- 6.06e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.29e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/594083/cmap_HighResolution_581212801_581472001_4FGL_J2256.0-2740_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='1.55e-05', photon_flux_error='7.55e-08', dlogl='1.64e+00', energy_flux='1.27e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-29 03:03:04.619472', photon_index_error2='1.54', photon_index2='5.19', ts='1.42', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='8.29e-06', EG='1.30', time_epoch_completed='1632909784.62', return_code='0', job_id='594083', GAL2='0.76', EG2='1.24', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.06e-08', ts2='5.06', photon_index='3.02' WHERE bin_id='1319' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:03:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 594083: <4FGL_J2256.0-2740_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1319 344.025 -27.6739 581212801 581472001 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 :                                   738.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

