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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1141
RA = 344.025, Dec = -27.6739
tmin = 535075201, tmax = 535334401
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='592845', job_status='RUN', time_executed='2021-09-29 02:47:15.133059', time_epoch_executed='1632908835.13' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592845/ft1_4FGL_J2256.0-2740_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592845/ft1_4FGL_J2256.0-2740_daily_bin1141.fits outfile=/scratch/kocevski/592845/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1141.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=535075201.0 tmax=535334401.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 4.93
user 4.68
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592845/ft1_filtered_4FGL_J2256.0-2740_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/592845/ltcube_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.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/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits
.....................!
real 15.12
user 14.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592845/ft1_filtered_4FGL_J2256.0-2740_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/592845/ltcube_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.fits outfile=/scratch/kocevski/592845/expmap_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.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/592845/ltcube_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.fits
.....................!
real 189.87
user 184.95
sys 4.61

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/592845/ft1_filtered_4FGL_J2256.0-2740_daily_bin1141.fits scfile=/scratch/kocevski/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits outfile=/scratch/kocevski/592845/cmap_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592845/ft1_filtered_4FGL_J2256.0-2740_daily_bin1141.fits scfile=/scratch/kocevski/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits outfile=/scratch/kocevski/592845/cmap_HighResolution_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592845/ft1_filtered_4FGL_J2256.0-2740_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/592845/ft2_4FGL_J2256.0-2740_daily_bin1141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592845/Model_4FGL_J2256.0-2740_daily_bin1141.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/592845/ft1_filtered_4FGL_J2256.0-2740_daily_bin1141.fits.....................!
real 53.47
user 52.17
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3395       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36348E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.7303       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .95626E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5882       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9947       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.633       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.338       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3393       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60027       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=   6838.889     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2357 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2963        .52202E-07** at limit **
   2  Prefactor     .10000E-03    2.3054        .41813E-07** at limit **
   3  norm          .10000E-03    39.634        .37122E-06** at limit **
   4  Prefactor     .10000E-03    15.776        .23298E-07** at limit **
   5  Prefactor     4.3412        13.927        .13036E-05    .81556E-05
   6  norm          1.1037        .98880       -.22155E-07    .32737E-04
   7  Prefactor     61.837        44.981        .19471E-06   -.12608E-05
   8  Prefactor     .10000E-03    4.2759        .21968E-07** at limit **
   9  norm          .10000E-03    3.5204        .12981E-07** at limit **
  10  Prefactor     19.207        15.764        .13729E-06    .28585E-04
  11  Prefactor     .10000E-03    9.7096       -.25752E-06** at limit **
  12  norm          7.7291        1.2687        .23653E-07    .42230E-03
  13  Prefactor     .10000E-03    290.73       -.15177E-04** at limit **
  14  Prefactor     .10000E-03    7.6017        .60424E-07** at limit **
  15  Prefactor     1.5869        10.401        .25169E-05    .47652E-04
  16  norm          .10000E-03    1.7949        .25042E-07** at limit **
  17  Prefactor     6.9996        28.897        .82613E-06    .23547E-05
  18  norm          2.6807        3.1132        .32424E-06    .18046E-04
  19  Prefactor     11.630        21.891        .21459E-06   -.79003E-05
  20  Prefactor     22.335        68.245        .85413E-06   -.29493E-05
  21  Normalizat    1.3393        .17657       -.10779E-05    .27600E-05
  22  Prefactor     .60028        .15836       -.64626E-06   -.57118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34124
  norm       = 1.1037
  Prefactor  = 61.8366
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.207
  Prefactor  = 0.000100002
  norm       = 7.72907
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.58687
  norm       = 0.0001
  Prefactor  = 6.99964
  norm       = 2.68071
  Prefactor  = 11.63
  Prefactor  = 22.335
  Normalizat = 1.33927
  Prefactor  = 0.600278
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.889     FROM HESSE     STATUS=OK           344 CALLS     2701 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3229        .12264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    40.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3412        13.871        .19337E-03   -1.5291    
   6  norm          1.1037        1.1142        .74463E-03   -1.5498    
   7  Prefactor     61.837        44.442        .51027E-04   -1.4134    
   8  Prefactor     .10000E-03    4.2963        .16699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.6008        .30205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.207        15.504        .91373E-04   -1.4831    
  11  Prefactor     .10000E-03    22.760        .41457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.7291        1.1748        .30360E-04   -1.5152    
  13  Prefactor     .10000E-03    291.72        .41583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5869        10.347        .33677E-03   -1.5456    
  16  norm          .10000E-03    1.7981        .10821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9996        29.010        .15169E-03   -1.5179    
  18  norm          2.6807        3.0987        .14889E-03   -1.5380    
  19  Prefactor     11.630        21.862        .11746E-03   -1.5026    
  20  Prefactor     22.335        68.310        .84749E-04   -1.4762    
  21  Normalizat    1.3393        .20828        .22161E-03   -.82402    
  22  Prefactor     .60028        .18954        .30327E-03   -1.0757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88891e-10
