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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin832
RA = 344.025, Dec = -27.6739
tmin = 454982401, tmax = 455241601
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='592395', job_status='RUN', time_executed='2021-09-29 02:47:54.337083', time_epoch_executed='1632908874.34' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='832'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592395/ft1_4FGL_J2256.0-2740_daily_bin832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592395/ft1_4FGL_J2256.0-2740_daily_bin832.fits outfile=/scratch/kocevski/592395/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin832.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=454982401.0 tmax=455241601.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.47
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592395/ft1_filtered_4FGL_J2256.0-2740_daily_bin832.fits" evtable="EVENTS" scfile=/scratch/kocevski/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits sctable="SC_DATA" outfile=/scratch/kocevski/592395/ltcube_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.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/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits
.....................!
real 11.68
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592395/ft1_filtered_4FGL_J2256.0-2740_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits sctable="SC_DATA" expcube=/scratch/kocevski/592395/ltcube_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.fits outfile=/scratch/kocevski/592395/expmap_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.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/592395/ltcube_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.fits
.....................!
real 190.93
user 185.85
sys 4.73

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/592395/ft1_filtered_4FGL_J2256.0-2740_daily_bin832.fits scfile=/scratch/kocevski/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits outfile=/scratch/kocevski/592395/cmap_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.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/592395/ft1_filtered_4FGL_J2256.0-2740_daily_bin832.fits scfile=/scratch/kocevski/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits outfile=/scratch/kocevski/592395/cmap_HighResolution_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592395/ft1_filtered_4FGL_J2256.0-2740_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/592395/ft2_4FGL_J2256.0-2740_daily_bin832.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592395/Model_4FGL_J2256.0-2740_daily_bin832.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/592395/ft1_filtered_4FGL_J2256.0-2740_daily_bin832.fits.....................!
real 39.53
user 38.16
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7578       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1678       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35644E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.302       1.0000         .10000E-03   10000.    
    12 'norm      '    .13861E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9036       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45570E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14695E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    116.76       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91740       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85120       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=   4579.030     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2427 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.181        26.870        .35019E-06    .65096E-06
   2  Prefactor     .10000E-03    3.7997       -.36659E-07** at limit **
   3  norm          5.5113        20.828       -.47481E-06    .23230E-04
   4  Prefactor     34.161        27.871        .87977E-06   -.21457E-05
   5  Prefactor     .10000E-03    5.6746        .63347E-07** at limit **
   6  norm          2.7577        2.1288       -.12930E-07   -.10377E-03
   7  Prefactor     .10000E-03    19.099        .53174E-06** at limit **
   8  Prefactor     9.1663        12.903        .34788E-07    .22029E-04
   9  norm          .10000E-03    3.1017        .20765E-06** at limit **
  10  Prefactor     .10000E-03    11.756        .24162E-05** at limit **
  11  Prefactor     26.293        10.407       -.17521E-05   -.37667E-04
  12  norm          .10000E-03    .46806        .44650E-06** at limit **
  13  Prefactor     63.155        77.266       -.20140E-06   -.14305E-04
  14  Prefactor     3.9046        11.514        .73795E-07    .13290E-03
  15  Prefactor     .10000E-03    26.691        .13302E-05** at limit **
  16  norm          .10000E-03    29.741        .10377E-04** at limit **
  17  Prefactor     .10000E-03    36.035        .19068E-05** at limit **
  18  norm          .10000E-03    .94055        .42374E-08** at limit **
  19  Prefactor     .10000E-03    8.6291       -.11551E-07** at limit **
  20  Prefactor     116.77        112.57       -.97459E-06   -.81467E-05
  21  Normalizat    .91802        .20150        .37367E-06   -.11741E-03
  22  Prefactor     .85061        .18659       -.19619E-06   -.12289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.1809
  Prefactor  = 0.0001
  norm       = 5.51128
  Prefactor  = 34.1611
  Prefactor  = 0.0001
  norm       = 2.75773
  Prefactor  = 0.0001
  Prefactor  = 9.16632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2933
  norm       = 0.0001
  Prefactor  = 63.1546
  Prefactor  = 3.90457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 116.774
  Normalizat = 0.918023
  Prefactor  = 0.850615
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.030     FROM HESSE     STATUS=OK           344 CALLS     2771 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.181        26.879        .70628E-04   -1.4573    
   2  Prefactor     .10000E-03    3.8211        .12883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5113        20.767        .17123E-03   -1.5238    
   4  Prefactor     34.161        27.905        .68548E-04   -1.4538    
   5  Prefactor     .10000E-03    5.6968        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7577        2.1267        .83277E-04   -1.5376    
   7  Prefactor     .10000E-03    19.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.1663        12.911        .13237E-03   -1.5102    
   9  norm          .10000E-03    3.1589        .11625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.710        .41172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.293        10.704        .78112E-04   -1.4682    
  12  norm          .10000E-03    3.1168        .79875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.155        77.583        .50496E-04   -1.4117    
  14  Prefactor     3.9046        11.505        .20421E-03   -1.5313    
  15  Prefactor     .10000E-03    27.881        .42405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    29.423        .35267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .94562        .64077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     116.77        112.66        .37236E-04   -1.3542    
  21  Normalizat    .91802        .23988        .23862E-03   -.95830    
  22  Prefactor     .85061        .22088        .23821E-03   -.97889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67723e-10
