/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 48 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin405
RA = 149.176, Dec = 25.2817
tmin = 344304001, tmax = 344563201
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='579898', job_status='RUN', time_executed='2021-09-01 06:03:10.533491', time_epoch_executed='1630501390.53' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579898/ft1_4FGL_J0956.7+2516_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579898/ft1_4FGL_J0956.7+2516_daily_bin405.fits outfile=/scratch/kocevski/579898/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin405.fits ra=149.176 dec=25.2817 rad=12.0 tmin=344304001.0 tmax=344563201.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 3.52
user 3.13
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.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/579898/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin405.fits evtable="EVENTS" outfile="/scratch/kocevski/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.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.57
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/579898/ltcube_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.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/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits
.....................!
real 11.93
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/579898/ltcube_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.fits outfile=/scratch/kocevski/579898/expmap_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.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/579898/ltcube_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.fits
.....................!
real 190.74
user 184.76
sys 5.25

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/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.fits scfile=/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits outfile=/scratch/kocevski/579898/cmap_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.fits scfile=/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits outfile=/scratch/kocevski/579898/cmap_HighResolution_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/579898/ft2_4FGL_J0956.7+2516_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/579898/Model_4FGL_J0956.7+2516_daily_bin405.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/579898/ft1_filtered_4FGL_J0956.7+2516_daily_bin405.fits.....................!
real 55.17
user 53.69
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.436       1.0000         .10000E-03   10000.    
     2 'norm      '    8.9933       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0507       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0982       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3493       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2034       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.551       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4015       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79243       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=   6314.514     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2012 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.426        20.489       -.68435E-05    .18906E-04
   2  norm          8.9966        32.637        .65062E-05    .16340E-04
   3  norm          .10000E-03    .42430        .24121E-08** at limit **
   4  Prefactor     13.151        66.783       -.16059E-04    .66113E-05
   5  Prefactor     .10000E-03    1.6906        .26615E-06** at limit **
   6  Prefactor     27.560        32.899       -.36336E-04    .24406E-04
   7  Prefactor     .10000E-03    37.063        .40794E-05** at limit **
   8  Prefactor     .10000E-03    15.923       -.11681E-05** at limit **
   9  Prefactor     4.0488        6.0575       -.76121E-06    .13806E-03
  10  Prefactor     4.0944        9.0028       -.23907E-05    .22281E-04
  11  Prefactor     .10000E-03    .98156        .15845E-06** at limit **
  12  norm          18.594        10.037       -.97035E-06    .79241E-04
  13  Prefactor     5.3573        4.6522       -.18560E-05    .70358E-04
  14  Prefactor     .10000E-03    26.438       -.12652E-05** at limit **
  15  Prefactor     1.1897        1.2164        .37414E-06   -.24750E-02
  16  Prefactor     27.546        52.496       -.82709E-05    .15312E-04
  17  Prefactor     .10000E-03    4.4306       -.26428E-06** at limit **
  18  Prefactor     3.4013        2.4793       -.55338E-06    .48670E-04
  19  Normalizat    1.1269        .17084        .82742E-05   -.27531E-03
  20  Prefactor     .79208        .16184       -.58592E-06    .32750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4265
  norm       = 8.99662
  norm       = 0.0001
  Prefactor  = 13.1508
  Prefactor  = 0.0001
  Prefactor  = 27.5598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04878
  Prefactor  = 4.09443
  Prefactor  = 0.0001
  norm       = 18.5938
  Prefactor  = 5.35728
  Prefactor  = 0.0001
  Prefactor  = 1.18973
  Prefactor  = 27.5459
  Prefactor  = 0.0001
  Prefactor  = 3.40131
  Normalizat = 1.12686
  Prefactor  = 0.792084
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.514     FROM HESSE     STATUS=OK           293 CALLS     2305 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.426        20.490        .11359E-03   -1.5003    
   2  norm          8.9966        32.569        .13365E-03   -1.5108    
   3  norm          .10000E-03    .42678        .50540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.151        66.604        .11043E-03   -1.4983    
   5  Prefactor     .10000E-03    1.7389        .20170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.560        32.913        .76268E-04   -1.4658    
   7  Prefactor     .10000E-03    37.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0488        6.0373        .20034E-03   -1.5306    
  10  Prefactor     4.0944        8.9916        .19914E-03   -1.5303    
  11  Prefactor     .10000E-03    1.0053        .15365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.594        10.035        .92881E-04   -1.4845    
  13  Prefactor     5.3573        6.0019        .14793E-03   -1.5245    
  14  Prefactor     .10000E-03    26.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1897        10.749        .18734E-02   -1.5490    
  16  Prefactor     27.546        52.504        .76325E-04   -1.4658    
  17  Prefactor     .10000E-03    4.4892        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4013        2.4748        .10232E-03   -1.5339    
  19  Normalizat    1.1269        .19388        .22254E-03   -.88894    
  20  Prefactor     .79208        .18440        .26020E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69746e-08
Minuit parameter uncertainties:
  1  20.5015
  2  32.6329
  3  6.60351e-07
  4  59.296
  5  3.55669e-05
  6  32.9349
  7  1.65244e-05
  8  8.47127e-05
  9  6.03823
  10  8.9946
  11  1.49945e-05
  12  10.0364
  13  6.00254
  14  0.000116393
  15  7.15375
  16  52.5922
  17  5.05e-05
  18  2.47487
  19  0.194006
  20  0.184542
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.049e+00  6.038e+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:  7.921e-01  1.845e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.127e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/579898/likelihoodResults_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.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) = 6314.50707473
delta logL = 0.00738940558949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6314.50641422
delta logL = 0.00804990595316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8921       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6831       1.0000          .0000       10.000    
     3 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79389       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=   6314.506     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      198 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8905        2.6028       -.35918E-07   -.51206E-04
   2  Index         2.6820        1.1970        .79101E-07   -.28124E-04
   3  Normalizat    1.1236        .15980        .78326E-08    .15643E-03
   4  Prefactor     .79410        .15948       -.17179E-08    .37463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89048
  Index      = 2.68203
  Normalizat = 1.12363
  Prefactor  = 0.794104
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.506     FROM HESSE     STATUS=OK            27 CALLS      225 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8905        6.0286        .10226E-02   -1.5313    
   2  Index         2.6820        1.0853        .45880E-02   -.48205    
   3  Normalizat    1.1236        .18358        .22282E-03   -.88997    
   4  Prefactor     .79410        .18152        .25990E-03   -.99946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50621e-10
Minuit parameter uncertainties:
  1  6.02955
  2  1.09642
  3  0.18368
  4  0.181659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579898': 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) = 6314.50641272
delta logL = 0.00805140844477

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  3.890e+00  6.030e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.682e+00  1.096e+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:  7.941e-01  1.817e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.124e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
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/579898/cmap_HighResolution_344304001_344563201_4FGL_J0956.7+2516_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-01 06:12:46.515777', job_id='579898', GAL2='0.79', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1630501966.52', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='8.05e-03', ts2='0.65', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='405' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:12:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 579898: <4FGL_J0956.7+2516_daily_bin405> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin405> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 06:01:14 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:01: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:01:15 2021
Terminated at Wed Sep  1 06:12:47 2021
Results reported at Wed Sep  1 06:12:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin405 149.176 25.2817 344304001 344563201 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 :                                   569.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

