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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin652
RA = 149.176, Dec = 25.2817
tmin = 408326401, tmax = 408585601
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='581344', job_status='RUN', time_executed='2021-09-01 06:05:52.612695', time_epoch_executed='1630501552.61' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581344/ft1_4FGL_J0956.7+2516_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581344/ft1_4FGL_J0956.7+2516_daily_bin652.fits outfile=/scratch/kocevski/581344/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin652.fits ra=149.176 dec=25.2817 rad=12.0 tmin=408326401.0 tmax=408585601.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 5.96
user 4.63
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.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/581344/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.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.48
user 0.36
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/581344/ltcube_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.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/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits
.....................!
real 12.01
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/581344/ltcube_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.fits outfile=/scratch/kocevski/581344/expmap_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.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/581344/ltcube_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.fits
.....................!
real 189.12
user 184.76
sys 3.95

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/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits scfile=/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits outfile=/scratch/kocevski/581344/cmap_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits scfile=/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits outfile=/scratch/kocevski/581344/cmap_HighResolution_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/581344/Model_4FGL_J0956.7+2516_daily_bin652.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/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits....................!
real 45.93
user 44.66
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits', '/scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits', expMap='/scratch/kocevski/581344/expmap_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.fits', expCube='/scratch/kocevski/581344/ltcube_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/581344/Model_4FGL_J0956.7+2516_daily_bin652.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/581344/ft1_filtered_4FGL_J0956.7+2516_daily_bin652.fits
Spacecraft file(s): /scratch/kocevski/581344/ft2_4FGL_J0956.7+2516_daily_bin652.fits
Exposure map: /scratch/kocevski/581344/expmap_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.fits
Exposure cube: /scratch/kocevski/581344/ltcube_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/581344/Model_4FGL_J0956.7+2516_daily_bin652.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) = 4949.55333132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.223       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .61948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1807       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14402E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3845       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0067       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97514       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0185       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4949.548     FROM MIGRAD    STATUS=FAILED       730 CALLS     2362 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.227        28.764        .10265E-03   -.15172E-04
   2  norm          .10000E-03    12.164        .18142E-02** at limit **
   3  norm          .61862        2.0537        .17654E-03    .62400E-04
   4  Prefactor     .10000E-03    15.696        .18142E-02** at limit **
   5  Prefactor     3.1819        4.3576        .16118E-03   -.10037E-03
   6  Prefactor     6.6509        15.727        .15560E-03   -.29591E-04
   7  Prefactor     .10000E-03    29.873        .18142E-02** at limit **
   8  Prefactor     .10000E-03    28.512        .18142E-02** at limit **
   9  Prefactor     1.0157        13.387        .33847E-02    .21242E-02
  10  Prefactor     .10000E-03    64.876        .44042E-02** at limit **
  11  Prefactor     .10000E-03    1.7317        .89383E-03** at limit **
  12  norm          .10002E-03    33.823        .38340E-02** at limit **
  13  Prefactor     .10000E-03    5.2360        .30814E-03** at limit **
  14  Prefactor     .10000E-03    11.562        .18142E-02** at limit **
  15  Prefactor     .10000E-03    8.2529        .36285E-03** at limit **
  16  Prefactor     .10000E-03    95.045        .18142E-02** at limit **
  17  Prefactor     3.3838        7.7481        .10997E-02   -.54059E-04
  18  Prefactor     1.0067        1.0283        .66740E-03    .53522E-04
  19  Normalizat    .97509        .21412        .23416E-03   -.26286E-03
  20  Prefactor     1.0184        .20737        .22978E-03   -.16964E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4949.548     FROM SIMPLEX   STATUS=PROGRESS     988 CALLS     3350 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.227        28.764        .24017E-06   -1.4927    
   2  norm          .10000E-03    12.164        .46693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61862        2.0537        .23392E-06   -1.5551    
   4  Prefactor     .10000E-03    15.696        .48851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1819        4.3576        .23055E-06   -1.5351    
   6  Prefactor     6.6509        15.727        .22798E-06   -1.5192    
   7  Prefactor     .10000E-03    29.873        .79709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.512        .64373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0157        13.387        .23487E-06   -1.5506    
  10  Prefactor     .10000E-03    64.876        .61172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7317        .13699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    33.823        .64732E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2360        .16885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.562        .49467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.2529        .10017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    95.045        .85138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3838        7.7481        .23042E-06   -1.5340    
  18  Prefactor     1.0067        1.0283        .23289E-06   -1.5507    
  19  Normalizat    .97509        .21412        .14102E-06   -.93870    
  20  Prefactor     1.0184        .20737        .13840E-06   -.92118    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4949.548     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     3630 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.227        28.758        .41062E-05   -.11075E-06
   2  norm          .10000E-03    12.165        .36285E-03** at limit **
   3  norm          .61862        2.0531        .70617E-05    .14811E-05
   4  Prefactor     .10000E-03    15.696        .36285E-03** at limit **
   5  Prefactor     3.1819        4.3562        .64471E-05   -.10580E-05
   6  Prefactor     6.6509        15.725        .62240E-05   -.10959E-05
   7  Prefactor     .10000E-03    29.874        .36285E-03** at limit **
   8  Prefactor     .10000E-03    28.517        .36285E-03** at limit **
   9  Prefactor     1.0157        13.281        .67694E-03   -.78765E-05
  10  Prefactor     .10000E-03    65.848        .88085E-03** at limit **
  11  Prefactor     .10000E-03    1.7320        .17877E-03** at limit **
  12  norm          .10000E-03    34.236        .76681E-03** at limit **
  13  Prefactor     .10000E-03    5.2362        .61627E-04** at limit **
  14  Prefactor     .10000E-03    11.562        .36285E-03** at limit **
  15  Prefactor     .10000E-03    8.2534        .72569E-04** at limit **
  16  Prefactor     .10000E-03    95.053        .36285E-03** at limit **
  17  Prefactor     3.3838        7.7408        .43987E-04   -.49107E-05
  18  Prefactor     1.0067        1.0283        .26696E-04   -.42586E-05
  19  Normalizat    .97509        .21366        .46831E-04   -.24373E-04
  20  Prefactor     1.0184        .20750        .45956E-04   -.20582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2271
  norm       = 0.0001
  norm       = 0.618618
  Prefactor  = 0.0001
  Prefactor  = 3.18192
  Prefactor  = 6.65087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38381
  Prefactor  = 1.00675
  Normalizat = 0.975094
  Prefactor  = 1.01843
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.548     FROM HESSE     STATUS=OK           273 CALLS     3903 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.227        28.758        .41062E-05   -1.4927    
   2  norm          .10000E-03    12.165        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61862        2.0531        .70617E-05   -1.5551    
   4  Prefactor     .10000E-03    15.696        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1819        4.3561        .12894E-05   -1.5351    
   6  Prefactor     6.6509        15.733        .12448E-05   -1.5192    
   7  Prefactor     .10000E-03    29.874        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.518        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0157        13.247        .27078E-04   -1.5506    
  10  Prefactor     .10000E-03    65.888        .17617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7320        .35753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    34.253        .15336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2362        .12325E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.562        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.2534        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    95.052        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3838        7.7370        .17595E-05   -1.5340    
  18  Prefactor     1.0067        1.0283        .10678E-05   -1.5507    
  19  Normalizat    .97509        .21354        .93662E-05   -.93870    
  20  Prefactor     1.0184        .20752        .91913E-05   -.92118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53051e-12
