/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7436
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1029
RA = 149.176, Dec = 25.2817
tmin = 506044801, tmax = 506304001
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='583342', job_status='RUN', time_executed='2021-09-01 06:12:12.992558', time_epoch_executed='1630501932.99' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583342/ft1_4FGL_J0956.7+2516_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583342/ft1_4FGL_J0956.7+2516_daily_bin1029.fits outfile=/scratch/kocevski/583342/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1029.fits ra=149.176 dec=25.2817 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.58
user 4.06
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.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/583342/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.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.69
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/583342/ltcube_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.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/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits
.....................!
real 12.34
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/583342/ltcube_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.fits outfile=/scratch/kocevski/583342/expmap_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.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/583342/ltcube_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.fits
.....................!
real 192.24
user 186.36
sys 4.70

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J0956.7+2516 @ 149.176 25.2817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits scfile=/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits outfile=/scratch/kocevski/583342/cmap_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.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=149.176 yref=25.2817 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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits scfile=/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits outfile=/scratch/kocevski/583342/cmap_HighResolution_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.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=149.176 yref=25.2817 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.82
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583342/Model_4FGL_J0956.7+2516_daily_bin1029.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/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits.....................!
real 50.35
user 46.27
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits', '/scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits', expMap='/scratch/kocevski/583342/expmap_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.fits', expCube='/scratch/kocevski/583342/ltcube_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/583342/Model_4FGL_J0956.7+2516_daily_bin1029.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0956.7+2516'

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.112e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/583342/ft1_filtered_4FGL_J0956.7+2516_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/583342/ft2_4FGL_J0956.7+2516_daily_bin1029.fits
Exposure map: /scratch/kocevski/583342/expmap_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.fits
Exposure cube: /scratch/kocevski/583342/ltcube_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/583342/Model_4FGL_J0956.7+2516_daily_bin1029.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) = 4877.90194333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1024       1.0000         .10000E-03   10000.    
     2 'norm      '    .31177E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .64408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1441       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1310       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4926       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.653       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34109       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4877.897     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2133 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0743        98.010       -.14744E-04    .57322E-04
   2  norm          .10000E-03    157.56       -.66450E-05** at limit **
   3  norm          .64249        1.8727       -.73329E-06    .10245E-03
   4  Prefactor     .10000E-03    25.106        .31274E-06** at limit **
   5  Prefactor     2.1466        4.7268       -.95906E-07    .30673E-03
   6  Prefactor     .10000E-03    23.687       -.32594E-06** at limit **
   7  Prefactor     7.1317        60.576       -.47860E-06    .17023E-05
   8  Prefactor     20.447        50.974        .12532E-05    .28637E-04
   9  Prefactor     5.4949        6.4731       -.14141E-06    .12734E-03
  10  Prefactor     .10000E-03    2.7552       -.17322E-06** at limit **
  11  Prefactor     .10000E-03    .74300       -.13938E-06** at limit **
  12  norm          8.4254        6.1054        .14050E-06    .65276E-04
  13  Prefactor     .10000E-03    2.0012       -.58680E-06** at limit **
  14  Prefactor     61.647        42.669        .21268E-06    .21149E-04
  15  Prefactor     .27423        5.2456       -.27716E-05   -.17155E-03
  16  Prefactor     .10000E-03    24.994       -.92409E-06** at limit **
  17  Prefactor     4.5878        5.3361        .72350E-07    .48772E-04
  18  Prefactor     .34093        1.8634       -.14003E-06    .24250E-03
  19  Normalizat    1.0386        .18944        .20106E-05    .32227E-03
  20  Prefactor     .96856        .18815        .21155E-06    .24070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07428
  norm       = 0.0001
  norm       = 0.642495
  Prefactor  = 0.0001
  Prefactor  = 2.14657
  Prefactor  = 0.000100004
  Prefactor  = 7.1317
  Prefactor  = 20.4472
  Prefactor  = 5.49492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.42541
  Prefactor  = 0.000100001
  Prefactor  = 61.6473
  Prefactor  = 0.274232
  Prefactor  = 0.0001
  Prefactor  = 4.58776
  Prefactor  = 0.340931
  Normalizat = 1.03858
  Prefactor  = 0.968565
 **********
 **   18 **HESSE 
 **********

 FCN=   4877.897     FROM HESSE     STATUS=OK           309 CALLS     2442 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0743        132.09        .64522E-02   -1.5501    
   2  norm          .10000E-03    161.04        .21373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .64249        1.8125        .15129E-03   -1.5548    
   4  Prefactor     .10000E-03    25.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1466        4.6050        .19738E-03   -1.5415    
   6  Prefactor     .10000E-03    32.922        .96184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1317        60.596        .15022E-03   -1.5174    
   8  Prefactor     20.447        51.389        .88457E-04   -1.4803    
   9  Prefactor     5.4949        6.4784        .17144E-03   -1.5239    
  10  Prefactor     .10000E-03    2.7618        .11324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .75218        .58845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4254        6.1083        .13811E-03   -1.5127    
  13  Prefactor     .10000E-03    3.1390        .17874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     61.647        42.713        .51102E-04   -1.4136    
  15  Prefactor     .27423        10.287        .20720E-02   -1.5603    
  16  Prefactor     .10000E-03    25.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5878        5.3095        .16604E-03   -1.5280    
  18  Prefactor     .34093        3.4308        .17881E-02   -1.5591    
  19  Normalizat    1.0386        .22162        .22405E-03   -.91749    
  20  Prefactor     .96856        .22004        .24284E-03   -.93785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98414e-10
