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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin397
RA = 344.025, Dec = -27.6739
tmin = 342230401, tmax = 342489601
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='590717', job_status='RUN', time_executed='2021-09-29 02:40:38.168811', time_epoch_executed='1632908438.17' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590717

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590717/ft1_4FGL_J2256.0-2740_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590717/ft2_4FGL_J2256.0-2740_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590717/ft1_4FGL_J2256.0-2740_daily_bin397.fits outfile=/scratch/kocevski/590717/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin397.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=342230401.0 tmax=342489601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590717/ft2_4FGL_J2256.0-2740_daily_bin397.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/590717/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/590717/ft1_filtered_4FGL_J2256.0-2740_daily_bin397.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590717/ft1_filtered_4FGL_J2256.0-2740_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/590717/ft2_4FGL_J2256.0-2740_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/590717/ltcube_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.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/590717/ft2_4FGL_J2256.0-2740_daily_bin397.fits
.....................!
real 11.81
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590717/ft1_filtered_4FGL_J2256.0-2740_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/590717/ft2_4FGL_J2256.0-2740_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/590717/ltcube_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.fits outfile=/scratch/kocevski/590717/expmap_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.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/590717/ltcube_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.fits
.....................!
real 191.04
user 185.58
sys 5.00

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/590717/ft1_filtered_4FGL_J2256.0-2740_daily_bin397.fits scfile=/scratch/kocevski/590717/ft2_4FGL_J2256.0-2740_daily_bin397.fits outfile=/scratch/kocevski/590717/cmap_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590717/ft1_filtered_4FGL_J2256.0-2740_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/590717/ft2_4FGL_J2256.0-2740_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590717/Model_4FGL_J2256.0-2740_daily_bin397.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/590717/ft1_filtered_4FGL_J2256.0-2740_daily_bin397.fits.....................!
real 50.41
user 49.11
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35395       1.0000         .10000E-03   10000.    
     6 'norm      '    3.4666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3780       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8193       1.0000         .10000E-03   10000.    
    12 'norm      '    .15830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22713E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2952       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0644       1.0000         .10000E-03   10000.    
    18 'norm      '    .39789E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1558       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.384       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62284       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=   6554.643     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2450 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30095        9.1291       -.18209E-06    .30480E-04
   2  Prefactor     .10000E-03    3.7841       -.48801E-06** at limit **
   3  norm          .10000E-03    16.443       -.44107E-06** at limit **
   4  Prefactor     .10000E-03    4.9857       -.17399E-06** at limit **
   5  Prefactor     .34933        6.8056       -.32202E-06    .23771E-04
   6  norm          3.4666        1.8484       -.13194E-06   -.31135E-03
   7  Prefactor     .10000E-03    59.655       -.10039E-05** at limit **
   8  Prefactor     .10000E-03    4.5158       -.39230E-06** at limit **
   9  norm          1.3781        1.8275       -.21965E-06   -.22096E-03
  10  Prefactor     .10000E-03    5.4532       -.16436E-06** at limit **
  11  Prefactor     7.8151        6.9293        .24629E-07    .56534E-03
  12  norm          .15867        .31229        .23388E-06    .18565E-02
  13  Prefactor     .10000E-03    26.446       -.46169E-06** at limit **
  14  Prefactor     .10000E-03    3.9704       -.12076E-06** at limit **
  15  Prefactor     .10002E-03    39.806       -.74885E-05** at limit **
  16  norm          3.2912        6.7037       -.66870E-06   -.25417E-03
  17  Prefactor     7.0453        36.873        .19605E-05    .22504E-04
  18  norm          .10002E-03    1.8245       -.24192E-08** at limit **
  19  Prefactor     1.0632        49.006       -.28385E-05   -.88968E-04
  20  Prefactor     18.297        77.810       -.18007E-05   -.32692E-04
  21  Normalizat    1.1501        .18133       -.46323E-05    .25863E-03
  22  Prefactor     .62258        .16654        .57727E-05    .19848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.300948
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.349328
  norm       = 3.46665
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.37812
  Prefactor  = 0.0001
  Prefactor  = 7.81508
  norm       = 0.158669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 3.29117
  Prefactor  = 7.04535
  norm       = 0.000100019
  Prefactor  = 1.06324
  Prefactor  = 18.2972
  Normalizat = 1.15006
  Prefactor  = 0.622576
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.643     FROM HESSE     STATUS=OK           354 CALLS     2804 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30095        158.07        .46294E-02   -1.5598    
   2  Prefactor     .10000E-03    3.8970        .30797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9944        .17658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34933        39.063        .39011E-02   -1.5590    
   6  norm          3.4666        1.8454        .77314E-04   -1.5336    
   7  Prefactor     .10000E-03    60.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5662        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3781        1.8022        .11999E-03   -1.5473    
  10  Prefactor     .10000E-03    5.4825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8151        6.6958        .14340E-03   -1.5149    
  12  norm          .15867        .30392        .58418E-03   -1.5628    
  13  Prefactor     .10000E-03    26.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9808        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    45.648        .34988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2912        6.7459        .22304E-03   -1.5345    
  17  Prefactor     7.0453        36.837        .15093E-03   -1.5177    
  18  norm          .10002E-03    8.8888        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0632        167.43        .70417E-02   -1.5502    
  20  Prefactor     18.297        79.203        .93411E-04   -1.4852    
  21  Normalizat    1.1501        .18218        .19523E-03   -.88160    
  22  Prefactor     .62258        .16830        .25119E-03   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51692e-09
