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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin998
RA = 344.025, Dec = -27.6739
tmin = 498009601, tmax = 498268801
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='592644', job_status='RUN', time_executed='2021-09-29 02:48:09.641242', time_epoch_executed='1632908889.64' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592644/ft1_4FGL_J2256.0-2740_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592644/ft1_4FGL_J2256.0-2740_daily_bin998.fits outfile=/scratch/kocevski/592644/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin998.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.15
user 7.85
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.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/592644/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.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/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/592644/ltcube_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.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/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits
.....................!
real 12.21
user 11.61
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/592644/ltcube_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.fits outfile=/scratch/kocevski/592644/expmap_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.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/592644/ltcube_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.fits
.....................!
real 192.11
user 186.51
sys 5.26

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/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.fits scfile=/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits outfile=/scratch/kocevski/592644/cmap_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.fits scfile=/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits outfile=/scratch/kocevski/592644/cmap_HighResolution_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/592644/ft2_4FGL_J2256.0-2740_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592644/Model_4FGL_J2256.0-2740_daily_bin998.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/592644/ft1_filtered_4FGL_J2256.0-2740_daily_bin998.fits.....................!
real 31.02
user 29.77
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.806       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .90207       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20388E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6961       1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    95.004       1.0000         .10000E-03   10000.    
    18 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.600       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2650       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .54530       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=   2875.882     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2388 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.808        12.118        .88147E-07   -.93242E-05
   2  Prefactor     .10000E-03    2.2565       -.15380E-07** at limit **
   3  norm          17.191        23.702       -.18456E-05   -.13680E-04
   4  Prefactor     .10000E-03    8.3940       -.24053E-06** at limit **
   5  Prefactor     .10000E-03    12.412        .18277E-05** at limit **
   6  norm          .89803        2.3562        .40849E-05    .78685E-03
   7  Prefactor     29.032        58.488        .61515E-05    .54291E-04
   8  Prefactor     .10000E-03    9.9194       -.11254E-05** at limit **
   9  norm          .10001E-03    3.9881        .84816E-07** at limit **
  10  Prefactor     23.087        27.231       -.32606E-05    .37432E-03
  11  Prefactor     2.6819        18.856        .54286E-05    .69202E-04
  12  norm          .10000E-03    .38899       -.53850E-06** at limit **
  13  Prefactor     .10000E-03    37.058       -.80981E-06** at limit **
  14  Prefactor     84.460        38.775        .43529E-06   -.22611E-04
  15  Prefactor     .10000E-03    9.0310       -.70591E-07** at limit **
  16  norm          .10000E-03    3.4246        .10413E-07** at limit **
  17  Prefactor     95.046        68.905        .45326E-05    .54137E-05
  18  norm          .10000E-03    1.5938       -.37904E-07** at limit **
  19  Prefactor     25.601        37.660        .99067E-06   -.13788E-04
  20  Prefactor     .10000E-03    71.761        .33942E-05** at limit **
  21  Normalizat    1.2642        .25936       -.66478E-05    .29377E-03
  22  Prefactor     .54614        .23516        .43956E-05   -.86383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8078
  Prefactor  = 0.0001
  norm       = 17.1905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.898034
  Prefactor  = 29.0324
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 23.0874
  Prefactor  = 2.68194
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.4605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 95.0461
  norm       = 0.0001
  Prefactor  = 25.6005
  Prefactor  = 0.0001
  Normalizat = 1.26415
  Prefactor  = 0.546139
 **********
 **   18 **HESSE 
 **********

 FCN=   2875.882     FROM HESSE     STATUS=OK           340 CALLS     2728 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.808        12.119        .11659E-03   -1.5021    
   2  Prefactor     .10000E-03    2.2587        .78677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.191        23.728        .96594E-04   -1.4878    
   4  Prefactor     .10000E-03    8.3987        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .89803        2.3059        .13018E-02   -1.5518    
   7  Prefactor     29.032        58.101        .74491E-04   -1.4630    
   8  Prefactor     .10000E-03    10.027        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    13.996        .19795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.087        26.121        .83462E-04   -1.4747    
  11  Prefactor     2.6819        16.931        .24811E-03   -1.5380    
  12  norm          .10000E-03    .41168        .61642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     84.460        38.768        .43710E-04   -1.3867    
  15  Prefactor     .10000E-03    9.0533        .15716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.4255        .96927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     95.046        68.800        .20618E-03   -1.3755    
  18  norm          .10000E-03    1.5986        .66078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.601        37.714        .79174E-04   -1.4696    
  20  Prefactor     .10000E-03    71.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2642        .29243        .20436E-03   -.84643    
  22  Prefactor     .54614        .26726        .28669E-03   -1.0990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.704e-09
Minuit parameter uncertainties:
  1  12.1216
  2  4.22944e-06
  3  23.7407
  4  1.25859e-05
  5  0.000134273
  6  2.30612
  7  58.2147
  8  6.23012e-05
  9  0.000682476
  10  26.1335
  11  13.4825
  12  3.4992e-06
  13  4.63564e-05
  14  38.7796
  15  1.38363e-05
  16  3.34032e-07
  17  68.8578
  18  4.84619e-06
  19  37.7488
  20  0.000121805
  21  0.292815
  22  0.267882
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.682e+00  1.348e+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:  5.461e-01  2.679e-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.264e+00  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592644/likelihoodResults_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.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) = 2875.75626929
delta logL = 0.125540792783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2875.38550001
delta logL = 0.49631007456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69803E-01   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.2203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57854       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=   2875.385     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      324 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69754E-01    5.0610        .36246E-02    .27138E-02
   2  Index        10.0000        9.7584        .50000    ** at limit **
   3  Normalizat    1.2207        .14534        .34411E-01   -.27253E-03
   4  Prefactor     .57828        .12647        .63141E-01    .84724E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.069754
  Index      = 10
  Normalizat = 1.22066
  Prefactor  = 0.578278
 **********
 **   18 **HESSE 
 **********

 FCN=   2875.385     FROM HESSE     STATUS=OK            33 CALLS      357 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69754E-01    .83699E-01    .16745E-03   -1.5655    
   2  Index        10.0000        8.0108        .60326E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2207        .27857        .20714E-03   -.85967    
   4  Prefactor     .57828        .26545        .27937E-03   -1.0851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71947e-10
Minuit parameter uncertainties:
  1  0.0836991
  2  2.1983e-05
  3  0.278911
  4  0.266028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592644': 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) = 2875.38549899
delta logL = 0.496311093249

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.975e-02  8.370e-02  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  2.198e-05  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  5.783e-01  2.660e-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.221e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.74e-08 +/- 5.51e-08
Energy Flux (Free Index): 5.30e-06 +/- 6.20e-06

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/592644/cmap_HighResolution_498009601_498268801_4FGL_J2256.0-2740_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', energy_flux2='5.30e-06', dlogl='4.96e-01', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-29 02:56:38.188855', photon_index_error2='0.00', photon_index2='10.00', ts='0.09', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='6.20e-06', EG='1.26', time_epoch_completed='1632909398.19', return_code='0', job_id='592644', GAL2='0.58', EG2='1.22', return_code2='0', photon_flux_error2='5.51e-08', ts2='1.12', photon_index='3.02' WHERE bin_id='998' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 592644: <4FGL_J2256.0-2740_daily_bin998> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin998> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:41 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:42 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:42 2021
Terminated at Wed Sep 29 02:56:38 2021
Results reported at Wed Sep 29 02:56:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin998 344.025 -27.6739 498009601 498268801 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 :                                 1256 MB
    Average Memory :                             272.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            657 sec.

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

