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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin523
RA = 314.142, Dec = -2.0355
tmin = 374889601, tmax = 375148801
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='218255', job_status='RUN', time_executed='2021-09-25 22:03:22.686698', time_epoch_executed='1632632602.69' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218255/ft1_4FGL_J2056.5-0202_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218255/ft1_4FGL_J2056.5-0202_daily_bin523.fits outfile=/scratch/kocevski/218255/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin523.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=374889601.0 tmax=375148801.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.58
user 3.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.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/218255/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin523.fits evtable="EVENTS" outfile="/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/218255/ltcube_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.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/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits
.....................!
real 15.45
user 15.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/218255/ltcube_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.fits outfile=/scratch/kocevski/218255/expmap_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.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/218255/ltcube_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.fits
.....................!
real 191.81
user 186.74
sys 4.61

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2056.5-0202 @ 314.142 -2.0355

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits scfile=/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits outfile=/scratch/kocevski/218255/cmap_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.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=314.142 yref=-2.0355 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits scfile=/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits outfile=/scratch/kocevski/218255/cmap_HighResolution_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.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=314.142 yref=-2.0355 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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218255/Model_4FGL_J2056.5-0202_daily_bin523.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/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits.....................!
real 87.95
user 86.33
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits', '/scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits', expMap='/scratch/kocevski/218255/expmap_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.fits', expCube='/scratch/kocevski/218255/ltcube_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218255/Model_4FGL_J2056.5-0202_daily_bin523.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2056.5-0202'

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.312e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/218255/ft1_filtered_4FGL_J2056.5-0202_daily_bin523.fits
Spacecraft file(s): /scratch/kocevski/218255/ft2_4FGL_J2056.5-0202_daily_bin523.fits
Exposure map: /scratch/kocevski/218255/expmap_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.fits
Exposure cube: /scratch/kocevski/218255/ltcube_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218255/Model_4FGL_J2056.5-0202_daily_bin523.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) = 9002.40797714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.034       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.657       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8408       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.646       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3136       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9002.404     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2040 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.137        25.794       -.12756E-04   -.51217E-05
   2  Prefactor     .10000E-03    3.0197        .77927E-07** at limit **
   3  norm          .10000E-03    .41860       -.15774E-06** at limit **
   4  Prefactor     .10000E-03    6.5692        .34482E-05** at limit **
   5  norm          1.5322        1.6557       -.13263E-06    .81713E-04
   6  Prefactor     3.5657        4.0318       -.93979E-06   -.75015E-03
   7  Prefactor     2.6441        10.063        .19276E-04   -.17768E-03
   8  Prefactor     19.453        30.558       -.52255E-05   -.10008E-04
   9  Prefactor     .10000E-03    4.6199       -.21777E-06** at limit **
  10  Prefactor     .10000E-03    9.6335        .55962E-06** at limit **
  11  Prefactor     28.463        38.117        .33756E-04    .15178E-05
  12  Prefactor     9.0781        18.081       -.22859E-04   -.54470E-04
  13  Prefactor     28.044        21.997       -.93713E-05   -.57865E-05
  14  Prefactor     16.584        38.684       -.35677E-04   -.14149E-03
  15  Prefactor     2.8416        3.9782        .16678E-05   -.42070E-03
  16  Prefactor     .22062        2.3906        .21641E-05   -.20127E-02
  17  Prefactor     .10000E-03    6.6806       -.37925E-05** at limit **
  18  Prefactor     17.619        31.049        .12062E-04   -.22478E-04
  19  Normalizat    1.3130        .21508        .32146E-05   -.29795E-03
  20  Prefactor     .79297        .86102E-01   -.22635E-06   -.17790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5322
  Prefactor  = 3.56567
  Prefactor  = 2.64405
  Prefactor  = 19.4528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4629
  Prefactor  = 9.07811
  Prefactor  = 28.0437
  Prefactor  = 16.5844
  Prefactor  = 2.84161
  Prefactor  = 0.220621
  Prefactor  = 0.0001
  Prefactor  = 17.619
  Normalizat = 1.31301
  Prefactor  = 0.792974
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.404     FROM HESSE     STATUS=OK           301 CALLS     2341 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.137        25.865        .85189E-04   -1.4767    
   2  Prefactor     .10000E-03    3.0231        .16102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .71234        .11883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5322        1.6596        .12362E-03   -1.5460    
   6  Prefactor     3.5657        4.0283        .19419E-03   -1.5330    
   7  Prefactor     2.6441        10.004        .25098E-03   -1.5383    
   8  Prefactor     19.453        30.562        .90925E-04   -1.4826    
   9  Prefactor     .10000E-03    4.6214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.463        38.154        .75178E-04   -1.4640    
  12  Prefactor     9.0781        18.183        .13313E-03   -1.5105    
  13  Prefactor     28.044        22.003        .75665E-04   -1.4648    
  14  Prefactor     16.584        36.351        .98135E-04   -1.4893    
  15  Prefactor     2.8416        3.9601        .21739E-03   -1.5371    
  16  Prefactor     .22062        2.1473        .24633E-03   -1.5614    
  17  Prefactor     .10000E-03    6.6821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.619        31.054        .95344E-04   -1.4868    
  19  Normalizat    1.3130        .26268        .32546E-03   -.83179    
  20  Prefactor     .79297        .10526        .16950E-03   -.99988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96967e-09
