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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1008
RA = 195.757, Dec = 24.5821
tmin = 500601601, tmax = 500860801
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='161970', job_status='RUN', time_executed='2021-09-06 18:16:00.040982', time_epoch_executed='1630977360.04' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161970/ft1_4FGL_J1303.0+2434_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161970/ft2_4FGL_J1303.0+2434_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161970/ft1_4FGL_J1303.0+2434_daily_bin1008.fits outfile=/scratch/kocevski/161970/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1008.fits ra=195.757 dec=24.5821 rad=12.0 tmin=500601601.0 tmax=500860801.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 5.17
user 4.91
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161970/ft1_filtered_4FGL_J1303.0+2434_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/161970/ft2_4FGL_J1303.0+2434_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/161970/ltcube_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.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/161970/ft2_4FGL_J1303.0+2434_daily_bin1008.fits
.....................!
real 16.58
user 15.92
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161970/ft1_filtered_4FGL_J1303.0+2434_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/161970/ft2_4FGL_J1303.0+2434_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/161970/ltcube_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.fits outfile=/scratch/kocevski/161970/expmap_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.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/161970/ltcube_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.fits
.....................!
real 193.32
user 187.64
sys 4.83

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/161970/ft1_filtered_4FGL_J1303.0+2434_daily_bin1008.fits scfile=/scratch/kocevski/161970/ft2_4FGL_J1303.0+2434_daily_bin1008.fits outfile=/scratch/kocevski/161970/cmap_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161970/ft1_filtered_4FGL_J1303.0+2434_daily_bin1008.fits scfile=/scratch/kocevski/161970/ft2_4FGL_J1303.0+2434_daily_bin1008.fits outfile=/scratch/kocevski/161970/cmap_HighResolution_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72151       1.0000         .10000E-03   10000.    
     6 'norm      '    .10861E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13472E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.145       1.0000         .10000E-03   10000.    
    13 'norm      '    8.6944       1.0000         .10000E-03   10000.    
    14 'norm      '    10.839       1.0000         .10000E-03   10000.    
    15 'norm      '    .11657E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.599       1.0000         .10000E-03   10000.    
    20 'norm      '    9.3523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11561E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.240       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96826       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2012       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=   4840.857     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3256 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.120        7.0168        .61349E-07   -.15027E-05
   2  Prefactor     .10000E-03    1.2098       -.36114E-07** at limit **
   3  Prefactor     3.8293        3.9461       -.36306E-06   -.30178E-04
   4  Prefactor     .10000E-03    3.2252       -.79302E-07** at limit **
   5  norm          .72164        .33045       -.10779E-07   -.32551E-04
   6  norm          .10000E-03    22.870       -.38682E-05** at limit **
   7  Prefactor     .10000E-03    8.6143       -.10441E-06** at limit **
   8  Prefactor     .10000E-03    37.791       -.18901E-05** at limit **
   9  Prefactor     .10000E-03    5.4779        .26731E-06** at limit **
  10  norm          .10000E-03    5.4041        .64543E-06** at limit **
  11  Prefactor     .10000E-03    13.739        .17105E-05** at limit **
  12  Prefactor     45.132        34.495       -.34949E-06   -.46199E-04
  13  norm          8.6952        5.2223       -.55848E-07    .83750E-05
  14  norm          10.840        9.6591       -.16390E-06   -.43158E-04
  15  norm          .10000E-03    4.2266        .49677E-06** at limit **
  16  norm          .10000E-03    3.6067        .14915E-06** at limit **
  17  norm          .10000E-03    16.047       -.15730E-05** at limit **
  18  Prefactor     .10000E-03    3.0959        .18041E-06** at limit **
  19  Prefactor     22.603        18.792       -.58833E-07   -.40620E-04
  20  norm          9.3589        9.2454       -.10492E-05    .39647E-04
  21  Prefactor     .10000E-03    21.235        .68706E-06** at limit **
  22  Prefactor     .10000E-03    92.482        .18156E-05** at limit **
  23  norm          .10000E-03    15.451       -.54040E-06** at limit **
  24  Prefactor     .10000E-03    20.175       -.99477E-06** at limit **
  25  Prefactor     26.258        29.183       -.87838E-06   -.51912E-05
  26  Normalizat    .96768        .22666       -.19481E-06   -.36818E-04
  27  Prefactor     1.2018        .22996        .34996E-06   -.59297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.1203
  Prefactor  = 0.0001
  Prefactor  = 3.82928
  Prefactor  = 0.0001
  norm       = 0.721639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.132
  norm       = 8.69524
  norm       = 10.8398
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6034
  norm       = 9.35893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2576
  Normalizat = 0.967679
  Prefactor  = 1.20176
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.857     FROM HESSE     STATUS=OK           482 CALLS     3738 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.120        7.0038        .79924E-04   -1.4705    
   2  Prefactor     .10000E-03    1.2156        .74630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8293        3.8958        .12443E-03   -1.5317    
   4  Prefactor     .10000E-03    3.2324        .12193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72164        .32827        .25742E-04   -1.5538    
   6  norm          .10000E-03    22.514        .32147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5213        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.5435        .15806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.132        34.707        .59671E-04   -1.4363    
  13  norm          8.6952        5.2220        .11880E-03   -1.5118    
  14  norm          10.840        9.6466        .12170E-03   -1.5049    
  15  norm          .10000E-03    4.3331        .27910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6169        .12904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1890        .23829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.603        18.759        .84259E-04   -1.4757    
  20  norm          9.3589        9.2003        .13105E-03   -1.5096    
  21  Prefactor     .10000E-03    21.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    92.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    15.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.258        29.188        .78204E-04   -1.4683    
  26  Normalizat    .96768        .26972        .27684E-03   -.94121    
  27  Prefactor     1.2018        .27373        .26763E-03   -.86277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97805e-11
