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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin521
RA = 344.025, Dec = -27.6739
tmin = 374371201, tmax = 374630401
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='590904', job_status='RUN', time_executed='2021-09-29 02:44:37.774602', time_epoch_executed='1632908677.77' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590904

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590904/ft1_4FGL_J2256.0-2740_daily_bin521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590904/ft1_4FGL_J2256.0-2740_daily_bin521.fits outfile=/scratch/kocevski/590904/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin521.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=374371201.0 tmax=374630401.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.23
user 3.03
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.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/590904/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin521.fits evtable="EVENTS" outfile="/scratch/kocevski/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.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/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.fits" evtable="EVENTS" scfile=/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits sctable="SC_DATA" outfile=/scratch/kocevski/590904/ltcube_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.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/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits
.....................!
real 11.96
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits sctable="SC_DATA" expcube=/scratch/kocevski/590904/ltcube_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.fits outfile=/scratch/kocevski/590904/expmap_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.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/590904/ltcube_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.fits
.....................!
real 192.19
user 186.30
sys 5.57

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/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.fits scfile=/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits outfile=/scratch/kocevski/590904/cmap_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.fits scfile=/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits outfile=/scratch/kocevski/590904/cmap_HighResolution_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.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/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/590904/ft2_4FGL_J2256.0-2740_daily_bin521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590904/Model_4FGL_J2256.0-2740_daily_bin521.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/590904/ft1_filtered_4FGL_J2256.0-2740_daily_bin521.fits.....................!
real 51.31
user 50.09
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3825       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24599E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.318       1.0000         .10000E-03   10000.    
     9 'norm      '    11.599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3372       1.0000         .10000E-03   10000.    
    12 'norm      '    .84462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8879       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2408       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11559E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1325       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .44870       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=   6542.287     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2396 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.429        .90712E-02** at limit **
   2  Prefactor     .10000E-03    2.3501        .90712E-02** at limit **
   3  norm          .10000E-03    4.8767        .90712E-02** at limit **
   4  Prefactor     .10000E-03    3.0441        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.8898        .90712E-02** at limit **
   6  norm          1.3832        1.7295        .92518E-02    .16008E-02
   7  Prefactor     .10004E-03    49.589        .12442    ** at limit **
   8  Prefactor     37.317        11.608        .16402E-02    .44633E-03
   9  norm          11.601        5.4728        .29407E-02    .54203E-02
  10  Prefactor     .10000E-03    5.2103        .90712E-02** at limit **
  11  Prefactor     5.3302        11.724        .43490E-02    .15485E-02
  12  norm          .84460        .67950        .97735E-02    .16642E-02
  13  Prefactor     .10000E-03    13.820        .90712E-02** at limit **
  14  Prefactor     .10000E-03    6.5001        .90712E-02** at limit **
  15  Prefactor     5.8938        9.1620        .41375E-02    .80723E-03
  16  norm          8.2408        5.4181        .34914E-02   -.49483E-03
  17  Prefactor     .10000E-03    6.5106        .90712E-02** at limit **
  18  norm          4.6084        2.7049        .46878E-02    .27795E-03
  19  Prefactor     .10000E-03    31.407        .90712E-02** at limit **
  20  Prefactor     .10000E-03    27.566        .90712E-02** at limit **
  21  Normalizat    1.1324        .14965        .36810E-01    .51895E-03
  22  Prefactor     .44880        .13835        .63413E-01    .26426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38323
  Prefactor  = 0.000100039
  Prefactor  = 37.3168
  norm       = 11.6013
  Prefactor  = 0.0001
  Prefactor  = 5.33022
  norm       = 0.844601
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.89382
  norm       = 8.24078
  Prefactor  = 0.0001
  norm       = 4.60839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13238
  Prefactor  = 0.448802
 **********
 **   18 **HESSE 
 **********

 FCN=   6542.287     FROM HESSE     STATUS=OK           342 CALLS     2738 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3770        .12107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8800        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0453        .13783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3832        1.7343        .10265E-03   -1.5473    
   7  Prefactor     .10004E-03    54.656        .11954       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.317        11.653        .65607E-04   -1.4485    
   9  norm          11.601        5.4106        .10710E-03   -1.5027    
  10  Prefactor     .10000E-03    5.2141        .18014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3302        11.489        .17396E-03   -1.5246    
  12  norm          .84460        .65813        .44219E-04   -1.5524    
  13  Prefactor     .10000E-03    13.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8938        8.9272        .16550E-03   -1.5222    
  16  norm          8.2408        5.4193        .13966E-03   -1.5134    
  17  Prefactor     .10000E-03    6.5119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6084        2.7026        .98063E-04   -1.5279    
  19  Prefactor     .10000E-03    31.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1324        .17673        .19183E-03   -.88719    
  22  Prefactor     .44880        .16169        .28065E-03   -1.1439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85166e-09
Minuit parameter uncertainties:
  1  0.000150551
  2  6.95081e-06
  3  1.1686e-06
  4  6.98481e-06
  5  2.05e-05
  6  1.7344
  7  0.00293215
  8  11.6536
  9  5.41086
  10  1.52529e-05
  11  11.4942
  12  0.658137
  13  0.000137005
  14  0.000127071
  15  8.92924
  16  5.41962
  17  9.4236e-05
  18  2.70269
  19  0.000231609
  20  6.62997e-05
  21  0.176818
  22  0.161851
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.330e+00  1.149e+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:  4.488e-01  1.619e-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.132e+00  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590904/likelihoodResults_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.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) = 6542.05710182
delta logL = 0.229959545926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6542.04365933
delta logL = 0.243402033566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4557       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0850       1.0000          .0000       10.000    
     3 'Normalizat'    1.1137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46218       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=   6542.044     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4535        106.51        .47690E-02    .40159E-03
   2  Index         4.0862        6.7861        .42480        .20271E-04
   3  Normalizat    1.1137        .40040E-01    .37467E-01   -.50562E-04
   4  Prefactor     .46218        .38561E-01    .62567E-01    .33379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45353
  Index      = 4.08617
  Normalizat = 1.11371
  Prefactor  = 0.46218
 **********
 **   18 **HESSE 
 **********

 FCN=   6542.044     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4535        7.8977        .16403E-03   -1.5286    
   2  Index         4.0862        2.1726        .14641E-01   -.18380    
   3  Normalizat    1.1137        .17197        .19311E-03   -.89313    
   4  Prefactor     .46218        .16056        .27689E-03   -1.1374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23214e-11
Minuit parameter uncertainties:
  1  7.89957
  2  2.25044
  3  0.172052
  4  0.160713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590904': 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) = 6542.04365913
delta logL = 0.243402238426

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.454e+00  7.900e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.086e+00  2.250e+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:  4.622e-01  1.607e-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.114e+00  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.09 +/- 2.25
Photon Flux (Free Index): 5.04e-08 +/- 5.34e-08
Energy Flux (Free Index): 7.44e-06 +/- 8.79e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/590904/cmap_HighResolution_374371201_374630401_4FGL_J2256.0-2740_daily_bin521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='7.44e-06', dlogl='2.43e-01', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-09-29 02:55:35.909245', photon_index_error2='2.25', photon_index2='4.09', ts='0.57', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='8.79e-06', EG='1.13', time_epoch_completed='1632909335.91', return_code='0', job_id='590904', GAL2='0.46', EG2='1.11', return_code2='0', photon_flux_error2='5.34e-08', ts2='1.12', photon_index='3.02' WHERE bin_id='521' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 590904: <4FGL_J2256.0-2740_daily_bin521> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin521 344.025 -27.6739 374371201 374630401 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 :                                   658.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

