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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin52
RA = 195.757, Dec = 24.5821
tmin = 252806401, tmax = 253065601
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='152142', job_status='RUN', time_executed='2021-09-06 17:44:22.291328', time_epoch_executed='1630975462.29' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152142/ft1_4FGL_J1303.0+2434_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152142/ft2_4FGL_J1303.0+2434_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152142/ft1_4FGL_J1303.0+2434_daily_bin52.fits outfile=/scratch/kocevski/152142/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin52.fits ra=195.757 dec=24.5821 rad=12.0 tmin=252806401.0 tmax=253065601.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.45
user 1.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152142/ft1_filtered_4FGL_J1303.0+2434_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/152142/ft2_4FGL_J1303.0+2434_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/152142/ltcube_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.fits outfile=/scratch/kocevski/152142/expmap_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.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/152142/ltcube_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.fits
.....................!
real 192.60
user 186.55
sys 5.41

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/152142/ft1_filtered_4FGL_J1303.0+2434_daily_bin52.fits scfile=/scratch/kocevski/152142/ft2_4FGL_J1303.0+2434_daily_bin52.fits outfile=/scratch/kocevski/152142/cmap_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152142/ft1_filtered_4FGL_J1303.0+2434_daily_bin52.fits scfile=/scratch/kocevski/152142/ft2_4FGL_J1303.0+2434_daily_bin52.fits outfile=/scratch/kocevski/152142/cmap_HighResolution_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4436       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .30334       1.0000         .10000E-03   10000.    
     6 'norm      '    .21488       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0851       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99985E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4930       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.7747       1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.256       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1305       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.831       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0613       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=   6758.982     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2829 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4754        3.6248       -.79053E-06   -.95714E-04
   2  Prefactor     1.4436        1.7813        .23169E-06    .64306E-05
   3  Prefactor     8.4351        2.7728        .15406E-06    .10967E-03
   4  Prefactor     .10000E-03    2.3544       -.27365E-07** at limit **
   5  norm          .30341        .23018       -.33893E-07   -.78005E-05
   6  norm          .19829        1.8050       -.36381E-06    .30245E-03
   7  Prefactor     9.9728        6.9720       -.85803E-07    .16541E-04
   8  Prefactor     .10000E-03    28.217       -.67219E-06** at limit **
   9  Prefactor     2.0850        2.0598        .70245E-06   -.27356E-02
  10  norm          5.1680        4.0878       -.42854E-06    .49810E-05
  11  Prefactor     .10059E-03    8.4411       -.20283E-05** at limit **
  12  Prefactor     .10000E-03    9.4572       -.68780E-05** at limit **
  13  norm          3.4934        4.0363       -.95566E-06   -.94335E-04
  14  norm          .10000E-03    1.9390       -.74400E-07** at limit **
  15  norm          9.7750        4.6243       -.12515E-05   -.10273E-02
  16  norm          .10000E-03    9.6767        .55412E-05** at limit **
  17  norm          10.257        12.901       -.45418E-07    .28253E-05
  18  Prefactor     5.1306        3.8237        .66573E-06   -.13650E-03
  19  Prefactor     .10000E-03    8.0309        .26914E-05** at limit **
  20  norm          .10000E-03    4.9867        .43148E-06** at limit **
  21  Prefactor     .10000E-03    53.988        .18341E-04** at limit **
  22  Prefactor     .10000E-03    43.342       -.77224E-05** at limit **
  23  norm          17.834        9.6793       -.70430E-06   -.36549E-04
  24  Prefactor     .10000E-03    5.9084       -.93613E-06** at limit **
  25  Prefactor     .10000E-03    5.7819        .62165E-07** at limit **
  26  Normalizat    1.0666        .17451        .97204E-06    .18728E-03
  27  Prefactor     1.0614        .18160        .49552E-07    .19176E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.47545
  Prefactor  = 1.44363
  Prefactor  = 8.43509
  Prefactor  = 0.0001
  norm       = 0.303414
  norm       = 0.198288
  Prefactor  = 9.97276
  Prefactor  = 0.0001
  Prefactor  = 2.08499
  norm       = 5.16801
  Prefactor  = 0.000100588
  Prefactor  = 0.0001
  norm       = 3.49338
  norm       = 0.0001
  norm       = 9.77498
  norm       = 0.000100001
  norm       = 10.2567
  Prefactor  = 5.13059
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06664
  Prefactor  = 1.06139
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.982     FROM HESSE     STATUS=OK           498 CALLS     3327 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4754        3.6200        .10113E-03   -1.5161    
   2  Prefactor     1.4436        1.7656        .11431E-03   -1.5468    
   3  Prefactor     8.4351        2.7692        .74001E-04   -1.5127    
   4  Prefactor     .10000E-03    2.3941        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30341        .22207        .32257E-03   -1.5598    
   6  norm          .19829        11.162        .21164E-02   -1.5619    
   7  Prefactor     9.9728        6.9699        .12689E-03   -1.5076    
   8  Prefactor     .10000E-03    28.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0850        5.0892        .13961E-02   -1.5419    
  10  norm          5.1680        4.0796        .14195E-03   -1.5253    
  11  Prefactor     .10059E-03    79.254        .45039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4934        4.0299        .16892E-03   -1.5334    
  14  norm          .10000E-03    1.9479        .11177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.7750        4.6715        .11357E-03   -1.5083    
  16  norm          .10000E-03    10.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.257        12.896        .12512E-03   -1.5067    
  18  Prefactor     5.1306        3.8206        .12943E-03   -1.5255    
  19  Prefactor     .10000E-03    8.0470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.0479        .17889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.834        9.6669        .94849E-04   -1.4863    
  24  Prefactor     .10000E-03    5.9273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.7851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0666        .20899        .25003E-03   -.90830    
  27  Prefactor     1.0614        .21981        .27068E-03   -.90710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75389e-08