Minuit parameter uncertainties:
  1  28.7844
  2  1.04619e-07
  3  2.05335
  4  2.0452e-07
  5  4.35654
  6  15.7433
  7  6.84937e-07
  8  1.63447e-06
  9  7.33773
  10  4.95527e-05
  11  1.54022e-07
  12  3.94326e-05
  13  1.8481e-07
  14  2.58343e-07
  15  2.92567e-07
  16  4.49437e-06
  17  7.73925
  18  1.02829
  19  0.213731
  20  0.207681
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.016e+00  7.338e+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:  1.018e+00  2.077e-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:  9.751e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/581344/likelihoodResults_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.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) = 4949.46764952
delta logL = 0.0801665934441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4949.45391043
delta logL = 0.093905684922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7416       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3317       1.0000          .0000       10.000    
     3 'Normalizat'    .95387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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.

 FCN=   4949.454     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7416        141.37        .79471E-02    .78178E-03
   2  Index         3.3317        6.4909        .23424        .45781E-04
   3  Normalizat    .95385        .41414E-01    .45586E-01    .64289E-04
   4  Prefactor     1.0286        .42056E-01    .41372E-01   -.44335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7416
  Index      = 3.33174
  Normalizat = 0.953846
  Prefactor  = 1.02865
 **********
 **   18 **HESSE 
 **********

 FCN=   4949.454     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7416        5.7629        .19487E-03   -1.5444    
   2  Index         3.3317        1.8992        .13139E-01   -.34017    
   3  Normalizat    .95385        .21278        .23646E-03   -.94593    
   4  Prefactor     1.0286        .20760        .22873E-03   -.91781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5409e-09
Minuit parameter uncertainties:
  1  5.76473
  2  1.95476
  3  0.212966
  4  0.207765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581344': 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) = 4949.45391035
delta logL = 0.0939057676751

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.742e+00  5.765e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  3.332e+00  1.955e+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:  1.029e+00  2.078e-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:  9.538e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 149.176 25.282

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/581344/cmap_HighResolution_408326401_408585601_4FGL_J0956.7+2516_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-01 06:15:59.079183', job_id='581344', GAL2='1.03', fit_tolerance='1e-08', EG2='0.95', EG='0.98', time_epoch_completed='1630502159.08', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.39e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='652' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 581344: <4FGL_J0956.7+2516_daily_bin652> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin652> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 06:05:36 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:05:37 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:05:37 2021
Terminated at Wed Sep  1 06:16:01 2021
Results reported at Wed Sep  1 06:16:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin652 149.176 25.2817 408326401 408585601 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 :                                   595.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

