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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1308
RA = 195.757, Dec = 24.5821
tmin = 578361601, tmax = 578620801
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='163518', job_status='RUN', time_executed='2021-09-06 18:23:48.878666', time_epoch_executed='1630977828.88' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163518

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163518/ft1_4FGL_J1303.0+2434_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163518/ft1_4FGL_J1303.0+2434_daily_bin1308.fits outfile=/scratch/kocevski/163518/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1308.fits ra=195.757 dec=24.5821 rad=12.0 tmin=578361601.0 tmax=578620801.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.71
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.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/163518/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/163518/ft1_filtered_4FGL_J1303.0+2434_daily_bin1308.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163518/ft1_filtered_4FGL_J1303.0+2434_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/163518/ltcube_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.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/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.fits
.....................!
real 16.86
user 16.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163518/ft1_filtered_4FGL_J1303.0+2434_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/163518/ltcube_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.fits outfile=/scratch/kocevski/163518/expmap_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.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/163518/ltcube_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.fits
.....................!
real 192.77
user 187.26
sys 4.91

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/163518/ft1_filtered_4FGL_J1303.0+2434_daily_bin1308.fits scfile=/scratch/kocevski/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.fits outfile=/scratch/kocevski/163518/cmap_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163518/ft1_filtered_4FGL_J1303.0+2434_daily_bin1308.fits scfile=/scratch/kocevski/163518/ft2_4FGL_J1303.0+2434_daily_bin1308.fits outfile=/scratch/kocevski/163518/cmap_HighResolution_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7465       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4028       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11962E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .56193E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6761       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36424       1.0000         .10000E-03   10000.    
    10 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13845E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0553       1.0000         .10000E-03   10000.    
    14 'norm      '    7.6566       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5284       1.0000         .10000E-03   10000.    
    16 'norm      '    .46013       1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.364       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11178E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.755       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0397       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5831.358     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2786 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7464        1.8332       -.74867E-06   -.37631E-03
   2  Prefactor     8.5709        2.9312       -.12586E-05   -.30359E-03
   3  Prefactor     2.4029        2.7319        .12973E-05   -.81043E-04
   4  Prefactor     .10000E-03    2.0485       -.46678E-05** at limit **
   5  norm          .56538E-01    .29367        .40216E-06   -.14336E-03
   6  norm          2.6699        2.0490        .70648E-06    .15507E-02
   7  Prefactor     14.874        1.0175       -.10022E-06    .64784E-04
   8  Prefactor     .10000E-03    11.644       -.10308E-04** at limit **
   9  Prefactor     .37685        .92308        .18959E-05    .54920E-04
  10  norm          .10000E-03    4.7390        .32049E-06** at limit **
  11  Prefactor     .10003E-03    8.2919        .55526E-06** at limit **
  12  Prefactor     .10001E-03    8.0270       -.38170E-05** at limit **
  13  norm          2.0553        3.7313        .18455E-05    .15292E-03
  14  norm          7.6568        1.5951        .52286E-06    .27958E-03
  15  norm          3.5344        2.5819       -.23700E-06   -.57245E-04
  16  norm          .45814        1.8737       -.13356E-05   -.55952E-04
  17  norm          .10000E-03    8.9840       -.43955E-05** at limit **
  18  Prefactor     6.9998        4.0459        .18029E-05    .94166E-03
  19  Prefactor     .10003E-03    6.2490        .53761E-05** at limit **
  20  norm          20.363        1.0082       -.35447E-07   -.20428E-03
  21  Prefactor     .10003E-03    21.993        .14713E-04** at limit **
  22  Prefactor     .10000E-03    65.396       -.74118E-05** at limit **
  23  norm          .10000E-03    2.2771       -.51322E-07** at limit **
  24  Prefactor     14.728        2.7172       -.68730E-06    .58816E-03
  25  Prefactor     .10000E-03    7.3035        .18501E-05** at limit **
  26  Normalizat    1.0399        .21405       -.17692E-05   -.13270E-04
  27  Prefactor     .97214        .22175        .40776E-06   -.26109E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.74642
  Prefactor  = 8.57087
  Prefactor  = 2.4029
  Prefactor  = 0.0001
  norm       = 0.0565378
  norm       = 2.66986
  Prefactor  = 14.8741
  Prefactor  = 0.000100004
  Prefactor  = 0.376851
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.000100015
  norm       = 2.05525
  norm       = 7.65682
  norm       = 3.53442
  norm       = 0.458138
  norm       = 0.000100001
  Prefactor  = 6.99985
  Prefactor  = 0.000100027
  norm       = 20.3629
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7276
  Prefactor  = 0.0001
  Normalizat = 1.03991
  Prefactor  = 0.972136
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.358     FROM HESSE     STATUS=OK           556 CALLS     3342 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7464        5.0685        .36019E-02   -1.5151    
   2  Prefactor     8.5709        4.0140        .34232E-02   -1.5122    
   3  Prefactor     2.4029        2.8184        .66035E-02   -1.5398    
   4  Prefactor     .10000E-03    8.3310        .60810E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .56538E-01    .18471        .14361E-01   -1.5660    
   6  norm          2.6699        6.2087        .62276E-02   -1.5381    
   7  Prefactor     14.874        9.6979        .25960E-02   -1.4936    
   8  Prefactor     .10000E-03    20.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .37685        6.3022        .59718E-01   -1.5585    
  10  norm          .10000E-03    4.5600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    12.644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    22.236        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0553        3.8061        .72075E-02   -1.5421    
  14  norm          7.6568        6.3219        .36231E-02   -1.5154    
  15  norm          3.5344        8.0129        .53801E-02   -1.5332    
  16  norm          .45814        24.074        .11107E-01   -1.5573    
  17  norm          .10000E-03    9.5394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9998        5.0030        .37905E-02   -1.5179    
  19  Prefactor     .10003E-03    11.349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.363        7.3816        .22189E-02   -1.4805    
  21  Prefactor     .10003E-03    25.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    66.610        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.728        18.862        .26068E-02   -1.4940    
  25  Prefactor     .10000E-03    7.3342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0399        .19584        .41303E-01   -.91705    
  27  Prefactor     .97214        .19280        .45921E-01   -.93664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99954e-08