Minuit parameter uncertainties:
  1  3.62007
  2  1.76562
  3  2.76921
  4  9.47249e-08
  5  0.222071
  6  2.97528
  7  6.97047
  8  3.78387e-06
  9  5.09023
  10  4.07982
  11  0.0136665
  12  3.60467e-05
  13  4.03023
  14  1.48897e-06
  15  4.67163
  16  0.000217802
  17  12.8996
  18  3.82082
  19  2.07521e-05
  20  1.87533e-05
  21  0.000246002
  22  0.000162018
  23  9.66776
  24  6.35207e-06
  25  1.27675e-07
  26  0.209154
  27  0.219996
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.493e+00  4.030e+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.061e+00  2.200e-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.067e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/152142/likelihoodResults_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.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) = 6758.95511273
delta logL = 0.0271117142729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6758.95295726
delta logL = 0.0292671843945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3910       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0723       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=   6758.953     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3861        60.643        .54928E-02    .50060E-03
   2  alpha         2.3819        3.2497        .41206E-01    .21791E-04
   3  Normalizat    1.0501        .32877        .40545E-01    .24763E-04
   4  Prefactor     1.0725        .29554        .60931E-01    .12501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38611
  alpha      = 2.38189
  Normalizat = 1.05014
  Prefactor  = 1.07252
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.953     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3861        4.1493        .15087E-03   -1.5340    
   2  alpha         2.3819        1.2903        .16483E-02   -.47261E-01
   3  Normalizat    1.0501        .21547        .25162E-03   -.91369    
   4  Prefactor     1.0725        .22460        .26947E-03   -.90350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80551e-13
Minuit parameter uncertainties:
  1  4.14968
  2  1.35592
  3  0.215647
  4  0.224798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152142': 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) = 6758.95294734
delta logL = 0.0292771081104

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.386e+00  4.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.382e+00  1.356e+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.073e+00  2.248e-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.050e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.38 +/- 1.36
Photon Flux (Free Index): 3.44e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/152142/cmap_HighResolution_252806401_253065601_4FGL_J1303.0+2434_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='1.16e-05', photon_flux_error='2.73e-08', dlogl='2.93e-02', energy_flux='1.23e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-09-06 17:57:00.801684', photon_index_error2='1.36', photon_index2='2.38', ts='1.18', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.74e-08', energy_flux_error2='1.26e-05', EG='1.07', time_epoch_completed='1630976220.8', return_code='0', job_id='152142', GAL2='1.07', EG2='1.05', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.58e-08', ts2='1.23', photon_index='2.07' WHERE bin_id='52' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 152142: <4FGL_J1303.0+2434_daily_bin52> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin52> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:43 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:47 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:47 2021
Terminated at Mon Sep  6 17:57:01 2021
Results reported at Mon Sep  6 17:57:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin52 195.757 24.5821 252806401 253065601 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 :                                   757.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            978 sec.

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

