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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1527
RA = 195.757, Dec = 24.5821
tmin = 635126401, tmax = 635385601
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='164937', job_status='RUN', time_executed='2021-09-06 18:29:30.726786', time_epoch_executed='1630978170.73' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164937/ft1_4FGL_J1303.0+2434_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164937/ft2_4FGL_J1303.0+2434_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164937/ft1_4FGL_J1303.0+2434_daily_bin1527.fits outfile=/scratch/kocevski/164937/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1527.fits ra=195.757 dec=24.5821 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.95
user 2.72
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164937/ft1_filtered_4FGL_J1303.0+2434_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/164937/ft2_4FGL_J1303.0+2434_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/164937/ltcube_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.fits outfile=/scratch/kocevski/164937/expmap_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.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/164937/ltcube_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.fits
.....................!
real 191.07
user 186.09
sys 4.56

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/164937/ft1_filtered_4FGL_J1303.0+2434_daily_bin1527.fits scfile=/scratch/kocevski/164937/ft2_4FGL_J1303.0+2434_daily_bin1527.fits outfile=/scratch/kocevski/164937/cmap_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164937/ft1_filtered_4FGL_J1303.0+2434_daily_bin1527.fits scfile=/scratch/kocevski/164937/ft2_4FGL_J1303.0+2434_daily_bin1527.fits outfile=/scratch/kocevski/164937/cmap_HighResolution_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.675       1.0000         .10000E-03   10000.    
     5 'norm      '    .17767       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.203       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11966E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25184       1.0000         .10000E-03   10000.    
    10 'norm      '    7.2707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14274E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5881       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4892       1.0000         .10000E-03   10000.    
    16 'norm      '    17.223       1.0000         .10000E-03   10000.    
    17 'norm      '    9.9670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1437       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0866       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .92199E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2614       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0083       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=   4542.122     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3322 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1198        3.1619       -.26607E-06   -.65590E-04
   2  Prefactor     .10000E-03    1.5859        .32327E-06** at limit **
   3  Prefactor     .57302        4.1400        .68389E-06    .12895E-03
   4  Prefactor     12.676        11.684       -.93850E-06   -.13162E-03
   5  norm          .17775        .36219        .76412E-07    .41375E-03
   6  norm          .10000E-03    10.985        .14428E-05** at limit **
   7  Prefactor     38.184        27.744       -.10930E-05   -.33619E-04
   8  Prefactor     .10000E-03    48.758       -.31120E-05** at limit **
   9  Prefactor     .21276        36.454       -.52960E-05    .25703E-03
  10  norm          7.2620        6.0962        .15884E-06   -.26078E-04
  11  Prefactor     63.582        29.108        .11633E-05    .55485E-04
  12  Prefactor     .10000E-03    54.929        .27124E-06** at limit **
  13  norm          .10000E-03    1.3196        .59300E-07** at limit **
  14  norm          2.5880        4.8552       -.29932E-06   -.62743E-04
  15  norm          8.4821        8.3392        .90671E-07   -.53948E-04
  16  norm          17.226        13.314       -.13621E-06   -.22565E-04
  17  norm          9.9710        13.744        .15284E-06    .12795E-04
  18  Prefactor     2.1416        3.0294        .33014E-07    .26751E-04
  19  Prefactor     1.0884        32.641        .44803E-05    .10909E-03
  20  norm          6.0112        5.3738        .17172E-06    .19869E-03
  21  Prefactor     .10000E-03    31.448       -.19370E-05** at limit **
  22  Prefactor     .10000E-03    27.086        .18233E-05** at limit **
  23  norm          .10003E-03    8.5856        .85131E-06** at limit **
  24  Prefactor     .10000E-03    7.3964        .69404E-08** at limit **
  25  Prefactor     .10000E-03    17.536       -.13401E-06** at limit **
  26  Normalizat    1.2614        .23251       -.21621E-05    .38368E-04
  27  Prefactor     1.0085        .23622        .34128E-06   -.60448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11977
  Prefactor  = 0.0001
  Prefactor  = 0.573021
  Prefactor  = 12.676
  norm       = 0.177749
  norm       = 0.0001
  Prefactor  = 38.1836
  Prefactor  = 0.0001
  Prefactor  = 0.212761
  norm       = 7.26197
  Prefactor  = 63.5825
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.58798
  norm       = 8.48206
  norm       = 17.2259
  norm       = 9.97102
  Prefactor  = 2.14165
  Prefactor  = 1.08837
  norm       = 6.01125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26138
  Prefactor  = 1.0085
 **********
 **   18 **HESSE 
 **********

 FCN=   4542.122     FROM HESSE     STATUS=OK           498 CALLS     3820 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1198        3.1721        .11671E-03   -1.5355    
   2  Prefactor     .10000E-03    1.5963        .82888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57302        7.5474        .24260E-02   -1.5557    
   4  Prefactor     12.676        11.706        .11251E-03   -1.4996    
   5  norm          .17775        .33372        .55315E-03   -1.5624    
   6  norm          .10000E-03    11.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.184        27.839        .64845E-04   -1.4471    
   8  Prefactor     .10000E-03    48.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21276        86.145        .38558E-02   -1.5616    
  10  norm          7.2620        6.0915        .14498E-03   -1.5169    
  11  Prefactor     63.582        29.136        .50322E-04   -1.4111    
  12  Prefactor     .10000E-03    55.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3222        .75613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5880        4.8368        .19713E-03   -1.5386    
  15  norm          8.4821        8.4954        .13483E-03   -1.5125    
  16  norm          17.226        13.446        .96508E-04   -1.4878    
  17  norm          9.9710        13.742        .12692E-03   -1.5076    
  18  Prefactor     2.1416        3.0286        .13164E-03   -1.5415    
  19  Prefactor     1.0884        56.143        .23009E-02   -1.5499    
  20  norm          6.0112        5.2966        .14078E-03   -1.5218    
  21  Prefactor     .10000E-03    31.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    19.978        .32732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.4274        .17901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2614        .27377        .25354E-03   -.84727    
  27  Prefactor     1.0085        .28212        .29660E-03   -.92447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24933e-09
