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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin393
RA = 138.986, Dec = 29.553
tmin = 341193601, tmax = 341452801
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='104915', job_status='RUN', time_executed='2021-08-31 05:37:43.337664', time_epoch_executed='1630413463.34' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104915/ft1_4FGL_J0915.9+2933_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104915/ft1_4FGL_J0915.9+2933_daily_bin393.fits outfile=/scratch/kocevski/104915/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin393.fits ra=138.986 dec=29.553 rad=12.0 tmin=341193601.0 tmax=341452801.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.42
user 3.22
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.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/104915/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin393.fits evtable="EVENTS" outfile="/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.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.53
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/104915/ltcube_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.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/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits
.....................!
real 12.14
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/104915/ltcube_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.fits outfile=/scratch/kocevski/104915/expmap_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.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/104915/ltcube_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.fits
.....................!
real 190.47
user 185.30
sys 3.89

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0915.9+2933 @ 138.986 29.553

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits scfile=/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits outfile=/scratch/kocevski/104915/cmap_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.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=138.986 yref=29.553 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits scfile=/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits outfile=/scratch/kocevski/104915/cmap_HighResolution_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.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=138.986 yref=29.553 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.59
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104915/Model_4FGL_J0915.9+2933_daily_bin393.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/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits.....................!
real 59.91
user 58.12
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits', '/scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits', expMap='/scratch/kocevski/104915/expmap_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.fits', expCube='/scratch/kocevski/104915/ltcube_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104915/Model_4FGL_J0915.9+2933_daily_bin393.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0915.9+2933'

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.063e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/104915/ft1_filtered_4FGL_J0915.9+2933_daily_bin393.fits
Spacecraft file(s): /scratch/kocevski/104915/ft2_4FGL_J0915.9+2933_daily_bin393.fits
Exposure map: /scratch/kocevski/104915/expmap_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.fits
Exposure cube: /scratch/kocevski/104915/ltcube_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104915/Model_4FGL_J0915.9+2933_daily_bin393.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) = 6844.44876639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10917       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.109       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3629       1.0000         .10000E-03   10000.    
    10 'norm      '    .74047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    98.018       1.0000         .10000E-03   10000.    
    13 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2243       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2241       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1757       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6844.317     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     1714 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10887        1.3149       -.20407E-05   -.19482E-03
   2  Prefactor     .10002E-03    9.0314        .20579E-05** at limit **
   3  norm          12.109        1.5635       -.18313E-06   -.52183E-03
   4  Prefactor     .10020E-03    5.9526       -.20551E-05** at limit **
   5  Prefactor     .10038E-03    5.9564       -.12779E-05** at limit **
   6  norm          .10004E-03    12.399       -.12217E-05** at limit **
   7  Prefactor     5.1907        2.9021       -.27721E-05   -.19352E-02
   8  Prefactor     .10321E-03    9.9632        .65551E-05** at limit **
   9  Prefactor     1.3629        2.6543        .12186E-05    .22689E-03
  10  norm          .74034        1.1026        .99654E-06   -.14878E-03
  11  Prefactor     16.433        1.0043        .62522E-07   -.74901E-04
  12  Prefactor     98.018        1.0003        .55738E-08   -.33283E-03
  13  norm          .10000E-03    5.3701       -.45275E-05** at limit **
  14  Prefactor     1.2242        2.3961       -.11150E-05   -.12141E-03
  15  Prefactor     2.2249        4.0124       -.93245E-05   -.30048E-02
  16  Prefactor     .10000E-03    10.686        .67311E-05** at limit **
  17  Prefactor     .10389E-03    17.404       -.80847E-05** at limit **
  18  Prefactor     12.501        1.0073        .13363E-06    .29188E-03
  19  Prefactor     .10000E-03    3.1974       -.28295E-06** at limit **
  20  Prefactor     .10000E-03    1.0823       -.41996E-06** at limit **
  21  Normalizat    1.1757        .19180        .50008E-05    .19672E-04
  22  Prefactor     .78063        .18536       -.23196E-05    .15761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.108873
  Prefactor  = 0.000100023
  norm       = 12.1086
  Prefactor  = 0.000100201
  Prefactor  = 0.000100375
  norm       = 0.000100041
  Prefactor  = 5.19072
  Prefactor  = 0.00010321
  Prefactor  = 1.36288
  norm       = 0.740335
  Prefactor  = 16.4331
  Prefactor  = 98.0184
  norm       = 0.0001
  Prefactor  = 1.22423
  Prefactor  = 2.22494
  Prefactor  = 0.000100002
  Prefactor  = 0.000103886
  Prefactor  = 12.5009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1757
  Prefactor  = 0.780627
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.317     FROM HESSE     STATUS=OK           398 CALLS     2112 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10887        .65771        .23600E-01   -1.5642    
   2  Prefactor     .10002E-03    9.1232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.109        1.5649        .28780E-02   -1.5012    
   4  Prefactor     .10020E-03    11.062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10038E-03    14.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10004E-03    34.996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1907        2.9054        .44111E-02   -1.5252    
   8  Prefactor     .10321E-03    30.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3629        2.7218        .93486E-02   -1.5474    
  10  norm          .74034        1.4495        .24494E-01   -1.5536    
  11  Prefactor     16.433        13.883        .24698E-02   -1.4897    
  12  Prefactor     98.018        51.795        .10151E-02   -1.3725    
  13  norm          .10000E-03    11.704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2242        2.4738        .10179E-01   -1.5487    
  15  Prefactor     2.2249        4.2071        .68928E-02   -1.5410    
  16  Prefactor     .10000E-03    17.605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10389E-03    39.770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.501        7.7998        .28324E-02   -1.5001    
  19  Prefactor     .10000E-03    3.1867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1757        .16531        .52617E-01   -.87357    
  22  Prefactor     .78063        .15680        .62490E-01   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56019e-07
