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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin784
RA = 344.025, Dec = -27.6739
tmin = 442540801, tmax = 442800001
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='592323', job_status='RUN', time_executed='2021-09-29 02:47:52.643330', time_epoch_executed='1632908872.64' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='784'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592323/ft1_4FGL_J2256.0-2740_daily_bin784.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592323/ft2_4FGL_J2256.0-2740_daily_bin784.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592323/ft1_4FGL_J2256.0-2740_daily_bin784.fits outfile=/scratch/kocevski/592323/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin784.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=442540801.0 tmax=442800001.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.37
user 3.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592323/ft1_filtered_4FGL_J2256.0-2740_daily_bin784.fits" evtable="EVENTS" scfile=/scratch/kocevski/592323/ft2_4FGL_J2256.0-2740_daily_bin784.fits sctable="SC_DATA" outfile=/scratch/kocevski/592323/ltcube_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.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/592323/ft2_4FGL_J2256.0-2740_daily_bin784.fits
.....................!
real 11.83
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592323/ft1_filtered_4FGL_J2256.0-2740_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/592323/ft2_4FGL_J2256.0-2740_daily_bin784.fits sctable="SC_DATA" expcube=/scratch/kocevski/592323/ltcube_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.fits outfile=/scratch/kocevski/592323/expmap_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.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/592323/ltcube_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.fits
.....................!
real 190.63
user 185.52
sys 4.75

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/592323/ft1_filtered_4FGL_J2256.0-2740_daily_bin784.fits scfile=/scratch/kocevski/592323/ft2_4FGL_J2256.0-2740_daily_bin784.fits outfile=/scratch/kocevski/592323/cmap_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.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.54
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592323/ft1_filtered_4FGL_J2256.0-2740_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/592323/ft2_4FGL_J2256.0-2740_daily_bin784.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592323/Model_4FGL_J2256.0-2740_daily_bin784.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/592323/ft1_filtered_4FGL_J2256.0-2740_daily_bin784.fits.....................!
real 52.16
user 50.70
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0833       1.0000         .10000E-03   10000.    
     3 'norm      '    .28588E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6077       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2669       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.057       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.503       1.0000         .10000E-03   10000.    
    20 'Prefactor '    123.30       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67815       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0257       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=   6993.204     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2374 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.449        15.471        .27305E-02   -.63303E-04
   2  Prefactor     1.0859        3.2035        .53816E-01    .96622E-03
   3  norm          .10000E-03    9.7931        .14278    ** at limit **
   4  Prefactor     11.267        12.722        .29834E-02    .18670E-02
   5  Prefactor     10.033        9.7740        .31626E-02   -.10109E-02
   6  norm          .10000E-03    .45552        .90712E-02** at limit **
   7  Prefactor     .10000E-03    54.660        .90712E-02** at limit **
   8  Prefactor     4.6066        7.2869        .46878E-02    .29067E-03
   9  norm          3.3246        3.4438        .55501E-02    .44322E-03
  10  Prefactor     8.0367        13.566        .35360E-02   -.27694E-03
  11  Prefactor     5.2654        6.1365        .43785E-02    .46869E-03
  12  norm          .10000E-03    .11675        .90712E-02** at limit **
  13  Prefactor     .10000E-03    19.472        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.8901        .90712E-02** at limit **
  15  Prefactor     .10000E-03    1.9059        .90712E-02** at limit **
  16  norm          7.7655        6.2018        .35974E-02   -.45981E-03
  17  Prefactor     42.057        32.937        .15453E-02    .19013E-03
  18  norm          .10000E-03    .91219        .90712E-02** at limit **
  19  Prefactor     22.504        19.451        .21110E-02    .81182E-04
  20  Prefactor     123.30        79.111        .90617E-03    .19058E-03
  21  Normalizat    .67812        .14868        .41998E-01    .29717E-04
  22  Prefactor     1.0257        .14322        .41613E-01   -.22349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4494
  Prefactor  = 1.08595
  norm       = 0.000100003
  Prefactor  = 11.2672
  Prefactor  = 10.0328
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.60664
  norm       = 3.3246
  Prefactor  = 8.0367
  Prefactor  = 5.26544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.76555
  Prefactor  = 42.0569
  norm       = 0.0001
  Prefactor  = 22.5042
  Prefactor  = 123.303
  Normalizat = 0.678121
  Prefactor  = 1.02571
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.204     FROM HESSE     STATUS=OK           348 CALLS     2722 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.449        15.470        .10922E-03   -1.4974    
   2  Prefactor     1.0859        2.9778        .24643E-02   -1.5500    
   3  norm          .10000E-03    119.86        .50097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.267        12.680        .11934E-03   -1.5037    
   5  Prefactor     10.033        9.7546        .12650E-03   -1.5074    
   6  norm          .10000E-03    .45748        .55093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6066        7.2869        .18751E-03   -1.5279    
   9  norm          3.3246        3.4256        .13217E-03   -1.5343    
  10  Prefactor     8.0367        13.587        .14144E-03   -1.5141    
  11  Prefactor     5.2654        6.0747        .16280E-03   -1.5249    
  12  norm          .10000E-03    .11885        .54721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8972        .13884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9098        .11269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7655        6.1973        .14390E-03   -1.5151    
  17  Prefactor     42.057        32.983        .61814E-04   -1.4410    
  18  norm          .10000E-03    .93201        .77904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.504        19.449        .84438E-04   -1.4759    
  20  Prefactor     123.30        79.244        .36247E-04   -1.3483    
  21  Normalizat    .67812        .17296        .24732E-03   -1.0476    
  22  Prefactor     1.0257        .16795        .20956E-03   -.91877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88505e-08
