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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin509
RA = 344.025, Dec = -27.6739
tmin = 371260801, tmax = 371520001
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='590884', job_status='RUN', time_executed='2021-09-29 02:42:46.888135', time_epoch_executed='1632908566.89' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590884

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590884/ft1_4FGL_J2256.0-2740_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590884/ft1_4FGL_J2256.0-2740_daily_bin509.fits outfile=/scratch/kocevski/590884/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin509.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=371260801.0 tmax=371520001.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 5.30
user 5.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.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/590884/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.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/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/590884/ltcube_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.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/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits
.....................!
real 11.78
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/590884/ltcube_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.fits outfile=/scratch/kocevski/590884/expmap_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.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/590884/ltcube_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.fits
.....................!
real 189.66
user 184.96
sys 4.39

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/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.fits scfile=/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits outfile=/scratch/kocevski/590884/cmap_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.fits scfile=/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits outfile=/scratch/kocevski/590884/cmap_HighResolution_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/590884/ft2_4FGL_J2256.0-2740_daily_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590884/Model_4FGL_J2256.0-2740_daily_bin509.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/590884/ft1_filtered_4FGL_J2256.0-2740_daily_bin509.fits.....................!
real 38.04
user 36.79
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.903       1.0000         .10000E-03   10000.    
     3 'norm      '    .16500E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2263       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9806       1.0000         .10000E-03   10000.    
     9 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7367       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6118       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4553       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.209       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3376       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96026       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=   4280.956     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     2799 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.003        .18142E-02** at limit **
   2  Prefactor     21.897        14.304        .85586E-04   -.21918E-04
   3  norm          .10000E-03    35.443        .10493    ** at limit **
   4  Prefactor     .10000E-03    52.498        .18142E-02** at limit **
   5  Prefactor     4.2173        14.673        .19601E-03   -.67860E-05
   6  norm          2.5438        2.9836        .11650E-03   -.18736E-03
   7  Prefactor     .10000E-03    164.03        .18142E-02** at limit **
   8  Prefactor     9.9683        17.562        .12684E-03   -.18733E-04
   9  norm          .10000E-03    8.7929        .25896E-02** at limit **
  10  Prefactor     .10000E-03    6.9820        .16879E-02** at limit **
  11  Prefactor     4.7558        16.627        .18488E-03   -.61369E-04
  12  norm          1.6120        1.1259        .44590E-04   -.37658E-03
  13  Prefactor     .10000E-03    42.111        .18142E-02** at limit **
  14  Prefactor     .10000E-03    8.2065        .18142E-02** at limit **
  15  Prefactor     6.4240        18.841        .15796E-03   -.39943E-04
  16  norm          .10000E-03    13.303        .18142E-02** at limit **
  17  Prefactor     .10000E-03    36.601        .18142E-02** at limit **
  18  norm          .10000E-03    3.0778        .11081E-02** at limit **
  19  Prefactor     15.905        50.293        .10024E-03    .52168E-05
  20  Prefactor     55.064        160.87        .26993E-03   -.14446E-04
  21  Normalizat    1.3381        .32917        .25456E-03   -.92966E-04
  22  Prefactor     .95988        .28629        .27432E-03   -.80026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21734
  norm       = 2.54382
  Prefactor  = 0.0001
  Prefactor  = 9.9683
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75581
  norm       = 1.612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42402
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9051
  Prefactor  = 55.0642
  Normalizat = 1.33813
  Prefactor  = 0.959882
 **********
 **   18 **HESSE 
 **********

 FCN=   4280.956     FROM HESSE     STATUS=OK           330 CALLS     3129 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.897        14.303        .34234E-05   -1.4772    
   3  norm          .10000E-03    33.551        .10910       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2173        14.671        .78404E-05   -1.5297    
   6  norm          2.5438        2.9825        .46600E-05   -1.5389    
   7  Prefactor     .10000E-03    164.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9683        17.561        .50735E-05   -1.5076    
   9  norm          .10000E-03    8.8293        .51792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9821        .33757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7558        16.598        .73952E-05   -1.5272    
  12  norm          1.6120        1.1254        .17836E-05   -1.5454    
  13  Prefactor     .10000E-03    42.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4240        18.819        .63186E-05   -1.5201    
  16  norm          .10000E-03    13.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0787        .22161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.905        50.280        .40098E-05   -1.4910    
  20  Prefactor     55.064        160.83        .10797E-04   -1.4222    
  21  Normalizat    1.3381        .32952        .50911E-04   -.82435    
  22  Prefactor     .95988        .28658        .10973E-04   -.94079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11815e-11
Minuit parameter uncertainties:
  1  2.78192e-05
  2  14.3055
  3  2.19933e-05
  4  9.94503e-05
  5  14.6833
  6  2.98268
  7  0.000377276
  8  17.57
  9  4.65217e-05
  10  3.58773e-06
  11  16.6143
  12  1.12544
  13  3.31768e-05
  14  6.31278e-06
  15  18.8361
  16  2.60718e-05
  17  5.56363e-05
  18  7.22662e-06
  19  50.4142
  20  162.128
  21  0.330045
  22  0.287033
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.756e+00  1.661e+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:  9.599e-01  2.870e-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.338e+00  3.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590884/likelihoodResults_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.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) = 4280.38637164
delta logL = 0.570101490285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4280.37504292
delta logL = 0.581430210731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4810       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6063       1.0000          .0000       10.000    
     3 'Normalizat'    1.2635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       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=   4280.375     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      225 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4680        85.328        .54182E-02   -.50540E-03
   2  Index         5.6104        7.3287        .34778       -.19591E-04
   3  Normalizat    1.2637        .76372E-01    .58878E-01   -.10575E-03
   4  Prefactor     1.0106        .71433E-01    .43221E-01   -.31373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46804
  Index      = 5.61037
  Normalizat = 1.26371
  Prefactor  = 1.01058
 **********
 **   18 **HESSE 
 **********

 FCN=   4280.375     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4680        22.524        .11125E-03   -1.5335    
   2  Index         5.6104        7.6810        .13960E-01    .12238    
   3  Normalizat    1.2637        .31324        .26039E-03   -.84656    
   4  Prefactor     1.0106        .28398        .26816E-03   -.92378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2582e-10
Minuit parameter uncertainties:
  1  17.6861
  2  6.83159
  3  0.313711
  4  0.284397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590884': 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) = 4280.37504161
delta logL = 0.581431516853

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.468e+00  1.769e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.610e+00  6.832e+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:  1.011e+00  2.844e-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  3.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.61 +/- 6.83
Photon Flux (Free Index): 9.93e-08 +/- 1.11e-07
Energy Flux (Free Index): 1.26e-05 +/- 1.73e-05

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/590884/cmap_HighResolution_371260801_371520001_4FGL_J2256.0-2740_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='5.81e-01', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-09-29 02:52:06.559429', photon_index_error2='6.83', photon_index2='5.61', ts='0.16', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.73e-05', EG='1.34', time_epoch_completed='1632909126.56', return_code='0', job_id='590884', GAL2='1.01', EG2='1.26', return_code2='0', photon_flux_error2='1.11e-07', ts2='1.42', photon_index='3.02' WHERE bin_id='509' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 590884: <4FGL_J2256.0-2740_daily_bin509> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin509 344.025 -27.6739 371260801 371520001 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 :                                   555.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

