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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1064
RA = 314.142, Dec = -2.0355
tmin = 515116801, tmax = 515376001
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='221217', job_status='RUN', time_executed='2021-09-25 22:13:48.801105', time_epoch_executed='1632633228.8' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221217/ft1_4FGL_J2056.5-0202_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221217/ft2_4FGL_J2056.5-0202_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221217/ft1_4FGL_J2056.5-0202_daily_bin1064.fits outfile=/scratch/kocevski/221217/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1064.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=515116801.0 tmax=515376001.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.60
user 3.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221217/ft1_filtered_4FGL_J2056.5-0202_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/221217/ft2_4FGL_J2056.5-0202_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/221217/ltcube_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.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/221217/ft2_4FGL_J2056.5-0202_daily_bin1064.fits
.....................!
real 14.31
user 13.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221217/ft1_filtered_4FGL_J2056.5-0202_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/221217/ft2_4FGL_J2056.5-0202_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/221217/ltcube_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.fits outfile=/scratch/kocevski/221217/expmap_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.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/221217/ltcube_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.fits
.....................!
real 193.59
user 185.58
sys 5.68

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/221217/ft1_filtered_4FGL_J2056.5-0202_daily_bin1064.fits scfile=/scratch/kocevski/221217/ft2_4FGL_J2056.5-0202_daily_bin1064.fits outfile=/scratch/kocevski/221217/cmap_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.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.59
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221217/ft1_filtered_4FGL_J2056.5-0202_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/221217/ft2_4FGL_J2056.5-0202_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221217/Model_4FGL_J2056.5-0202_daily_bin1064.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/221217/ft1_filtered_4FGL_J2056.5-0202_daily_bin1064.fits.....................!
real 86.52
user 84.24
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.490       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8440       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1903       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.643       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.122       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.982       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89065       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0550       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=   8918.367     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2019 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.486        22.657       -.20484E-05   -.64611E-05
   2  Prefactor     2.8448        16.715       -.27466E-05   -.14732E-03
   3  norm          3.1902        1.3820       -.95848E-07   -.12013E-03
   4  Prefactor     23.640        17.493       -.11852E-05   -.33641E-04
   5  norm          .10000E-03    1.3789        .41558E-07** at limit **
   6  Prefactor     .10000E-03    3.1914       -.78780E-07** at limit **
   7  Prefactor     .10000E-03    21.407        .56721E-05** at limit **
   8  Prefactor     .10000E-03    29.274       -.65092E-05** at limit **
   9  Prefactor     35.123        25.038       -.12080E-06    .23585E-04
  10  Prefactor     .10000E-03    9.7689       -.76292E-08** at limit **
  11  Prefactor     .10000E-03    26.713       -.97068E-05** at limit **
  12  Prefactor     27.832        22.702       -.24897E-05   -.20520E-04
  13  Prefactor     .10000E-03    53.342       -.71269E-05** at limit **
  14  Prefactor     .10000E-03    38.583        .18879E-04** at limit **
  15  Prefactor     .10000E-03    6.8785        .19112E-06** at limit **
  16  Prefactor     .10000E-03    .54215       -.12339E-08** at limit **
  17  Prefactor     41.958        36.424       -.21891E-04   -.55543E-05
  18  Prefactor     .10000E-03    12.005       -.65245E-06** at limit **
  19  Normalizat    .89096        .23879        .73786E-05   -.14234E-03
  20  Prefactor     1.0549        .99046E-01   -.59693E-06    .22929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4861
  Prefactor  = 2.84476
  norm       = 3.19023
  Prefactor  = 23.6403
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.1229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9577
  Prefactor  = 0.0001
  Normalizat = 0.890957
  Prefactor  = 1.05485
 **********
 **   18 **HESSE 
 **********

 FCN=   8918.367     FROM HESSE     STATUS=OK           287 CALLS     2306 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.486        22.685        .93144E-04   -1.4848    
   2  Prefactor     2.8448        16.812        .24111E-03   -1.5371    
   3  norm          3.1902        1.3794        .68147E-04   -1.5351    
   4  Prefactor     23.640        17.460        .82380E-04   -1.4735    
   5  norm          .10000E-03    1.4014        .10828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2422        .16463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.123        25.033        .67621E-04   -1.4522    
  10  Prefactor     .10000E-03    9.7723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.832        22.711        .75934E-04   -1.4652    
  13  Prefactor     .10000E-03    54.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .54491        .67860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.958        36.466        .61869E-04   -1.4412    
  18  Prefactor     .10000E-03    12.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89096        .27440        .41434E-03   -.96779    
  20  Prefactor     1.0549        .11565        .16424E-03   -.90923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21538e-10
