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


Performing analysis on: 4FGL_J0915.9+2933_daily_bin98
RA = 138.986, Dec = 29.553
tmin = 264729601, tmax = 264988801
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='104732', job_status='RUN', time_executed='2021-08-31 05:39:46.968709', time_epoch_executed='1630413586.97' WHERE source_name='4FGL J0915.9+2933' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104732/ft1_4FGL_J0915.9+2933_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104732/ft1_4FGL_J0915.9+2933_daily_bin98.fits outfile=/scratch/kocevski/104732/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin98.fits ra=138.986 dec=29.553 rad=12.0 tmin=264729601.0 tmax=264988801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.93
user 1.27
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.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/104732/ft1_filteredMKT_4FGL_J0915.9+2933_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.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.86
user 0.33
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/104732/ltcube_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.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/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits
.....................!
real 14.00
user 13.20
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/104732/ltcube_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.fits outfile=/scratch/kocevski/104732/expmap_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.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/104732/ltcube_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.fits
.....................!
real 191.92
user 185.55
sys 5.49

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/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.fits scfile=/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits outfile=/scratch/kocevski/104732/cmap_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.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.98
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.fits scfile=/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits outfile=/scratch/kocevski/104732/cmap_HighResolution_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.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.85
user 0.37
sys 0.45

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.fits', '/scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits', expMap='/scratch/kocevski/104732/expmap_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.fits', expCube='/scratch/kocevski/104732/ltcube_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104732/Model_4FGL_J0915.9+2933_daily_bin98.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/104732/ft1_filtered_4FGL_J0915.9+2933_daily_bin98.fits
Spacecraft file(s): /scratch/kocevski/104732/ft2_4FGL_J0915.9+2933_daily_bin98.fits
Exposure map: /scratch/kocevski/104732/expmap_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.fits
Exposure cube: /scratch/kocevski/104732/ltcube_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104732/Model_4FGL_J0915.9+2933_daily_bin98.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) = 6982.46014976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.695       1.0000         .10000E-03   10000.    
     3 'norm      '    .50492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.770       1.0000         .10000E-03   10000.    
     6 'norm      '    57.400       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8939       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8848       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.980       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33841E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5985       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1895       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71620       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6982.457     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2432 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6087        1.4537        .22650E-07   -.21673E-03
   2  Prefactor     29.694        16.343        .12577E-06   -.22330E-04
   3  norm          .50484        .41717        .32621E-07    .14437E-05
   4  Prefactor     9.9845        8.5873        .15166E-06   -.14601E-04
   5  Prefactor     20.769        14.582        .13290E-05   -.26381E-04
   6  norm          57.395        39.036       -.51534E-05   -.71788E-05
   7  Prefactor     6.9772        3.5750        .37986E-07   -.86243E-04
   8  Prefactor     .10000E-03    22.778        .16902E-06** at limit **
   9  Prefactor     5.8918        4.9535        .31568E-07   -.33030E-03
  10  norm          .10000E-03    .70441        .32816E-07** at limit **
  11  Prefactor     .10000E-03    25.174       -.79202E-07** at limit **
  12  Prefactor     .10000E-03    14.179        .39889E-07** at limit **
  13  norm          .10000E-03    3.4035        .24919E-07** at limit **
  14  Prefactor     2.1341        2.8252       -.58993E-07   -.43185E-03
  15  Prefactor     4.8851        3.4532       -.67814E-07   -.24756E-03
  16  Prefactor     29.230        23.695        .20469E-05    .17989E-04
  17  Prefactor     70.997        61.924        .18948E-04    .18843E-04
  18  Prefactor     .10003E-03    3.4466       -.71634E-06** at limit **
  19  Prefactor     .10000E-03    2.0970        .44958E-08** at limit **
  20  Prefactor     4.5991        2.4163       -.92231E-08   -.18832E-03
  21  Normalizat    1.1894        .16475       -.11441E-05    .13198E-03
  22  Prefactor     .71639        .15388       -.28535E-06   -.78654E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60871
  Prefactor  = 29.694
  norm       = 0.504836
  Prefactor  = 9.98451
  Prefactor  = 20.7692
  norm       = 57.3953
  Prefactor  = 6.97723
  Prefactor  = 0.0001
  Prefactor  = 5.89181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.13413
  Prefactor  = 4.88506
  Prefactor  = 29.2303
  Prefactor  = 70.9974
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 4.59913
  Normalizat = 1.18938
  Prefactor  = 0.716395
 **********
 **   18 **HESSE 
 **********

 FCN=   6982.457     FROM HESSE     STATUS=OK           360 CALLS     2792 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6087        1.4497        .69701E-04   -1.5385    
   2  Prefactor     29.694        16.325        .73524E-04   -1.4618    
   3  norm          .50484        .43014        .47228E-03   -1.5566    
   4  Prefactor     9.9845        8.5797        .12681E-03   -1.5076    
   5  Prefactor     20.769        14.593        .87886E-04   -1.4796    
   6  norm          57.395        39.063        .52951E-04   -1.4191    
   7  Prefactor     6.9772        3.5788        .10924E-03   -1.5180    
   8  Prefactor     .10000E-03    22.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8918        4.9403        .15796E-03   -1.5222    
  10  norm          .10000E-03    1.1163        .13594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4213        .15046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1341        2.7992        .15141E-03   -1.5416    
  15  Prefactor     4.8851        3.4560        .12335E-03   -1.5266    
  16  Prefactor     29.230        23.728        .74111E-04   -1.4626    
  17  Prefactor     70.997        61.893        .47649E-04   -1.4021    
  18  Prefactor     .10003E-03    3.5085        .48785E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1001        .11817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.5991        2.4221        .89997E-04   -1.5279    
  21  Normalizat    1.1894        .19620        .22709E-03   -.86932    
  22  Prefactor     .71639        .18134        .27870E-03   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41412e-10
