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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1040
RA = 314.142, Dec = -2.0355
tmin = 508896001, tmax = 509155201
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='221179', job_status='RUN', time_executed='2021-09-25 22:13:28.449805', time_epoch_executed='1632633208.45' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221179/ft1_4FGL_J2056.5-0202_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221179/ft1_4FGL_J2056.5-0202_daily_bin1040.fits outfile=/scratch/kocevski/221179/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1040.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=508896001.0 tmax=509155201.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.71
user 3.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221179/ft1_filtered_4FGL_J2056.5-0202_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/221179/ltcube_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.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/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits
.....................!
real 14.61
user 14.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221179/ft1_filtered_4FGL_J2056.5-0202_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/221179/ltcube_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.fits outfile=/scratch/kocevski/221179/expmap_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.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/221179/ltcube_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.fits
.....................!
real 190.95
user 185.76
sys 4.65

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/221179/ft1_filtered_4FGL_J2056.5-0202_daily_bin1040.fits scfile=/scratch/kocevski/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits outfile=/scratch/kocevski/221179/cmap_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221179/ft1_filtered_4FGL_J2056.5-0202_daily_bin1040.fits scfile=/scratch/kocevski/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits outfile=/scratch/kocevski/221179/cmap_HighResolution_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221179/ft1_filtered_4FGL_J2056.5-0202_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/221179/ft2_4FGL_J2056.5-0202_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221179/Model_4FGL_J2056.5-0202_daily_bin1040.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/221179/ft1_filtered_4FGL_J2056.5-0202_daily_bin1040.fits....................!
real 73.14
user 71.77
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.340       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8951       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1748       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89604       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=   7090.213     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2015 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.837        44.581        .28226E-06    .14610E-04
   2  Prefactor     .10000E-03    10.264       -.65592E-06** at limit **
   3  norm          1.7018        1.3165        .39622E-07   -.62998E-04
   4  Prefactor     .10000E-03    8.8942        .34516E-06** at limit **
   5  norm          .10000E-03    1.9715        .60413E-07** at limit **
   6  Prefactor     .10000E-03    2.2923        .94527E-08** at limit **
   7  Prefactor     .10000E-03    7.5372        .14017E-06** at limit **
   8  Prefactor     .10000E-03    95.073        .11312E-06** at limit **
   9  Prefactor     .10000E-03    10.724        .64927E-06** at limit **
  10  Prefactor     13.340        14.839        .26113E-07   -.52953E-05
  11  Prefactor     17.671        50.017       -.96500E-05   -.16704E-03
  12  Prefactor     .10000E-03    7.8959       -.17044E-06** at limit **
  13  Prefactor     .10000E-03    38.121        .73664E-07** at limit **
  14  Prefactor     .10000E-03    27.334       -.10711E-06** at limit **
  15  Prefactor     6.3455        7.1353        .17732E-05   -.31675E-03
  16  Prefactor     3.8948        3.5276       -.27162E-06   -.17884E-03
  17  Prefactor     39.269        38.277       -.39302E-06   -.51880E-04
  18  Prefactor     2.1739        231.25        .26280E-04   -.40972E-04
  19  Normalizat    1.2194        .26133        .97996E-06   -.80249E-04
  20  Prefactor     .89597        .10486       -.58947E-06    .47294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.8374
  Prefactor  = 0.0001
  norm       = 1.70177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3401
  Prefactor  = 17.6709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.34552
  Prefactor  = 3.89479
  Prefactor  = 39.2692
  Prefactor  = 2.17385
  Normalizat = 1.21936
  Prefactor  = 0.89597
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.213     FROM HESSE     STATUS=OK           285 CALLS     2300 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.837        44.724        .49094E-04   -1.4071    
   2  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7018        1.3129        .81790E-04   -1.5447    
   4  Prefactor     .10000E-03    8.9225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9946        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3101        .12447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    95.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.340        14.840        .10967E-03   -1.4977    
  11  Prefactor     17.671        53.323        .95155E-04   -1.4867    
  12  Prefactor     .10000E-03    7.9101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3455        7.2324        .79667E-03   -1.5204    
  16  Prefactor     3.8948        3.5130        .13470E-03   -1.5313    
  17  Prefactor     39.269        38.324        .63957E-04   -1.4454    
  18  Prefactor     2.1739        243.56        .13960E-02   -1.5413    
  19  Normalizat    1.2194        .32090        .36199E-03   -.86007    
  20  Prefactor     .89597        .12908        .16986E-03   -.96282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35775e-10
Minuit parameter uncertainties:
  1  44.7462
  2  6.15599e-05
  3  1.31295
  4  1.77496e-05
  5  3.31318e-07
  6  1.99712e-06
  7  3.23641e-06
  8  0.000344867
  9  5.1562e-05
  10  14.844
  11  53.4671
  12  1.90833e-05
  13  2.91834e-05
  14  1.41323e-05
  15  7.23343
  16  3.51317
  17  38.348
  18  46.2128
  19  0.321422
  20  0.129123
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.997e-06  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:  8.960e-01  1.291e-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:  1.219e+00  3.214e-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: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221179/likelihoodResults_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.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) = 7090.21506389
delta logL = -0.00206242736658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7090.21300086
delta logL = 6.04334672971e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4908       1.0000          .0000       10.000    
     3 'Normalizat'    1.2194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89596       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=   7090.213     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.082        .12817E-01** at limit **
   2  Index         1.7275        6.9168        .50000       -.40216E-06
   3  Normalizat    1.2194        .17868E-01    .36199E-03    .32088E-03
   4  Prefactor     .89597        .73595E-02    .16986E-03    .76393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.72748
  Normalizat = 1.21936
  Prefactor  = 0.89597
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.213     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    844.46        .33631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7275        5.5335        .50000       -.71353    
   3  Normalizat    1.2194        .14309        .72398E-04   -.86007    
   4  Prefactor     .89597        .58949E-01    .33972E-04   -.96282    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02838e-08
Minuit parameter uncertainties:
  1  6.35068e-06
  2  951.367
  3  0.143132
  4  0.0589536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221179': 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) = 7090.21299127
delta logL = 1.01938794614e-05

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  6.351e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.727e+00  9.514e+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:  8.960e-01  5.895e-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:  1.219e+00  1.431e-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/221179/cmap_HighResolution_508896001_509155201_4FGL_J2056.5-0202_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-25 22:24:35.986423', job_id='221179', GAL2='0.90', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632633875.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.02e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1040' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:24:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 221179: <4FGL_J2056.5-0202_daily_bin1040> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1040> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 22:10:28 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:10:57 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:10:57 2021
Terminated at Sat Sep 25 22:24:36 2021
Results reported at Sat Sep 25 22:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1040 314.142 -2.0355 508896001 509155201 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 :                                   661.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            848 sec.

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

