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


Performing analysis on: 4FGL_J2056.2-4714_daily_bin1078
RA = 314.072, Dec = -47.2369
tmin = 518745601, tmax = 519004801
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='212575', job_status='RUN', time_executed='2021-09-25 21:45:21.363481', time_epoch_executed='1632631521.36' WHERE source_name='4FGL J2056.2-4714' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212575/ft1_4FGL_J2056.2-4714_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212575/ft1_4FGL_J2056.2-4714_daily_bin1078.fits outfile=/scratch/kocevski/212575/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1078.fits ra=314.072 dec=-47.2369 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.40
user 4.14
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.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/212575/ft1_filteredMKT_4FGL_J2056.2-4714_daily_bin1078.fits evtable="EVENTS" outfile="/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/212575/ltcube_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.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/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits
.....................!
real 12.76
user 12.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/212575/ltcube_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.fits outfile=/scratch/kocevski/212575/expmap_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.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/212575/ltcube_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.fits
.....................!
real 190.68
user 185.87
sys 4.46

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

Setting source of interest to:
4FGL J2056.2-4714 @ 314.072 -47.2369

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits scfile=/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits outfile=/scratch/kocevski/212575/cmap_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.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.072 yref=-47.2369 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits scfile=/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits outfile=/scratch/kocevski/212575/cmap_HighResolution_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.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.072 yref=-47.2369 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212575/Model_4FGL_J2056.2-4714_daily_bin1078.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/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits.....................!
real 51.28
user 49.96
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits', '/scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits', expMap='/scratch/kocevski/212575/expmap_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.fits', expCube='/scratch/kocevski/212575/ltcube_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212575/Model_4FGL_J2056.2-4714_daily_bin1078.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2056.2-4714'

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  5.442e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.353e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/212575/ft1_filtered_4FGL_J2056.2-4714_daily_bin1078.fits
Spacecraft file(s): /scratch/kocevski/212575/ft2_4FGL_J2056.2-4714_daily_bin1078.fits
Exposure map: /scratch/kocevski/212575/expmap_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.fits
Exposure cube: /scratch/kocevski/212575/ltcube_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212575/Model_4FGL_J2056.2-4714_daily_bin1078.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) = 5989.24900709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6598       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.497       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9207       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11161E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84239E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4072       1.0000         .10000E-03   10000.    
    18 'norm      '    13.816       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4069       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51974       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5601       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   5989.225     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     2935 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2576        .18142E-02** at limit **
   2  norm          6.6457        21.555        .15549E-03    .36411E-04
   3  norm          .10000E-03    .64344        .60443E-03** at limit **
   4  Prefactor     69.500        71.331        .48151E-04    .33527E-05
   5  norm          1.9239        5.7874        .14551E-02   -.40924E-04
   6  norm          .10000E-03    7.6345        .18142E-02** at limit **
   7  Prefactor     .10000E-03    15.261        .18142E-02** at limit **
   8  Prefactor     .10000E-03    44.030        .18142E-02** at limit **
   9  Prefactor     .10000E-03    1.1199        .79574E-03** at limit **
  10  Prefactor     .10000E-03    7.1680        .18142E-02** at limit **
  11  norm          .10000E-03    .85100        .69029E-03** at limit **
  12  Prefactor     16.891        20.231        .97450E-04   -.16333E-05
  13  Prefactor     .10000E-03    190.65        .18142E-02** at limit **
  14  Prefactor     11.427        11.115        .11850E-03   -.19005E-03
  15  Prefactor     .10002E-03    35.522        .12202    ** at limit **
  16  Prefactor     .10000E-03    12.061        .18142E-02** at limit **
  17  Prefactor     5.4075        4.9376        .15662E-03   -.25805E-03
  18  norm          13.814        6.9850        .10776E-03   -.31661E-03
  19  Prefactor     5.4068        6.7075        .17282E-03   -.23551E-04
  20  Prefactor     .10000E-03    19.716        .18142E-02** at limit **
  21  Prefactor     .49483        62.249        .44846E-02   -.25045E-03
  22  Normalizat    1.5601        .30118        .29479E-03   -.54464E-03
  23  Prefactor     .82344        .15103        .20300E-03   -.43082E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.6457
  norm       = 0.0001
  Prefactor  = 69.4996
  norm       = 1.92387
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8914
  Prefactor  = 0.0001
  Prefactor  = 11.427
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 5.4075
  norm       = 13.8137
  Prefactor  = 5.40682
  Prefactor  = 0.0001
  Prefactor  = 0.494829
  Normalizat = 1.56009
  Prefactor  = 0.82344
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.225     FROM HESSE     STATUS=OK           360 CALLS     3295 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6457        21.512        .62197E-05   -1.5192    
   3  norm          .10000E-03    .64345        .12089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.500        71.324        .96301E-05   -1.4039    
   5  norm          1.9239        5.7692        .58205E-04   -1.5431    
   6  norm          .10000E-03    7.6346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1200        .15915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .85109        .13806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.891        20.231        .38980E-05   -1.4886    
  13  Prefactor     .10000E-03    190.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.427        11.114        .47401E-05   -1.5032    
  15  Prefactor     .10002E-03    34.948        .12342       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4075        4.9364        .62647E-05   -1.5243    
  18  norm          13.814        6.9843        .43104E-05   -1.4964    
  19  Prefactor     5.4068        6.7074        .69127E-05   -1.5243    
  20  Prefactor     .10000E-03    19.716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .49483        62.638        .17939E-03   -1.5567    
  22  Normalizat    1.5601        .30010        .58958E-04   -.76103    
  23  Prefactor     .82344        .15100        .40600E-04   -.98870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46585e-09
