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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin136
RA = 344.025, Dec = -27.6739
tmin = 274579201, tmax = 274838401
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='589294', job_status='RUN', time_executed='2021-09-29 02:39:12.764744', time_epoch_executed='1632908352.76' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589294

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589294/ft1_4FGL_J2256.0-2740_daily_bin136.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589294/ft1_4FGL_J2256.0-2740_daily_bin136.fits outfile=/scratch/kocevski/589294/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin136.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=274579201.0 tmax=274838401.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.59
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589294/ft1_filtered_4FGL_J2256.0-2740_daily_bin136.fits" evtable="EVENTS" scfile=/scratch/kocevski/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits sctable="SC_DATA" outfile=/scratch/kocevski/589294/ltcube_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.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/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits
.....................!
real 11.71
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589294/ft1_filtered_4FGL_J2256.0-2740_daily_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits sctable="SC_DATA" expcube=/scratch/kocevski/589294/ltcube_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.fits outfile=/scratch/kocevski/589294/expmap_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.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/589294/ltcube_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.fits
.....................!
real 190.89
user 185.21
sys 5.32

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/589294/ft1_filtered_4FGL_J2256.0-2740_daily_bin136.fits scfile=/scratch/kocevski/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits outfile=/scratch/kocevski/589294/cmap_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.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.62
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589294/ft1_filtered_4FGL_J2256.0-2740_daily_bin136.fits scfile=/scratch/kocevski/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits outfile=/scratch/kocevski/589294/cmap_HighResolution_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589294/ft1_filtered_4FGL_J2256.0-2740_daily_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/589294/ft2_4FGL_J2256.0-2740_daily_bin136.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589294/Model_4FGL_J2256.0-2740_daily_bin136.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/589294/ft1_filtered_4FGL_J2256.0-2740_daily_bin136.fits.....................!
real 34.57
user 33.11
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11896E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.285       1.0000         .10000E-03   10000.    
     9 'norm      '    6.6594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .27820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6642       1.0000         .10000E-03   10000.    
    16 'norm      '    13.017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    145.51       1.0000         .10000E-03   10000.    
    18 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13366E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77614       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=   3756.594     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2370 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.311       -.57317E-06** at limit **
   2  Prefactor     .10000E-03    10.037        .37796E-06** at limit **
   3  norm          8.2803        25.394        .85085E-05    .22077E-03
   4  Prefactor     .10000E-03    9.9409       -.30168E-06** at limit **
   5  Prefactor     .10000E-03    10.759       -.95939E-06** at limit **
   6  norm          .10001E-03    3.0259       -.47938E-05** at limit **
   7  Prefactor     35.717        55.137        .95190E-05    .36234E-03
   8  Prefactor     13.287        14.403        .36996E-06    .61015E-04
   9  norm          6.6573        5.7326        .24683E-06    .41865E-03
  10  Prefactor     .10000E-03    10.350        .16288E-07** at limit **
  11  Prefactor     .10000E-03    6.2324       -.44913E-06** at limit **
  12  norm          .27818        .56880        .54418E-07    .23635E-03
  13  Prefactor     .10000E-03    31.749        .47849E-07** at limit **
  14  Prefactor     .10000E-03    6.0243        .33136E-07** at limit **
  15  Prefactor     6.6647        10.477        .21876E-06    .10150E-03
  16  norm          13.017        13.140        .19422E-06    .54150E-05
  17  Prefactor     145.47        102.94       -.27441E-05   -.26865E-04
  18  norm          .10000E-03    3.3582       -.73001E-07** at limit **
  19  Prefactor     38.580        41.474       -.29087E-06   -.12082E-04
  20  Prefactor     .10000E-03    517.77        .74420E-05** at limit **
  21  Normalizat    1.0785        .24211        .12627E-05    .14049E-03
  22  Prefactor     .77626        .21399       -.10275E-05    .32028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.28028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 35.7165
  Prefactor  = 13.2872
  norm       = 6.65725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.278179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66472
  norm       = 13.0167
  Prefactor  = 145.473
  norm       = 0.0001
  Prefactor  = 38.5795
  Prefactor  = 0.000100001
  Normalizat = 1.0785
  Prefactor  = 0.77626
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.594     FROM HESSE     STATUS=OK           338 CALLS     2708 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2803        25.610        .13917E-03   -1.5132    
   4  Prefactor     .10000E-03    9.9529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    4.7833        .19007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.717        58.949        .66860E-04   -1.4512    
   8  Prefactor     13.287        14.443        .10989E-03   -1.4979    
   9  norm          6.6573        5.7217        .12548E-03   -1.5192    
  10  Prefactor     .10000E-03    10.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2642        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .27818        .56629        .41316E-04   -1.5602    
  13  Prefactor     .10000E-03    31.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0269        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6647        10.449        .15544E-03   -1.5192    
  16  norm          13.017        13.133        .11102E-03   -1.4986    
  17  Prefactor     145.47        103.79        .16702E-03   -1.3290    
  18  norm          .10000E-03    3.4702        .21896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.580        41.469        .64519E-04   -1.4465    
  20  Prefactor     .10000E-03    519.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0785        .28476        .23740E-03   -.90445    
  22  Prefactor     .77626        .25047        .25453E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99773e-09
Minuit parameter uncertainties:
  1  0.00050608
  2  3.13798e-05
  3  25.6442
  4  1.88389e-05
  5  1.11162e-05
  6  0.000475423
  7  59.0454
  8  14.4466
  9  5.72216
  10  7.62366e-06
  11  5.0407e-06
  12  0.566304
  13  6.7336e-06
  14  1.49475e-06
  15  10.4519
  16  13.1359
  17  103.917
  18  3.9585e-06
  19  41.5
  20  0.00170701
  21  0.285168
  22  0.25084
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.763e-01  2.508e-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.078e+00  2.852e-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: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589294/likelihoodResults_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.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) = 3756.5947884
delta logL = -0.000760300743423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3756.59402826
delta logL = -1.58963302965e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0276       1.0000          .0000       10.000    
     3 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77634       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=   3756.594     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6218        .90712E-02** at limit **
   2  Index         3.0323        6.4936        .50000       -.71714E-05
   3  Normalizat    1.0785        .22657        .38954E-01    .68675E-04
   4  Prefactor     .77625        .21044        .43409E-01    .39087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.03235
  Normalizat = 1.0785
  Prefactor  = 0.776255
 **********
 **   18 **HESSE 
 **********

 FCN=   3756.594     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2692        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0323        6.4820        .50000       -.40447    
   3  Normalizat    1.0785        .26391        .23740E-03   -.90445    
   4  Prefactor     .77625        .24508        .25453E-03   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24482e-11
Minuit parameter uncertainties:
  1  1.60219e-06
  2  4.59996
  3  0.264232
  4  0.245428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589294': 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) = 3756.59402808
delta logL = 1.54363988258e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.763e-01  2.454e-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.079e+00  2.642e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/589294/cmap_HighResolution_274579201_274838401_4FGL_J2256.0-2740_daily_bin136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-29 02:47:21.484579', job_id='589294', GAL2='0.78', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632908841.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='136' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:47:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 589294: <4FGL_J2256.0-2740_daily_bin136> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin136 344.025 -27.6739 274579201 274838401 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 :                                   488.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

