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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin1411
RA = 149.176, Dec = 25.2817
tmin = 605059201, tmax = 605318401
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='585109', job_status='RUN', time_executed='2021-09-01 06:18:42.007815', time_epoch_executed='1630502322.01' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585109/ft1_4FGL_J0956.7+2516_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585109/ft1_4FGL_J0956.7+2516_daily_bin1411.fits outfile=/scratch/kocevski/585109/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin1411.fits ra=149.176 dec=25.2817 rad=12.0 tmin=605059201.0 tmax=605318401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.36
user 5.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585109/ft1_filtered_4FGL_J0956.7+2516_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/585109/ltcube_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.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/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits
.....................!
real 11.59
user 11.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585109/ft1_filtered_4FGL_J0956.7+2516_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/585109/ltcube_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.fits outfile=/scratch/kocevski/585109/expmap_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.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/585109/ltcube_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.fits
.....................!
real 189.51
user 184.84
sys 4.22

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/585109/ft1_filtered_4FGL_J0956.7+2516_daily_bin1411.fits scfile=/scratch/kocevski/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits outfile=/scratch/kocevski/585109/cmap_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585109/ft1_filtered_4FGL_J0956.7+2516_daily_bin1411.fits scfile=/scratch/kocevski/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits outfile=/scratch/kocevski/585109/cmap_HighResolution_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/585109/ft1_filtered_4FGL_J0956.7+2516_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/585109/ft2_4FGL_J0956.7+2516_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/585109/Model_4FGL_J0956.7+2516_daily_bin1411.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/585109/ft1_filtered_4FGL_J0956.7+2516_daily_bin1411.fits.....................!
real 47.07
user 45.69
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.774       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .62308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8509       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29982       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0026       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73107       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3978       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=   4897.205     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2031 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.765        32.928       -.11916E-04    .39921E-04
   2  norm          .10000E-03    11.591        .14597E-06** at limit **
   3  norm          .62469        1.5564       -.21126E-06   -.52946E-03
   4  Prefactor     .10000E-03    22.701       -.93232E-06** at limit **
   5  Prefactor     4.8500        5.8314       -.20427E-05   -.13426E-03
   6  Prefactor     34.173        41.113       -.79219E-05    .90055E-04
   7  Prefactor     .10000E-03    70.754       -.25717E-04** at limit **
   8  Prefactor     53.598        52.908       -.35838E-04    .50346E-04
   9  Prefactor     .10000E-03    3.7637       -.14168E-06** at limit **
  10  Prefactor     .31111        9.1776       -.65582E-05    .86815E-03
  11  Prefactor     .10000E-03    1.0239        .78771E-07** at limit **
  12  norm          12.760        9.9992       -.86001E-06    .45514E-04
  13  Prefactor     10.587        6.5690       -.70077E-06    .69720E-03
  14  Prefactor     46.541        46.545       -.25167E-04    .22328E-04
  15  Prefactor     .10000E-03    6.5362        .12761E-06** at limit **
  16  Prefactor     .10000E-03    66.367        .23405E-04** at limit **
  17  Prefactor     8.0018        8.4996       -.11704E-05   -.46871E-04
  18  Prefactor     .10000E-03    1.0504        .36894E-07** at limit **
  19  Normalizat    .73100        .22122        .11032E-04    .30468E-03
  20  Prefactor     1.3979        .21292        .31222E-05    .45584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.765
  norm       = 0.0001
  norm       = 0.624687
  Prefactor  = 0.0001
  Prefactor  = 4.85003
  Prefactor  = 34.1734
  Prefactor  = 0.0001
  Prefactor  = 53.598
  Prefactor  = 0.0001
  Prefactor  = 0.311113
  Prefactor  = 0.0001
  norm       = 12.7597
  Prefactor  = 10.5865
  Prefactor  = 46.541
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.00182
  Prefactor  = 0.0001
  Normalizat = 0.730996
  Prefactor  = 1.39789
 **********
 **   18 **HESSE 
 **********

 FCN=   4897.205     FROM HESSE     STATUS=OK           291 CALLS     2322 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.765        32.800        .90070E-04   -1.4819    
   2  norm          .10000E-03    11.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .62469        1.2246        .13011E-02   -1.5550    
   4  Prefactor     .10000E-03    22.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8500        5.7453        .16545E-03   -1.5267    
   6  Prefactor     34.173        41.179        .68544E-04   -1.4538    
   7  Prefactor     .10000E-03    70.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     53.598        52.978        .54770E-04   -1.4242    
   9  Prefactor     .10000E-03    3.7822        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .31111        58.943        .39721E-02   -1.5596    
  11  Prefactor     .10000E-03    1.0296        .69121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.760        10.001        .11213E-03   -1.4993    
  13  Prefactor     10.587        6.5411        .12309E-03   -1.5057    
  14  Prefactor     46.541        46.594        .58759E-04   -1.4342    
  15  Prefactor     .10000E-03    6.5583        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0018        8.5018        .14173E-03   -1.5142    
  18  Prefactor     .10000E-03    1.0575        .70015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73100        .26419        .30356E-03   -1.0268    
  20  Prefactor     1.3979        .25625        .23312E-03   -.80441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92175e-08
Minuit parameter uncertainties:
  1  32.8296
  2  7.78463e-06
  3  1.22462
  4  2.17562e-05
  5  5.74598
  6  41.2134
  7  0.00010358
  8  53.0251
  9  9.70565e-06
  10  8.57177
  11  8.2616e-06
  12  10.0028
  13  6.54151
  14  46.6304
  15  3.51904e-05
  16  0.000421325
  17  8.50309
  18  9.01486e-06
  19  0.264657
  20  0.256485
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  9.706e-06  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.398e+00  2.565e-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:  7.310e-01  2.647e-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: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585109/likelihoodResults_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.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) = 4897.20671308
delta logL = -0.00125483163265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4897.20545822
delta logL = 2.93266566587e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5367       1.0000          .0000       10.000    
     3 'Normalizat'    .73101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3979       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=   4897.205     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      257 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.605        .13311E-01** at limit **
   2  Index         2.2065        5.9540        .50000       -.32810E-07
   3  Normalizat    .73100        .14662E-01    .30356E-03    .45204E-04
   4  Prefactor     1.3979        .15127E-01    .23312E-03    .65447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20649
  Normalizat = 0.730997
  Prefactor  = 1.39789
 **********
 **   18 **HESSE 
 **********

 FCN=   4897.205     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    349.39        .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2065        8.6494        .50000       -.59282    
   3  Normalizat    .73100        .53195E-01    .12142E-04   -1.0268    
   4  Prefactor     1.3979        .54883E-01    .46623E-04   -.80441    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13906e-09
Minuit parameter uncertainties:
  1  0.0002096
  2  1031.38
  3  0.0531985
  4  0.0548849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585109': 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) = 4897.20545724
delta logL = 1.0115763871e-06

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  2.096e-04  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.206e+00  1.031e+03  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.398e+00  5.488e-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:  7.310e-01  5.320e-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/585109/cmap_HighResolution_605059201_605318401_4FGL_J0956.7+2516_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-09-01 06:31:28.252038', job_id='585109', GAL2='1.40', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630503088.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1411' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:31:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 585109: <4FGL_J0956.7+2516_daily_bin1411> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin1411> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  1 06:15:51 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:15:52 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:15:52 2021
Terminated at Wed Sep  1 06:31:32 2021
Results reported at Wed Sep  1 06:31:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin1411 149.176 25.2817 605059201 605318401 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 :                                   522.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            941 sec.

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

