/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 210 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 = 7417
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin89
RA = 149.176, Dec = 25.2817
tmin = 262396801, tmax = 262656001
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='578138', job_status='RUN', time_executed='2021-09-01 05:59:28.307817', time_epoch_executed='1630501168.31' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578138

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578138/ft1_4FGL_J0956.7+2516_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578138/ft2_4FGL_J0956.7+2516_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578138/ft1_4FGL_J0956.7+2516_daily_bin89.fits outfile=/scratch/kocevski/578138/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin89.fits ra=149.176 dec=25.2817 rad=12.0 tmin=262396801.0 tmax=262656001.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 1.40
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578138/ft2_4FGL_J0956.7+2516_daily_bin89.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/578138/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/578138/ft1_filtered_4FGL_J0956.7+2516_daily_bin89.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578138/ft1_filtered_4FGL_J0956.7+2516_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/578138/ft2_4FGL_J0956.7+2516_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/578138/ltcube_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.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/578138/ft2_4FGL_J0956.7+2516_daily_bin89.fits
.....................!
real 12.79
user 12.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578138/ft1_filtered_4FGL_J0956.7+2516_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/578138/ft2_4FGL_J0956.7+2516_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/578138/ltcube_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.fits outfile=/scratch/kocevski/578138/expmap_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.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/578138/ltcube_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.fits
.....................!
real 190.17
user 185.81
sys 3.85

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/578138/ft1_filtered_4FGL_J0956.7+2516_daily_bin89.fits scfile=/scratch/kocevski/578138/ft2_4FGL_J0956.7+2516_daily_bin89.fits outfile=/scratch/kocevski/578138/cmap_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.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.54
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578138/ft1_filtered_4FGL_J0956.7+2516_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/578138/ft2_4FGL_J0956.7+2516_daily_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578138/Model_4FGL_J0956.7+2516_daily_bin89.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/578138/ft1_filtered_4FGL_J0956.7+2516_daily_bin89.fits.....................!
real 64.01
user 62.31
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.815       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10901E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37168E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.351       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24259E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.118       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.591       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93368       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1777       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=   7400.988     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2063 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.836        21.822        .16735E-04    .35835E-03
   2  norm          .10000E-03    10.118       -.21646E-06** at limit **
   3  norm          .10000E-03    .88302       -.56804E-06** at limit **
   4  Prefactor     .10000E-03    50.289        .42691E-05** at limit **
   5  Prefactor     .10001E-03    1.6620       -.26124E-05** at limit **
   6  Prefactor     27.360        24.428        .14993E-04    .29602E-03
   7  Prefactor     36.345        42.864       -.86133E-05    .23415E-04
   8  Prefactor     47.290        29.030       -.81700E-05    .26590E-04
   9  Prefactor     9.2376        6.3355       -.68863E-06    .23913E-04
  10  Prefactor     .10000E-03    2.6951        .31927E-07** at limit **
  11  Prefactor     .10000E-03    .81655       -.24994E-06** at limit **
  12  norm          24.066        9.0769        .78145E-06    .75168E-04
  13  Prefactor     .10000E-03    1.4011       -.14088E-06** at limit **
  14  Prefactor     27.100        45.724       -.28300E-04    .79682E-05
  15  Prefactor     1.3425        3.0402       -.67096E-06   -.88591E-03
  16  Prefactor     18.572        50.803       -.37480E-04    .86381E-05
  17  Prefactor     8.6203        7.4802        .11589E-05   -.69190E-04
  18  Prefactor     .10000E-03    .81850       -.23850E-07** at limit **
  19  Normalizat    .93385        .16493        .43946E-07    .99961E-03
  20  Prefactor     1.1777        .16283        .26078E-05    .64907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8357
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 27.3599
  Prefactor  = 36.3448
  Prefactor  = 47.2895
  Prefactor  = 9.23761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.0657
  Prefactor  = 0.0001
  Prefactor  = 27.1001
  Prefactor  = 1.34248
  Prefactor  = 18.5718
  Prefactor  = 8.62028
  Prefactor  = 0.0001
  Normalizat = 0.933855
  Prefactor  = 1.17765
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.988     FROM HESSE     STATUS=OK           293 CALLS     2356 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.836        21.830        .94892E-04   -1.4863    
   2  norm          .10000E-03    10.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7000        .15573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    50.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    5.2685        .20925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.360        24.454        .76614E-04   -1.4661    
   7  Prefactor     36.345        42.868        .66471E-04   -1.4502    
   8  Prefactor     47.290        29.047        .58303E-04   -1.4332    
   9  Prefactor     9.2376        6.3317        .13187E-03   -1.5100    
  10  Prefactor     .10000E-03    2.7100        .13792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3341        .15000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.066        9.0699        .81653E-04   -1.4726    
  13  Prefactor     .10000E-03    1.4165        .99106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.100        45.784        .76930E-04   -1.4666    
  15  Prefactor     1.3425        3.0051        .21768E-03   -1.5476    
  16  Prefactor     18.572        50.882        .92891E-04   -1.4846    
  17  Prefactor     8.6203        7.4792        .13651E-03   -1.5121    
  18  Prefactor     .10000E-03    .82872        .75931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93385        .19293        .25377E-03   -.95281    
  20  Prefactor     1.1777        .19177        .24062E-03   -.87022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33829e-09
