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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1502
RA = 195.757, Dec = 24.5821
tmin = 628646401, tmax = 628905601
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='164900', job_status='RUN', time_executed='2021-09-06 18:26:14.124281', time_epoch_executed='1630977974.12' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164900/ft1_4FGL_J1303.0+2434_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164900/ft1_4FGL_J1303.0+2434_daily_bin1502.fits outfile=/scratch/kocevski/164900/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1502.fits ra=195.757 dec=24.5821 rad=12.0 tmin=628646401.0 tmax=628905601.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.56
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.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/164900/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1502.fits evtable="EVENTS" outfile="/scratch/kocevski/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/164900/ltcube_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.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/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits
.....................!
real 15.76
user 15.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/164900/ltcube_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.fits outfile=/scratch/kocevski/164900/expmap_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.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/164900/ltcube_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.fits
.....................!
real 193.95
user 188.57
sys 4.97

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/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.fits scfile=/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits outfile=/scratch/kocevski/164900/cmap_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.fits scfile=/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits outfile=/scratch/kocevski/164900/cmap_HighResolution_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.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.59
user 0.43
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.fits', '/scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits', expMap='/scratch/kocevski/164900/expmap_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.fits', expCube='/scratch/kocevski/164900/ltcube_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164900/Model_4FGL_J1303.0+2434_daily_bin1502.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/164900/ft1_filtered_4FGL_J1303.0+2434_daily_bin1502.fits
Spacecraft file(s): /scratch/kocevski/164900/ft2_4FGL_J1303.0+2434_daily_bin1502.fits
Exposure map: /scratch/kocevski/164900/expmap_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.fits
Exposure cube: /scratch/kocevski/164900/ltcube_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164900/Model_4FGL_J1303.0+2434_daily_bin1502.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) = 7224.90417233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1060       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9340       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3884       1.0000         .10000E-03   10000.    
     5 'norm      '    .88171E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9353       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.109       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4669       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.158       1.0000         .10000E-03   10000.    
    13 'norm      '    .35624       1.0000         .10000E-03   10000.    
    14 'norm      '    .19399E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .11309E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.097       1.0000         .10000E-03   10000.    
    17 'norm      '    17.155       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20461       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    81.344       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3636       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=   7224.902     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3431 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1057        2.2588        .17119E-07    .15051E-03
   2  Prefactor     1.9339        1.5026       -.15015E-07   -.24961E-04
   3  Prefactor     1.7043        1.3591       -.80950E-08    .96548E-04
   4  Prefactor     1.3880        3.0270       -.38100E-06   -.61507E-03
   5  norm          .88099E-01    .17964       -.19500E-06   -.43444E-02
   6  norm          7.9339        4.1539       -.16706E-07    .13912E-03
   7  Prefactor     12.107        7.7391       -.21126E-06    .69059E-04
   8  Prefactor     .10000E-03    29.641        .60713E-07** at limit **
   9  Prefactor     .10000E-03    7.9291       -.50968E-06** at limit **
  10  norm          8.4646        5.4930        .22557E-05    .38739E-04
  11  Prefactor     .10000E-03    8.8630       -.85765E-07** at limit **
  12  Prefactor     18.187        28.910       -.21492E-04   -.25989E-04
  13  norm          .35388        2.2305       -.22748E-05    .10006E-02
  14  norm          .10049E-03    4.1906        .20595E-05** at limit **
  15  norm          .10000E-03    2.4350       -.59776E-06** at limit **
  16  norm          13.113        7.6167        .35917E-05    .55879E-03
  17  norm          17.149        23.077        .76599E-05    .24304E-03
  18  Prefactor     .10000E-03    1.2089        .14112E-06** at limit **
  19  Prefactor     .27256E-01    8.6888       -.79613E-06    .23106E-03
  20  norm          .10000E-03    1.3417       -.33440E-07** at limit **
  21  Prefactor     81.338        49.172       -.29680E-05    .27974E-05
  22  Prefactor     .10000E-03    19.788       -.25356E-06** at limit **
  23  norm          .10000E-03    2.6633       -.92517E-07** at limit **
  24  Prefactor     .10000E-03    10.113        .98148E-06** at limit **
  25  Prefactor     .10000E-03    27.917        .98689E-06** at limit **
  26  Normalizat    1.0260        .18113        .25226E-05    .37173E-03
  27  Prefactor     1.3631        .19225       -.12266E-05    .51717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10572
  Prefactor  = 1.93393
  Prefactor  = 1.70428
  Prefactor  = 1.38804
  norm       = 0.0880993
  norm       = 7.93391
  Prefactor  = 12.107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.46459
  Prefactor  = 0.0001
  Prefactor  = 18.1872
  norm       = 0.353883
  norm       = 0.000100488
  norm       = 0.000100001
  norm       = 13.1126
  norm       = 17.1492
  Prefactor  = 0.0001
  Prefactor  = 0.0272561
  norm       = 0.0001
  Prefactor  = 81.3377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.026
  Prefactor  = 1.36314
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.902     FROM HESSE     STATUS=OK           502 CALLS     3933 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1057        2.2616        .91618E-04   -1.5303    
   2  Prefactor     1.9339        1.5005        .88846E-04   -1.5430    
   3  Prefactor     1.7043        1.3610        .85706E-04   -1.5447    
   4  Prefactor     1.3880        2.9742        .21124E-03   -1.5472    
   5  norm          .88099E-01    .17793        .48756E-04   -1.5649    
   6  norm          7.9339        4.1493        .12040E-03   -1.5145    
   7  Prefactor     12.107        7.7398        .11512E-03   -1.5012    
   8  Prefactor     .10000E-03    29.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4646        5.4761        .13777E-03   -1.5126    
  11  Prefactor     .10000E-03    8.9298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.187        28.374        .93990E-04   -1.4855    
  13  norm          .35388        13.215        .23066E-02   -1.5589    
  14  norm          .10049E-03    4.7607        .51823E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.2779        .21910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.113        6.9234        .11068E-03   -1.4984    
  17  norm          17.149        23.047        .96698E-04   -1.4879    
  18  Prefactor     .10000E-03    1.2165        .91051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27256E-01    14.399        .71193E-01   -1.5675    
  20  norm          .10000E-03    1.3428        .96142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     81.338        49.266        .44533E-04   -1.3902    
  22  Prefactor     .10000E-03    19.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6728        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0260        .21498        .26500E-03   -.92165    
  27  Prefactor     1.3631        .22912        .26073E-03   -.81448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48411e-09