Minuit parameter uncertainties:
  1  26.8893
  2  5.46014e-05
  3  20.7941
  4  27.9158
  5  3.14383e-06
  6  2.12672
  7  4.19165e-06
  8  12.915
  9  1.82193e-06
  10  5.12011e-05
  11  10.7049
  12  1.16514e-05
  13  77.7077
  14  11.5111
  15  7.97257e-05
  16  3.1306e-05
  17  1.43882e-06
  18  3.14244e-06
  19  2.25364e-05
  20  112.869
  21  0.240158
  22  0.221112
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.629e+01  1.070e+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:  8.506e-01  2.211e-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:  9.180e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.18
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 7.31e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 1.44e-05

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) = 4578.99505082
delta logL = 0.0348154404983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4578.99371351
delta logL = 0.0361527544883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.293       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8920       1.0000          .0000       10.000    
     3 'Normalizat'    .92976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84132       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=   4578.994     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      190 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.324        11.337        .19531E-02   -.21205E-03
   2  Index         2.8921        .47706        .15348       -.84331E-04
   3  Normalizat    .92945        .19419        .45281E-01   -.24712E-03
   4  Prefactor     .84151        .18493        .44253E-01    .10438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3237
  Index      = 2.89211
  Normalizat = 0.929451
  Prefactor  = 0.841513
 **********
 **   18 **HESSE 
 **********

 FCN=   4578.994     FROM HESSE     STATUS=OK            31 CALLS      221 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.324        10.649        .78124E-04   -1.4681    
   2  Index         2.8921        .47361        .64120E-02   -.43519    
   3  Normalizat    .92945        .23355        .23734E-03   -.95433    
   4  Prefactor     .84151        .22035        .23930E-03   -.98216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13728e-10
Minuit parameter uncertainties:
  1  10.6502
  2  0.474473
  3  0.23381
  4  0.220577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592395': 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) = 4578.99370924
delta logL = 0.0361570216501

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.632e+01  1.065e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.892e+00  4.745e-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.415e-01  2.206e-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:  9.295e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.16
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.89 +/- 0.47
Photon Flux (Free Index): 1.72e-07 +/- 7.60e-08
Energy Flux (Free Index): 3.63e-05 +/- 1.51e-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/592395/cmap_HighResolution_454982401_455241601_4FGL_J2256.0-2740_daily_bin832.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='3.63e-05', photon_flux_error='7.31e-08', dlogl='3.62e-02', energy_flux='3.55e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-29 02:56:37.352637', photon_index_error2='0.47', photon_index2='2.89', ts='11.18', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.92', time_epoch_completed='1632909397.35', return_code='0', job_id='592395', GAL2='0.84', EG2='0.93', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.60e-08', ts2='11.16', photon_index='3.02' WHERE bin_id='832' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:56:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 592395: <4FGL_J2256.0-2740_daily_bin832> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin832 344.025 -27.6739 454982401 455241601 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 :                                   497.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            675 sec.

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