Minuit parameter uncertainties:
  1  22.6959
  2  13.837
  3  1.37945
  4  17.4639
  5  5.209e-06
  6  2.50743e-05
  7  0.000269944
  8  3.34339e-05
  9  25.0409
  10  7.27947e-06
  11  6.5102e-05
  12  22.7176
  13  7.76712e-05
  14  0.00015426
  15  2.34646e-05
  16  1.16746e-05
  17  36.4855
  18  8.08103e-06
  19  0.274829
  20  0.115674
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.507e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.055e+00  1.157e-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:  8.910e-01  2.748e-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: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221217/likelihoodResults_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.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) = 8918.36799352
delta logL = -0.0014702793269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8918.3665236
delta logL = -3.62628270523e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5120       1.0000          .0000       10.000    
     3 'Normalizat'    .89084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8918.367     FROM MIGRAD    STATUS=FAILED        85 CALLS      238 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    232.50        .16485E-02** at limit **
   2  Index         2.4643        5.8542        .50000        .96109E-05
   3  Normalizat    .89096        .52374E-01    .41433E-03    .11853E-03
   4  Prefactor     1.0549        .22572E-01    .16424E-03    .29461E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8918.367     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      378 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    232.50        .37096E-03** at limit **
   2  Index         2.4643        5.8542        .54204E-04    .96109E-05
   3  Normalizat    .89096        .52374E-01    .16939E-05    .11853E-03
   4  Prefactor     1.0549        .22572E-01    .60574E-06    .29461E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8918.367     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      420 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9524        .32969E-03** at limit **
   2  Index         2.3676        7.8352        .50000        .69758E-07
   3  Normalizat    .89096        .26295        .16573E-04   -.25353E-03
   4  Prefactor     1.0549        .11346        .32847E-04   -.63476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36762
  Normalizat = 0.890962
  Prefactor  = 1.05485
 **********
 **   18 **HESSE 
 **********

 FCN=   8918.367     FROM HESSE     STATUS=OK            29 CALLS      449 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3882        .65938E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3676        8.2757        .50000       -.55445    
   3  Normalizat    .89096        .26308        .33147E-05   -.96778    
   4  Prefactor     1.0549        .11351        .65694E-05   -.90923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65599e-10
Minuit parameter uncertainties:
  1  3.04229e-05
  2  121.665
  3  0.263459
  4  0.113533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221217': 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) = 8918.36652298
delta logL = 2.60573870037e-07

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.042e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.368e+00  1.217e+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:  1.055e+00  1.135e-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:  8.910e-01  2.635e-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/221217/cmap_HighResolution_515116801_515376001_4FGL_J2056.5-0202_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-25 22:26:43.629521', job_id='221217', GAL2='1.05', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632634003.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1064' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:26:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 221217: <4FGL_J2056.5-0202_daily_bin1064> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1064> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 22:10:31 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:11:06 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:11:06 2021
Terminated at Sat Sep 25 22:26:44 2021
Results reported at Sat Sep 25 22:26:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1064 314.142 -2.0355 515116801 515376001 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            973 sec.

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

