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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin70
RA = 149.176, Dec = 25.2817
tmin = 257472001, tmax = 257731201
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='578112', job_status='RUN', time_executed='2021-09-01 05:58:57.335014', time_epoch_executed='1630501137.34' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578112/ft1_4FGL_J0956.7+2516_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578112/ft1_4FGL_J0956.7+2516_daily_bin70.fits outfile=/scratch/kocevski/578112/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin70.fits ra=149.176 dec=25.2817 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.07
user 1.84
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578112/ft1_filtered_4FGL_J0956.7+2516_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/578112/ltcube_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.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/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits
.....................!
real 12.58
user 12.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578112/ft1_filtered_4FGL_J0956.7+2516_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/578112/ltcube_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.fits outfile=/scratch/kocevski/578112/expmap_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.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/578112/ltcube_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.fits
.....................!
real 191.91
user 186.93
sys 4.55

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/578112/ft1_filtered_4FGL_J0956.7+2516_daily_bin70.fits scfile=/scratch/kocevski/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits outfile=/scratch/kocevski/578112/cmap_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.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.77
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578112/ft1_filtered_4FGL_J0956.7+2516_daily_bin70.fits scfile=/scratch/kocevski/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits outfile=/scratch/kocevski/578112/cmap_HighResolution_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.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.97
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578112/ft1_filtered_4FGL_J0956.7+2516_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/578112/ft2_4FGL_J0956.7+2516_daily_bin70.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578112/Model_4FGL_J0956.7+2516_daily_bin70.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/578112/ft1_filtered_4FGL_J0956.7+2516_daily_bin70.fits.....................!
real 63.36
user 61.60
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.920       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.086       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8024       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.626       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10143E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97137       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0192       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=   7310.787     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2083 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.454        .13537E-05** at limit **
   2  norm          15.921        21.446        .27230E-06    .18424E-04
   3  norm          2.0645        1.3092       -.12309E-08    .93544E-05
   4  Prefactor     35.071        34.833       -.78044E-06   -.27728E-03
   5  Prefactor     6.8029        4.1261        .32860E-06    .42856E-03
   6  Prefactor     .10000E-03    12.788       -.33772E-06** at limit **
   7  Prefactor     .10000E-03    15.160       -.25363E-06** at limit **
   8  Prefactor     .10000E-03    10.760        .46549E-06** at limit **
   9  Prefactor     17.051        7.7424       -.28952E-06   -.29196E-03
  10  Prefactor     .10000E-03    7.3528        .12043E-07** at limit **
  11  Prefactor     .10000E-03    2.0244        .11680E-06** at limit **
  12  norm          1.1897        11.845        .58078E-05    .35069E-03
  13  Prefactor     1.5431        3.0810        .10289E-05    .49763E-03
  14  Prefactor     13.280        19.817       -.30448E-06   -.12472E-03
  15  Prefactor     .10000E-03    2.1033       -.21514E-06** at limit **
  16  Prefactor     13.626        30.554       -.21427E-08   -.95743E-05
  17  Prefactor     .10000E-03    2.0430        .48580E-08** at limit **
  18  Prefactor     .11005E-03    1.1522       -.12208E-05** at limit **
  19  Normalizat    .97136        .15769       -.11034E-05    .29356E-04
  20  Prefactor     1.0192        .15599        .17004E-06   -.33316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 15.9213
  norm       = 2.06446
  Prefactor  = 35.071
  Prefactor  = 6.80294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18973
  Prefactor  = 1.54308
  Prefactor  = 13.2804
  Prefactor  = 0.0001
  Prefactor  = 13.6258
  Prefactor  = 0.0001
  Prefactor  = 0.00011005
  Normalizat = 0.971363
  Prefactor  = 1.01922
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.787     FROM HESSE     STATUS=OK           301 CALLS     2384 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.921        21.450        .10038E-03   -1.4910    
   3  norm          2.0645        1.3105        .75105E-04   -1.5421    
   4  Prefactor     35.071        35.251        .67656E-04   -1.4523    
   5  Prefactor     6.8029        4.1400        .12602E-03   -1.5186    
   6  Prefactor     .10000E-03    12.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.051        7.7721        .96995E-04   -1.4882    
  10  Prefactor     .10000E-03    7.5139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1054        .23691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1897        11.934        .41809E-03   -1.5490    
  13  Prefactor     1.5431        3.0802        .20257E-03   -1.5460    
  14  Prefactor     13.280        19.856        .10989E-03   -1.4979    
  15  Prefactor     .10000E-03    2.1254        .12093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.626        30.554        .10851E-03   -1.4970    
  17  Prefactor     .10000E-03    2.0529        .11933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11005E-03    1.5817        .27021E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97136        .18515        .23630E-03   -.93996    
  20  Prefactor     1.0192        .18393        .23861E-03   -.92092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04741e-09
Minuit parameter uncertainties:
  1  0.000528142
  2  21.4601
  3  1.3105
  4  35.2717
  5  4.14016
  6  0.000142537
  7  0.000101679
  8  0.000140569
  9  7.77258
  10  7.92132e-06
  11  9.04261e-06
  12  7.53764
  13  3.08052
  14  19.866
  15  2.25099e-05
  16  30.5891
  17  2.69111e-06
  18  0.00797397
  19  0.185273
  20  0.184047
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.705e+01  7.773e+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.019e+00  1.840e-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.714e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.35
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.88e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.24e-05

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) = 7310.66432232
delta logL = 0.123165104185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7310.66191693
delta logL = 0.125570493545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.602       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7869       1.0000          .0000       10.000    
     3 'Normalizat'    .95101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0354       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=   7310.662     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.601        9.0223        .10482E-03    .60836E-03
   2  Index         2.7868        .51871        .56619E-02    .11942E-03
   3  Normalizat    .95114        .18293        .23846E-03   -.98068E-04
   4  Prefactor     1.0353        .18507        .23698E-03   -.12588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6014
  Index      = 2.78682
  Normalizat = 0.951139
  Prefactor  = 1.03526
 **********
 **   18 **HESSE 
 **********

 FCN=   7310.662     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.601        8.6202        .41927E-05   -1.4944    
   2  Index         2.7868        .49508        .22647E-03   -.45854    
   3  Normalizat    .95114        .18296        .95384E-05   -.94686    
   4  Prefactor     1.0353        .18504        .94794E-05   -.91563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35296e-10
Minuit parameter uncertainties:
  1  8.62094
  2  0.496095
  3  0.183078
  4  0.185156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578112': 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) = 7310.66191667
delta logL = 0.125570749818

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.460e+01  8.621e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.787e+00  4.961e-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.035e+00  1.852e-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.511e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.63
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.79 +/- 0.50
Photon Flux (Free Index): 1.12e-07 +/- 5.37e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.16e-05

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/578112/cmap_HighResolution_257472001_257731201_4FGL_J0956.7+2516_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.88e-08', energy_flux2='2.53e-05', photon_flux_error='4.50e-08', dlogl='1.26e-01', energy_flux='2.73e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-01 06:08:36.965685', photon_index_error2='0.50', photon_index2='2.79', ts='8.35', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.97', time_epoch_completed='1630501716.97', return_code='0', job_id='578112', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.37e-08', ts2='8.63', photon_index='2.55' WHERE bin_id='70' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:08:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 578112: <4FGL_J0956.7+2516_daily_bin70> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin70> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:41 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:42 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:42 2021
Terminated at Wed Sep  1 06:08:38 2021
Results reported at Wed Sep  1 06:08:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin70 149.176 25.2817 257472001 257731201 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 :                                   577.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

