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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1004
RA = 344.025, Dec = -27.6739
tmin = 499564801, tmax = 499824001
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='592654', job_status='RUN', time_executed='2021-09-29 02:46:40.531675', time_epoch_executed='1632908800.53' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592654/ft1_4FGL_J2256.0-2740_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592654/ft1_4FGL_J2256.0-2740_daily_bin1004.fits outfile=/scratch/kocevski/592654/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1004.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=499564801.0 tmax=499824001.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.03
user 4.78
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592654/ft1_filtered_4FGL_J2256.0-2740_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/592654/ltcube_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.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/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits
.....................!
real 12.57
user 12.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592654/ft1_filtered_4FGL_J2256.0-2740_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/592654/ltcube_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.fits outfile=/scratch/kocevski/592654/expmap_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.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/592654/ltcube_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.fits
.....................!
real 190.63
user 186.02
sys 4.25

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/592654/ft1_filtered_4FGL_J2256.0-2740_daily_bin1004.fits scfile=/scratch/kocevski/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits outfile=/scratch/kocevski/592654/cmap_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592654/ft1_filtered_4FGL_J2256.0-2740_daily_bin1004.fits scfile=/scratch/kocevski/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits outfile=/scratch/kocevski/592654/cmap_HighResolution_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.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/592654/ft1_filtered_4FGL_J2256.0-2740_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/592654/ft2_4FGL_J2256.0-2740_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592654/Model_4FGL_J2256.0-2740_daily_bin1004.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/592654/ft1_filtered_4FGL_J2256.0-2740_daily_bin1004.fits.....................!
real 29.67
user 28.23
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.132       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12883E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.150       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.949       1.0000         .10000E-03   10000.    
     6 'norm      '    .75718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15701E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.632       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0255       1.0000         .10000E-03   10000.    
    20 'Prefactor '    565.71       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4304       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .41521       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=   2427.623     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2388 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.134        24.005       -.14056E-05    .92460E-04
   2  Prefactor     .10000E-03    3.5592       -.89406E-07** at limit **
   3  norm          .10000E-03    69.473       -.24298E-04** at limit **
   4  Prefactor     11.152        48.035       -.79826E-06   -.16900E-04
   5  Prefactor     18.950        24.329       -.24800E-06    .59411E-03
   6  norm          .75874        3.1033        .35733E-06    .12176E-02
   7  Prefactor     .10000E-03    220.60       -.19240E-03** at limit **
   8  Prefactor     11.414        22.298       -.14890E-05    .66354E-05
   9  norm          2.7129        4.3389       -.22448E-06    .30269E-04
  10  Prefactor     .10000E-03    14.127        .61619E-05** at limit **
  11  Prefactor     .10000E-03    4.6889        .78324E-07** at limit **
  12  norm          .10000E-03    .65195       -.55392E-07** at limit **
  13  Prefactor     .10000E-03    128.73        .13251E-03** at limit **
  14  Prefactor     .10000E-03    18.148        .79696E-05** at limit **
  15  Prefactor     .10000E-03    9.5320        .40441E-07** at limit **
  16  norm          .10000E-03    15.973       -.12781E-04** at limit **
  17  Prefactor     63.597        118.13       -.38226E-04    .18155E-04
  18  norm          .10000E-03    10.549       -.11379E-05** at limit **
  19  Prefactor     9.0319        143.33        .18580E-04    .11291E-04
  20  Prefactor     565.59        333.11       -.47343E-04    .33732E-05
  21  Normalizat    1.4302        .32093        .31231E-05    .33496E-03
  22  Prefactor     .41532        .26786        .20172E-05    .31463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1515
  Prefactor  = 18.9502
  norm       = 0.758737
  Prefactor  = 0.000100004
  Prefactor  = 11.4141
  norm       = 2.71292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.5973
  norm       = 0.0001
  Prefactor  = 9.03194
  Prefactor  = 565.595
  Normalizat = 1.4302
  Prefactor  = 0.415325
 **********
 **   18 **HESSE 
 **********

 FCN=   2427.623     FROM HESSE     STATUS=OK           336 CALLS     2724 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.134        24.094        .83283E-04   -1.4746    
   2  Prefactor     .10000E-03    3.5604        .90786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    70.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.152        48.228        .11998E-03   -1.5040    
   5  Prefactor     18.950        24.418        .92009E-04   -1.4837    
   6  norm          .75874        2.9896        .16074E-03   -1.5534    
   7  Prefactor     .10000E-03    221.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.414        22.313        .11859E-03   -1.5032    
   9  norm          2.7129        4.2466        .12311E-03   -1.5379    
  10  Prefactor     .10000E-03    14.143        .18061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6942        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .92313        .75638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    128.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5463        .14856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     63.597        118.44        .50306E-04   -1.4111    
  18  norm          .10000E-03    10.719        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0319        143.79        .13341E-03   -1.5107    
  20  Prefactor     565.59        333.14        .86573E-04   -1.0905    
  21  Normalizat    1.4302        .39151        .21530E-03   -.79759    
  22  Prefactor     .41532        .31638        .32334E-03   -1.1603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46242e-09
Minuit parameter uncertainties:
  1  24.1042
  2  2.75771e-06
  3  0.000201143
  4  46.4447
  5  24.4308
  6  2.99018
  7  0.00197706
  8  22.3289
  9  4.24705
  10  2.56387e-06
  11  1.09642e-06
  12  1.99645e-07
  13  0.000159485
  14  4.6871e-05
  15  4.16441e-08
  16  0.000125322
  17  118.885
  18  0.000105628
  19  72.282
  20  334.309
  21  0.39234
  22  0.317721
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.096e-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:  4.153e-01  3.177e-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.430e+00  3.923e-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.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592654/likelihoodResults_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.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): 102
logL (Free Index) = 2427.62428681
delta logL = -0.00098690613595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2427.62329988
delta logL = 2.91738615488e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0140       1.0000          .0000       10.000    
     3 'Normalizat'    1.4302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41532       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=   2427.623     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      257 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    177.32        .10451E-01** at limit **
   2  Index         2.5578        6.2635        .50000       -.36698E-07
   3  Normalizat    1.4302        .42532E-01    .21530E-03    .38294E-04
   4  Prefactor     .41532        .36444E-01    .32334E-03    .27460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55782
  Normalizat = 1.4302
  Prefactor  = 0.415319
 **********
 **   18 **HESSE 
 **********

 FCN=   2427.623     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1036.8        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5578        8.5923        .50000       -.51030    
   3  Normalizat    1.4302        .16964        .43059E-04   -.79759    
   4  Prefactor     .41532        .14529        .12934E-04   -1.1603    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.08135e-09
Minuit parameter uncertainties:
  1  0.000738675
  2  1554.9
  3  0.169704
  4  0.145419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592654': 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) = 2427.62329888
delta logL = 1.0224594007e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  7.387e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.558e+00  1.555e+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:  4.153e-01  1.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.430e+00  1.697e-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/592654/cmap_HighResolution_499564801_499824001_4FGL_J2256.0-2740_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-29 02:54:05.430322', job_id='592654', GAL2='0.42', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1632909245.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1004' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 592654: <4FGL_J2256.0-2740_daily_bin1004> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1004 344.025 -27.6739 499564801 499824001 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 :                                   439.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   502 sec.
    Turnaround time :                            504 sec.

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

