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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin247
RA = 344.025, Dec = -27.6739
tmin = 303350401, tmax = 303609601
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='589462', job_status='RUN', time_executed='2021-09-29 02:38:13.195534', time_epoch_executed='1632908293.2' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589462

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589462/ft1_4FGL_J2256.0-2740_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589462/ft1_4FGL_J2256.0-2740_daily_bin247.fits outfile=/scratch/kocevski/589462/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin247.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=303350401.0 tmax=303609601.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.37
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589462/ft1_filtered_4FGL_J2256.0-2740_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/589462/ltcube_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.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/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits
.....................!
real 11.66
user 11.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589462/ft1_filtered_4FGL_J2256.0-2740_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/589462/ltcube_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.fits outfile=/scratch/kocevski/589462/expmap_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.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/589462/ltcube_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.fits
.....................!
real 191.98
user 186.08
sys 5.60

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/589462/ft1_filtered_4FGL_J2256.0-2740_daily_bin247.fits scfile=/scratch/kocevski/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits outfile=/scratch/kocevski/589462/cmap_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589462/ft1_filtered_4FGL_J2256.0-2740_daily_bin247.fits scfile=/scratch/kocevski/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits outfile=/scratch/kocevski/589462/cmap_HighResolution_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589462/ft1_filtered_4FGL_J2256.0-2740_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/589462/ft2_4FGL_J2256.0-2740_daily_bin247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589462/Model_4FGL_J2256.0-2740_daily_bin247.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/589462/ft1_filtered_4FGL_J2256.0-2740_daily_bin247.fits.....................!
real 40.07
user 38.73
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.775       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    36.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.258       1.0000         .10000E-03   10000.    
     6 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9489       1.0000         .10000E-03   10000.    
     9 'norm      '    7.8900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
    12 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83738E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.005       1.0000         .10000E-03   10000.    
    18 'norm      '    5.7887       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1994       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71116       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=   4488.427     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2507 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.770        22.006       -.96065E-06   -.30179E-03
   2  Prefactor     .10000E-03    5.9344        .10253E-05** at limit **
   3  norm          36.314        31.405       -.16196E-04    .12887E-04
   4  Prefactor     .10000E-03    44.026       -.18100E-04** at limit **
   5  Prefactor     17.245        20.405       -.92033E-07    .18068E-04
   6  norm          .10000E-03    2.7590       -.54328E-06** at limit **
   7  Prefactor     79.604        61.619        .11819E-04    .51734E-04
   8  Prefactor     6.9438        14.527       -.74436E-06   -.56326E-04
   9  norm          7.8897        5.7125        .95043E-06   -.18614E-04
  10  Prefactor     .10000E-03    5.7788       -.73552E-06** at limit **
  11  Prefactor     12.545        13.335       -.11913E-05   -.79104E-04
  12  norm          .10000E-03    .68158        .43191E-07** at limit **
  13  Prefactor     .10000E-03    54.406        .47587E-04** at limit **
  14  Prefactor     .10000E-03    107.85       -.33923E-04** at limit **
  15  Prefactor     .10000E-03    11.421       -.22275E-06** at limit **
  16  norm          20.352        11.037        .18167E-05   -.20634E-04
  17  Prefactor     38.000        60.495       -.70188E-05   -.42482E-05
  18  norm          5.7877        3.7768       -.18439E-06   -.40298E-03
  19  Prefactor     .10000E-03    29.381        .22707E-04** at limit **
  20  Prefactor     .10000E-03    32.690       -.32343E-04** at limit **
  21  Normalizat    1.1995        .21823        .80499E-07    .17239E-03
  22  Prefactor     .71129        .19612        .16540E-05    .13707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7703
  Prefactor  = 0.0001
  norm       = 36.3143
  Prefactor  = 0.0001
  Prefactor  = 17.2451
  norm       = 0.000100001
  Prefactor  = 79.604
  Prefactor  = 6.94377
  norm       = 7.88969
  Prefactor  = 0.0001
  Prefactor  = 12.5449
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 20.3519
  Prefactor  = 38.0004
  norm       = 5.7877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19952
  Prefactor  = 0.711289
 **********
 **   18 **HESSE 
 **********

 FCN=   4488.427     FROM HESSE     STATUS=OK           342 CALLS     2849 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.770        22.051        .53960E-03   -1.4966    
   2  Prefactor     .10000E-03    5.9659        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          36.314        31.400        .66473E-04   -1.4502    
   4  Prefactor     .10000E-03    44.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.245        20.403        .96410E-04   -1.4877    
   6  norm          .10000E-03    2.7912        .21479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     79.604        60.998        .45016E-04   -1.3921    
   8  Prefactor     6.9438        14.559        .15219E-03   -1.5181    
   9  norm          7.8897        5.7017        .12333E-03   -1.5146    
  10  Prefactor     .10000E-03    5.7794        .15724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.545        12.029        .11321E-03   -1.4999    
  12  norm          .10000E-03    1.3972        .94288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    111.58        .36795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.352        11.034        .88776E-04   -1.4805    
  17  Prefactor     38.000        60.780        .65013E-04   -1.4474    
  18  norm          5.7877        3.7784        .10114E-03   -1.5227    
  19  Prefactor     .10000E-03    29.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1995        .26468        .23512E-03   -.86618    
  22  Prefactor     .71129        .23413        .27886E-03   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44152e-10
