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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1423
RA = 195.757, Dec = 24.5821
tmin = 608169601, tmax = 608428801
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='164779', job_status='RUN', time_executed='2021-09-06 18:28:17.003726', time_epoch_executed='1630978097.0' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164779/ft1_4FGL_J1303.0+2434_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164779/ft2_4FGL_J1303.0+2434_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164779/ft1_4FGL_J1303.0+2434_daily_bin1423.fits outfile=/scratch/kocevski/164779/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1423.fits ra=195.757 dec=24.5821 rad=12.0 tmin=608169601.0 tmax=608428801.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.47
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164779/ft1_filtered_4FGL_J1303.0+2434_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/164779/ft2_4FGL_J1303.0+2434_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/164779/ltcube_608169601_608428801_4FGL_J1303.0+2434_daily_bin1423.fits outfile=/scratch/kocevski/164779/expmap_608169601_608428801_4FGL_J1303.0+2434_daily_bin1423.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/164779/ltcube_608169601_608428801_4FGL_J1303.0+2434_daily_bin1423.fits
.....................!
real 191.85
user 187.36
sys 4.05

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/164779/ft1_filtered_4FGL_J1303.0+2434_daily_bin1423.fits scfile=/scratch/kocevski/164779/ft2_4FGL_J1303.0+2434_daily_bin1423.fits outfile=/scratch/kocevski/164779/cmap_608169601_608428801_4FGL_J1303.0+2434_daily_bin1423.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164779/ft1_filtered_4FGL_J1303.0+2434_daily_bin1423.fits scfile=/scratch/kocevski/164779/ft2_4FGL_J1303.0+2434_daily_bin1423.fits outfile=/scratch/kocevski/164779/cmap_HighResolution_608169601_608428801_4FGL_J1303.0+2434_daily_bin1423.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .89586E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5700       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.845       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1127       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.1661       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.710       1.0000         .10000E-03   10000.    
    20 'norm      '    8.4034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9664       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.939       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88108       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1144       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=   5487.523     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3298 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6591        2.2236       -.25571E-07    .11996E-03
   2  Prefactor     1.4536        1.3682        .40548E-08    .16371E-03
   3  Prefactor     .98332        2.0640       -.84577E-06   -.11086E-02
   4  Prefactor     .10000E-03    2.8315        .65874E-06** at limit **
   5  norm          .89585E-01    .14180       -.15391E-06   -.46214E-02
   6  norm          4.5697        3.6366       -.33359E-06   -.14102E-03
   7  Prefactor     2.1172        7.8675       -.20130E-05   -.38811E-03
   8  Prefactor     .10000E-03    28.811        .32365E-05** at limit **
   9  Prefactor     .10000E-03    7.0128       -.31736E-05** at limit **
  10  norm          7.5701        4.6789       -.18544E-06   -.67792E-04
  11  Prefactor     14.842        16.168       -.17447E-05    .55550E-04
  12  Prefactor     .10000E-03    13.853       -.92405E-06** at limit **
  13  norm          7.1126        5.0530       -.55955E-06    .94852E-05
  14  norm          .10000E-03    1.6190        .21114E-07** at limit **
  15  norm          8.1659        4.6155       -.12250E-05   -.16207E-05
  16  norm          .10000E-03    4.9513       -.89003E-06** at limit **
  17  norm          .10000E-03    10.270        .12120E-05** at limit **
  18  Prefactor     .10000E-03    2.3244        .12647E-05** at limit **
  19  Prefactor     28.723        19.337        .14425E-04    .68207E-04
  20  norm          8.4047        8.9501       -.11900E-05    .85631E-04
  21  Prefactor     1.9465        101.09       -.82964E-04   -.12258E-04
  22  Prefactor     14.843        78.616       -.19021E-03   -.74796E-05
  23  norm          .10000E-03    11.955       -.27579E-05** at limit **
  24  Prefactor     31.939        19.002       -.11516E-05    .44729E-05
  25  Prefactor     .10000E-03    8.4562        .32954E-05** at limit **
  26  Normalizat    .88104        .18685        .33122E-05    .27741E-03
  27  Prefactor     1.1145        .19050        .33956E-05    .20575E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65914
  Prefactor  = 1.45361
  Prefactor  = 0.983323
  Prefactor  = 0.000100002
  norm       = 0.089585
  norm       = 4.56972
  Prefactor  = 2.11718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.57009
  Prefactor  = 14.8424
  Prefactor  = 0.0001
  norm       = 7.11257
  norm       = 0.0001
  norm       = 8.16587
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 28.7228
  norm       = 8.40471
  Prefactor  = 1.94645
  Prefactor  = 14.8427
  norm       = 0.0001
  Prefactor  = 31.9395
  Prefactor  = 0.0001
  Normalizat = 0.881036
  Prefactor  = 1.11451
 **********
 **   18 **HESSE 
 **********

 FCN=   5487.523     FROM HESSE     STATUS=OK           494 CALLS     3792 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6591        2.2207        .96383E-04   -1.5382    
   2  Prefactor     1.4536        1.3695        .80926E-04   -1.5467    
   3  Prefactor     .98332        1.9991        .14150E-03   -1.5510    
   4  Prefactor     .10000E-03    5.2561        .23870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .89585E-01    .12420        .33861E-03   -1.5648    
   6  norm          4.5697        3.5824        .12002E-03   -1.5280    
   7  Prefactor     2.1172        7.7989        .28346E-03   -1.5417    
   8  Prefactor     .10000E-03    28.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5701        4.6759        .11988E-03   -1.5158    
  11  Prefactor     14.842        16.174        .10395E-03   -1.4937    
  12  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.1126        5.0602        .13288E-03   -1.5175    
  14  norm          .10000E-03    1.6221        .92045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.1659        4.5946        .10841E-03   -1.5136    
  16  norm          .10000E-03    4.9782        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3651        .10995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.723        19.297        .74771E-04   -1.4636    
  20  norm          8.4047        8.9070        .13829E-03   -1.5128    
  21  Prefactor     1.9465        102.97        .29574E-03   -1.5429    
  22  Prefactor     14.843        78.860        .10368E-03   -1.4937    
  23  norm          .10000E-03    12.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.939        19.037        .70900E-04   -1.4577    
  25  Prefactor     .10000E-03    8.4644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .88104        .21773        .25735E-03   -.97130    
  27  Prefactor     1.1145        .22270        .25116E-03   -.89004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67292e-09
