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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin950
RA = 149.176, Dec = 25.2817
tmin = 485568001, tmax = 485827201
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='583212', job_status='RUN', time_executed='2021-09-01 06:11:32.058796', time_epoch_executed='1630501892.06' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583212/ft1_4FGL_J0956.7+2516_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583212/ft1_4FGL_J0956.7+2516_daily_bin950.fits outfile=/scratch/kocevski/583212/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin950.fits ra=149.176 dec=25.2817 rad=12.0 tmin=485568001.0 tmax=485827201.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 7.18
user 3.69
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583212/ft1_filtered_4FGL_J0956.7+2516_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/583212/ltcube_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.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/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits
.....................!
real 11.52
user 11.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583212/ft1_filtered_4FGL_J0956.7+2516_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/583212/ltcube_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.fits outfile=/scratch/kocevski/583212/expmap_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.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/583212/ltcube_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.fits
.....................!
real 190.14
user 185.11
sys 4.32

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/583212/ft1_filtered_4FGL_J0956.7+2516_daily_bin950.fits scfile=/scratch/kocevski/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits outfile=/scratch/kocevski/583212/cmap_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.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.56
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583212/ft1_filtered_4FGL_J0956.7+2516_daily_bin950.fits scfile=/scratch/kocevski/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits outfile=/scratch/kocevski/583212/cmap_HighResolution_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.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.56
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583212/ft1_filtered_4FGL_J0956.7+2516_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/583212/ft2_4FGL_J0956.7+2516_daily_bin950.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583212/Model_4FGL_J0956.7+2516_daily_bin950.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/583212/ft1_filtered_4FGL_J0956.7+2516_daily_bin950.fits.....................!
real 49.94
user 47.41
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1075       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.552       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.61       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14239E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.977       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .68240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9478       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8691       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .59288       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2134       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=   5054.994     FROM MIGRAD    STATUS=FAILED       717 CALLS     2340 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1189        94.623        .57497E-02    .79295E-03
   2  norm          .10000E-03    12.891        .18142E-02** at limit **
   3  norm          1.3893        1.2550        .73569E-04   -.33533E-04
   4  Prefactor     33.547        49.088        .69180E-04   -.83811E-05
   5  Prefactor     .10000E-03    1.2430        .76980E-03** at limit **
   6  Prefactor     44.068        31.129        .60383E-04   -.15439E-04
   7  Prefactor     100.63        75.956        .20041E-03    .17018E-06
   8  Prefactor     .10000E-03    55.180        .18142E-02** at limit **
   9  Prefactor     .10000E-03    13.846        .36285E-03** at limit **
  10  Prefactor     .10000E-03    4.0063        .13874E-02** at limit **
  11  Prefactor     .10000E-03    .68513        .57127E-03** at limit **
  12  norm          17.974        9.6185        .94463E-04    .67397E-05
  13  Prefactor     4.7066        4.5446        .62288E-03   -.18599E-04
  14  Prefactor     .61524        333.38        .62640E-02    .16536E-04
  15  Prefactor     8.9469        6.5490        .65450E-03   -.71218E-05
  16  Prefactor     26.868        33.116        .77272E-04   -.36781E-05
  17  Prefactor     9.1068        7.1345        .13280E-03    .64206E-05
  18  Prefactor     2.8683        2.3761        .95779E-04   -.23739E-05
  19  Normalizat    .59297        .20269        .27851E-03   -.53392E-04
  20  Prefactor     1.2136        .20659        .21335E-03   -.27933E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5054.994     FROM SIMPLEX   STATUS=PROGRESS    1062 CALLS     3402 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1191        94.623        .42461E-06   -1.5496    
   2  norm          .10000E-03    12.891        .64547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3893        1.2550        .23116E-06   -1.5472    
   4  Prefactor     33.547        49.088        .21699E-06   -1.4549    
   5  Prefactor     .10000E-03    1.2430        .11389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.068        31.129        .21434E-06   -1.4379    
   7  Prefactor     100.63        75.956        .20343E-06   -1.3698    
   8  Prefactor     .10000E-03    55.180        .73518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.846        .37057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0063        .28034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .68513        .14520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.974        9.6185        .22209E-06   -1.4860    
  13  Prefactor     4.7066        4.5446        .22838E-06   -1.5274    
  14  Prefactor     .61524        333.38        .31534E-06   -1.5551    
  15  Prefactor     8.9469        6.5490        .22615E-06   -1.5110    
  16  Prefactor     26.868        33.116        .22188E-06   -1.4671    
  17  Prefactor     9.1068        7.1345        .22634E-06   -1.5104    
  18  Prefactor     2.8683        2.3761        .22979E-06   -1.5369    
  19  Normalizat    .59297        .20269        .16223E-06   -1.0828    
  20  Prefactor     1.2136        .20659        .12841E-06   -.85915    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5054.994     FROM MIGRAD    STATUS=CONVERGED    282 CALLS     3684 TOTAL
                     EDM=   .85E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1191        94.611        .11499E-02    .15027E-05
   2  norm          .10000E-03    12.891        .36285E-03** at limit **
   3  norm          1.3893        1.2548        .29428E-05    .15453E-05
   4  Prefactor     33.547        49.052        .27672E-05    .82168E-06
   5  Prefactor     .10000E-03    1.2431        .15396E-03** at limit **
   6  Prefactor     44.068        31.121        .24153E-05    .37656E-06
   7  Prefactor     100.63        75.936        .80162E-05    .56728E-07
   8  Prefactor     .10000E-03    55.189        .36285E-03** at limit **
   9  Prefactor     .10000E-03    13.847        .72569E-04** at limit **
  10  Prefactor     .10000E-03    4.0066        .27748E-03** at limit **
  11  Prefactor     .10000E-03    .68516        .11425E-03** at limit **
  12  norm          17.974        9.6170        .37785E-05    .60176E-06
  13  Prefactor     4.7066        4.5444        .24915E-04    .36504E-06
  14  Prefactor     .61523        340.96        .25056E-03    .13612E-06
  15  Prefactor     8.9469        6.5498        .26180E-04    .17370E-06
  16  Prefactor     26.868        33.101        .30909E-05     .0000    
  17  Prefactor     9.1068        7.1333        .53120E-05    .34243E-06
  18  Prefactor     2.8683        2.3758        .38311E-05    .35609E-06
  19  Normalizat    .59297        .20201        .11140E-04    .20410E-05
  20  Prefactor     1.2136        .20605        .42670E-04    .20782E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11907
  norm       = 0.0001
  norm       = 1.3893
  Prefactor  = 33.5466
  Prefactor  = 0.0001
  Prefactor  = 44.0683
  Prefactor  = 100.626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9741
  Prefactor  = 4.70664
  Prefactor  = 0.615232
  Prefactor  = 8.94688
  Prefactor  = 26.868
  Prefactor  = 9.10681
  Prefactor  = 2.86833
  Normalizat = 0.592968
  Prefactor  = 1.21356
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.994     FROM HESSE     STATUS=OK           273 CALLS     3957 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1191        94.342        .45997E-04   -1.5496    
   2  norm          .10000E-03    12.891        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3893        1.2544        .58856E-06   -1.5472    
   4  Prefactor     33.547        49.269        .55344E-06   -1.4549    
   5  Prefactor     .10000E-03    1.2431        .30792E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.068        31.116        .24153E-05   -1.4379    
   7  Prefactor     100.63        75.931        .80162E-05   -1.3698    
   8  Prefactor     .10000E-03    55.190        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.847        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0066        .55496E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .68516        .22851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.974        9.6073        .75570E-06   -1.4860    
  13  Prefactor     4.7066        4.5442        .49830E-05   -1.5274    
  14  Prefactor     .61523        340.93        .10022E-04   -1.5551    
  15  Prefactor     8.9469        6.5494        .52360E-05   -1.5110    
  16  Prefactor     26.868        33.102        .30909E-05   -1.4671    
  17  Prefactor     9.1068        7.1330        .53120E-05   -1.5104    
  18  Prefactor     2.8683        2.3757        .38311E-05   -1.5369    
  19  Normalizat    .59297        .20153        .22281E-05   -1.0828    
  20  Prefactor     1.2136        .20590        .85340E-05   -.85915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27318e-14