Minuit parameter uncertainties:
  1  22.0637
  2  9.30007e-07
  3  31.4141
  4  5.26129e-05
  5  20.4115
  6  9.2582e-05
  7  61.0465
  8  14.566
  9  5.70211
  10  2.78582e-06
  11  12.0317
  12  1.23928e-06
  13  6.69593e-05
  14  0.000898586
  15  1.00949e-05
  16  11.0346
  17  60.8795
  18  3.77855
  19  8.34045e-05
  20  2.83803e-06
  21  0.26498
  22  0.234452
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.254e+01  1.203e+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:  7.113e-01  2.345e-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.200e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 8.22e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/589462/likelihoodResults_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.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) = 4488.07861343
delta logL = 0.348080747529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4488.07602367
delta logL = 0.350670507913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.940       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8520       1.0000          .0000       10.000    
     3 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73668       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=   4488.076     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      252 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.939        11.033        .11593E-03    .15398E-02
   2  Index         3.8524        1.2008        .11835E-01    .20981E-03
   3  Normalizat    1.1630        .25753        .23806E-03   -.21483E-03
   4  Prefactor     .73674        .23563        .27448E-03   -.12169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9391
  Index      = 3.8524
  Normalizat = 1.16304
  Prefactor  = 0.736736
 **********
 **   18 **HESSE 
 **********

 FCN=   4488.076     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.939        10.649        .46372E-05   -1.5017    
   2  Index         3.8524        1.1593        .47340E-03   -.23159    
   3  Normalizat    1.1630        .25794        .47612E-04   -.87753    
   4  Prefactor     .73674        .23592        .10979E-04   -1.0210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49742e-09
Minuit parameter uncertainties:
  1  10.6507
  2  1.1705
  3  0.25822
  4  0.236243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589462': 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) = 4488.0760236
delta logL = 0.35067058091

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.194e+01  1.065e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.852e+00  1.171e+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:  7.367e-01  2.362e-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.163e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.85 +/- 1.17
Photon Flux (Free Index): 1.19e-07 +/- 8.98e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.38e-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/589462/cmap_HighResolution_303350401_303609601_4FGL_J2256.0-2740_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='1.83e-05', photon_flux_error='8.22e-08', dlogl='3.51e-01', energy_flux='1.69e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-29 02:47:13.782655', photon_index_error2='1.17', photon_index2='3.85', ts='1.57', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='2.33e-07', energy_flux_error2='1.38e-05', EG='1.20', time_epoch_completed='1632908833.78', return_code='0', job_id='589462', GAL2='0.74', EG2='1.16', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='8.98e-08', ts2='2.38', photon_index='3.02' WHERE bin_id='247' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 589462: <4FGL_J2256.0-2740_daily_bin247> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin247 344.025 -27.6739 303350401 303609601 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 :                                   539.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            700 sec.

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