Minuit parameter uncertainties:
  1  15.4743
  2  2.97824
  3  0.00111268
  4  12.6831
  5  9.75615
  6  3.05134e-06
  7  0.000442877
  8  7.28829
  9  3.42582
  10  13.5927
  11  6.07537
  12  4.40825e-08
  13  3.05961e-06
  14  9.27388e-06
  15  6.92901e-06
  16  6.19777
  17  32.9977
  18  5.67588e-06
  19  19.4545
  20  79.312
  21  0.1731
  22  0.168034
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.265e+00  6.075e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.026e+00  1.680e-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:  6.781e-01  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 7.11e-06 +/- 8.20e-06

TS (Fixed Index): 1.76
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592323/likelihoodResults_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.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) = 6993.01015162
delta logL = 0.194190055089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6993.00515921
delta logL = 0.199182461854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8826       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4451       1.0000          .0000       10.000    
     3 'Normalizat'    .69161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0157       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=   6993.005     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8753        4.4432        .45509E-02    .28129E-03
   2  Index         2.4419        .54241        .23733       -.72095E-04
   3  Normalizat    .69163        .13851        .42178E-01    .25977E-04
   4  Prefactor     1.0156        .14173        .42601E-01    .29910E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.87526
  Index      = 2.44186
  Normalizat = 0.69163
  Prefactor  = 1.01563
 **********
 **   18 **HESSE 
 **********

 FCN=   6993.005     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8753        4.9480        .16049E-03   -1.5266    
   2  Index         2.4419        .78876        .10236E-01   -.53708    
   3  Normalizat    .69163        .16316        .24510E-03   -1.0422    
   4  Prefactor     1.0156        .16605        .21042E-03   -.92210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88615e-12
Minuit parameter uncertainties:
  1  4.94843
  2  0.793261
  3  0.16327
  4  0.166132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592323': 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) = 6993.00515101
delta logL = 0.199190657564

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.875e+00  4.948e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.442e+00  7.933e-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:  1.016e+00  1.661e-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:  6.916e-01  1.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.44 +/- 0.79
Photon Flux (Free Index): 2.82e-08 +/- 3.06e-08
Energy Flux (Free Index): 8.77e-06 +/- 8.58e-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/592323/cmap_HighResolution_442540801_442800001_4FGL_J2256.0-2740_daily_bin784.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='8.77e-06', photon_flux_error='4.15e-08', dlogl='1.99e-01', energy_flux='7.11e-06', photon_flux2='2.82e-08', job_status='DONE', time_completed='2021-09-29 02:59:19.203500', photon_index_error2='0.79', photon_index2='2.44', ts='1.76', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='8.58e-06', EG='0.68', time_epoch_completed='1632909559.2', return_code='0', job_id='592323', GAL2='1.02', EG2='0.69', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='3.06e-08', ts2='2.17', photon_index='3.02' WHERE bin_id='784' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 592323: <4FGL_J2256.0-2740_daily_bin784> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin784> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:17 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:18 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:18 2021
Terminated at Wed Sep 29 02:59:19 2021
Results reported at Wed Sep 29 02:59:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin784 344.025 -27.6739 442540801 442800001 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 :                                   661.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