Minuit parameter uncertainties:
  1  21.8402
  2  2.90402e-05
  3  5.78406e-05
  4  0.000318103
  5  0.000411577
  6  24.4633
  7  42.9044
  8  29.0553
  9  6.33217
  10  3.22981e-06
  11  8.34781e-05
  12  9.07042
  13  1.03173e-05
  14  45.8436
  15  3.00546
  16  51.0015
  17  7.48006
  18  2.94488e-06
  19  0.193076
  20  0.191881
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  9.238e+00  6.332e+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.178e+00  1.919e-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.339e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/578138/likelihoodResults_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.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) = 7400.89946584
delta logL = 0.088775682244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7400.89612818
delta logL = 0.0921133407983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6810       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8408       1.0000          .0000       10.000    
     3 'Normalizat'    .92002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1886       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=   7400.896     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6859        111.92        .36173E-02    .36465E-03
   2  Index         2.8417        6.4195        .16161        .11963E-03
   3  Normalizat    .91995        .67973E-01    .45157E-01    .44192E-05
   4  Prefactor     1.1885        .67774E-01    .54211E-01   -.37375E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.68588
  Index      = 2.8417
  Normalizat = 0.919947
  Prefactor  = 1.18848
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.896     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6859        7.5215        .14469E-03   -1.5153    
   2  Index         2.8417        .79502        .80145E-02   -.44633    
   3  Normalizat    .91995        .18489        .25540E-03   -.95763    
   4  Prefactor     1.1885        .19240        .23969E-03   -.86687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1239e-11
Minuit parameter uncertainties:
  1  7.52247
  2  0.799196
  3  0.185015
  4  0.192518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578138': 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) = 7400.89612437
delta logL = 0.0921171576101

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  7.686e+00  7.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.842e+00  7.992e-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.188e+00  1.925e-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.199e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.84 +/- 0.80
Photon Flux (Free Index): 6.29e-08 +/- 4.37e-08
Energy Flux (Free Index): 1.37e-05 +/- 9.57e-06

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/578138/cmap_HighResolution_262396801_262656001_4FGL_J0956.7+2516_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.37e-05', photon_flux_error='3.66e-08', dlogl='9.21e-02', energy_flux='1.48e-05', photon_flux2='6.29e-08', job_status='DONE', time_completed='2021-09-01 06:10:08.235549', photon_index_error2='0.80', photon_index2='2.84', ts='3.06', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='9.57e-06', EG='0.93', time_epoch_completed='1630501808.24', return_code='0', job_id='578138', GAL2='1.19', EG2='0.92', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.37e-08', ts2='3.27', photon_index='2.55' WHERE bin_id='89' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:10:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 578138: <4FGL_J0956.7+2516_daily_bin89> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin89> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:43 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 05:55:44 2021
Terminated at Wed Sep  1 06:10:09 2021
Results reported at Wed Sep  1 06:10:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin89 149.176 25.2817 262396801 262656001 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 :                                   632.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

