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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1643
RA = 314.142, Dec = -2.0355
tmin = 665193601, tmax = 665452801
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='496388', job_status='RUN', time_executed='2022-02-02 00:39:45.198563', time_epoch_executed='1643791185.2' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496388/ft1_4FGL_J2056.5-0202_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496388/ft1_4FGL_J2056.5-0202_daily_bin1643.fits outfile=/scratch/kocevski/496388/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1643.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=665193601.0 tmax=665452801.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.60
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.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/496388/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1643.fits evtable="EVENTS" outfile="/scratch/kocevski/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/496388/ltcube_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.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/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits
.....................!
real 11.72
user 11.39
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/496388/ltcube_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.fits outfile=/scratch/kocevski/496388/expmap_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.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/496388/ltcube_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.fits
.....................!
real 190.44
user 185.79
sys 4.30

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/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.fits scfile=/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits outfile=/scratch/kocevski/496388/cmap_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.fits scfile=/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits outfile=/scratch/kocevski/496388/cmap_HighResolution_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496388/ft2_4FGL_J2056.5-0202_daily_bin1643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496388/Model_4FGL_J2056.5-0202_daily_bin1643.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/496388/ft1_filtered_4FGL_J2056.5-0202_daily_bin1643.fits.....................!
real 73.59
user 72.17
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12109E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .16611       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.001       1.0000         .10000E-03   10000.    
     5 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3887       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6579       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81346       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0750       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=   6996.647     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2066 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.346        39.427        .10901E-05    .45170E-04
   2  Prefactor     .10000E-03    28.847       -.54360E-06** at limit **
   3  norm          .16388        1.1543        .17362E-06    .13093E-03
   4  Prefactor     16.008        22.006       -.72352E-06    .47119E-04
   5  norm          .10000E-03    3.6138        .28913E-07** at limit **
   6  Prefactor     3.9156        5.3876        .39511E-06   -.60076E-04
   7  Prefactor     .10000E-03    9.5581        .89307E-06** at limit **
   8  Prefactor     .10000E-03    10.961       -.10505E-06** at limit **
   9  Prefactor     .10000E-03    7.6002       -.17822E-06** at limit **
  10  Prefactor     .10000E-03    13.510       -.42604E-06** at limit **
  11  Prefactor     19.015        52.518        .29230E-05    .56940E-04
  12  Prefactor     52.937        32.646       -.18445E-06   -.81661E-04
  13  Prefactor     .10000E-03    12.046       -.61802E-06** at limit **
  14  Prefactor     .10000E-03    12.785       -.69992E-06** at limit **
  15  Prefactor     4.3886        4.7327        .30766E-07   -.18568E-04
  16  Prefactor     5.6581        3.3122        .98067E-06   -.25596E-03
  17  Prefactor     70.436        46.368       -.15555E-05   -.77536E-04
  18  Prefactor     .10000E-03    16.225        .14599E-05** at limit **
  19  Normalizat    .81365        .28888       -.40049E-06   -.57702E-04
  20  Prefactor     1.0749        .11543       -.51440E-06   -.62529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3458
  Prefactor  = 0.0001
  norm       = 0.163877
  Prefactor  = 16.0079
  norm       = 0.0001
  Prefactor  = 3.91561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0151
  Prefactor  = 52.9369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38855
  Prefactor  = 5.65805
  Prefactor  = 70.4357
  Prefactor  = 0.000100001
  Normalizat = 0.813654
  Prefactor  = 1.07492
 **********
 **   18 **HESSE 
 **********

 FCN=   6996.647     FROM HESSE     STATUS=OK           289 CALLS     2355 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.346        39.624        .76618E-04   -1.4662    
   2  Prefactor     .10000E-03    29.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16388        9.3177        .14282E-02   -1.5627    
   4  Prefactor     16.008        24.280        .10013E-03   -1.4908    
   5  norm          .10000E-03    3.7324        .31044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9156        5.3893        .20388E-03   -1.5312    
   7  Prefactor     .10000E-03    9.7103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.015        53.293        .91885E-04   -1.4836    
  12  Prefactor     52.937        32.760        .55124E-04   -1.4252    
  13  Prefactor     .10000E-03    12.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3886        4.7285        .18394E-03   -1.5289    
  16  Prefactor     5.6581        3.3212        .54099E-03   -1.5232    
  17  Prefactor     70.436        46.453        .47829E-04   -1.4027    
  18  Prefactor     .10000E-03    16.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .81365        .33265        .43440E-03   -.99564    
  20  Prefactor     1.0749        .13412        .16165E-03   -.90272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58034e-10
Minuit parameter uncertainties:
  1  39.6623
  2  2.72176e-05
  3  2.47106
  4  24.295
  5  6.52667e-06
  6  5.38994
  7  9.77911e-05
  8  1.47243e-05
  9  1.22968e-05
  10  4.24484e-05
  11  53.4268
  12  32.7711
  13  6.3229e-05
  14  8.74495e-05
  15  4.72894
  16  3.32135
  17  46.4768
  18  0.000196737
  19  0.33349
  20  0.13416
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  3.916e+00  5.390e+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:  1.075e+00  1.342e-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:  8.137e-01  3.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496388/likelihoodResults_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.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) = 6996.50145835
delta logL = 0.145689403461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6996.49832112
delta logL = 0.148826637075

Fit tolerance = 1e-08

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

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

 FCN=   6996.498     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7799        75.330        .61130E-02    .63847E-03
   2  Index         3.0381        3.8484        .22015        .82257E-04
   3  Normalizat    .79241        .70292E-01    .99241E-01    .33397E-04
   4  Prefactor     1.0801        .29111E-01    .38386E-01   -.55288E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7799
  Index      = 3.03809
  Normalizat = 0.792415
  Prefactor  = 1.08013
 **********
 **   18 **HESSE 
 **********

 FCN=   6996.498     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7799        5.1360        .15097E-03   -1.5374    
   2  Index         3.0381        1.1300        .86034E-02   -.40322    
   3  Normalizat    .79241        .31354        .43975E-03   -1.0035    
   4  Prefactor     1.0801        .13165        .16129E-03   -.90104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04666e-11
Minuit parameter uncertainties:
  1  5.13686
  2  1.14168
  3  0.314261
  4  0.131694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496388': 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) = 6996.49831628
delta logL = 0.148831473021

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  2.780e+00  5.137e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.038e+00  1.142e+00  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.080e+00  1.317e-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:  7.924e-01  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/496388/cmap_HighResolution_665193601_665452801_4FGL_J2056.5-0202_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2022-02-02 00:50:39.127429', job_id='496388', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.81', time_epoch_completed='1643791839.13', return_code2='0', ts='0.66', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.49e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1643' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:50:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 496388: <4FGL_J2056.5-0202_daily_bin1643> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:35:38 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:35:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:35:41 2022
Terminated at Wed Feb  2 00:50:39 2022
Results reported at Wed Feb  2 00:50:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1643 314.142 -2.0355 665193601 665452801 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

