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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin414
RA = 344.025, Dec = -27.6739
tmin = 346636801, tmax = 346896001
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='590744', job_status='RUN', time_executed='2021-09-29 02:42:57.830949', time_epoch_executed='1632908577.83' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590744/ft1_4FGL_J2256.0-2740_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590744/ft1_4FGL_J2256.0-2740_daily_bin414.fits outfile=/scratch/kocevski/590744/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin414.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=346636801.0 tmax=346896001.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.39
user 3.20
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.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/590744/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin414.fits evtable="EVENTS" outfile="/scratch/kocevski/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/590744/ltcube_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.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/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits
.....................!
real 11.81
user 11.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/590744/ltcube_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.fits outfile=/scratch/kocevski/590744/expmap_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.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/590744/ltcube_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.fits
.....................!
real 190.35
user 185.43
sys 4.62

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/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.fits scfile=/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits outfile=/scratch/kocevski/590744/cmap_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.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/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.fits scfile=/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits outfile=/scratch/kocevski/590744/cmap_HighResolution_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.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/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/590744/ft2_4FGL_J2256.0-2740_daily_bin414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590744/Model_4FGL_J2256.0-2740_daily_bin414.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/590744/ft1_filtered_4FGL_J2256.0-2740_daily_bin414.fits.....................!
real 49.92
user 48.64
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13538E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0011       1.0000         .10000E-03   10000.    
     6 'norm      '    .96352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86482       1.0000         .10000E-03   10000.    
     9 'norm      '    8.2421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39219E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    184.99       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91029       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80940       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=   6627.325     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2750 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9320        .10088E-06** at limit **
   2  Prefactor     .10000E-03    3.9098        .49865E-06** at limit **
   3  norm          .10000E-03    6.4131        .38292E-07** at limit **
   4  Prefactor     2.2182        19.115       -.73005E-05   -.87290E-04
   5  Prefactor     .97507        5.5634       -.25286E-05    .28984E-03
   6  norm          .96146        1.7793       -.12359E-05   -.17136E-02
   7  Prefactor     44.155        42.451        .79618E-05    .11275E-03
   8  Prefactor     .84898        4.3685        .20859E-07   -.27331E-03
   9  norm          8.2412        3.8538       -.30027E-07    .22134E-03
  10  Prefactor     .10000E-03    8.7882        .57378E-07** at limit **
  11  Prefactor     .10000E-03    4.0671       -.60823E-07** at limit **
  12  norm          1.5800        .54727       -.23355E-08    .44995E-03
  13  Prefactor     9.5994        42.112        .13061E-04   -.55569E-04
  14  Prefactor     .10000E-03    2.7827        .84490E-08** at limit **
  15  Prefactor     .10000E-03    4.5332       -.13533E-07** at limit **
  16  norm          .10000E-03    3.3216        .10332E-07** at limit **
  17  Prefactor     .10001E-03    26.377        .44505E-06** at limit **
  18  norm          .10000E-03    .64517        .94921E-08** at limit **
  19  Prefactor     20.704        17.310       -.25966E-05    .85344E-04
  20  Prefactor     185.02        111.05        .17676E-04   -.19974E-03
  21  Normalizat    .90998        .15519       -.19670E-05    .47122E-03
  22  Prefactor     .80965        .14462        .40666E-06    .16202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.21823
  Prefactor  = 0.97507
  norm       = 0.961461
  Prefactor  = 44.1547
  Prefactor  = 0.848979
  norm       = 8.24122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58002
  Prefactor  = 9.59945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 20.7039
  Prefactor  = 185.016
  Normalizat = 0.909982
  Prefactor  = 0.809648
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.325     FROM HESSE     STATUS=OK           350 CALLS     3100 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.748        .31026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.4254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2182        19.549        .27635E-03   -1.5410    
   5  Prefactor     .97507        20.528        .33382E-02   -1.5510    
   6  norm          .96146        1.5141        .12569E-02   -1.5512    
   7  Prefactor     44.155        42.209        .60342E-04   -1.4378    
   8  Prefactor     .84898        17.781        .31757E-02   -1.5524    
   9  norm          8.2412        3.8487        .10267E-03   -1.5134    
  10  Prefactor     .10000E-03    8.9289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1100        .15982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5800        .54614        .33251E-04   -1.5457    
  13  Prefactor     9.5994        41.581        .12943E-03   -1.5088    
  14  Prefactor     .10000E-03    2.7842        .13263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5651        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3527        .14486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    217.66        .79697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .64878        .63838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.704        17.301        .88031E-04   -1.4798    
  20  Prefactor     185.02        108.20        .14843E-03   -1.2979    
  21  Normalizat    .90998        .18132        .21994E-03   -.96110    
  22  Prefactor     .80965        .17231        .23152E-03   -.99374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79817e-09
Minuit parameter uncertainties:
  1  2.03241e-05
  2  0.00028054
  3  1.672e-07
  4  13.1759
  5  8.95092
  6  1.51417
  7  42.2374
  8  7.77272
  9  3.84884
  10  6.56826e-06
  11  1.05707e-05
  12  0.546145
  13  40.0043
  14  1.40857e-06
  15  1.9816e-06
  16  3.53991e-06
  17  0.00310158
  18  1.05932e-06
  19  17.3055
  20  108.317
  21  0.181437
  22  0.17242
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.057e-05  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.096e-01  1.724e-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.100e-01  1.814e-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: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590744/likelihoodResults_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.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) = 6627.32572022
delta logL = -0.00116004464144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6627.32456019
delta logL = -1.89465936273e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0309       1.0000          .0000       10.000    
     3 'Normalizat'    .90999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80967       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=   6627.129     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      278 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26404E-01    2.1532        .50416E-02    .54394E-02
   2  Index        10.0000        6.8640        .50000    ** at limit **
   3  Normalizat    .88915        .45818E-01    .21994E-03    .29886E-03
   4  Prefactor     .82386        .42951E-01    .23152E-03    .46208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0264041
  Index      = 10
  Normalizat = 0.889148
  Prefactor  = 0.823856
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.129     FROM HESSE     STATUS=OK            33 CALLS      311 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26404E-01    .54036E-01    .22659E-03   -1.5676    
   2  Index        10.0000        8.5998        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88915        .17385        .43989E-04   -.96843    
   4  Prefactor     .82386        .17288        .92607E-05   -.98855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96107e-09
Minuit parameter uncertainties:
  1  0.0540361
  2  0.000311518
  3  0.173961
  4  0.172994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590744': 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) = 6627.12870262
delta logL = 0.195857555032

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.640e-02  5.404e-02  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  3.115e-04  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.239e-01  1.730e-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.891e-01  1.740e-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/590744/cmap_HighResolution_346636801_346896001_4FGL_J2256.0-2740_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-29 02:54:19.820146', job_id='590744', GAL2='0.82', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1632909259.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.96e-01', ts2='0.41', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='414' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 590744: <4FGL_J2256.0-2740_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin414 344.025 -27.6739 346636801 346896001 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 :                                   679.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

