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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1086
RA = 344.025, Dec = -27.6739
tmin = 520819201, tmax = 521078401
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='592776', job_status='RUN', time_executed='2021-09-29 02:49:56.305321', time_epoch_executed='1632908996.31' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592776/ft1_4FGL_J2256.0-2740_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592776/ft1_4FGL_J2256.0-2740_daily_bin1086.fits outfile=/scratch/kocevski/592776/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1086.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=520819201.0 tmax=521078401.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.51
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592776/ft1_filtered_4FGL_J2256.0-2740_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/592776/ltcube_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.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/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits
.....................!
real 11.92
user 11.60
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592776/ft1_filtered_4FGL_J2256.0-2740_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/592776/ltcube_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.fits outfile=/scratch/kocevski/592776/expmap_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.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/592776/ltcube_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.fits
.....................!
real 191.59
user 187.31
sys 3.97

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/592776/ft1_filtered_4FGL_J2256.0-2740_daily_bin1086.fits scfile=/scratch/kocevski/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits outfile=/scratch/kocevski/592776/cmap_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592776/ft1_filtered_4FGL_J2256.0-2740_daily_bin1086.fits scfile=/scratch/kocevski/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits outfile=/scratch/kocevski/592776/cmap_HighResolution_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592776/ft1_filtered_4FGL_J2256.0-2740_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/592776/ft2_4FGL_J2256.0-2740_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592776/Model_4FGL_J2256.0-2740_daily_bin1086.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/592776/ft1_filtered_4FGL_J2256.0-2740_daily_bin1086.fits.....................!
real 55.05
user 53.77
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4342       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6944       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4378       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.685       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1364       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4167       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.314       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2930       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.041       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7340.721     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     1952 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4355        1.0162        .92457E-07   -.95615E-04
   2  Prefactor     2.6942        3.7440       -.43802E-05   -.36046E-02
   3  norm          3.9934        1.0096        .41488E-07    .11702E-03
   4  Prefactor     .10000E-03    3.3268       -.23532E-06** at limit **
   5  Prefactor     1.4388        1.1119        .65833E-06    .69689E-05
   6  norm          1.7562        1.4767       -.54045E-06   -.20367E-03
   7  Prefactor     .10015E-03    27.200       -.51453E-06** at limit **
   8  Prefactor     .10000E-03    6.9732       -.20801E-06** at limit **
   9  norm          16.686        4.2002        .23135E-05    .14480E-01
  10  Prefactor     4.4149        1.6520        .16101E-05    .14632E-02
  11  Prefactor     6.1325        1.3679        .85704E-06    .23996E-02
  12  norm          1.0849        .51968       -.38715E-06    .22589E-03
  13  Prefactor     .10737E-03    29.922        .11024E-04** at limit **
  14  Prefactor     7.4170        1.0048       -.45647E-07   -.55882E-04
  15  Prefactor     .10000E-03    4.3456        .42238E-06** at limit **
  16  norm          12.315        1.0882       -.31983E-06   -.45345E-03
  17  Prefactor     .10000E-03    14.919       -.19094E-06** at limit **
  18  norm          4.2930        2.4090        .13573E-06    .16298E-04
  19  Prefactor     45.038        1.2008       -.24857E-06    .19546E-02
  20  Prefactor     .10908E-03    40.867       -.13135E-04** at limit **
  21  Normalizat    1.0099        .17216       -.11554E-05   -.49867E-04
  22  Prefactor     .66453        .16709       -.72405E-06   -.58655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43545
  Prefactor  = 2.69415
  norm       = 3.99343
  Prefactor  = 0.0001
  Prefactor  = 1.43877
  norm       = 1.75622
  Prefactor  = 0.000100149
  Prefactor  = 0.0001
  norm       = 16.6861
  Prefactor  = 4.41494
  Prefactor  = 6.13246
  norm       = 1.08492
  Prefactor  = 0.000107373
  Prefactor  = 7.41699
  Prefactor  = 0.0001
  norm       = 12.3146
  Prefactor  = 0.000100002
  norm       = 4.29297
  Prefactor  = 45.0376
  Prefactor  = 0.000109076
  Normalizat = 1.00989
  Prefactor  = 0.664534
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.721     FROM HESSE     STATUS=OK           390 CALLS     2342 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4355        11.188        .54567E-02   -1.5337    
   2  Prefactor     2.6942        3.8090        .62049E-02   -1.5380    
   3  norm          3.9934        12.591        .50460E-02   -1.5308    
   4  Prefactor     .10000E-03    3.3252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4388        14.813        .89980E-02   -1.5468    
   6  norm          1.7562        1.4967        .79068E-02   -1.5443    
   7  Prefactor     .10015E-03    27.576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.686        5.2098        .24513E-02   -1.4891    
  10  Prefactor     4.4149        7.8931        .47918E-02   -1.5288    
  11  Prefactor     6.1325        9.6171        .40517E-02   -1.5213    
  12  norm          1.0849        .61549        .88517E-02   -1.5500    
  13  Prefactor     .10737E-03    52.745        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4170        9.0068        .36817E-02   -1.5163    
  15  Prefactor     .10000E-03    4.3228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.315        6.5325        .28538E-02   -1.5006    
  17  Prefactor     .10000E-03    14.898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2930        2.4830        .48610E-02   -1.5294    
  19  Prefactor     45.038        28.475        .14935E-02   -1.4365    
  20  Prefactor     .10908E-03    68.732        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0099        .14983        .46290E-01   -.92700    
  22  Prefactor     .66453        .14164        .41929E-01   -1.0493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77887e-07