Minuit parameter uncertainties:
  1  13.8286
  2  3.69051e-05
  3  9.78431e-05
  4  1.47776e-05
  5  7.39193
  6  1.84548
  7  0.000347574
  8  2.83644e-05
  9  1.8023
  10  3.14127e-05
  11  6.6964
  12  0.30392
  13  0.000127161
  14  1.18831e-05
  15  0.00197494
  16  6.74749
  17  32.2508
  18  0.000815942
  19  26.7601
  20  76.3076
  21  0.18228
  22  0.168436
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.815e+00  6.696e+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.226e-01  1.684e-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.150e+00  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.04e-06

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

Saving results to:
/scratch/kocevski/590717/likelihoodResults_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.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) = 6553.77689986
delta logL = 0.865772212924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6553.77668997
delta logL = 0.865982100731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0099       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1076       1.0000          .0000       10.000    
     3 'Normalizat'    1.0997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6553.777     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      259 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0087        44.736        .50348E-02    .31373E-03
   2  Index         5.1077        7.4560        .20141        .68998E-04
   3  Normalizat    1.0997        .58224E-01    .38012E-01   -.20756E-04
   4  Prefactor     .66166        .57308E-01    .41889E-01    .16749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00866
  Index      = 5.10771
  Normalizat = 1.09974
  Prefactor  = 0.661662
 **********
 **   18 **HESSE 
 **********

 FCN=   6553.777     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0087        8.4814        .85765E-04   -1.5308    
   2  Index         5.1077        2.9506        .11998E-01    .21544E-01
   3  Normalizat    1.0997        .17727        .19891E-03   -.89760    
   4  Prefactor     .66166        .16975        .24449E-03   -1.0505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35346e-08
Minuit parameter uncertainties:
  1  8.48391
  2  3.15621
  3  0.177371
  4  0.169879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590717': 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) = 6553.7766898
delta logL = 0.865982276991

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  6.617e-01  1.699e-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.100e+00  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.11 +/- 3.16
Photon Flux (Free Index): 8.31e-08 +/- 4.75e-08
Energy Flux (Free Index): 1.09e-05 +/- 7.10e-06

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/590717/cmap_HighResolution_342230401_342489601_4FGL_J2256.0-2740_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.09e-05', photon_flux_error='4.57e-08', dlogl='8.66e-01', energy_flux='1.06e-05', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-09-29 02:51:40.145823', photon_index_error2='3.16', photon_index2='5.11', ts='2.53', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='7.10e-06', EG='1.15', time_epoch_completed='1632909100.15', return_code='0', job_id='590717', GAL2='0.66', EG2='1.10', return_code2='0', energy_flux_error='9.04e-06', photon_flux_error2='4.75e-08', ts2='4.51', photon_index='3.02' WHERE bin_id='397' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 590717: <4FGL_J2256.0-2740_daily_bin397> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin397> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:21 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:22 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:40:22 2021
Terminated at Wed Sep 29 02:51:40 2021
Results reported at Wed Sep 29 02:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin397 344.025 -27.6739 342230401 342489601 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 :                                   654.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            679 sec.

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

