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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin369
RA = 344.025, Dec = -27.6739
tmin = 334972801, tmax = 335232001
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='590673', job_status='RUN', time_executed='2021-09-29 02:43:43.098428', time_epoch_executed='1632908623.1' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590673

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590673/ft1_4FGL_J2256.0-2740_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590673/ft1_4FGL_J2256.0-2740_daily_bin369.fits outfile=/scratch/kocevski/590673/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin369.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=334972801.0 tmax=335232001.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.40
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590673/ft1_filtered_4FGL_J2256.0-2740_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/590673/ltcube_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.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/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits
.....................!
real 11.85
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590673/ft1_filtered_4FGL_J2256.0-2740_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/590673/ltcube_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.fits outfile=/scratch/kocevski/590673/expmap_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.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/590673/ltcube_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.fits
.....................!
real 190.57
user 185.50
sys 4.66

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/590673/ft1_filtered_4FGL_J2256.0-2740_daily_bin369.fits scfile=/scratch/kocevski/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits outfile=/scratch/kocevski/590673/cmap_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590673/ft1_filtered_4FGL_J2256.0-2740_daily_bin369.fits scfile=/scratch/kocevski/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits outfile=/scratch/kocevski/590673/cmap_HighResolution_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.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/590673/ft1_filtered_4FGL_J2256.0-2740_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/590673/ft2_4FGL_J2256.0-2740_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590673/Model_4FGL_J2256.0-2740_daily_bin369.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/590673/ft1_filtered_4FGL_J2256.0-2740_daily_bin369.fits.....................!
real 37.46
user 36.14
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .93579       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12234E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.094       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.486       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.299       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14340E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.385       1.0000         .10000E-03   10000.    
    18 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.114       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97086       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0904       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=   4058.026     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2330 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.303        27.405       -.31506E-06   -.11318E-04
   2  Prefactor     .89432        12.001       -.32529E-05    .16770E-03
   3  norm          .10000E-03    8.7156        .68515E-07** at limit **
   4  Prefactor     .10000E-03    94.143        .11037E-05** at limit **
   5  Prefactor     16.096        16.794       -.34986E-06   -.28076E-04
   6  norm          .10000E-03    1.0414        .50013E-07** at limit **
   7  Prefactor     .10000E-03    27.751       -.72598E-07** at limit **
   8  Prefactor     .10000E-03    10.853        .52070E-07** at limit **
   9  norm          22.491        9.5952       -.39916E-07   -.43265E-04
  10  Prefactor     .10000E-03    16.230       -.17132E-06** at limit **
  11  Prefactor     16.266        20.857       -.97987E-06    .75920E-04
  12  norm          1.6119        1.2153        .17046E-06    .42798E-03
  13  Prefactor     35.398        65.909       -.11462E-05   -.38818E-04
  14  Prefactor     .10000E-03    22.159        .84739E-06** at limit **
  15  Prefactor     .10000E-03    41.439        .22683E-06** at limit **
  16  norm          .10000E-03    17.729        .99907E-06** at limit **
  17  Prefactor     25.382        56.280       -.65270E-06    .12122E-04
  18  norm          .10000E-03    1.8373       -.87240E-06** at limit **
  19  Prefactor     27.067        50.212       -.20653E-05   -.42438E-04
  20  Prefactor     .10000E-03    86.577       -.95370E-06** at limit **
  21  Normalizat    .97177        .30536        .70012E-05    .47829E-04
  22  Prefactor     1.0894        .26390       -.54701E-05    .67564E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3026
  Prefactor  = 0.894316
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.0957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.4915
  Prefactor  = 0.0001
  Prefactor  = 16.266
  norm       = 1.61191
  Prefactor  = 35.398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.3819
  norm       = 0.0001
  Prefactor  = 27.0674
  Prefactor  = 0.0001
  Normalizat = 0.971767
  Prefactor  = 1.08937
 **********
 **   18 **HESSE 
 **********

 FCN=   4058.026     FROM HESSE     STATUS=OK           342 CALLS     2672 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.303        27.418        .93625E-04   -1.4852    
   2  Prefactor     .89432        19.870        .36459E-02   -1.5519    
   3  norm          .10000E-03    8.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    97.107        .41248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.096        16.799        .99835E-04   -1.4905    
   6  norm          .10000E-03    1.0442        .63476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.491        9.5918        .84470E-04   -1.4759    
  10  Prefactor     .10000E-03    16.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.266        21.108        .99205E-04   -1.4901    
  12  norm          1.6119        1.2198        .47164E-04   -1.5454    
  13  Prefactor     35.398        66.259        .67318E-04   -1.4517    
  14  Prefactor     .10000E-03    22.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.382        56.363        .79508E-04   -1.4700    
  18  norm          .10000E-03    1.9389        .86247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.067        50.368        .76936E-04   -1.4667    
  20  Prefactor     .10000E-03    86.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97177        .31715        .27402E-03   -.93982    
  22  Prefactor     1.0894        .27667        .24741E-03   -.89807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43018e-10