Minuit parameter uncertainties:
  1  3.17229
  2  4.12535e-06
  3  4.15951
  4  11.7077
  5  0.333724
  6  0.000113489
  7  27.8484
  8  0.000168231
  9  8.57274
  10  6.09201
  11  29.143
  12  0.000175795
  13  2.93403e-06
  14  4.83752
  15  8.49658
  16  13.4481
  17  13.7462
  18  3.0288
  19  15.6487
  20  5.29698
  21  5.7323e-05
  22  9.06197e-05
  23  0.00149493
  24  1.44106e-05
  25  3.94395e-05
  26  0.274085
  27  0.282539
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  2.934e-06  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.009e+00  2.825e-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.261e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/164937/likelihoodResults_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.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) = 4542.12489543
delta logL = -0.00320077605193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4542.12169466
delta logL = -4.78576112073e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0650       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4542.122     FROM MIGRAD    STATUS=FAILED        85 CALLS      231 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    1.9195        .75617E-03** at limit **
   2  alpha         2.0402        2.9917        .16787        .23056E-05
   3  Normalizat    1.2614        .26025        .25354E-03    .11658E-05
   4  Prefactor     1.0085        .27697        .29660E-03    .34113E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4542.122     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      348 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    1.9195        .15719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0402        2.9917        .72041E-03   -.18496    
   3  Normalizat    1.2614        .26025        .94312E-04   -.84727    
   4  Prefactor     1.0085        .27697        .14351E-03   -.92447    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4542.122     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      375 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3239        .15123E-03** at limit **
   2  alpha         2.0099        3.4823        .67148E-02   -.17236E-06
   3  Normalizat    1.2614        .26050        .10142E-04    .49324E-05
   4  Prefactor     1.0085        .27724        .11864E-04    .15332E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00988
  Normalizat = 1.26138
  Prefactor  = 1.0085
 **********
 **   18 **HESSE 
 **********

 FCN=   4542.122     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3239        .30247E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0099        3.5011        .13430E-02   -.19733    
   3  Normalizat    1.2614        .26040        .20283E-05   -.84727    
   4  Prefactor     1.0085        .27711        .23728E-05   -.92447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69521e-10
Minuit parameter uncertainties:
  1  3.94219e-05
  2  172.609
  3  0.260667
  4  0.277504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164937': 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) = 4542.12169461
delta logL = 4.82377799926e-08

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.942e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.010e+00  1.726e+02  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.009e+00  2.775e-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.261e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/164937/cmap_HighResolution_635126401_635385601_4FGL_J1303.0+2434_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-06 18:40:38.779787', job_id='164937', GAL2='1.01', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630978838.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1527' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:40:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 164937: <4FGL_J1303.0+2434_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1527> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:31 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:26:03 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:26:03 2021
Terminated at Mon Sep  6 18:40:39 2021
Results reported at Mon Sep  6 18:40:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1527 195.757 24.5821 635126401 635385601 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 :                                   640.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            908 sec.

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