Minuit parameter uncertainties:
  1  2.2208
  2  1.36957
  3  1.99924
  4  0.000220678
  5  0.124196
  6  3.58258
  7  7.8026
  8  3.59358e-05
  9  4.65944e-05
  10  4.67608
  11  16.1785
  12  2.1012e-05
  13  5.06046
  14  4.58852e-06
  15  4.59481
  16  1.96526e-05
  17  6.98093e-06
  18  0.000197206
  19  19.3017
  20  8.90836
  21  28.3653
  22  68.5664
  23  1.3545e-06
  24  19.0408
  25  1.68454e-05
  26  0.217945
  27  0.222888
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.113e+00  5.060e+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.115e+00  2.229e-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:  8.810e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.78e-05

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) = 5483.68472334
delta logL = 3.83799915692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.52688827
delta logL = 3.99583422052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22353       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .63516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3105       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=   5483.527     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      340 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22353        1.3919        .26438E-02   -.44592E-02
   2  alpha         5.0000        3.3075        .46351    ** at limit **
   3  Normalizat    .63525        .18236        .67247E-01   -.36386E-04
   4  Prefactor     1.3104        .19691        .53061E-01   -.43851E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.223533
  alpha      = 5
  Normalizat = 0.635248
  Prefactor  = 1.31043
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.527     FROM HESSE     STATUS=OK            29 CALLS      369 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22353        .82195E-01    .11751E-04   -1.5613    
   2  alpha         5.0000        .98207        .25233E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63525        .21484        .29759E-03   -1.0651    
   4  Prefactor     1.3104        .22950        .23458E-03   -.82998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43876e-11
Minuit parameter uncertainties:
  1  0.0821953
  2  8.11721e-07
  3  0.215123
  4  0.229674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164779': 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) = 5483.52688742
delta logL = 3.9958350705

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.235e-01  8.220e-02  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  8.117e-07  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.310e+00  2.297e-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:  6.352e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.15
Ra Dec: 195.757 24.582
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.05e-07 +/- 7.49e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/164779/cmap_HighResolution_608169601_608428801_4FGL_J1303.0+2434_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='2.79e-05', photon_flux_error='3.43e-08', dlogl='4.00e+00', energy_flux='2.50e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-06 18:39:34.590673', photon_index_error2='0.00', photon_index2='5.00', ts='4.60', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='0.88', time_epoch_completed='1630978774.59', return_code='0', job_id='164779', GAL2='1.31', EG2='0.64', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.49e-08', ts2='14.15', photon_index='2.07' WHERE bin_id='1423' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:39:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 164779: <4FGL_J1303.0+2434_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1423 195.757 24.5821 608169601 608428801 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 :                                   641.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            855 sec.

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