Minuit parameter uncertainties:
  1  27.4367
  2  8.43355
  3  6.26261e-06
  4  0.000543825
  5  16.8042
  6  1.87903e-06
  7  7.9656e-05
  8  1.69185e-06
  9  9.59241
  10  4.36329e-05
  11  21.1178
  12  1.21977
  13  66.3969
  14  0.000154015
  15  7.07061e-05
  16  0.000138086
  17  56.4819
  18  4.15184e-05
  19  50.4474
  20  0.000353559
  21  0.317768
  22  0.277035
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.627e+01  2.112e+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:  1.089e+00  2.770e-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.718e-01  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 1.44e-07
Energy Flux (Fixed Index): 2.20e-05 +/- 2.85e-05

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

Saving results to:
/scratch/kocevski/590673/likelihoodResults_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4057.13038627
delta logL = 0.895173848874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4057.01174601
delta logL = 1.01381411057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19799       1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .93924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1280       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=   4057.012     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      368 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19773        4.9206        .42443E-02    .78715E-03
   2  Index        10.0000        7.8765        .50000    ** at limit **
   3  Normalizat    .93936        .15512        .45401E-01    .97423E-05
   4  Prefactor     1.1279        .14353        .55244E-01    .38239E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.197729
  Index      = 10
  Normalizat = 0.939355
  Prefactor  = 1.12788
 **********
 **   18 **HESSE 
 **********

 FCN=   4057.012     FROM HESSE     STATUS=OK            33 CALLS      401 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19773        .14151        .19151E-04   -1.5619    
   2  Index        10.0000        7.7923        .46931E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93936        .28912        .27803E-03   -.95091    
   4  Prefactor     1.1279        .27322        .24427E-03   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52907e-12
Minuit parameter uncertainties:
  1  0.141505
  2  1.78415e-05
  3  0.289605
  4  0.273557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590673': 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) = 4057.01173817
delta logL = 1.01382195573

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.977e-01  1.415e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  1.784e-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:  1.128e+00  2.736e-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.394e-01  2.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.34e-07 +/- 9.32e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.05e-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/590673/cmap_HighResolution_334972801_335232001_4FGL_J2256.0-2740_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-02', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='1.50e-05', photon_flux_error='1.44e-07', dlogl='1.01e+00', energy_flux='2.20e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-29 02:52:19.352035', photon_index_error2='0.00', photon_index2='10.00', ts='1.20', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='3.12e-07', energy_flux_error2='1.05e-05', EG='0.97', time_epoch_completed='1632909139.35', return_code='0', job_id='590673', GAL2='1.13', EG2='0.94', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='9.32e-08', ts2='3.42', photon_index='3.02' WHERE bin_id='369' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 590673: <4FGL_J2256.0-2740_daily_bin369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin369 344.025 -27.6739 334972801 335232001 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 :                                   513.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