Minuit parameter uncertainties:
  1  0.534953
  2  0.00090951
  3  1.56491
  4  0.00298188
  5  0.00469869
  6  0.0023958
  7  2.90544
  8  0.0196999
  9  2.7221
  10  1.44961
  11  13.8855
  12  51.8188
  13  0.000115474
  14  2.47399
  15  4.20771
  16  0.000391372
  17  0.0248808
  18  7.80043
  19  8.03062e-06
  20  4.69907e-06
  21  0.165385
  22  0.156891
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  7.403e-01  1.450e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.806e-01  1.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.176e+00  1.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 138.986 29.553
Photon Flux Upper Limit: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104915/likelihoodResults_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.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) = 6844.09140993
delta logL = 0.225508145454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6844.02973003
delta logL = 0.287188053835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40003       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1591       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6844.030     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39976        5.1024        .10236E-01    .27113E-02
   2  alpha         3.1592        3.8999        .24064        .11627E-03
   3  Normalizat    1.1182        .35574E-01    .53758E-01   -.12063E-04
   4  Prefactor     .81335        .34721E-01    .43891E-01   -.18277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.399757
  alpha      = 3.15919
  Normalizat = 1.11816
  Prefactor  = 0.813348
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.030     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39976        14.967        .46544E-03   -1.5582    
   2  alpha         3.1592        3.3837        .13332E-01    .26683    
   3  Normalizat    1.1182        .20824        .23769E-03   -.89171    
   4  Prefactor     .81335        .17192        .27113E-03   -.99238    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60445e-10
Minuit parameter uncertainties:
  1  4.89278
  2  7.11204
  3  0.208391
  4  0.172035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104915': 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) = 6844.02972985
delta logL = 0.287188230056

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  3.998e-01  4.893e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  3.159e+00  7.112e+00  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.920e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  1.366e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.133e-01  1.720e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.118e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 138.986 29.553
Photon Index (Free Index): 3.16 +/- 7.11
Photon Flux (Free Index): 4.93e-08 +/- 1.37e-07
Energy Flux (Free Index): 1.00e-05 +/- 1.03e-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/104915/cmap_HighResolution_341193601_341452801_4FGL_J0915.9+2933_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='2.87e-01', photon_flux2='4.93e-08', job_status='DONE', time_completed='2021-08-31 05:48:02.969210', photon_index_error2='7.11', photon_index2='3.16', ts='0.85', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='4.43e-08', energy_flux_error2='1.03e-05', EG='1.18', time_epoch_completed='1630414082.97', return_code='0', job_id='104915', GAL2='0.81', EG2='1.12', return_code2='102', photon_flux_error2='1.37e-07', ts2='1.47', photon_index='1.75' WHERE bin_id='393' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:48:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 104915: <4FGL_J0915.9+2933_daily_bin393> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin393> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 05:35:36 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:35:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:35:38 2021
Terminated at Tue Aug 31 05:48:03 2021
Results reported at Tue Aug 31 05:48:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin393 138.986 29.553 341193601 341452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0915.9+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   610.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

