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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1318
RA = 314.142, Dec = -2.0355
tmin = 580953601, tmax = 581212801
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='221584', job_status='RUN', time_executed='2021-09-25 22:13:28.202887', time_epoch_executed='1632633208.2' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221584/ft1_4FGL_J2056.5-0202_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221584/ft1_4FGL_J2056.5-0202_daily_bin1318.fits outfile=/scratch/kocevski/221584/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1318.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=580953601.0 tmax=581212801.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 2.46
user 2.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221584/ft1_filtered_4FGL_J2056.5-0202_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/221584/ltcube_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.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/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits
.....................!
real 11.78
user 11.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221584/ft1_filtered_4FGL_J2056.5-0202_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/221584/ltcube_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.fits outfile=/scratch/kocevski/221584/expmap_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.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/221584/ltcube_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.fits
.....................!
real 155.97
user 150.92
sys 4.71

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/221584/ft1_filtered_4FGL_J2056.5-0202_daily_bin1318.fits scfile=/scratch/kocevski/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits outfile=/scratch/kocevski/221584/cmap_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.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.50
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221584/ft1_filtered_4FGL_J2056.5-0202_daily_bin1318.fits scfile=/scratch/kocevski/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits outfile=/scratch/kocevski/221584/cmap_HighResolution_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221584/ft1_filtered_4FGL_J2056.5-0202_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/221584/ft2_4FGL_J2056.5-0202_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221584/Model_4FGL_J2056.5-0202_daily_bin1318.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/221584/ft1_filtered_4FGL_J2056.5-0202_daily_bin1318.fits.....................!
real 71.01
user 69.83
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2361       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.977       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10513E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3820       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13168E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40156E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74842       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92253       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=   9241.375     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     2403 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.271        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.6895        .15386E-02** at limit **
   3  norm          11.495        2.2118        .54596E-04    .48310E-04
   4  Prefactor     6.2333        16.088        .16075E-03   -.10608E-04
   5  norm          3.2499        2.8710        .14886E-03    .62777E-04
   6  Prefactor     .66462        6.9534        .25257E-02    .25689E-03
   7  Prefactor     21.989        12.950        .85442E-04    .57215E-04
   8  Prefactor     19.660        26.585        .90316E-04    .37259E-04
   9  Prefactor     .10000E-03    17.016        .18142E-02** at limit **
  10  Prefactor     13.090        12.487        .11058E-03    .57576E-04
  11  Prefactor     5.0614        64.470        .17914E-03   -.60925E-04
  12  Prefactor     .10000E-03    71.109        .53025E-02** at limit **
  13  Prefactor     1.3643        36.537        .37017E-03    .77210E-04
  14  Prefactor     .10000E-03    37.853        .18142E-02** at limit **
  15  Prefactor     7.8860        5.4992        .14283E-03    .17289E-03
  16  Prefactor     .10000E-03    .60279        .14242E-03** at limit **
  17  Prefactor     .10006E-03    12.834        .10330    ** at limit **
  18  Prefactor     .10000E-03    27.899        .18142E-02** at limit **
  19  Normalizat    .74781        .24205        .38968E-03    .22528E-03
  20  Prefactor     .92283        .10155        .15475E-03    .92328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4946
  Prefactor  = 6.23335
  norm       = 3.24992
  Prefactor  = 0.664623
  Prefactor  = 21.9891
  Prefactor  = 19.6599
  Prefactor  = 0.0001
  Prefactor  = 13.0904
  Prefactor  = 5.06136
  Prefactor  = 0.0001
  Prefactor  = 1.36425
  Prefactor  = 0.0001
  Prefactor  = 7.88603
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Normalizat = 0.747813
  Prefactor  = 0.92283
 **********
 **   18 **HESSE 
 **********

 FCN=   9241.375     FROM HESSE     STATUS=OK           283 CALLS     2686 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6896        .30772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.495        2.2113        .21839E-05   -1.5030    
   4  Prefactor     6.2333        16.083        .64300E-05   -1.5209    
   5  norm          3.2499        2.8709        .59545E-05   -1.5347    
   6  Prefactor     .66462        6.9121        .10103E-03   -1.5545    
   7  Prefactor     21.989        12.949        .34177E-05   -1.4770    
   8  Prefactor     19.660        26.585        .36127E-05   -1.4821    
   9  Prefactor     .10000E-03    17.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.090        12.487        .44230E-05   -1.4984    
  11  Prefactor     5.0614        64.483        .71655E-05   -1.5258    
  12  Prefactor     .10000E-03    73.295        .21210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3643        36.518        .14807E-04   -1.5474    
  14  Prefactor     .10000E-03    37.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8860        5.4982        .57131E-05   -1.5146    
  16  Prefactor     .10000E-03    .60280        .28485E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    12.446        .10591       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74781        .24184        .15587E-04   -1.0203    
  20  Prefactor     .92283        .10161        .30950E-04   -.95348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83323e-10
Minuit parameter uncertainties:
  1  1.12138e-05
  2  3.4857e-06
  3  2.21135
  4  16.0939
  5  2.87098
  6  4.28699
  7  12.9503
  8  26.6011
  9  4.21107e-05
  10  12.4898
  11  36.1792
  12  0.000357167
  13  14.1257
  14  0.000157108
  15  5.49858
  16  2.58193e-06
  17  0.00166114
  18  0.000195983
  19  0.242185
  20  0.101634
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  6.646e-01  4.287e+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.228e-01  1.016e-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.478e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221584/likelihoodResults_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.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) = 9241.37454099
delta logL = 1.15323928185e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9241.37454099
delta logL = 2.06273398362e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66462       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5174       1.0000          .0000       10.000    
     3 'Normalizat'    .74781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92283       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=   9241.375     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      244 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66602        10.837        .72153E-01    .69295E-03
   2  Index         2.5147        1.5433        .50000        .83505E-05
   3  Normalizat    .74783        .11921E-01    .87980E-01    .36680E-04
   4  Prefactor     .92282        .52448E-02    .45295E-01   -.19971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.666019
  Index      = 2.51467
  Normalizat = 0.747831
  Prefactor  = 0.922823
 **********
 **   18 **HESSE 
 **********

 FCN=   9241.375     FROM HESSE     STATUS=OK            35 CALLS      279 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66602        9.1479        .25290E-02   -1.5545    
   2  Index         2.5147        2.2131        .13966E-01   -.52021    
   3  Normalizat    .74783        .22953        .38968E-03   -1.0203    
   4  Prefactor     .92282        .10076        .15475E-03   -.95348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64644e-08
Minuit parameter uncertainties:
  1  4.93721
  2  2.32246
  3  0.229826
  4  0.100778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221584': 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) = 9241.37454013
delta logL = 8.6089130491e-07

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  6.660e-01  4.937e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.515e+00  2.322e+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:  9.228e-01  1.008e-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.478e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/221584/cmap_HighResolution_580953601_581212801_4FGL_J2056.5-0202_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-09-25 22:24:34.561453', job_id='221584', GAL2='0.92', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632633874.56', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='8.61e-07', ts2='0.03', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1318' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:24:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 221584: <4FGL_J2056.5-0202_daily_bin1318> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1318> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 22:11:03 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:12:32 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:12:32 2021
Terminated at Sat Sep 25 22:24:35 2021
Results reported at Sat Sep 25 22:24:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1318 314.142 -2.0355 580953601 581212801 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.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            812 sec.

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