Minuit parameter uncertainties:
  1  7.004
  2  7.58415e-07
  3  3.89608
  4  4.74842e-08
  5  0.328272
  6  2.68508e-05
  7  7.56278e-06
  8  8.8747e-05
  9  5.12953e-06
  10  1.3725e-06
  11  3.42947e-05
  12  34.7228
  13  5.22225
  14  9.64802
  15  2.71293e-06
  16  5.50288e-07
  17  1.92095e-05
  18  3.38059e-06
  19  18.7644
  20  9.20165
  21  2.12709e-05
  22  0.000114964
  23  0.000132697
  24  3.02557e-05
  25  29.2034
  26  0.270099
  27  0.274058
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  8.695e+00  5.222e+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.202e+00  2.741e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  9.677e-01  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.35
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 1.84e-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) = 4840.8074191
delta logL = 0.0494999469811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4840.80646697
delta logL = 0.0504520787044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8723       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9024       1.0000          .0000       5.0000    
     3 'Normalizat'    .97807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1955       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=   4840.806     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8723        9.7018        .33641E-02   -.10090E-02
   2  alpha         1.9024        .80190        .31836       -.63126E-05
   3  Normalizat    .97808        .21997        .45892E-01    .10918E-04
   4  Prefactor     1.1955        .23161        .60654E-01    .49028E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.87232
  alpha      = 1.90242
  Normalizat = 0.978082
  Prefactor  = 1.1955
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.806     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8723        5.4605        .12280E-03   -1.5112    
   2  alpha         1.9024        .50744        .62471E-01   -.24137    
   3  Normalizat    .97808        .25676        .27551E-03   -.93768    
   4  Prefactor     1.1955        .27259        .26824E-03   -.86470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57561e-10
Minuit parameter uncertainties:
  1  5.46084
  2  0.51121
  3  0.257089
  4  0.272913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161970': 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) = 4840.80646696
delta logL = 0.0504520853819

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  8.872e+00  5.461e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.902e+00  5.112e-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:  1.195e+00  2.729e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  9.781e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.42
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.90 +/- 0.51
Photon Flux (Free Index): 5.03e-08 +/- 3.84e-08
Energy Flux (Free Index): 3.50e-05 +/- 2.89e-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/161970/cmap_HighResolution_500601601_500860801_4FGL_J1303.0+2434_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='3.50e-05', photon_flux_error='3.54e-08', dlogl='5.05e-02', energy_flux='3.06e-05', photon_flux2='5.03e-08', job_status='DONE', time_completed='2021-09-06 18:26:05.728714', photon_index_error2='0.51', photon_index2='1.90', ts='8.35', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.89e-05', EG='0.97', time_epoch_completed='1630977965.73', return_code='0', job_id='161970', GAL2='1.20', EG2='0.98', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='3.84e-08', ts2='8.42', photon_index='2.07' WHERE bin_id='1008' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:26:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 161970: <4FGL_J1303.0+2434_daily_bin1008> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1008> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:25 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:15:48 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:15:48 2021
Terminated at Mon Sep  6 18:26:06 2021
Results reported at Mon Sep  6 18:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1008 195.757 24.5821 500601601 500860801 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 :                                   602.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            641 sec.

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