Minuit parameter uncertainties:
  1  11.1947
  2  3.80933
  3  12.5997
  4  3.73924e-06
  5  9.2357
  6  1.49676
  7  0.00405208
  8  2.90296e-05
  9  5.20993
  10  7.89493
  11  9.61954
  12  0.615489
  13  0.0394742
  14  9.00848
  15  6.64941e-06
  16  6.53284
  17  0.000303129
  18  2.48306
  19  28.4834
  20  0.05001
  21  0.149893
  22  0.141716
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.132e+00  9.620e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  6.645e-01  1.417e-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.010e+00  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592776/likelihoodResults_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.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) = 7339.84140711
delta logL = 0.880079789488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7339.73902098
delta logL = 0.982465924199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88813E-01   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .97342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69626       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=   7339.739     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      389 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88828E-01    .81137E-01    .17238E-03   -.22153E-02
   2  Index        10.0000        6.2862        .50000    ** at limit **
   3  Normalizat    .97337        .17748        .21739E-03   -.10271E-03
   4  Prefactor     .69630        .17154        .24776E-03    .22484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0888281
  Index      = 10
  Normalizat = 0.973369
  Prefactor  = 0.696302
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.739     FROM HESSE     STATUS=OK            31 CALLS      420 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88828E-01    .77486E-01    .68951E-05   -1.5648    
   2  Index        10.0000        6.1837        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .97337        .17785        .86954E-05   -.93928    
   4  Prefactor     .69630        .17183        .99106E-05   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05979e-11
Minuit parameter uncertainties:
  1  0.0774866
  2  8.78629e-05
  3  0.177954
  4  0.171962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592776': 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) = 7339.73901981
delta logL = 0.982467085432

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  8.883e-02  7.749e-02  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  8.786e-05  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.963e-01  1.720e-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:  9.734e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.04e-08 +/- 5.10e-08
Energy Flux (Free Index): 6.75e-06 +/- 5.74e-06

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/592776/cmap_HighResolution_520819201_521078401_4FGL_J2256.0-2740_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='6.75e-06', dlogl='9.82e-01', photon_flux2='6.04e-08', job_status='DONE', time_completed='2021-09-29 03:00:59.689494', photon_index_error2='0.00', photon_index2='10.00', ts='0.77', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='5.74e-06', EG='1.01', time_epoch_completed='1632909659.69', return_code='0', job_id='592776', GAL2='0.70', EG2='0.97', return_code2='0', photon_flux_error2='5.10e-08', ts2='2.94', photon_index='3.02' WHERE bin_id='1086' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 592776: <4FGL_J2256.0-2740_daily_bin1086> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1086> 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) <bullet0234>, 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 03:01:00 2021
Results reported at Wed Sep 29 03:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1086 344.025 -27.6739 520819201 521078401 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 :                                   661.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