Minuit parameter uncertainties:
  1  1.44975
  2  16.3276
  3  0.430146
  4  8.58077
  5  14.5959
  6  39.0803
  7  3.57887
  8  1.59548e-05
  9  4.94068
  10  3.15902e-06
  11  6.0811e-05
  12  1.36164e-05
  13  6.11097e-06
  14  2.7994
  15  3.45611
  16  23.7353
  17  61.9496
  18  0.000596684
  19  1.39928e-06
  20  2.4221
  21  0.196317
  22  0.181492
Done.

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

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  1.000e-04  3.159e-06  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.164e-01  1.815e-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.189e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/104732/likelihoodResults_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.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) = 6982.46078982
delta logL = -0.00425436988917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6982.45653357
delta logL = 1.8848968466e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7826       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71640       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=   6982.423     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      304 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48758E-01    1.4855        .13489E-01    .34838E-02
   2  alpha         3.3299        4.1134        .43529        .49846E-04
   3  Normalizat    1.1801        .15722E-01    .51530E-01   -.41178E-04
   4  Prefactor     .72063        .15441E-01    .62828E-01    .76297E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0487576
  alpha      = 3.32987
  Normalizat = 1.18008
  Prefactor  = 0.720631
 **********
 **   18 **HESSE 
 **********

 FCN=   6982.423     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      339 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48758E-01    36.960        .51512E-03   -1.5664    
   2  alpha         3.3299        3.2102        .34253E-01   -5.9448    
   3  Normalizat    1.1801        .11151        .22783E-03   -.87221    
   4  Prefactor     .72063        .10867        .27792E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.15119e-08
Minuit parameter uncertainties:
  1  2.68374
  2  22.4614
  3  0.111536
  4  0.108698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104732': 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) = 6982.42293368
delta logL = 0.0336017697018

Extracting fit parameters...

4FGL J0915.9+2933
   Spectrum: LogParabola
270         norm:  4.876e-02  2.684e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        alpha:  3.330e+00  2.246e+01  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:  7.206e-01  1.087e-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.180e+00  1.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 138.986 29.553

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/104732/cmap_HighResolution_264729601_264988801_4FGL_J0915.9+2933_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', job_status='DONE', photon_flux_upper_limit='3.21e-08', time_completed='2021-08-31 05:50:59.729823', job_id='104732', GAL2='0.72', fit_tolerance='1e-08', EG2='1.18', EG='1.19', time_epoch_completed='1630414259.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='98' AND source_name='4FGL J0915.9+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 104732: <4FGL_J0915.9+2933_daily_bin98> in cluster <slac> Done

Job <4FGL_J0915.9+2933_daily_bin98> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 05:35:24 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:35:26 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:26 2021
Terminated at Tue Aug 31 05:51:00 2021
Results reported at Tue Aug 31 05:51:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.9+2933_daily_bin98 138.986 29.553 264729601 264988801 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