Minuit parameter uncertainties:
  1  20.5826
  2  6.16634e-08
  3  1.25442
  4  49.3286
  5  1.05879e-08
  6  31.1271
  7  76.0048
  8  2.61101e-07
  9  1.5595e-08
  10  1.94449e-08
  11  3.76248e-10
  12  9.60813
  13  4.54451
  14  29.1313
  15  6.54995
  16  33.1249
  17  7.13363
  18  2.37582
  19  0.201784
  20  0.206034
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.560e-08  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.214e+00  2.060e-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:  5.930e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583212/likelihoodResults_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.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) = 5054.99401566
delta logL = -0.000344858780409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5054.99367086
delta logL = -6.28779162071e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5829       1.0000          .0000       10.000    
     3 'Normalizat'    .59297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2136       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=   5054.994     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      220 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.457        .55789E-01** at limit **
   2  Index         2.6220        5.0635        .50000       -.24876E-04
   3  Normalizat    .59296        .89471E-02    .62945E-01   -.20752E-03
   4  Prefactor     1.2136        .95564E-02    .34317E-01    .69075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.622
  Normalizat = 0.592964
  Prefactor  = 1.21357
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.994     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1554.3        .32425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6220        8.6457        .50000       -.49565    
   3  Normalizat    .59296        .50378E-01    .27851E-03   -1.0828    
   4  Prefactor     1.2136        .53756E-01    .21335E-03   -.85915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9e-07
Minuit parameter uncertainties:
  1  0.00562924
  2  45.362
  3  0.0503816
  4  0.0537584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583212': 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): 102
logL (Free Index) = 5054.99367038
delta logL = 4.14689566242e-07

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  5.629e-03  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.622e+00  4.536e+01  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.214e+00  5.376e-02  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:  5.930e-01  5.038e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/583212/cmap_HighResolution_485568001_485827201_4FGL_J0956.7+2516_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-09-01 06:22:14.061948', job_id='583212', GAL2='1.21', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630502534.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='4.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='950' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:22:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 583212: <4FGL_J0956.7+2516_daily_bin950> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin950> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:11:13 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:11:15 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:15 2021
Terminated at Wed Sep  1 06:22:14 2021
Results reported at Wed Sep  1 06:22:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin950 149.176 25.2817 485568001 485827201 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 :                                   617.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            661 sec.

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

