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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin75
RA = 195.757, Dec = 24.5821
tmin = 258768001, tmax = 259027201
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='152167', job_status='RUN', time_executed='2021-09-06 17:43:07.001816', time_epoch_executed='1630975387.0' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152167

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152167/ft1_4FGL_J1303.0+2434_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152167/ft1_4FGL_J1303.0+2434_daily_bin75.fits outfile=/scratch/kocevski/152167/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin75.fits ra=195.757 dec=24.5821 rad=12.0 tmin=258768001.0 tmax=259027201.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.15
user 0.96
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.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/152167/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.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.56
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/152167/ltcube_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.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/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits
.....................!
real 12.43
user 11.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/152167/ltcube_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.fits outfile=/scratch/kocevski/152167/expmap_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.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/152167/ltcube_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.fits
.....................!
real 192.60
user 186.59
sys 5.47

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

Setting source of interest to:
4FGL J1303.0+2434 @ 195.757 24.5821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits scfile=/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits outfile=/scratch/kocevski/152167/cmap_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.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=195.757 yref=24.5821 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits scfile=/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits outfile=/scratch/kocevski/152167/cmap_HighResolution_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.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=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.77
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152167/Model_4FGL_J1303.0+2434_daily_bin75.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/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits.....................!
real 37.27
user 35.68
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits', '/scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits', expMap='/scratch/kocevski/152167/expmap_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.fits', expCube='/scratch/kocevski/152167/ltcube_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152167/Model_4FGL_J1303.0+2434_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1303.0+2434'

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/152167/ft1_filtered_4FGL_J1303.0+2434_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/152167/ft2_4FGL_J1303.0+2434_daily_bin75.fits
Exposure map: /scratch/kocevski/152167/expmap_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.fits
Exposure cube: /scratch/kocevski/152167/ltcube_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152167/Model_4FGL_J1303.0+2434_daily_bin75.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) = 3726.38516701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4785       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5327       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37884       1.0000         .10000E-03   10000.    
     6 'norm      '    .11323E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7172       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17895       1.0000         .10000E-03   10000.    
    16 'norm      '    12.079       1.0000         .10000E-03   10000.    
    17 'norm      '    35.759       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20586E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.785       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3083       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82063       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3726.284     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3324 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4791        3.8982        .18493E-07   -.20774E-03
   2  Prefactor     .10000E-03    1.3256       -.12523E-06** at limit **
   3  Prefactor     2.5329        2.4128        .67104E-07   -.18382E-03
   4  Prefactor     .10003E-03    17.078        .68855E-05** at limit **
   5  norm          .37887        .32432        .88989E-07   -.86454E-04
   6  norm          .10000E-03    5.5229       -.15109E-06** at limit **
   7  Prefactor     .10000E-03    4.1903       -.51454E-06** at limit **
   8  Prefactor     .10003E-03    48.653        .35966E-05** at limit **
   9  Prefactor     .10000E-03    3.1170        .22816E-08** at limit **
  10  norm          .10000E-03    2.0108        .29514E-07** at limit **
  11  Prefactor     .10000E-03    4.5218        .35078E-06** at limit **
  12  Prefactor     .10000E-03    30.414        .11148E-06** at limit **
  13  norm          1.7198        5.5177        .22037E-05    .47806E-03
  14  norm          .10000E-03    3.2905       -.14941E-07** at limit **
  15  norm          .21341        4.7220       -.13533E-06    .73237E-04
  16  norm          12.052        10.477       -.49030E-06   -.27362E-03
  17  norm          35.760        25.870       -.15863E-06    .27810E-05
  18  Prefactor     .10000E-03    3.8285        .38904E-06** at limit **
  19  Prefactor     .10002E-03    89.380       -.30341E-05** at limit **
  20  norm          .10000E-03    4.0005        .22720E-06** at limit **
  21  Prefactor     .10000E-03    43.928       -.30588E-06** at limit **
  22  Prefactor     .10001E-03    39.755       -.17996E-05** at limit **
  23  norm          16.785        11.314        .13351E-06   -.22721E-05
  24  Prefactor     10.094        19.733       -.23270E-06   -.88736E-04
  25  Prefactor     .10000E-03    12.866       -.24403E-06** at limit **
  26  Normalizat    1.3078        .22834       -.10886E-05   -.38799E-03
  27  Prefactor     .82101        .23378        .59221E-07   -.31062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.47909
  Prefactor  = 0.0001
  Prefactor  = 2.53291
  Prefactor  = 0.000100029
  norm       = 0.37887
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71977
  norm       = 0.0001
  norm       = 0.213407
  norm       = 12.0516
  norm       = 35.7602
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 16.7845
  Prefactor  = 10.0941
  Prefactor  = 0.0001
  Normalizat = 1.3078
  Prefactor  = 0.82101
 **********
 **   18 **HESSE 
 **********

 FCN=   3726.284     FROM HESSE     STATUS=OK           490 CALLS     3814 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4791        3.8877        .10813E-03   -1.5285    
   2  Prefactor     .10000E-03    1.3292        .68480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5329        2.4066        .88715E-04   -1.5390    
   4  Prefactor     .10003E-03    19.405        .29098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .37887        .31722        .30462E-03   -1.5585    
   6  norm          .10000E-03    5.7682        .28000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2593        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    51.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1221        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0218        .84526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5582        .12721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7198        5.8211        .25437E-03   -1.5446    
  14  norm          .10000E-03    3.3012        .10813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .21341        88.655        .20471E-02   -1.5616    
  16  norm          12.052        15.320        .11526E-03   -1.5014    
  17  norm          35.760        25.865        .67017E-04   -1.4511    
  18  Prefactor     .10000E-03    6.9320        .22348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    93.233        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.0222        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    40.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.785        11.343        .97760E-04   -1.4888    
  24  Prefactor     10.094        19.750        .12610E-03   -1.5072    
  25  Prefactor     .10000E-03    12.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3078        .28336        .22022E-03   -.83334    
  27  Prefactor     .82101        .28334        .28957E-03   -.98958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2454e-09