Minuit parameter uncertainties:
  1  25.8784
  2  1.48445e-06
  3  1.42108e-05
  4  3.37253e-05
  5  1.65961
  6  4.02864
  7  10.0102
  8  30.5861
  9  1.75378e-06
  10  4.21151e-06
  11  38.1871
  12  18.1936
  13  22.0091
  14  36.3998
  15  3.96043
  16  1.37631
  17  9.88092e-06
  18  31.0826
  19  0.262953
  20  0.105288
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  3.566e+00  4.029e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  7.930e-01  1.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.313e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 9.55e-06 +/- 1.08e-05

TS (Fixed Index): 1.06
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218255/likelihoodResults_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.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) = 9002.2281378
delta logL = 0.17631911128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9002.22770156
delta logL = 0.176755348324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0588       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1249       1.0000          .0000       10.000    
     3 'Normalizat'    1.3226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78911       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9002.228     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      307 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0713        5.2526        .89387E-03    .34102E-03
   2  Index         2.1267        .59327        .10237E-01    .72124E-04
   3  Normalizat    1.3227        .24571        .32442E-03   -.14017E-06
   4  Prefactor     .78901        .10289        .16985E-03   -.40159E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07128
  Index      = 2.12667
  Normalizat = 1.32273
  Prefactor  = 0.789013
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.228     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0713        5.2039        .17877E-03   -1.5258    
   2  Index         2.1267        .58797        .20474E-02   -.61220    
   3  Normalizat    1.3227        .24590        .12977E-04   -.82890    
   4  Prefactor     .78901        .10296        .67942E-05   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08259e-13
Minuit parameter uncertainties:
  1  5.20441
  2  0.590012
  3  0.246122
  4  0.102988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218255': 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) = 9002.22769242
delta logL = 0.176764486367

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  5.071e+00  5.204e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.127e+00  5.900e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  7.890e-01  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.323e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.13 +/- 0.59
Photon Flux (Free Index): 2.97e-08 +/- 3.29e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/218255/cmap_HighResolution_374889601_375148801_4FGL_J2056.5-0202_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='1.54e-05', photon_flux_error='3.79e-08', dlogl='1.77e-01', energy_flux='9.55e-06', photon_flux2='2.97e-08', job_status='DONE', time_completed='2021-09-25 22:16:19.188326', photon_index_error2='0.59', photon_index2='2.13', ts='1.06', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.96e-05', EG='1.31', time_epoch_completed='1632633379.19', return_code='0', job_id='218255', GAL2='0.79', EG2='1.32', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.29e-08', ts2='1.41', photon_index='2.52' WHERE bin_id='523' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 218255: <4FGL_J2056.5-0202_daily_bin523> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin523> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep 25 22:00:29 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:00:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 22:00:57 2021
Terminated at Sat Sep 25 22:16:20 2021
Results reported at Sat Sep 25 22:16:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin523 314.142 -2.0355 374889601 375148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2056.5-0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   776.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            951 sec.

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

