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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1363
RA = 314.142, Dec = -2.0355
tmin = 592617601, tmax = 592876801
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='222652', job_status='RUN', time_executed='2021-09-25 22:19:05.946354', time_epoch_executed='1632633545.95' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222652/ft1_4FGL_J2056.5-0202_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222652/ft1_4FGL_J2056.5-0202_daily_bin1363.fits outfile=/scratch/kocevski/222652/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1363.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=592617601.0 tmax=592876801.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.48
user 3.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.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/222652/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/222652/ltcube_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.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/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits
.....................!
real 12.74
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/222652/ltcube_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.fits outfile=/scratch/kocevski/222652/expmap_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.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/222652/ltcube_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.fits
.....................!
real 192.98
user 187.20
sys 5.29

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/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.fits scfile=/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits outfile=/scratch/kocevski/222652/cmap_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.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.63
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.fits scfile=/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits outfile=/scratch/kocevski/222652/cmap_HighResolution_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.fits', '/scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits', expMap='/scratch/kocevski/222652/expmap_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.fits', expCube='/scratch/kocevski/222652/ltcube_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222652/Model_4FGL_J2056.5-0202_daily_bin1363.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/222652/ft1_filtered_4FGL_J2056.5-0202_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/222652/ft2_4FGL_J2056.5-0202_daily_bin1363.fits
Exposure map: /scratch/kocevski/222652/expmap_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.fits
Exposure cube: /scratch/kocevski/222652/ltcube_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222652/Model_4FGL_J2056.5-0202_daily_bin1363.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) = 6800.69621256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.215       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.378       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .52057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1527       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22053E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.376       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .41945       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1375       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=   6800.649     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2165 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.440        36.148       -.11095E-06   -.16123E-04
   2  Prefactor     .10000E-03    18.355       -.13445E-06** at limit **
   3  norm          .10000E-03    .46067        .92853E-08** at limit **
   4  Prefactor     41.198        19.340       -.15658E-06   -.98906E-05
   5  norm          .10000E-03    2.1323       -.53341E-07** at limit **
   6  Prefactor     .10000E-03    3.2677       -.21104E-06** at limit **
   7  Prefactor     .10000E-03    10.086       -.22057E-06** at limit **
   8  Prefactor     65.406        57.071       -.47775E-06   -.44788E-04
   9  Prefactor     30.278        31.673       -.12216E-06    .87105E-04
  10  Prefactor     .10000E-03    17.697        .13295E-05** at limit **
  11  Prefactor     .10000E-03    34.753       -.18581E-06** at limit **
  12  Prefactor     .10000E-03    10.400       -.16977E-06** at limit **
  13  Prefactor     .10000E-03    19.513        .22477E-06** at limit **
  14  Prefactor     .10469E-03    47.017       -.21003E-05** at limit **
  15  Prefactor     1.1513        5.7792        .20290E-05   -.76722E-04
  16  Prefactor     2.5187        3.2488        .45089E-06    .39863E-03
  17  Prefactor     .10008E-03    32.416       -.62496E-06** at limit **
  18  Prefactor     34.425        53.559       -.42302E-06    .65032E-04
  19  Normalizat    .42014        .31592        .35125E-05    .54685E-04
  20  Prefactor     1.1373        .12943       -.82083E-06    .18007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4399
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.1976
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.4057
  Prefactor  = 30.2781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104692
  Prefactor  = 1.15128
  Prefactor  = 2.51867
  Prefactor  = 0.000100075
  Prefactor  = 34.4245
  Normalizat = 0.420135
  Prefactor  = 1.13735
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.649     FROM HESSE     STATUS=OK           303 CALLS     2468 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.440        36.280        .81023E-04   -1.4719    
   2  Prefactor     .10000E-03    18.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .47077        .10904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.198        19.262        .62440E-04   -1.4423    
   5  norm          .10000E-03    2.1548        .11758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3147        .14552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.406        57.055        .49634E-04   -1.4089    
   9  Prefactor     30.278        31.299        .72800E-04   -1.4607    
  10  Prefactor     .10000E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10469E-03    53.188        .13630       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1513        5.2845        .36857E-03   -1.5493    
  16  Prefactor     2.5187        3.3653        .14615E-03   -1.5391    
  17  Prefactor     .10008E-03    35.696        .12746       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.425        53.310        .68349E-04   -1.4534    
  19  Normalizat    .42014        .31062        .55049E-03   -1.1627    
  20  Prefactor     1.1373        .12997        .14865E-03   -.88282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63366e-10
Minuit parameter uncertainties:
  1  36.3123
  2  4.92643e-06
  3  2.69882e-10
  4  19.2645
  5  3.35209e-07
  6  3.8614e-07
  7  7.57838e-06
  8  57.1029
  9  31.3162
  10  3.44427e-05
  11  3.261e-06
  12  1.11344e-05
  13  1.15925e-05
  14  0.0316242
  15  4.93364
  16  3.3655
  17  0.00328515
  18  53.3835
  19  0.311901
  20  0.130006
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.861e-07  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:  1.137e+00  1.300e-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:  4.201e-01  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222652/likelihoodResults_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.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) = 6800.65003157
delta logL = -0.00143767321879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6800.648594
delta logL = -1.01681507658e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5122       1.0000          .0000       10.000    
     3 'Normalizat'    .42006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1374       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6800.649     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    177.40        .14569E-02** at limit **
   2  Index         2.4709        8.1222        .50000        .89437E-05
   3  Normalizat    .42013        .46932E-01    .55050E-03    .30977E-06
   4  Prefactor     1.1373        .20357E-01    .14865E-03   -.38240E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100254
  Index      = 2.47088
  Normalizat = 0.420135
  Prefactor  = 1.13735
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.649     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    618.84        .29138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4709        5.1112        .50000       -.53034    
   3  Normalizat    .42013        .12504        .22020E-04   -1.1627    
   4  Prefactor     1.1373        .54125E-01    .59460E-05   -.88282    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.29947e-08
Minuit parameter uncertainties:
  1  0.0253398
  2  1761.76
  3  0.125126
  4  0.0541281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222652': 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): 102
logL (Free Index) = 6800.64859381
delta logL = 8.47858245834e-08

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.003e-04  2.534e-02  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.471e+00  1.762e+03  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:  1.137e+00  5.413e-02  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:  4.201e-01  1.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 314.142 -2.035

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/222652/cmap_HighResolution_592617601_592876801_4FGL_J2056.5-0202_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-25 22:30:25.054016', job_id='222652', GAL2='1.14', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1632634225.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='8.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1363' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:30:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 222652: <4FGL_J2056.5-0202_daily_bin1363> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1363> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 22:15:24 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:15:42 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:15:42 2021
Terminated at Sat Sep 25 22:30:25 2021
Results reported at Sat Sep 25 22:30:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1363 314.142 -2.0355 592617601 592876801 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 :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            901 sec.

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