Minuit parameter uncertainties:
  1  23.877
  2  0.000100914
  3  1.81269
  4  2.58695e-05
  5  4.60571
  6  0.000681234
  7  41.6331
  8  51.5004
  9  6.4792
  10  5.53095e-07
  11  1.52218e-06
  12  6.10877
  13  9.02305e-05
  14  42.734
  15  3.3592
  16  4.10489e-05
  17  5.31003
  18  2.16287
  19  0.221817
  20  0.220239
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  5.495e+00  6.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.686e-01  2.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.039e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583342/likelihoodResults_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.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) = 4877.66031259
delta logL = 0.236731259448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4877.65229398
delta logL = 0.244749870927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1496       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3112       1.0000          .0000       10.000    
     3 'Normalizat'    1.0182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   4877.652     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1503        6.7768        .11303E-03   -.52202E-04
   2  Index         3.3124        1.5157        .80867E-02    .31392E-03
   3  Normalizat    1.0181        .20996        .22596E-03    .11944E-03
   4  Prefactor     .98367        .21871        .24114E-03    .11838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15028
  Index      = 3.3124
  Normalizat = 1.01807
  Prefactor  = 0.983671
 **********
 **   18 **HESSE 
 **********

 FCN=   4877.652     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1503        5.6057        .45211E-05   -1.5353    
   2  Index         3.3124        1.2602        .16173E-02   -.34428    
   3  Normalizat    1.0181        .21012        .90382E-05   -.92427    
   4  Prefactor     .98367        .21871        .96458E-05   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08331e-11
Minuit parameter uncertainties:
  1  5.60661
  2  1.27581
  3  0.210289
  4  0.218908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583342': 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) = 4877.65228798
delta logL = 0.244755866001

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  3.150e+00  5.607e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  3.312e+00  1.276e+00  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.837e-01  2.189e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.018e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 149.176 25.282
Photon Index (Free Index): 3.31 +/- 1.28
Photon Flux (Free Index): 4.72e-08 +/- 4.62e-08
Energy Flux (Free Index): 8.30e-06 +/- 8.17e-06

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/583342/cmap_HighResolution_506044801_506304001_4FGL_J0956.7+2516_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', comment='SUCCESS', energy_flux2='8.30e-06', dlogl='2.45e-01', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-01 06:21:32.894735', photon_index_error2='1.28', photon_index2='3.31', ts='0.99', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.17e-06', EG='1.04', time_epoch_completed='1630502492.89', return_code='0', job_id='583342', GAL2='0.98', EG2='1.02', return_code2='0', photon_flux_error2='4.62e-08', ts2='1.50', photon_index='2.55' WHERE bin_id='1029' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 583342: <4FGL_J0956.7+2516_daily_bin1029> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin1029> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:11:22 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:11:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:11:24 2021
Terminated at Wed Sep  1 06:21:33 2021
Results reported at Wed Sep  1 06:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1029 149.176 25.2817 506044801 506304001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0956.7+2516 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   545.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