Minuit parameter uncertainties:
  1  3.8879
  2  7.25676e-06
  3  2.40667
  4  0.00149038
  5  0.317218
  6  7.25717e-05
  7  0.00010562
  8  0.00255668
  9  1.59084e-06
  10  3.33085e-06
  11  7.41541e-05
  12  6.20356e-05
  13  5.82302
  14  4.00578e-06
  15  8.71029
  16  15.3246
  17  25.8726
  18  0.000106511
  19  0.00246376
  20  4.61193e-05
  21  0.000198314
  22  0.00113588
  23  11.3441
  24  19.7627
  25  8.315e-05
  26  0.2837
  27  0.283842
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.720e+00  5.823e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.210e-01  2.838e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.308e+00  2.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152167/likelihoodResults_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.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) = 3725.67536052
delta logL = 0.608913464933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3725.62030262
delta logL = 0.663971368816

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3725.620     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      217 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5034        29.106        .87252E-02    .50941E-03
   2  alpha         3.4138        4.2068        .29841        .41087E-04
   3  Normalizat    1.2257        .63612E-01    .51121E-01    .14191E-04
   4  Prefactor     .87050        .67886E-01    .44628E-01    .15090E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50339
  alpha      = 3.41376
  Normalizat = 1.22567
  Prefactor  = 0.8705
 **********
 **   18 **HESSE 
 **********

 FCN=   3725.620     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5034        5.2955        .65138E-04   -1.5463    
   2  alpha         3.4138        1.8036        .11658E-01    .37417    
   3  Normalizat    1.2257        .27044        .22602E-03   -.85813    
   4  Prefactor     .87050        .28347        .28157E-03   -.97180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67828e-11
Minuit parameter uncertainties:
  1  5.29719
  2  2.0636
  3  0.270745
  4  0.28395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152167': 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) = 3725.62030253
delta logL = 0.663971457627

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.503e+00  5.297e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.414e+00  2.064e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.705e-01  2.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.226e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.41 +/- 2.06
Photon Flux (Free Index): 7.71e-08 +/- 7.28e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.49e-05

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/152167/cmap_HighResolution_258768001_259027201_4FGL_J1303.0+2434_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-05', comment='SUCCESS', energy_flux2='1.38e-05', dlogl='6.64e-01', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-09-06 17:52:45.681382', photon_index_error2='2.06', photon_index2='3.41', ts='0.10', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.49e-05', EG='1.31', time_epoch_completed='1630975965.68', return_code='0', job_id='152167', GAL2='0.87', EG2='1.23', return_code2='0', photon_flux_error2='7.28e-08', ts2='1.49', photon_index='2.07' WHERE bin_id='75' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:52:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 152167: <4FGL_J1303.0+2434_daily_bin75> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin75> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:45 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 17:40:51 2021
Terminated at Mon Sep  6 17:52:46 2021
Results reported at Mon Sep  6 17:52:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin75 195.757 24.5821 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1303.0+2434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.63 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            721 sec.

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

