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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1468
RA = 314.142, Dec = -2.0355
tmin = 619833601, tmax = 620092801
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='222819', job_status='RUN', time_executed='2021-09-25 22:19:57.787265', time_epoch_executed='1632633597.79' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222819/ft1_4FGL_J2056.5-0202_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222819/ft1_4FGL_J2056.5-0202_daily_bin1468.fits outfile=/scratch/kocevski/222819/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1468.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=619833601.0 tmax=620092801.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.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222819/ft1_filtered_4FGL_J2056.5-0202_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/222819/ltcube_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.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/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits
.....................!
real 13.37
user 12.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222819/ft1_filtered_4FGL_J2056.5-0202_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/222819/ltcube_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.fits outfile=/scratch/kocevski/222819/expmap_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.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/222819/ltcube_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.fits
.....................!
real 190.24
user 185.10
sys 4.73

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/222819/ft1_filtered_4FGL_J2056.5-0202_daily_bin1468.fits scfile=/scratch/kocevski/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits outfile=/scratch/kocevski/222819/cmap_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222819/ft1_filtered_4FGL_J2056.5-0202_daily_bin1468.fits scfile=/scratch/kocevski/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits outfile=/scratch/kocevski/222819/cmap_HighResolution_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222819/ft1_filtered_4FGL_J2056.5-0202_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/222819/ft2_4FGL_J2056.5-0202_daily_bin1468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222819/Model_4FGL_J2056.5-0202_daily_bin1468.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/222819/ft1_filtered_4FGL_J2056.5-0202_daily_bin1468.fits.....................!
real 72.61
user 71.29
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    97.761       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.865       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16382E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91976       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96348       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=   7061.729     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2095 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.985        36.669       -.96589E-05    .86684E-05
   2  Prefactor     .10000E-03    4.6236        .33020E-06** at limit **
   3  norm          6.9524        2.0052       -.20534E-06    .28947E-05
   4  Prefactor     .10000E-03    4.7130        .93409E-06** at limit **
   5  norm          .10000E-03    3.1717       -.12411E-06** at limit **
   6  Prefactor     .10000E-03    4.5761       -.86960E-06** at limit **
   7  Prefactor     14.267        19.621       -.21284E-05    .20729E-04
   8  Prefactor     97.693        61.490       -.52413E-04    .14880E-04
   9  Prefactor     .10000E-03    20.247       -.68205E-06** at limit **
  10  Prefactor     .10000E-03    21.741        .70342E-06** at limit **
  11  Prefactor     20.137        56.637        .30182E-05    .20811E-04
  12  Prefactor     16.485        18.415       -.14498E-05    .81284E-05
  13  Prefactor     11.864        17.584       -.38779E-06    .65513E-05
  14  Prefactor     27.540        30.987        .35373E-05    .21648E-04
  15  Prefactor     .10000E-03    4.8178       -.20386E-06** at limit **
  16  Prefactor     1.4970        1.7667       -.30632E-06   -.39450E-03
  17  Prefactor     .10000E-03    53.935       -.41103E-05** at limit **
  18  Prefactor     .10000E-03    89.426        .98640E-05** at limit **
  19  Normalizat    .91883        .26720        .64061E-05    .67145E-04
  20  Prefactor     .96385        .10626        .17590E-05   -.13594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9849
  Prefactor  = 0.0001
  norm       = 6.95237
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2672
  Prefactor  = 97.6926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1373
  Prefactor  = 16.4854
  Prefactor  = 11.8644
  Prefactor  = 27.54
  Prefactor  = 0.0001
  Prefactor  = 1.49703
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.918832
  Prefactor  = 0.963851
 **********
 **   18 **HESSE 
 **********

 FCN=   7061.729     FROM HESSE     STATUS=OK           291 CALLS     2386 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.985        36.760        .64184E-04   -1.4458    
   2  Prefactor     .10000E-03    4.6342        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9524        2.0047        .61473E-04   -1.5181    
   4  Prefactor     .10000E-03    4.7162        .17814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2425        .14611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6885        .35074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.267        19.784        .10604E-03   -1.4952    
   8  Prefactor     97.693        61.515        .20328E-03   -1.3728    
   9  Prefactor     .10000E-03    20.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.137        56.713        .89256E-04   -1.4810    
  12  Prefactor     16.485        18.432        .98657E-04   -1.4896    
  13  Prefactor     11.864        17.583        .11630E-03   -1.5019    
  14  Prefactor     27.540        31.054        .76349E-04   -1.4658    
  15  Prefactor     .10000E-03    4.8532        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4970        1.7426        .11708E-03   -1.5463    
  17  Prefactor     .10000E-03    54.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    90.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91883        .32061        .40419E-03   -.95802    
  20  Prefactor     .96385        .12827        .16496E-03   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28193e-10
Minuit parameter uncertainties:
  1  36.7816
  2  1.44536e-05
  3  2.00469
  4  6.74479e-06
  5  2.76063e-05
  6  8.35974e-05
  7  19.7926
  8  61.5554
  9  5.03981e-05
  10  5.6852e-05
  11  56.865
  12  18.438
  13  17.5906
  14  31.0721
  15  2.89378e-05
  16  1.74267
  17  0.000201128
  18  0.000654163
  19  0.32128
  20  0.128306
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  8.360e-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:  9.639e-01  1.283e-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:  9.188e-01  3.213e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222819/likelihoodResults_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.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) = 7061.73028127
delta logL = -0.00101779804208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7061.72926367
delta logL = -1.96816472453e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5242       1.0000          .0000       10.000    
     3 'Normalizat'    .91869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96392       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7061.729     FROM MIGRAD    STATUS=FAILED        88 CALLS      246 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    591.15        .35123E-03** at limit **
   2  Index         2.5679        7.6470        .50000       -.90357E-05
   3  Normalizat    .91883        .86320E-01    .40419E-03    .18722E-03
   4  Prefactor     .96385        .36241E-01    .16496E-03    .51271E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7061.729     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      406 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    591.15        .30976E-03** at limit **
   2  Index         2.5679        7.6470        .13474E-04   -.90357E-05
   3  Normalizat    .91883        .86320E-01    .57421E-06    .18722E-03
   4  Prefactor     .96385        .36241E-01    .12413E-06    .51271E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7061.729     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      449 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.650        .70246E-04** at limit **
   2  Index         2.6811        5.7896        .50000        .87812E-07
   3  Normalizat    .91883        .29736        .16167E-04   -.50629E-05
   4  Prefactor     .96385        .12514        .32992E-04   -.48243E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68108
  Normalizat = 0.918829
  Prefactor  = 0.963852
 **********
 **   18 **HESSE 
 **********

 FCN=   7061.729     FROM HESSE     STATUS=OK            29 CALLS      478 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9150        .14049E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6811        8.5092        .50000       -.48226    
   3  Normalizat    .91883        .29715        .32335E-05   -.95802    
   4  Prefactor     .96385        .12508        .65983E-05   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92691e-12
Minuit parameter uncertainties:
  1  4.06152e-06
  2  131.614
  3  0.297687
  4  0.125115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222819': 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) = 7061.72926323
delta logL = 2.45208866545e-07

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.062e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.681e+00  1.316e+02  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:  9.639e-01  1.251e-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:  9.188e-01  2.977e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/222819/cmap_HighResolution_619833601_620092801_4FGL_J2056.5-0202_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-25 22:31:37.392102', job_id='222819', GAL2='0.96', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632634297.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1468' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:31:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 222819: <4FGL_J2056.5-0202_daily_bin1468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1468 314.142 -2.0355 619833601 620092801 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            959 sec.

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