Minuit parameter uncertainties:
  1  2.26164
  2  1.50051
  3  1.36099
  4  2.97456
  5  0.177929
  6  4.1495
  7  7.74046
  8  2.08502e-05
  9  8.38565e-06
  10  5.47642
  11  9.49039e-06
  12  28.395
  13  4.32545
  14  0.00304985
  15  0.000122757
  16  6.92384
  17  23.0592
  18  7.3329e-06
  19  1.25093
  20  4.90819e-06
  21  49.2903
  22  6.33299e-06
  23  7.62768e-06
  24  1.44216e-05
  25  7.26177e-05
  26  0.215166
  27  0.229294
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.539e-01  4.325e+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:  1.363e+00  2.293e-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.026e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 7.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164900/likelihoodResults_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.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) = 7223.97281435
delta logL = 0.92966925046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7223.94352853
delta logL = 0.958955065652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0614       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4678       1.0000          .0000       5.0000    
     3 'Normalizat'    .95372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4050       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=   7223.944     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0611        13.213        .11883E-01    .10899E-02
   2  alpha         3.4681        4.0738        .35354        .72584E-04
   3  Normalizat    .95368        .42324E-01    .45584E-01    .10041E-04
   4  Prefactor     1.4050        .47382E-01    .58187E-01   -.11895E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06114
  alpha      = 3.46808
  Normalizat = 0.953682
  Prefactor  = 1.40501
 **********
 **   18 **HESSE 
 **********

 FCN=   7223.944     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0611        3.0700        .68121E-04   -1.5502    
   2  alpha         3.4681        1.4831        .13645E-01    .39763    
   3  Normalizat    .95368        .20784        .27355E-03   -.94599    
   4  Prefactor     1.4050        .22786        .25730E-03   -.80236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4741e-11
Minuit parameter uncertainties:
  1  3.07041
  2  1.61119
  3  0.208014
  4  0.22802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164900': 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) = 7223.94352842
delta logL = 0.958955182187

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.061e+00  3.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.468e+00  1.611e+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:  1.405e+00  2.280e-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:  9.537e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.47 +/- 1.61
Photon Flux (Free Index): 5.97e-08 +/- 4.87e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.01e-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/164900/cmap_HighResolution_628646401_628905601_4FGL_J1303.0+2434_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='9.59e-01', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-09-06 18:40:44.299303', photon_index_error2='1.61', photon_index2='3.47', ts='0.01', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='7.12e-08', energy_flux_error2='1.01e-05', EG='1.03', time_epoch_completed='1630978844.3', return_code='0', job_id='164900', GAL2='1.41', EG2='0.95', return_code2='0', photon_flux_error2='4.87e-08', ts2='2.02', photon_index='2.07' WHERE bin_id='1502' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 164900: <4FGL_J1303.0+2434_daily_bin1502> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1502> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:28 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:25:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:25:56 2021
Terminated at Mon Sep  6 18:40:45 2021
Results reported at Mon Sep  6 18:40:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1502 195.757 24.5821 628646401 628905601 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 :                                   859.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            917 sec.

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