Minuit parameter uncertainties:
  1  6.10122e-05
  2  21.5374
  3  1.17314e-06
  4  71.412
  5  5.77086
  6  1.95013e-06
  7  2.39876e-05
  8  6.42497e-05
  9  3.28671e-06
  10  3.88685e-06
  11  2.17103e-06
  12  20.2395
  13  1.63461e-05
  14  11.1156
  15  0.00152078
  16  2.92047e-05
  17  4.93674
  18  6.98467
  19  6.70835
  20  5.60282e-06
  21  11.1455
  22  0.300443
  23  0.151077
Done.

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

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.000e-04  2.171e-06  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.353e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.234e-01  1.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.560e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 314.072 -47.237
Photon Flux Upper Limit: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212575/likelihoodResults_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.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) = 5989.23019868
delta logL = -0.00552921793314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5989.07685832
delta logL = 0.147811135456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12503       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84214       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   5989.077     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      313 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12513        .24390        .45950E-03    .11826E-01
   2  alpha         5.0000        3.8334        .11738    ** at limit **
   3  Normalizat    1.5008        .30241        .29953E-03   -.35791E-04
   4  Prefactor     .84216        .15179        .20097E-03   -.38355E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.125131
  alpha      = 5
  Normalizat = 1.50077
  Prefactor  = 0.842161
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.077     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12513        .24191        .91900E-04   -1.5637    
   2  alpha         5.0000        3.8310        .23476E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5008        .30190        .11981E-04   -.77757    
   4  Prefactor     .84216        .15177        .80386E-05   -.98192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71123e-12
Minuit parameter uncertainties:
  1  0.241908
  2  1.76708e-06
  3  0.302264
  4  0.15185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212575': 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) = 5989.07685824
delta logL = 0.14781122329

Extracting fit parameters...

4FGL J2056.2-4714
   Spectrum: LogParabola
291         norm:  1.251e-01  2.419e-01  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  5.000e+00  1.767e-06  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.074e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  4.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.422e-01  1.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.501e+00  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 314.072 -47.237

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/212575/cmap_HighResolution_518745601_519004801_4FGL_J2056.2-4714_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-25 21:56:28.825943', job_id='212575', GAL2='0.84', fit_tolerance='1e-08', EG2='1.50', EG='1.56', time_epoch_completed='1632632188.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.48e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1078' AND source_name='4FGL J2056.2-4714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 21:56:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 212575: <4FGL_J2056.2-4714_daily_bin1078> in cluster <slac> Done

Job <4FGL_J2056.2-4714_daily_bin1078> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 21:41:02 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 21:42:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 21:42:08 2021
Terminated at Sat Sep 25 21:56:29 2021
Results reported at Sat Sep 25 21:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.2-4714_daily_bin1078 314.072 -47.2369 518745601 519004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2056.2-4714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   663.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            927 sec.

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

