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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin237
RA = 344.025, Dec = -27.6739
tmin = 300758401, tmax = 301017601
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='589446', job_status='RUN', time_executed='2021-09-29 02:39:23.161856', time_epoch_executed='1632908363.16' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589446/ft1_4FGL_J2256.0-2740_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589446/ft2_4FGL_J2256.0-2740_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589446/ft1_4FGL_J2256.0-2740_daily_bin237.fits outfile=/scratch/kocevski/589446/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin237.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=300758401.0 tmax=301017601.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.52
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589446/ft1_filtered_4FGL_J2256.0-2740_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/589446/ft2_4FGL_J2256.0-2740_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/589446/ltcube_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.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/589446/ft2_4FGL_J2256.0-2740_daily_bin237.fits
.....................!
real 11.86
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589446/ft1_filtered_4FGL_J2256.0-2740_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/589446/ft2_4FGL_J2256.0-2740_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/589446/ltcube_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.fits outfile=/scratch/kocevski/589446/expmap_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.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/589446/ltcube_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.fits
.....................!
real 189.85
user 185.14
sys 4.36

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/589446/ft1_filtered_4FGL_J2256.0-2740_daily_bin237.fits scfile=/scratch/kocevski/589446/ft2_4FGL_J2256.0-2740_daily_bin237.fits outfile=/scratch/kocevski/589446/cmap_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589446/ft1_filtered_4FGL_J2256.0-2740_daily_bin237.fits scfile=/scratch/kocevski/589446/ft2_4FGL_J2256.0-2740_daily_bin237.fits outfile=/scratch/kocevski/589446/cmap_HighResolution_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.157       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9921       1.0000         .10000E-03   10000.    
     6 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.362       1.0000         .10000E-03   10000.    
     9 'norm      '    10.348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86439       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85293       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=   6607.592     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2333 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.157        12.110        .27342E-07    .15261E-04
   2  Prefactor     .10000E-03    2.6233        .48543E-06** at limit **
   3  norm          21.851        14.569       -.54013E-07    .13517E-04
   4  Prefactor     2.6308        25.314       -.51585E-05   -.92174E-04
   5  Prefactor     5.9894        9.2186       -.23450E-05   -.10861E-03
   6  norm          .10000E-03    .53825        .34301E-07** at limit **
   7  Prefactor     56.999        33.622       -.15964E-05    .31234E-04
   8  Prefactor     21.358        11.130       -.23628E-06    .19355E-04
   9  norm          10.347        3.7170        .55746E-06    .24893E-03
  10  Prefactor     .10000E-03    3.3956        .16422E-07** at limit **
  11  Prefactor     .10000E-03    2.5367       -.46521E-06** at limit **
  12  norm          .10000E-03    .19715       -.78263E-07** at limit **
  13  Prefactor     .10000E-03    33.738        .82292E-05** at limit **
  14  Prefactor     .10009E-03    7.6342       -.14232E-05** at limit **
  15  Prefactor     .10000E-03    1.6580       -.12779E-07** at limit **
  16  norm          .10000E-03    1.9928       -.28912E-07** at limit **
  17  Prefactor     .10000E-03    31.354       -.11192E-04** at limit **
  18  norm          1.8456        1.9090       -.15143E-06   -.53064E-03
  19  Prefactor     .10000E-03    6.6897        .24539E-08** at limit **
  20  Prefactor     .10000E-03    34.178        .97800E-05** at limit **
  21  Normalizat    .86459        .14780        .95746E-06    .16474E-03
  22  Prefactor     .85273        .14286        .29381E-07    .20233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1567
  Prefactor  = 0.0001
  norm       = 21.8514
  Prefactor  = 2.63084
  Prefactor  = 5.98938
  norm       = 0.0001
  Prefactor  = 56.9995
  Prefactor  = 21.3582
  norm       = 10.3469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.864594
  Prefactor  = 0.852734
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.592     FROM HESSE     STATUS=OK           342 CALLS     2675 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.157        12.111        .81500E-04   -1.4725    
   2  Prefactor     .10000E-03    2.6433        .12854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.851        14.568        .85686E-04   -1.4773    
   4  Prefactor     2.6308        26.042        .25093E-03   -1.5384    
   5  Prefactor     5.9894        9.2695        .16403E-03   -1.5218    
   6  norm          .10000E-03    .54002        .58127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.999        33.485        .53134E-04   -1.4197    
   8  Prefactor     21.358        11.207        .86660E-04   -1.4783    
   9  norm          10.347        3.6658        .89413E-04   -1.5065    
  10  Prefactor     .10000E-03    3.4024        .14621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5607        .12620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .54917        .68975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    41.815        .43137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6605        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9969        .11206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8456        1.8994        .11106E-03   -1.5436    
  19  Prefactor     .10000E-03    6.6944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86459        .17579        .22370E-03   -.97716    
  22  Prefactor     .85273        .16987        .22458E-03   -.97813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28787e-09
Minuit parameter uncertainties:
  1  12.1119
  2  1.60977e-06
  3  14.5705
  4  16.5635
  5  9.27177
  6  2.89058e-06
  7  33.4958
  8  11.2084
  9  3.66591
  10  6.22613e-06
  11  6.01072e-06
  12  5.79107e-06
  13  1.77745e-05
  14  0.0038235
  15  6.26838e-07
  16  1.0364e-06
  17  1.1119e-05
  18  1.89942
  19  2.03647e-06
  20  1.27278e-05
  21  0.175909
  22  0.169974
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.011e-06  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:  8.527e-01  1.700e-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:  8.646e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589446/likelihoodResults_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.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) = 6607.59435018
delta logL = -0.00186058319468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6607.59248973
delta logL = -1.36316884891e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0185       1.0000          .0000       10.000    
     3 'Normalizat'    .86457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85278       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=   6607.592     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      252 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6975        .12628E-02** at limit **
   2  Index         2.7263        5.2427        .50000       -.29524E-06
   3  Normalizat    .86459        .16742        .22370E-03    .11226E-03
   4  Prefactor     .85273        .16802        .22458E-03    .97600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.72626
  Normalizat = 0.864595
  Prefactor  = 0.852733
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.592     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6411        .25257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7263        5.7227        .50000       -.47209    
   3  Normalizat    .86459        .16760        .89480E-05   -.97716    
   4  Prefactor     .85273        .16819        .89832E-05   -.97813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99912e-11
Minuit parameter uncertainties:
  1  1.63546e-06
  2  82.5778
  3  0.167698
  4  0.168294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589446': 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) = 6607.59248902
delta logL = 5.74403202336e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.635e-06  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.726e+00  8.258e+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:  8.527e-01  1.683e-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:  8.646e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/589446/cmap_HighResolution_300758401_301017601_4FGL_J2256.0-2740_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-29 02:50:07.918512', job_id='589446', GAL2='0.85', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632909007.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='237' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 589446: <4FGL_J2256.0-2740_daily_bin237> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin237> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:33 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35: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:35:34 2021
Terminated at Wed Sep 29 02:50:10 2021
Results reported at Wed Sep 29 02:50:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin237 344.025 -27.6739 300758401 301017601 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 :                                   643.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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

