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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin129
RA = 344.025, Dec = -27.6739
tmin = 272764801, tmax = 273024001
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='589284', job_status='RUN', time_executed='2021-09-29 02:38:39.206866', time_epoch_executed='1632908319.21' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589284/ft1_4FGL_J2256.0-2740_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589284/ft2_4FGL_J2256.0-2740_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589284/ft1_4FGL_J2256.0-2740_daily_bin129.fits outfile=/scratch/kocevski/589284/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin129.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=272764801.0 tmax=273024001.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 1.78
user 1.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589284/ft1_filtered_4FGL_J2256.0-2740_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/589284/ft2_4FGL_J2256.0-2740_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/589284/ltcube_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.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/589284/ft2_4FGL_J2256.0-2740_daily_bin129.fits
.....................!
real 12.53
user 12.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589284/ft1_filtered_4FGL_J2256.0-2740_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/589284/ft2_4FGL_J2256.0-2740_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/589284/ltcube_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.fits outfile=/scratch/kocevski/589284/expmap_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.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/589284/ltcube_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.fits
.....................!
real 190.68
user 185.69
sys 4.67

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/589284/ft1_filtered_4FGL_J2256.0-2740_daily_bin129.fits scfile=/scratch/kocevski/589284/ft2_4FGL_J2256.0-2740_daily_bin129.fits outfile=/scratch/kocevski/589284/cmap_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.537       1.0000         .10000E-03   10000.    
     3 'norm      '    33.488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3374       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.768       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59773E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3763       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5600       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50875E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    14.180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.846       1.0000         .10000E-03   10000.    
    18 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.602       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.903       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79986       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69685       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=   6036.877     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2437 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7638        9.7451       -.16281E-05   -.20966E-03
   2  Prefactor     10.536        7.8122        .49570E-05   -.81980E-04
   3  norm          33.481        20.074        .46559E-05   -.90739E-04
   4  Prefactor     13.098        18.138        .10981E-05   -.30551E-04
   5  Prefactor     7.3359        9.3479       -.59326E-07   -.18985E-03
   6  norm          1.0967        1.9979        .35833E-05    .18737E-02
   7  Prefactor     12.727        44.167       -.46394E-04    .14815E-03
   8  Prefactor     .10000E-03    6.1741       -.58228E-07** at limit **
   9  norm          .10020E-03    1.5233       -.50278E-06** at limit **
  10  Prefactor     .10000E-03    15.620       -.84497E-06** at limit **
  11  Prefactor     9.3854        9.2128        .55862E-05    .44577E-04
  12  norm          2.5601        .77079       -.38303E-06    .41753E-02
  13  Prefactor     8.3720        30.122       -.84886E-05   -.10544E-04
  14  Prefactor     .10000E-03    3.0181        .29260E-07** at limit **
  15  Prefactor     .10007E-03    6.1852       -.94502E-06** at limit **
  16  norm          14.179        9.0761       -.58270E-07   -.25287E-04
  17  Prefactor     48.839        44.446       -.72845E-05    .13886E-04
  18  norm          .10000E-03    .58163       -.54132E-08** at limit **
  19  Prefactor     33.595        23.943        .56683E-06    .14773E-04
  20  Prefactor     28.889        75.843       -.21540E-04    .36834E-05
  21  Normalizat    .79989        .15845        .19137E-05   -.90458E-04
  22  Prefactor     .69687        .14160       -.27543E-06    .11975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.76382
  Prefactor  = 10.5363
  norm       = 33.4811
  Prefactor  = 13.0983
  Prefactor  = 7.33588
  norm       = 1.09672
  Prefactor  = 12.7267
  Prefactor  = 0.0001
  norm       = 0.000100195
  Prefactor  = 0.000100003
  Prefactor  = 9.38545
  norm       = 2.56008
  Prefactor  = 8.37196
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  norm       = 14.1788
  Prefactor  = 48.8387
  norm       = 0.0001
  Prefactor  = 33.5952
  Prefactor  = 28.8894
  Normalizat = 0.799885
  Prefactor  = 0.696866
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.877     FROM HESSE     STATUS=OK           370 CALLS     2807 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7638        9.7441        .24481E-03   -1.5375    
   2  Prefactor     10.536        7.8336        .12343E-03   -1.5059    
   3  norm          33.481        19.991        .69246E-04   -1.4550    
   4  Prefactor     13.098        18.152        .11066E-03   -1.4984    
   5  Prefactor     7.3359        9.3561        .14807E-03   -1.5166    
   6  norm          1.0967        1.7356        .11959E-02   -1.5499    
   7  Prefactor     12.727        43.703        .11210E-03   -1.4994    
   8  Prefactor     .10000E-03    6.2523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10020E-03    2.2644        .34985E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3854        9.4214        .13088E-03   -1.5095    
  12  norm          2.5601        .79290        .30263E-04   -1.5388    
  13  Prefactor     8.3720        30.137        .13840E-03   -1.5129    
  14  Prefactor     .10000E-03    3.0214        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    7.4980        .56075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.179        9.0807        .10637E-03   -1.4955    
  17  Prefactor     48.839        44.790        .57376E-04   -1.4309    
  18  norm          .10000E-03    .58532        .57840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.595        23.964        .69128E-04   -1.4548    
  20  Prefactor     28.889        76.069        .74522E-04   -1.4632    
  21  Normalizat    .79989        .18956        .22256E-03   -1.0007    
  22  Prefactor     .69687        .16778        .23020E-03   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04703e-09
