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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1625
RA = 314.142, Dec = -2.0355
tmin = 660528001, tmax = 660787201
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='106078', job_status='RUN', time_executed='2021-12-10 00:36:48.254099', time_epoch_executed='1639125408.25' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106078/ft1_4FGL_J2056.5-0202_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106078/ft1_4FGL_J2056.5-0202_daily_bin1625.fits outfile=/scratch/kocevski/106078/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1625.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=660528001.0 tmax=660787201.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.61
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106078/ft1_filtered_4FGL_J2056.5-0202_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/106078/ltcube_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.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/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits
.....................!
real 12.02
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106078/ft1_filtered_4FGL_J2056.5-0202_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/106078/ltcube_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.fits outfile=/scratch/kocevski/106078/expmap_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.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/106078/ltcube_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.fits
.....................!
real 191.78
user 186.04
sys 5.41

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/106078/ft1_filtered_4FGL_J2056.5-0202_daily_bin1625.fits scfile=/scratch/kocevski/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits outfile=/scratch/kocevski/106078/cmap_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=314.142 yref=-2.0355 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106078/ft1_filtered_4FGL_J2056.5-0202_daily_bin1625.fits scfile=/scratch/kocevski/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits outfile=/scratch/kocevski/106078/cmap_HighResolution_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/106078/ft1_filtered_4FGL_J2056.5-0202_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/106078/ft2_4FGL_J2056.5-0202_daily_bin1625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/106078/Model_4FGL_J2056.5-0202_daily_bin1625.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/106078/ft1_filtered_4FGL_J2056.5-0202_daily_bin1625.fits.....................!
real 63.39
user 62.08
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7180       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7710       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29216E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.039       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0043       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64570       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97956       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=   6383.369     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2012 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.108        .63191E-06** at limit **
   2  Prefactor     2.7197        10.625        .51989E-05    .20029E-04
   3  norm          1.6315        1.5890        .50676E-07   -.70268E-04
   4  Prefactor     .10000E-03    8.2503        .23333E-06** at limit **
   5  norm          1.9841        4.8593        .76248E-06    .11339E-04
   6  Prefactor     9.7691        6.5066       -.67850E-07   -.14690E-03
   7  Prefactor     .10000E-03    3.6001        .56591E-08** at limit **
   8  Prefactor     .10000E-03    167.09        .12362E-04** at limit **
   9  Prefactor     21.136        22.873        .49883E-06    .12232E-05
  10  Prefactor     .10000E-03    16.035       -.31766E-06** at limit **
  11  Prefactor     43.024        48.472        .21723E-05   -.12366E-04
  12  Prefactor     .10000E-03    5.4942       -.72860E-08** at limit **
  13  Prefactor     .10000E-03    9.8023       -.80710E-06** at limit **
  14  Prefactor     .10000E-03    23.288       -.29653E-06** at limit **
  15  Prefactor     .10000E-03    15.863       -.28765E-06** at limit **
  16  Prefactor     4.0043        2.5327        .27486E-07   -.18224E-04
  17  Prefactor     23.276        34.991       -.12465E-06   -.58740E-05
  18  Prefactor     .10000E-03    12.223        .48157E-06** at limit **
  19  Normalizat    .64564        .26633        .31433E-06   -.74864E-04
  20  Prefactor     .97953        .10940       -.76323E-06   -.15463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.71968
  norm       = 1.63155
  Prefactor  = 0.0001
  norm       = 1.98414
  Prefactor  = 9.7691
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 21.1361
  Prefactor  = 0.0001
  Prefactor  = 43.0236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.00432
  Prefactor  = 23.2759
  Prefactor  = 0.0001
  Normalizat = 0.645643
  Prefactor  = 0.979526
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.369     FROM HESSE     STATUS=OK           289 CALLS     2301 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7197        10.632        .12352E-02   -1.5378    
   3  norm          1.6315        1.5706        .94160E-04   -1.5452    
   4  Prefactor     .10000E-03    8.2827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9841        4.8464        .26321E-03   -1.5426    
   6  Prefactor     9.7691        6.5015        .12820E-03   -1.5083    
   7  Prefactor     .10000E-03    3.6038        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    168.27        .42802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.136        22.859        .87116E-04   -1.4788    
  10  Prefactor     .10000E-03    16.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.024        48.481        .61108E-04   -1.4395    
  12  Prefactor     .10000E-03    5.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0043        2.5283        .95504E-04   -1.5308    
  17  Prefactor     23.276        35.035        .83028E-04   -1.4743    
  18  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64564        .29551        .42573E-03   -1.0608    
  20  Prefactor     .97953        .12251        .14979E-03   -.93415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75233e-11
Minuit parameter uncertainties:
  1  8.81372e-06
  2  10.6394
  3  1.57065
  4  2.8913e-06
  5  4.84734
  6  6.502
  7  4.03284e-07
  8  0.00140384
  9  22.8686
  10  1.67922e-05
  11  48.5252
  12  6.14194e-07
  13  9.08271e-06
  14  9.11876e-06
  15  2.6349e-05
  16  2.52832
  17  35.0663
  18  4.95289e-06
  19  0.296239
  20  0.122548
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  9.769e+00  6.502e+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.795e-01  1.225e-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:  6.456e-01  2.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 6.11e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/106078/likelihoodResults_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6383.14501911
delta logL = 0.223922231286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6383.1150817
delta logL = 0.253859637852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4884       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0591       1.0000          .0000       10.000    
     3 'Normalizat'    .61170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99140       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=   6383.115     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4880        10.491        .10995E-03   -.55320E-03
   2  Index         3.0593        1.2366        .55959E-02   -.83024E-04
   3  Normalizat    .61169        .28613        .43652E-03   -.14939E-03
   4  Prefactor     .99140        .12198        .14898E-03   -.47471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.48803
  Index      = 3.05927
  Normalizat = 0.611695
  Prefactor  = 0.991399
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.115     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4880        7.7716        .43979E-05   -1.5239    
   2  Index         3.0593        .92036        .22384E-03   -.39862    
   3  Normalizat    .61169        .28512        .17461E-04   -1.0749    
   4  Prefactor     .99140        .12118        .29797E-04   -.93017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37312e-10
Minuit parameter uncertainties:
  1  7.77307
  2  0.926595
  3  0.285807
  4  0.121214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106078': 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) = 6383.11508166
delta logL = 0.253859681457

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  5.488e+00  7.773e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.059e+00  9.266e-01  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.914e-01  1.212e-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:  6.117e-01  2.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 3.06 +/- 0.93
Photon Flux (Free Index): 1.11e-07 +/- 7.01e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/106078/cmap_HighResolution_660528001_660787201_4FGL_J2056.5-0202_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='2.15e-05', photon_flux_error='6.11e-08', dlogl='2.54e-01', energy_flux='2.62e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-12-10 00:47:05.734640', photon_index_error2='0.93', photon_index2='3.06', ts='3.15', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.50e-05', EG='0.65', time_epoch_completed='1639126025.73', return_code='0', job_id='106078', GAL2='0.99', EG2='0.61', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.01e-08', ts2='3.72', photon_index='2.52' WHERE bin_id='1625' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:47:05 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 106078: <4FGL_J2056.5-0202_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1625> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec 10 00:35:33 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:35:34 2021
Terminated at Fri Dec 10 00:47:06 2021
Results reported at Fri Dec 10 00:47:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1625 314.142 -2.0355 660528001 660787201 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 :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

