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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin967
RA = 344.025, Dec = -27.6739
tmin = 489974401, tmax = 490233601
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='592598', job_status='RUN', time_executed='2021-09-29 02:49:22.732603', time_epoch_executed='1632908962.73' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592598/ft1_4FGL_J2256.0-2740_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592598/ft1_4FGL_J2256.0-2740_daily_bin967.fits outfile=/scratch/kocevski/592598/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin967.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=489974401.0 tmax=490233601.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.73
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592598/ft1_filtered_4FGL_J2256.0-2740_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/592598/ltcube_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.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/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits
.....................!
real 11.98
user 11.65
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592598/ft1_filtered_4FGL_J2256.0-2740_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/592598/ltcube_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.fits outfile=/scratch/kocevski/592598/expmap_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.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/592598/ltcube_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.fits
.....................!
real 190.33
user 185.39
sys 4.59

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/592598/ft1_filtered_4FGL_J2256.0-2740_daily_bin967.fits scfile=/scratch/kocevski/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits outfile=/scratch/kocevski/592598/cmap_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592598/ft1_filtered_4FGL_J2256.0-2740_daily_bin967.fits scfile=/scratch/kocevski/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits outfile=/scratch/kocevski/592598/cmap_HighResolution_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.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/592598/ft1_filtered_4FGL_J2256.0-2740_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/592598/ft2_4FGL_J2256.0-2740_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592598/Model_4FGL_J2256.0-2740_daily_bin967.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/592598/ft1_filtered_4FGL_J2256.0-2740_daily_bin967.fits.....................!
real 43.37
user 41.97
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.357       1.0000         .10000E-03   10000.    
     6 'norm      '    .72680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35258E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .93110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30721E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8424       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0288       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1002       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=   5469.787     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     2488 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.665        .18142E-02** at limit **
   2  Prefactor     .10000E-03    3.5910        .13644E-02** at limit **
   3  norm          8.8001        17.270        .13513E-03   -.11694E-04
   4  Prefactor     .10000E-03    6.9096        .18142E-02** at limit **
   5  Prefactor     15.342        14.886        .10221E-03    .61178E-04
   6  norm          .72621        1.5084        .15228E-02    .72089E-03
   7  Prefactor     .10000E-03    336.22        .42354E-03** at limit **
   8  Prefactor     .10000E-03    8.3011        .18142E-02** at limit **
   9  norm          .10000E-03    2.7207        .11845E-02** at limit **
  10  Prefactor     .10000E-03    6.4321        .18142E-02** at limit **
  11  Prefactor     .10001E-03    19.908        .51702E-01** at limit **
  12  norm          .93125        .83765        .50541E-03   -.35479E-02
  13  Prefactor     .10000E-03    67.382        .18142E-02** at limit **
  14  Prefactor     12.769        15.626        .11205E-03   -.13697E-04
  15  Prefactor     .10000E-03    20.932        .36285E-03** at limit **
  16  norm          6.6016        8.9831        .15620E-03    .13101E-05
  17  Prefactor     .10045E-03    59.421        .14960    ** at limit **
  18  norm          .10827E-03    6.2356        .33081E-01** at limit **
  19  Prefactor     8.8531        29.824        .13479E-03   -.11133E-03
  20  Prefactor     .10000E-03    48.757        .18142E-02** at limit **
  21  Normalizat    1.0288        .24549        .25088E-03   -.14333E-03
  22  Prefactor     1.1004        .23240        .23989E-03   -.12718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.80006
  Prefactor  = 0.0001
  Prefactor  = 15.3421
  norm       = 0.726213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.931247
  Prefactor  = 0.0001
  Prefactor  = 12.7692
  Prefactor  = 0.0001
  norm       = 6.60159
  Prefactor  = 0.000100447
  norm       = 0.000108269
  Prefactor  = 8.85311
  Prefactor  = 0.0001
  Normalizat = 1.0288
  Prefactor  = 1.10045
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.787     FROM HESSE     STATUS=OK           352 CALLS     2840 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5915        .27288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8001        17.268        .54051E-05   -1.5115    
   4  Prefactor     .10000E-03    6.9100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.342        14.884        .40882E-05   -1.4924    
   6  norm          .72621        1.5064        .60911E-04   -1.5538    
   7  Prefactor     .10000E-03    336.23        .84709E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.3059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7209        .23690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    15.703        .58917E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .93125        .82996        .20216E-04   -1.5515    
  13  Prefactor     .10000E-03    67.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.769        15.626        .44820E-05   -1.4993    
  15  Prefactor     .10000E-03    20.933        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6016        8.9827        .62481E-05   -1.5194    
  17  Prefactor     .10045E-03    61.018        .14701       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10827E-03    4.1922        .42287E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8531        29.799        .53917E-05   -1.5113    
  20  Prefactor     .10000E-03    48.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0288        .24564        .10035E-04   -.92072    
  22  Prefactor     1.1004        .23252        .47979E-04   -.89452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07087e-09
Minuit parameter uncertainties:
  1  8.92003e-06
  2  3.58633e-06
  3  17.2775
  4  2.20051e-06
  5  14.8878
  6  1.50644
  7  0.000536409
  8  9.48745e-06
  9  7.60588e-06
  10  9.86974e-06
  11  0.000791426
  12  0.829969
  13  0.000264252
  14  15.631
  15  6.63605e-05
  16  8.98449
  17  0.0104591
  18  0.0117764
  19  29.8489
  20  5.97045e-05
  21  0.245912
  22  0.232731
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  7.914e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.100e+00  2.327e-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.029e+00  2.459e-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: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592598/likelihoodResults_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5469.78658529
delta logL = -2.72913566732e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5469.73086425
delta logL = 0.0556937560814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3910       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7515       1.0000          .0000       10.000    
     3 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   5469.731     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      304 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3888        150.31        .92111E-02    .52658E-03
   2  Index         4.7550        5.5469        .50000        .57999E-06
   3  Normalizat    1.0004        .37703E-01    .46171E-01   -.48920E-04
   4  Prefactor     1.1178        .37114E-01    .53883E-01    .13694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38878
  Index      = 4.755
  Normalizat = 1.00036
  Prefactor  = 1.11778
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.731     FROM HESSE     STATUS=OK            31 CALLS      335 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3888        12.355        .23989E-03   -1.5472    
   2  Index         4.7550        7.3414        .31856E-01   -.49019E-01
   3  Normalizat    1.0004        .24414        .25401E-03   -.93018    
   4  Prefactor     1.1178        .23203        .23824E-03   -.88900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62407e-10
Minuit parameter uncertainties:
  1  8.28657
  2  6.74957
  3  0.244415
  4  0.232235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592598': 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) = 5469.7308639
delta logL = 0.0556940985625

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.389e+00  8.287e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.755e+00  6.750e+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:  1.118e+00  2.322e-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.000e+00  2.444e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/592598/cmap_HighResolution_489974401_490233601_4FGL_J2256.0-2740_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-29 02:59:09.786919', job_id='592598', GAL2='1.12', fit_tolerance='1e-08', EG2='1.00', EG='1.03', time_epoch_completed='1632909549.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.57e-02', ts2='0.12', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='967' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 592598: <4FGL_J2256.0-2740_daily_bin967> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin967> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:37 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:38 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:45:38 2021
Terminated at Wed Sep 29 02:59:10 2021
Results reported at Wed Sep 29 02:59:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin967 344.025 -27.6739 489974401 490233601 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 :                                   584.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             247.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

