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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1088
RA = 344.025, Dec = -27.6739
tmin = 521337601, tmax = 521596801
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='592780', job_status='RUN', time_executed='2021-09-29 02:46:46.817507', time_epoch_executed='1632908806.82' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592780

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592780/ft1_4FGL_J2256.0-2740_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592780/ft1_4FGL_J2256.0-2740_daily_bin1088.fits outfile=/scratch/kocevski/592780/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1088.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=521337601.0 tmax=521596801.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.11
user 4.88
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.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/592780/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1088.fits evtable="EVENTS" outfile="/scratch/kocevski/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/592780/ltcube_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.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/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits
.....................!
real 11.63
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/592780/ltcube_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.fits outfile=/scratch/kocevski/592780/expmap_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.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/592780/ltcube_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.fits
.....................!
real 190.85
user 185.55
sys 4.94

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/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.fits scfile=/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits outfile=/scratch/kocevski/592780/cmap_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.fits scfile=/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits outfile=/scratch/kocevski/592780/cmap_HighResolution_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.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/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/592780/ft2_4FGL_J2256.0-2740_daily_bin1088.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592780/Model_4FGL_J2256.0-2740_daily_bin1088.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/592780/ft1_filtered_4FGL_J2256.0-2740_daily_bin1088.fits.....................!
real 55.61
user 54.25
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8793       1.0000         .10000E-03   10000.    
     3 'norm      '    43.212       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4393       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0821       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5511       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24625E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16814E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.2677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.770       1.0000         .10000E-03   10000.    
    18 'norm      '    14.223       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.896       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3258       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63706       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=   7402.413     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2369 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.756       -.34394E-05** at limit **
   2  Prefactor     3.8779        7.9097       -.12507E-05   -.30374E-03
   3  norm          43.211        22.963       -.39219E-06    .26165E-04
   4  Prefactor     .10000E-03    33.544        .31789E-05** at limit **
   5  Prefactor     8.4387        10.357       -.84757E-06   -.61742E-04
   6  norm          1.0819        1.5236       -.13104E-06   -.75459E-03
   7  Prefactor     .10000E-03    48.130        .62714E-06** at limit **
   8  Prefactor     7.5509        8.9254       -.25391E-06   -.94727E-04
   9  norm          3.7768        3.7227       -.34883E-06   -.36701E-03
  10  Prefactor     .10000E-03    8.7923        .44715E-07** at limit **
  11  Prefactor     .10000E-03    11.172       -.93680E-07** at limit **
  12  norm          1.7089        .56847        .55778E-08    .20074E-03
  13  Prefactor     10.100        30.079       -.13472E-04   -.76740E-05
  14  Prefactor     11.288        13.539       -.37706E-06   -.26052E-04
  15  Prefactor     .10000E-03    3.3056       -.28036E-07** at limit **
  16  norm          7.2675        8.4311       -.49030E-06   -.10979E-03
  17  Prefactor     19.768        38.570       -.45235E-05    .32032E-05
  18  norm          14.223        4.2218        .24101E-06   -.13267E-04
  19  Prefactor     27.288        29.468       -.60536E-05    .19949E-05
  20  Prefactor     76.891        84.952       -.47985E-05    .51233E-05
  21  Normalizat    1.3260        .17116        .14111E-05   -.66673E-04
  22  Prefactor     .63692        .15503        .23714E-08    .78708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.8779
  norm       = 43.2111
  Prefactor  = 0.0001
  Prefactor  = 8.43865
  norm       = 1.08194
  Prefactor  = 0.0001
  Prefactor  = 7.55086
  norm       = 3.7768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70893
  Prefactor  = 10.0997
  Prefactor  = 11.2883
  Prefactor  = 0.0001
  norm       = 7.26749
  Prefactor  = 19.7678
  norm       = 14.223
  Prefactor  = 27.2878
  Prefactor  = 76.8914
  Normalizat = 1.32595
  Prefactor  = 0.636917
 **********
 **   18 **HESSE 
 **********

 FCN=   7402.413     FROM HESSE     STATUS=OK           352 CALLS     2721 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8779        8.0161        .20487E-03   -1.5314    
   3  norm          43.211        22.919        .60986E-04   -1.4392    
   4  Prefactor     .10000E-03    34.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4387        10.372        .13799E-03   -1.5127    
   6  norm          1.0819        1.2802        .12134E-02   -1.5500    
   7  Prefactor     .10000E-03    48.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5509        8.9856        .14594E-03   -1.5158    
   9  norm          3.7768        3.7217        .15359E-03   -1.5319    
  10  Prefactor     .10000E-03    8.8238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7089        .55890        .34376E-04   -1.5447    
  13  Prefactor     10.100        30.005        .12603E-03   -1.5072    
  14  Prefactor     11.288        13.545        .11924E-03   -1.5036    
  15  Prefactor     .10000E-03    7.6147        .29922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.2675        8.4451        .14878E-03   -1.5169    
  17  Prefactor     19.768        38.632        .90079E-04   -1.4818    
  18  norm          14.223        4.2220        .89819E-04   -1.4954    
  19  Prefactor     27.288        29.425        .76682E-04   -1.4663    
  20  Prefactor     76.891        85.037        .45792E-04   -1.3952    
  21  Normalizat    1.3260        .20603        .22228E-03   -.82795    
  22  Prefactor     .63692        .18406        .29594E-03   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74097e-10
Minuit parameter uncertainties:
  1  6.75144e-06
  2  8.01834
  3  22.9237
  4  1.06841e-05
  5  10.3746
  6  1.28023
  7  5.05841e-05
  8  8.9872
  9  3.72191
  10  5.95614e-06
  11  1.94179e-05
  12  0.558902
  13  30.0498
  14  13.5491
  15  6.93895e-06
  16  8.44652
  17  38.6807
  18  4.22208
  19  29.4404
  20  85.1718
  21  0.206153
  22  0.184231
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.942e-05  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.369e-01  1.842e-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.326e+00  2.062e-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: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592780/likelihoodResults_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.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) = 7402.41339008
delta logL = -0.000415923977926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7402.41297422
delta logL = -6.61166268401e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9996       1.0000          .0000       10.000    
     3 'Normalizat'    1.3260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63687       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=   7402.413     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      270 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2269.1        .36285E-02** at limit **
   2  Index         2.4954        5.5807        .50000       -.16419E-06
   3  Normalizat    1.3260        .61698E-01    .22228E-03   -.51442E-04
   4  Prefactor     .63692        .58896E-01    .29594E-03   -.33729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.49538
  Normalizat = 1.32595
  Prefactor  = 0.636915
 **********
 **   18 **HESSE 
 **********

 FCN=   7402.413     FROM HESSE     STATUS=OK            29 CALLS      299 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.503        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4954        8.7290        .50000       -.52467    
   3  Normalizat    1.3260        .18965        .44456E-04   -.82795    
   4  Prefactor     .63692        .18216        .11838E-04   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37087e-10
Minuit parameter uncertainties:
  1  0.000344779
  2  73.0937
  3  0.189746
  4  0.182327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592780': 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) = 7402.41297271
delta logL = 1.44720252138e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  6.369e-01  1.823e-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.326e+00  1.897e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/592780/cmap_HighResolution_521337601_521596801_4FGL_J2256.0-2740_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-29 02:58:42.354651', job_id='592780', GAL2='0.64', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632909522.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1088' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 592780: <4FGL_J2256.0-2740_daily_bin1088> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1088 344.025 -27.6739 521337601 521596801 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 :                                   708.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