Minuit parameter uncertainties:
  1  9.74964
  2  7.83439
  3  19.9948
  4  18.1596
  5  9.35801
  6  1.73568
  7  43.813
  8  5.4204e-05
  9  0.00132928
  10  0.000419405
  11  9.42286
  12  0.792903
  13  30.1918
  14  8.74012e-07
  15  0.00145615
  16  9.08157
  17  44.8207
  18  5.05736e-07
  19  23.971
  20  76.3263
  21  0.189715
  22  0.167904
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  9.385e+00  9.423e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  6.969e-01  1.679e-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:  7.999e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 6.44e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/589284/likelihoodResults_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.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) = 6036.64608145
delta logL = 0.230519649827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6036.64419608
delta logL = 0.232405018784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9515       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0455       1.0000          .0000       10.000    
     3 'Normalizat'    .77783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71434       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=   6036.644     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9495        12.205        .13479E-03   -.22992E-03
   2  Index         4.0463        2.5886        .12823E-01   -.30582E-04
   3  Normalizat    .77783        .17368        .22535E-03    .15988E-03
   4  Prefactor     .71431        .16578        .22778E-03    .36740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94954
  Index      = 4.04626
  Normalizat = 0.777833
  Prefactor  = 0.714307
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.644     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9495        9.5841        .53917E-05   -1.5181    
   2  Index         4.0463        2.0716        .51293E-03   -.19193    
   3  Normalizat    .77783        .17395        .90139E-05   -1.0090    
   4  Prefactor     .71431        .16578        .45556E-04   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04291e-10
Minuit parameter uncertainties:
  1  9.58623
  2  2.13859
  3  0.174078
  4  0.165894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589284': 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) = 6036.64419589
delta logL = 0.23240521314

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.950e+00  9.586e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.046e+00  2.139e+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.143e-01  1.659e-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:  7.778e-01  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.05 +/- 2.14
Photon Flux (Free Index): 7.70e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.14e-05 +/- 9.17e-06

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/589284/cmap_HighResolution_272764801_273024001_4FGL_J2256.0-2740_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='1.14e-05', photon_flux_error='6.44e-08', dlogl='2.32e-01', energy_flux='1.27e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2021-09-29 02:49:01.357621', photon_index_error2='2.14', photon_index2='4.05', ts='1.90', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='9.17e-06', EG='0.80', time_epoch_completed='1632908941.36', return_code='0', job_id='589284', GAL2='0.71', EG2='0.78', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.48e-08', ts2='2.60', photon_index='3.02' WHERE bin_id='129' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:49:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 589284: <4FGL_J2256.0-2740_daily_bin129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin129 344.025 -27.6739 272764801 273024001 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 :                                   623.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

