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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1357
RA = 314.142, Dec = -2.0355
tmin = 591062401, tmax = 591321601
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='224148', job_status='RUN', time_executed='2021-09-25 22:23:45.299174', time_epoch_executed='1632633825.3' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224148/ft1_4FGL_J2056.5-0202_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224148/ft1_4FGL_J2056.5-0202_daily_bin1357.fits outfile=/scratch/kocevski/224148/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1357.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=591062401.0 tmax=591321601.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.06
user 2.83
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224148/ft1_filtered_4FGL_J2056.5-0202_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/224148/ltcube_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.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/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits
.....................!
real 17.08
user 16.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224148/ft1_filtered_4FGL_J2056.5-0202_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/224148/ltcube_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.fits outfile=/scratch/kocevski/224148/expmap_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.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/224148/ltcube_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.fits
.....................!
real 192.17
user 185.86
sys 4.90

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/224148/ft1_filtered_4FGL_J2056.5-0202_daily_bin1357.fits scfile=/scratch/kocevski/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits outfile=/scratch/kocevski/224148/cmap_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224148/ft1_filtered_4FGL_J2056.5-0202_daily_bin1357.fits scfile=/scratch/kocevski/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits outfile=/scratch/kocevski/224148/cmap_HighResolution_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224148/ft1_filtered_4FGL_J2056.5-0202_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/224148/ft2_4FGL_J2056.5-0202_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224148/Model_4FGL_J2056.5-0202_daily_bin1357.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/224148/ft1_filtered_4FGL_J2056.5-0202_daily_bin1357.fits.....................!
real 70.38
user 68.89
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.387       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4263       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.058       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4653       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.960       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .35362       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1852       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=   6872.180     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2070 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.358        29.583       -.35848E-06   -.33318E-04
   2  Prefactor     .10000E-03    7.7320       -.54131E-07** at limit **
   3  norm          4.8202        1.7148       -.14825E-06   -.57580E-03
   4  Prefactor     13.387        14.689       -.97299E-06   -.10384E-03
   5  norm          1.4263        1.7018       -.10290E-06   -.73816E-04
   6  Prefactor     .10000E-03    5.4053       -.59314E-06** at limit **
   7  Prefactor     .10000E-03    7.1422       -.30713E-06** at limit **
   8  Prefactor     .10000E-03    59.483       -.26215E-06** at limit **
   9  Prefactor     .10000E-03    17.215        .24650E-06** at limit **
  10  Prefactor     36.092        34.908        .21477E-08   -.11472E-04
  11  Prefactor     .10000E-03    32.208        .37727E-06** at limit **
  12  Prefactor     29.749        26.780       -.20561E-05   -.84715E-04
  13  Prefactor     15.058        31.632       -.63122E-06   -.48583E-04
  14  Prefactor     .10000E-03    24.567       -.49867E-06** at limit **
  15  Prefactor     .10000E-03    4.4831       -.20928E-06** at limit **
  16  Prefactor     2.7990        4.5412        .13149E-05   -.86861E-03
  17  Prefactor     1.5311        343.80       -.18151E-04    .16773E-04
  18  Prefactor     24.927        75.790       -.44524E-05   -.64239E-04
  19  Normalizat    .35396        .33867        .21199E-04   -.40066E-04
  20  Prefactor     1.1851        .13630       -.41160E-05   -.37065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3581
  Prefactor  = 0.0001
  norm       = 4.82021
  Prefactor  = 13.3872
  norm       = 1.42631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.0922
  Prefactor  = 0.0001
  Prefactor  = 29.7492
  Prefactor  = 15.0579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79903
  Prefactor  = 1.53106
  Prefactor  = 24.9269
  Normalizat = 0.353964
  Prefactor  = 1.18507
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.180     FROM HESSE     STATUS=OK           291 CALLS     2361 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.358        29.672        .11887E-03   -1.5034    
   2  Prefactor     .10000E-03    7.7823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8202        1.7183        .58648E-04   -1.5269    
   4  Prefactor     13.387        14.707        .10947E-03   -1.4976    
   5  norm          1.4263        1.6952        .11519E-03   -1.5469    
   6  Prefactor     .10000E-03    5.5582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.092        34.901        .66716E-04   -1.4506    
  11  Prefactor     .10000E-03    32.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.749        26.793        .73450E-04   -1.4617    
  13  Prefactor     15.058        31.643        .10321E-03   -1.4932    
  14  Prefactor     .10000E-03    24.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5143        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7990        4.3161        .19046E-03   -1.5373    
  17  Prefactor     1.5311        329.17        .35525E-03   -1.5460    
  18  Prefactor     24.927        75.554        .80181E-04   -1.4709    
  19  Normalizat    .35396        .33476        .64277E-03   -1.1975    
  20  Prefactor     1.1851        .13478        .15104E-03   -.86792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74131e-10
Minuit parameter uncertainties:
  1  29.7103
  2  2.98395e-06
  3  1.71829
  4  14.7107
  5  1.69523
  6  3.67628e-05
  7  1.24631e-05
  8  0.000124577
  9  1.59823e-05
  10  34.9207
  11  0.000127297
  12  26.804
  13  31.6779
  14  0.00021192
  15  3.24617e-06
  16  4.31654
  17  45.151
  18  75.8464
  19  0.336677
  20  0.134822
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.676e-05  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.185e+00  1.348e-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:  3.540e-01  3.367e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224148/likelihoodResults_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.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) = 6872.18044746
delta logL = -0.00085763412153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6872.17958935
delta logL = 4.74661646876e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5537       1.0000          .0000       10.000    
     3 'Normalizat'    .35399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1851       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=   6872.180     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      256 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    20.445        .36285E-03** at limit **
   2  Index         2.5942        5.6578        .50000       -.66375E-04
   3  Normalizat    .35396        .30857        .64280E-03   -.25291E-04
   4  Prefactor     1.1851        .12975        .15104E-03   -.95668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100029
  Index      = 2.5942
  Normalizat = 0.353961
  Prefactor  = 1.18507
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.180     FROM HESSE     STATUS=OK            29 CALLS      285 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    6.5208        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5942        6.2937        .50000       -.50198    
   3  Normalizat    .35396        .30833        .25712E-04   -1.1975    
   4  Prefactor     1.1851        .12965        .60416E-05   -.86792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60268e-09
Minuit parameter uncertainties:
  1  0.000868094
  2  4.45502
  3  0.309825
  4  0.129684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224148': 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) = 6872.17958874
delta logL = 1.08442145574e-06

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  8.681e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.594e+00  4.455e+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.185e+00  1.297e-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:  3.540e-01  3.098e-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/224148/cmap_HighResolution_591062401_591321601_4FGL_J2056.5-0202_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-25 22:34:39.761400', job_id='224148', GAL2='1.19', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1632634479.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1357' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:34:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 224148: <4FGL_J2056.5-0202_daily_bin1357> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1357> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 22:20:25 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:21:30 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:21:30 2021
Terminated at Sat Sep 25 22:34:40 2021
Results reported at Sat Sep 25 22:34:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1357 314.142 -2.0355 591062401 591321601 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 :                                   655.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            855 sec.

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