Minuit parameter uncertainties:
  1  5.06879
  2  4.01411
  3  2.81853
  4  2.44088e-05
  5  0.184715
  6  6.2102
  7  9.6989
  8  0.000598648
  9  3.08217
  10  9.22764e-06
  11  0.00122877
  12  0.00114944
  13  3.80654
  14  6.32249
  15  8.01537
  16  6.64415
  17  0.000171645
  18  5.00329
  19  0.00111325
  20  7.38189
  21  0.00179942
  22  0.000146244
  23  3.2285e-06
  24  18.8692
  25  2.48772e-05
  26  0.195976
  27  0.192941
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.055e+00  3.807e+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:  9.721e-01  1.929e-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.040e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/163518/likelihoodResults_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.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) = 5831.27698733
delta logL = 0.0808989520829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5831.27515213
delta logL = 0.0827341557933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9228       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4277       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97538       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=   5831.275     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9221        108.74        .74910E-02    .78717E-03
   2  alpha         2.4294        3.1422        .41173        .39409E-04
   3  Normalizat    1.0328        .51702E-01    .41887E-01   -.65777E-05
   4  Prefactor     .97556        .57227E-01    .45959E-01   -.12562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92209
  alpha      = 2.42935
  Normalizat = 1.0328
  Prefactor  = 0.975563
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.275     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9221        3.5120        .15506E-03   -1.5431    
   2  alpha         2.4294        .93497        .18861E-01   -.28263E-01
   3  Normalizat    1.0328        .20617        .24598E-03   -.91939    
   4  Prefactor     .97556        .21943        .26856E-03   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72604e-11
Minuit parameter uncertainties:
  1  3.51233
  2  0.958281
  3  0.206325
  4  0.219628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163518': 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) = 5831.27514957
delta logL = 0.0827367154398

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.922e+00  3.512e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.429e+00  9.583e-01  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:  9.756e-01  2.196e-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.033e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
Ra Dec: 195.757 24.582

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/163518/cmap_HighResolution_578361601_578620801_4FGL_J1303.0+2434_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-06 18:35:57.287440', job_id='163518', GAL2='0.98', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1630978557.29', return_code2='0', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.27e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1308' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:35:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 163518: <4FGL_J1303.0+2434_daily_bin1308> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1308> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:33 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:38 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:20:38 2021
Terminated at Mon Sep  6 18:35:58 2021
Results reported at Mon Sep  6 18:35:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1308 195.757 24.5821 578361601 578620801 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 :                                   699.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            925 sec.

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