Minuit parameter uncertainties:
  1  6.36593e-06
  2  4.20992e-06
  3  8.97857e-05
  4  2.83698e-05
  5  13.8814
  6  1.11427
  7  44.4654
  8  8.25999e-06
  9  1.20488e-07
  10  15.5075
  11  0.000377476
  12  1.17484
  13  0.00089802
  14  8.69014e-06
  15  8.10587
  16  1.37149e-06
  17  28.5235
  18  3.09888
  19  21.8768
  20  68.5502
  21  0.208409
  22  0.189746
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.775e-04  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:  6.003e-01  1.897e-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.339e+00  2.084e-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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592845/likelihoodResults_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.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) = 6838.8892104
delta logL = -0.000208889615351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.88900076
delta logL = 7.45817487768e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2829       1.0000          .0000       10.000    
     3 'Normalizat'    1.3393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60025       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6838.889     FROM MIGRAD    STATUS=FAILED       101 CALLS      301 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11662E-03    1697.8        .33876E-02** at limit **
   2  Index         3.7387        6.3417        .50000       -.28712E-05
   3  Normalizat    1.3393        .22058E-01    .22161E-03   -.57142E-03
   4  Prefactor     .60028        .21073E-01    .30327E-03   -.26904E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6838.889     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      427 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11662E-03    1697.8        .12108E-02** at limit **
   2  Index         3.7387        6.3417        .51247E-04   -.28712E-05
   3  Normalizat    1.3393        .22058E-01    .78333E-06   -.57142E-03
   4  Prefactor     .60028        .21073E-01    .93067E-06   -.26904E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6838.889     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      475 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6455.6        .13551E-02** at limit **
   2  Index         3.8851        5.5874        .50000        .39267E-07
   3  Normalizat    1.3393        .29025E-01    .44321E-04    .21811E-02
   4  Prefactor     .60028        .27742E-01    .12131E-04    .16689E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.88514
  Normalizat = 1.33927
  Prefactor  = 0.600283
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.889     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      504 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8988.7        .27101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8851        8.0532        .50000       -.22486    
   3  Normalizat    1.3393        .71998E-01    .88643E-05   -.82402    
   4  Prefactor     .60028        .68854E-01    .24262E-05   -1.0757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21227e-08
Minuit parameter uncertainties:
  1  0.00883838
  2  4615.35
  3  0.0720033
  4  0.0688634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592845': 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): 102
logL (Free Index) = 6838.88899999
delta logL = 1.51161748363e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  8.838e-03  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.885e+00  4.615e+03  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:  6.003e-01  6.886e-02  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.339e+00  7.200e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/592845/cmap_HighResolution_535075201_535334401_4FGL_J2256.0-2740_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-29 02:58:58.558021', job_id='592845', GAL2='0.60', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632909538.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='1.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1141' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 592845: <4FGL_J2256.0-2740_daily_bin1141> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1141 344.025 -27.6739 535075201 535334401 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 :                                   695.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

