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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1450
RA = 314.142, Dec = -2.0355
tmin = 615168001, tmax = 615427201
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='222791', job_status='RUN', time_executed='2021-09-25 22:20:41.076482', time_epoch_executed='1632633641.08' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222791/ft1_4FGL_J2056.5-0202_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222791/ft1_4FGL_J2056.5-0202_daily_bin1450.fits outfile=/scratch/kocevski/222791/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1450.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=615168001.0 tmax=615427201.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.68
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222791/ft1_filtered_4FGL_J2056.5-0202_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/222791/ltcube_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.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/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits
.....................!
real 15.67
user 15.14
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222791/ft1_filtered_4FGL_J2056.5-0202_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/222791/ltcube_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.fits outfile=/scratch/kocevski/222791/expmap_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.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/222791/ltcube_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.fits
.....................!
real 193.14
user 187.19
sys 5.11

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/222791/ft1_filtered_4FGL_J2056.5-0202_daily_bin1450.fits scfile=/scratch/kocevski/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits outfile=/scratch/kocevski/222791/cmap_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222791/ft1_filtered_4FGL_J2056.5-0202_daily_bin1450.fits scfile=/scratch/kocevski/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits outfile=/scratch/kocevski/222791/cmap_HighResolution_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222791/ft1_filtered_4FGL_J2056.5-0202_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/222791/ft2_4FGL_J2056.5-0202_daily_bin1450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222791/Model_4FGL_J2056.5-0202_daily_bin1450.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/222791/ft1_filtered_4FGL_J2056.5-0202_daily_bin1450.fits.....................!
real 74.38
user 72.80
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10825E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36955       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.355       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.649       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15112E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3133       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78617       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98270       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=   6924.027     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2063 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.498        21.147        .65233E-08    .50071E-05
   2  Prefactor     .10000E-03    14.873        .80041E-06** at limit **
   3  norm          1.0393        .89474       -.29382E-07   -.87478E-04
   4  Prefactor     .10000E-03    12.566        .88375E-07** at limit **
   5  norm          3.3858        3.3654        .75789E-06    .19652E-03
   6  Prefactor     .35381        3.2625        .12954E-05   -.10795E-02
   7  Prefactor     12.351        16.627        .39260E-06   -.51041E-04
   8  Prefactor     22.401        50.331        .40322E-06   -.91306E-04
   9  Prefactor     36.562        24.187       -.21838E-06   -.11581E-04
  10  Prefactor     .10000E-03    19.727        .82452E-06** at limit **
  11  Prefactor     .10000E-03    25.658       -.98933E-06** at limit **
  12  Prefactor     .10000E-03    17.220        .53291E-06** at limit **
  13  Prefactor     51.648        28.666       -.76367E-07   -.26404E-04
  14  Prefactor     .10000E-03    41.553        .15150E-06** at limit **
  15  Prefactor     .10000E-03    2.8287        .15504E-06** at limit **
  16  Prefactor     .36105        1.9568        .26220E-05    .37564E-03
  17  Prefactor     4.3189        49.794       -.50357E-05   -.70766E-04
  18  Prefactor     .10000E-03    11.488        .34688E-07** at limit **
  19  Normalizat    .78618        .26238        .20517E-06   -.18037E-03
  20  Prefactor     .98268        .10455        .13776E-06   -.28310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4982
  Prefactor  = 0.0001
  norm       = 1.03928
  Prefactor  = 0.0001
  norm       = 3.38584
  Prefactor  = 0.353806
  Prefactor  = 12.351
  Prefactor  = 22.4009
  Prefactor  = 36.5622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.361048
  Prefactor  = 4.31895
  Prefactor  = 0.0001
  Normalizat = 0.786182
  Prefactor  = 0.98268
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.027     FROM HESSE     STATUS=OK           289 CALLS     2352 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.498        21.158        .95777E-04   -1.4871    
   2  Prefactor     .10000E-03    15.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0393        .90499        .70837E-04   -1.5504    
   4  Prefactor     .10000E-03    12.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3858        3.3550        .73649E-03   -1.5340    
   6  Prefactor     .35381        19.993        .26045E-02   -1.5589    
   7  Prefactor     12.351        16.650        .11397E-03   -1.5005    
   8  Prefactor     22.401        50.350        .84416E-04   -1.4761    
   9  Prefactor     36.562        24.162        .66294E-04   -1.4498    
  10  Prefactor     .10000E-03    19.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.648        28.669        .55805E-04   -1.4269    
  14  Prefactor     .10000E-03    41.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8384        .13664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36105        1.9701        .22114E-03   -1.5588    
  17  Prefactor     4.3189        51.320        .19397E-03   -1.5292    
  18  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78618        .30078        .40191E-03   -1.0058    
  20  Prefactor     .98268        .12127        .15517E-03   -.93309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96848e-09
Minuit parameter uncertainties:
  1  21.1675
  2  2.94623e-05
  3  0.904999
  4  2.38223e-05
  5  3.35517
  6  5.32033
  7  16.6565
  8  50.446
  9  24.1683
  10  2.59208e-05
  11  8.72909e-05
  12  1.77335e-05
  13  28.6762
  14  9.47624e-05
  15  2.78492e-07
  16  1.68664
  17  29.8074
  18  4.47777e-06
  19  0.301415
  20  0.121301
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  3.538e-01  5.320e+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:  9.827e-01  1.213e-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.862e-01  3.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222791/likelihoodResults_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.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) = 6922.07486126
delta logL = 1.95250761728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6921.98456456
delta logL = 2.04280431865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39192E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.1673       1.0000          .0000       10.000    
     3 'Normalizat'    .60642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0302       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=   6921.985     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      253 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39116E-01    .31691        .20288E-02    .18237E-02
   2  Index         6.1685        2.6384        .11730        .12465E-03
   3  Normalizat    .60664        .68362E-01    .10213        .44351E-04
   4  Prefactor     1.0301        .29264E-01    .41241E-01   -.38865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0391161
  Index      = 6.16845
  Normalizat = 0.606643
  Prefactor  = 1.03015
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.985     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39116E-01    .62623        .91542E-04   -1.5668    
   2  Index         6.1685        3.8756        .46624E-02    .23587    
   3  Normalizat    .60664        .22771        .45264E-03   -1.0770    
   4  Prefactor     1.0301        .96464E-01    .15174E-03   -.91731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.39728e-07
Minuit parameter uncertainties:
  1  0.312625
  2  4.48549
  3  0.228064
  4  0.0964804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222791': 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) = 6921.98456395
delta logL = 2.04280493643

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  3.912e-02  3.126e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  6.168e+00  4.485e+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.030e+00  9.648e-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:  6.066e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 6.17 +/- 4.49
Photon Flux (Free Index): 1.45e-07 +/- 7.98e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.06e-05

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/222791/cmap_HighResolution_615168001_615427201_4FGL_J2056.5-0202_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='2.04e+00', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-25 22:32:07.608559', photon_index_error2='4.49', photon_index2='6.17', ts='0.01', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.06e-05', EG='0.79', time_epoch_completed='1632634327.61', return_code='0', job_id='222791', GAL2='1.03', EG2='0.61', return_code2='102', photon_flux_error2='7.98e-08', ts2='4.48', photon_index='2.52' WHERE bin_id='1450' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:32:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 222791: <4FGL_J2056.5-0202_daily_bin1450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1450 314.142 -2.0355 615168001 615427201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2056.5-0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            991 sec.

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

