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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1642
RA = 344.025, Dec = -27.6739
tmin = 664934401, tmax = 665193601
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='445114', job_status='RUN', time_executed='2022-01-30 00:37:05.209840', time_epoch_executed='1643531825.21' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445114/ft1_4FGL_J2256.0-2740_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445114/ft1_4FGL_J2256.0-2740_daily_bin1642.fits outfile=/scratch/kocevski/445114/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1642.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=664934401.0 tmax=665193601.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.63
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.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/445114/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.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/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/445114/ltcube_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.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/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits
.....................!
real 12.44
user 12.08
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/445114/ltcube_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.fits outfile=/scratch/kocevski/445114/expmap_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.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/445114/ltcube_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.fits
.....................!
real 190.86
user 185.38
sys 4.25

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/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.fits scfile=/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits outfile=/scratch/kocevski/445114/cmap_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.fits scfile=/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits outfile=/scratch/kocevski/445114/cmap_HighResolution_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445114/ft2_4FGL_J2256.0-2740_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445114/Model_4FGL_J2256.0-2740_daily_bin1642.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/445114/ft1_filtered_4FGL_J2256.0-2740_daily_bin1642.fits.....................!
real 37.04
user 35.66
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19854E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3897       1.0000         .10000E-03   10000.    
     3 'norm      '    .12098E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.030       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.617       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39931E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .13812E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4299       1.0000         .10000E-03   10000.    
    12 'norm      '    .68633       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.481       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40947E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97389       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99226       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=   4041.559     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     2835 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10248E-03    43.813        .97007E-01** at limit **
   2  Prefactor     5.3974        12.089        .17310E-03   -.25683E-03
   3  norm          .10000E-03    32.519        .18142E-02** at limit **
   4  Prefactor     49.020        32.376        .57269E-04    .27712E-04
   5  Prefactor     25.611        19.592        .79147E-04    .10184E-03
   6  norm          8.8469        4.2554        .86200E-04    .30789E-03
   7  Prefactor     .10000E-03    66.955        .18142E-02** at limit **
   8  Prefactor     .67310E-01    28.558        .68652E-01    .55879E-04
   9  norm          .10001E-03    8.8396        .24092E-02** at limit **
  10  Prefactor     .10000E-03    10.554        .18142E-02** at limit **
  11  Prefactor     4.4297        14.044        .19133E-03   -.25078E-03
  12  norm          .68669        .89481        .49903E-03   -.10926E-02
  13  Prefactor     1.1090        345.35        .42909E-03   -.88494E-05
  14  Prefactor     21.476        19.305        .86421E-04   -.63802E-05
  15  Prefactor     .10000E-03    8.8230        .18142E-02** at limit **
  16  norm          .10000E-03    4.6350        .13323E-02** at limit **
  17  Prefactor     .10000E-03    190.89        .21253E-02** at limit **
  18  norm          .16879        15.276        .18192E-02   -.56869E-03
  19  Prefactor     .10000E-03    33.524        .18142E-02** at limit **
  20  Prefactor     .10000E-03    130.94        .18142E-02** at limit **
  21  Normalizat    .97389        .28263        .25727E-03    .41182E-03
  22  Prefactor     .99252        .26130        .24490E-03    .14277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102482
  Prefactor  = 5.39739
  norm       = 0.0001
  Prefactor  = 49.0202
  Prefactor  = 25.611
  norm       = 8.84692
  Prefactor  = 0.0001
  Prefactor  = 0.0673095
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 4.42973
  norm       = 0.686688
  Prefactor  = 1.10897
  Prefactor  = 21.4761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.168792
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.973891
  Prefactor  = 0.992517
 **********
 **   18 **HESSE 
 **********

 FCN=   4041.559     FROM HESSE     STATUS=OK           344 CALLS     3179 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10248E-03    40.585        .10167       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3974        12.087        .69239E-05   -1.5243    
   3  norm          .10000E-03    32.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.020        32.372        .11454E-04   -1.4307    
   5  Prefactor     25.611        19.586        .31659E-05   -1.4695    
   6  norm          8.8469        4.2549        .34480E-05   -1.5113    
   7  Prefactor     .10000E-03    66.959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .67310E-01    23.277        .77356E-01   -1.5656    
   9  norm          .10001E-03    8.8875        .48183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4297        14.137        .76532E-05   -1.5287    
  12  norm          .68669        .90064        .19961E-04   -1.5542    
  13  Prefactor     1.1090        345.19        .17163E-04   -1.5497    
  14  Prefactor     21.476        19.302        .34568E-05   -1.4781    
  15  Prefactor     .10000E-03    8.8249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6357        .26646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    190.96        .42506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16879        15.264        .72768E-04   -1.5626    
  19  Prefactor     .10000E-03    33.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    130.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97389        .28260        .51454E-04   -.93910    
  22  Prefactor     .99252        .26141        .48979E-04   -.92979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53569e-09
Minuit parameter uncertainties:
  1  0.0200885
  2  12.0923
  3  0.000157182
  4  32.3832
  5  19.5914
  6  4.25505
  7  0.000131537
  8  2.50254
  9  0.000644268
  10  8.36985e-05
  11  14.1476
  12  0.900656
  13  39.3599
  14  19.308
  15  6.44091e-05
  16  2.13771e-05
  17  9.20233e-05
  18  3.2102
  19  2.28872e-05
  20  0.000785429
  21  0.283033
  22  0.261746
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.430e+00  1.415e+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:  9.925e-01  2.617e-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.739e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/445114/likelihoodResults_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.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) = 4041.52035855
delta logL = 0.0384410590977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4041.51843731
delta logL = 0.0403622969488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0519       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3812       1.0000          .0000       10.000    
     3 'Normalizat'    .98623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98282       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=   4041.518     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      207 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0519        8.2747        .50078E-02   -.75521E-03
   2  Index         2.3816        .95018        .23977       -.37120E-04
   3  Normalizat    .98633        .22376        .45994E-01    .64146E-05
   4  Prefactor     .98273        .21444        .46052E-01    .68537E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05185
  Index      = 2.38156
  Normalizat = 0.986327
  Prefactor  = 0.982733
 **********
 **   18 **HESSE 
 **********

 FCN=   4041.518     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0519        9.2172        .20031E-03   -1.5305    
   2  Index         2.3816        1.7278        .13933E-01   -.55117    
   3  Normalizat    .98633        .26790        .25581E-03   -.93490    
   4  Prefactor     .98273        .25517        .24589E-03   -.93307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02681e-09
Minuit parameter uncertainties:
  1  9.22045
  2  1.77909
  3  0.268268
  4  0.255485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445114': 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) = 4041.51843721
delta logL = 0.0403624017272

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.052e+00  9.220e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.382e+00  1.779e+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:  9.827e-01  2.555e-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.863e-01  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/445114/cmap_HighResolution_664934401_665193601_4FGL_J2256.0-2740_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2022-01-30 00:45:54.213930', job_id='445114', GAL2='0.98', fit_tolerance='1e-08', EG2='0.99', EG='0.97', time_epoch_completed='1643532354.21', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.04e-02', ts2='0.30', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1642' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:45:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 445114: <4FGL_J2256.0-2740_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:57 2022
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:59 2022
Terminated at Sun Jan 30 00:45:54 2022
Results reported at Sun Jan 30 00:45:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1642 344.025 -27.6739 664934401 665193601 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 :                                   529.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            597 sec.

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

