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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin472
RA = 344.025, Dec = -27.6739
tmin = 361670401, tmax = 361929601
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='590830', job_status='RUN', time_executed='2021-09-29 02:43:14.206731', time_epoch_executed='1632908594.21' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590830/ft1_4FGL_J2256.0-2740_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590830/ft2_4FGL_J2256.0-2740_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590830/ft1_4FGL_J2256.0-2740_daily_bin472.fits outfile=/scratch/kocevski/590830/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin472.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=361670401.0 tmax=361929601.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.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590830/ft1_filtered_4FGL_J2256.0-2740_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/590830/ft2_4FGL_J2256.0-2740_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/590830/ltcube_361670401_361929601_4FGL_J2256.0-2740_daily_bin472.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/590830/ft2_4FGL_J2256.0-2740_daily_bin472.fits
.....................!
real 12.39
user 12.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590830/ft1_filtered_4FGL_J2256.0-2740_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/590830/ft2_4FGL_J2256.0-2740_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/590830/ltcube_361670401_361929601_4FGL_J2256.0-2740_daily_bin472.fits outfile=/scratch/kocevski/590830/expmap_361670401_361929601_4FGL_J2256.0-2740_daily_bin472.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/590830/ltcube_361670401_361929601_4FGL_J2256.0-2740_daily_bin472.fits
.....................!
real 190.91
user 185.42
sys 5.10

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/590830/ft1_filtered_4FGL_J2256.0-2740_daily_bin472.fits scfile=/scratch/kocevski/590830/ft2_4FGL_J2256.0-2740_daily_bin472.fits outfile=/scratch/kocevski/590830/cmap_361670401_361929601_4FGL_J2256.0-2740_daily_bin472.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.56
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4888       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5066       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.838       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.828       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.706       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5684       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60201       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=   5894.436     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2340 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.526        .13933E-05** at limit **
   2  Prefactor     .10000E-03    4.4116        .29972E-07** at limit **
   3  norm          .10000E-03    26.336       -.13072E-05** at limit **
   4  Prefactor     1.4887        20.627        .10515E-04   -.10625E-03
   5  Prefactor     .10000E-03    9.1136        .11518E-05** at limit **
   6  norm          1.7271        4.0730        .34390E-05    .51003E-03
   7  Prefactor     69.543        79.250       -.11682E-04    .10668E-04
   8  Prefactor     6.5101        13.656       -.27014E-07   -.17397E-04
   9  norm          .10000E-03    5.9020       -.19772E-07** at limit **
  10  Prefactor     .10000E-03    7.3310       -.74937E-07** at limit **
  11  Prefactor     24.843        17.185        .58122E-06   -.11003E-03
  12  norm          3.2166        1.2833       -.94028E-08    .58518E-05
  13  Prefactor     39.668        51.724        .42072E-05   -.11333E-03
  14  Prefactor     .10000E-03    45.439        .30719E-06** at limit **
  15  Prefactor     .10000E-03    9.6157       -.90355E-07** at limit **
  16  norm          13.829        8.9911        .69852E-07   -.64665E-05
  17  Prefactor     .10000E-03    12.824       -.43193E-06** at limit **
  18  norm          .10000E-03    1.0727       -.84270E-07** at limit **
  19  Prefactor     17.697        33.346        .13298E-05   -.27720E-04
  20  Prefactor     .10000E-03    23.377        .22612E-07** at limit **
  21  Normalizat    1.5680        .21409       -.81468E-06   -.12230E-03
  22  Prefactor     .60242        .18993        .48366E-06   -.56354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.48871
  Prefactor  = 0.0001
  norm       = 1.72706
  Prefactor  = 69.5435
  Prefactor  = 6.51005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8426
  norm       = 3.21658
  Prefactor  = 39.6685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8285
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.6967
  Prefactor  = 0.0001
  Normalizat = 1.56802
  Prefactor  = 0.602416
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.436     FROM HESSE     STATUS=OK           336 CALLS     2676 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4641        .15746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    26.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4887        20.687        .17571E-02   -1.5464    
   5  Prefactor     .10000E-03    9.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7271        4.0666        .16572E-03   -1.5445    
   7  Prefactor     69.543        79.574        .48162E-04   -1.4038    
   8  Prefactor     6.5101        13.704        .15733E-03   -1.5198    
   9  norm          .10000E-03    6.1008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.843        17.771        .80376E-04   -1.4711    
  12  norm          3.2166        1.3186        .40555E-04   -1.5349    
  13  Prefactor     39.668        51.334        .63608E-04   -1.4447    
  14  Prefactor     .10000E-03    46.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.829        8.9923        .53856E-03   -1.4964    
  17  Prefactor     .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0781        .77606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.697        33.413        .95184E-04   -1.4866    
  20  Prefactor     .10000E-03    23.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5680        .25896        .23095E-03   -.75885    
  22  Prefactor     .60242        .22675        .32678E-03   -1.0748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31707e-10
Minuit parameter uncertainties:
  1  9.48373e-05
  2  1.2669e-06
  3  0.000195839
  4  11.1032
  5  7.94441e-05
  6  4.06721
  7  79.6957
  8  13.7109
  9  8.20827e-06
  10  4.2385e-06
  11  17.775
  12  1.31857
  13  51.3913
  14  4.54438e-05
  15  1.27657e-05
  16  8.9932
  17  2.40451e-05
  18  2.48335e-06
  19  33.4485
  20  8.82438e-06
  21  0.259183
  22  0.227095
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.484e+01  1.778e+01  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.024e-01  2.271e-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.568e+00  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 1.21e-07
Energy Flux (Fixed Index): 3.35e-05 +/- 2.40e-05

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) = 5893.8348283
delta logL = 0.601132498441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5893.83318522
delta logL = 0.602775572645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.048       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8008       1.0000          .0000       10.000    
     3 'Normalizat'    1.5268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63424       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=   5893.833     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      315 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.045        13.304        .87304E-04   -.14845E-03
   2  Index         3.8009        .84500        .88671E-02   -.38050E-04
   3  Normalizat    1.5269        .25033        .23325E-03   -.34606E-03
   4  Prefactor     .63424        .22593        .31936E-03   -.10655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0454
  Index      = 3.80094
  Normalizat = 1.52688
  Prefactor  = 0.634244
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.833     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.045        12.857        .34922E-05   -1.4790    
   2  Index         3.8009        .81651        .35468E-03   -.24217    
   3  Normalizat    1.5269        .25065        .46649E-04   -.77026    
   4  Prefactor     .63424        .22618        .12774E-04   -1.0616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53179e-10
Minuit parameter uncertainties:
  1  12.8589
  2  0.820407
  3  0.250855
  4  0.226502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590830': 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) = 5893.83318511
delta logL = 0.602775680576

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.105e+01  1.286e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.801e+00  8.204e-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.342e-01  2.265e-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.527e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.03
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.80 +/- 0.82
Photon Flux (Free Index): 2.05e-07 +/- 9.72e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.56e-05

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/590830/cmap_HighResolution_361670401_361929601_4FGL_J2256.0-2740_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='3.18e-05', photon_flux_error='1.21e-07', dlogl='6.03e-01', energy_flux='3.35e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-29 02:52:37.501413', photon_index_error2='0.82', photon_index2='3.80', ts='4.15', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.57', time_epoch_completed='1632909157.5', return_code='0', job_id='590830', GAL2='0.63', EG2='1.53', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='9.72e-08', ts2='6.03', photon_index='3.02' WHERE bin_id='472' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 590830: <4FGL_J2256.0-2740_daily_bin472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin472 344.025 -27.6739 361670401 361929601 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 :                                   558.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

