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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin3
RA = 195.757, Dec = 24.5821
tmin = 240105601, tmax = 240364801
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='150848', job_status='RUN', time_executed='2021-09-06 17:41:05.152015', time_epoch_executed='1630975265.15' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150848/ft1_4FGL_J1303.0+2434_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150848/ft1_4FGL_J1303.0+2434_daily_bin3.fits outfile=/scratch/kocevski/150848/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin3.fits ra=195.757 dec=24.5821 rad=12.0 tmin=240105601.0 tmax=240364801.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.43
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150848/ft1_filtered_4FGL_J1303.0+2434_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/150848/ltcube_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.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/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits
.....................!
real 14.41
user 13.98
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150848/ft1_filtered_4FGL_J1303.0+2434_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/150848/ltcube_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.fits outfile=/scratch/kocevski/150848/expmap_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.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/150848/ltcube_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.fits
.....................!
real 191.36
user 185.37
sys 5.51

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/150848/ft1_filtered_4FGL_J1303.0+2434_daily_bin3.fits scfile=/scratch/kocevski/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits outfile=/scratch/kocevski/150848/cmap_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150848/ft1_filtered_4FGL_J1303.0+2434_daily_bin3.fits scfile=/scratch/kocevski/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits outfile=/scratch/kocevski/150848/cmap_HighResolution_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.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/150848/ft1_filtered_4FGL_J1303.0+2434_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/150848/ft2_4FGL_J1303.0+2434_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150848/Model_4FGL_J1303.0+2434_daily_bin3.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/150848/ft1_filtered_4FGL_J1303.0+2434_daily_bin3.fits.....................!
real 43.80
user 42.39
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0303       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1835       1.0000         .10000E-03   10000.    
     5 'norm      '    .16090       1.0000         .10000E-03   10000.    
     6 'norm      '    6.0536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9211       1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4914       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8537       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2682       1.0000         .10000E-03   10000.    
    15 'norm      '    15.030       1.0000         .10000E-03   10000.    
    16 'norm      '    .14706E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    14.294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4135       1.0000         .10000E-03   10000.    
    20 'norm      '    .13120E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3264       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3287       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7601       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79136       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1749       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=   4881.325     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     2877 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91212        2.5650       -.49629E-06   -.96979E-03
   2  Prefactor     3.0302        2.4050        .76644E-07   -.99054E-04
   3  Prefactor     11.534        3.4661        .28862E-08    .13438E-03
   4  Prefactor     8.1825        6.1744       -.28293E-07    .22545E-05
   5  norm          .16093        .14657       -.48115E-08    .86624E-04
   6  norm          6.0506        4.6797       -.38763E-07   -.12542E-04
   7  Prefactor     .10000E-03    8.2949       -.45815E-06** at limit **
   8  Prefactor     .10000E-03    50.485       -.28636E-05** at limit **
   9  Prefactor     1.9219        6.3893       -.12547E-05   -.54335E-03
  10  norm          .10001E-03    3.7626        .21785E-05** at limit **
  11  Prefactor     4.9235        7.5908       -.17432E-06   -.11348E-03
  12  Prefactor     1.5416        77.981       -.34214E-04   -.43281E-04
  13  norm          1.8540        2.4571        .57097E-07   -.39179E-04
  14  norm          5.2691        6.4415        .30165E-06   -.33185E-04
  15  norm          15.047        7.1633        .86336E-06    .17466E-03
  16  norm          .10001E-03    13.466       -.44794E-06** at limit **
  17  norm          14.316        19.577       -.43888E-05    .21731E-03
  18  Prefactor     8.9910        5.7442        .11279E-06    .10308E-03
  19  Prefactor     7.4227        19.928       -.37210E-05    .27515E-04
  20  norm          .10000E-03    7.6243        .48974E-06** at limit **
  21  Prefactor     .10000E-03    11.575       -.23416E-06** at limit **
  22  Prefactor     5.3447        107.50        .36285E-04   -.12340E-03
  23  norm          5.3294        10.489       -.14895E-05   -.62899E-04
  24  Prefactor     .10000E-03    9.7517        .46367E-07** at limit **
  25  Prefactor     3.8538        52.278        .10371E-04   -.10341E-03
  26  Normalizat    .79096        .20118        .14586E-05   -.59217E-04
  27  Prefactor     1.1751        .20734       -.65554E-06    .22176E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.912122
  Prefactor  = 3.03017
  Prefactor  = 11.5336
  Prefactor  = 8.18248
  norm       = 0.160927
  norm       = 6.05062
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.92185
  norm       = 0.000100008
  Prefactor  = 4.92355
  Prefactor  = 1.54158
  norm       = 1.85399
  norm       = 5.26915
  norm       = 15.0468
  norm       = 0.000100013
  norm       = 14.3163
  Prefactor  = 8.99101
  Prefactor  = 7.42267
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.34467
  norm       = 5.32944
  Prefactor  = 0.0001
  Prefactor  = 3.85383
  Normalizat = 0.790957
  Prefactor  = 1.17514
 **********
 **   18 **HESSE 
 **********

 FCN=   4881.325     FROM HESSE     STATUS=OK           506 CALLS     3383 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91212        2.2270        .17402E-02   -1.5517    
   2  Prefactor     3.0302        2.4271        .89313E-04   -1.5360    
   3  Prefactor     11.534        3.4530        .68185E-04   -1.5029    
   4  Prefactor     8.1825        6.1708        .14015E-03   -1.5136    
   5  norm          .16093        .15052        .24705E-03   -1.5628    
   6  norm          6.0506        4.6780        .12683E-03   -1.5216    
   7  Prefactor     .10000E-03    8.4276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9219        6.4487        .29979E-03   -1.5431    
  10  norm          .10001E-03    9.6910        .25423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9235        7.5863        .18129E-03   -1.5264    
  12  Prefactor     1.5416        80.339        .35100E-03   -1.5460    
  13  norm          1.8540        2.4419        .12230E-03   -1.5436    
  14  norm          5.2691        6.4198        .17512E-03   -1.5249    
  15  norm          15.047        5.7273        .94117E-04   -1.4932    
  16  norm          .10001E-03    37.060        .38881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.316        19.482        .10594E-03   -1.4951    
  18  Prefactor     8.9910        5.7204        .10931E-03   -1.5108    
  19  Prefactor     7.4227        19.806        .14730E-03   -1.5163    
  20  norm          .10000E-03    7.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3447        102.37        .17414E-03   -1.5246    
  23  norm          5.3294        10.493        .17410E-03   -1.5246    
  24  Prefactor     .10000E-03    9.7846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.8538        51.419        .20820E-03   -1.5315    
  26  Normalizat    .79096        .23661        .26653E-03   -1.0040    
  27  Prefactor     1.1751        .24557        .24548E-03   -.87100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42972e-09
Minuit parameter uncertainties:
  1  2.22723
  2  2.42718
  3  3.45305
  4  6.17132
  5  0.150523
  6  4.67829
  7  1.86785e-05
  8  0.000327225
  9  6.45098
  10  0.000561067
  11  7.58775
  12  22.2883
  13  2.442
  14  6.42068
  15  5.72748
  16  0.00140417
  17  19.4904
  18  5.72071
  19  19.8233
  20  4.60161e-05
  21  1.01388e-05
  22  46.8748
  23  10.497
  24  5.80286e-05
  25  28.183
  26  0.236914
  27  0.245807
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.854e+00  2.442e+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.175e+00  2.458e-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:  7.910e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.26e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 6.52e-06 +/- 8.59e-06

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

Saving results to:
/scratch/kocevski/150848/likelihoodResults_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.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) = 4881.32352608
delta logL = 0.00136367780215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4881.32344838
delta logL = 0.00144138640007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8231       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1182       1.0000          .0000       5.0000    
     3 'Normalizat'    .79027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1755       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=   4881.323     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      225 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8253        130.66        .77305E-02    .49271E-04
   2  alpha         2.1193        3.8911        .41775        .84907E-05
   3  Normalizat    .79024        .10021        .43483E-01   -.34911E-05
   4  Prefactor     1.1756        .92236E-01    .55509E-01   -.19869E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82531
  alpha      = 2.11931
  Normalizat = 0.790244
  Prefactor  = 1.17556
 **********
 **   18 **HESSE 
 **********

 FCN=   4881.323     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8253        2.5075        .12101E-03   -1.5438    
   2  alpha         2.1193        .98210        .22530E-01   -.15287    
   3  Normalizat    .79024        .21855        .26664E-03   -1.0043    
   4  Prefactor     1.1756        .24125        .24544E-03   -.87087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12823e-10
Minuit parameter uncertainties:
  1  2.50764
  2  1.01
  3  0.218794
  4  0.24148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150848': 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) = 4881.32344696
delta logL = 0.00144280164022

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.825e+00  2.508e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.119e+00  1.010e+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.176e+00  2.415e-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:  7.902e-01  2.188e-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.12 +/- 1.01
Photon Flux (Free Index): 1.32e-08 +/- 2.03e-08
Energy Flux (Free Index): 6.28e-06 +/- 9.48e-06

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/150848/cmap_HighResolution_240105601_240364801_4FGL_J1303.0+2434_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', comment='SUCCESS', photon_flux='1.26e-08', energy_flux2='6.28e-06', photon_flux_error='1.66e-08', dlogl='1.44e-03', energy_flux='6.52e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-06 17:51:36.406849', photon_index_error2='1.01', photon_index2='2.12', ts='1.23', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='6.69e-08', energy_flux_error2='9.48e-06', EG='0.79', time_epoch_completed='1630975896.41', return_code='0', job_id='150848', GAL2='1.18', EG2='0.79', return_code2='0', energy_flux_error='8.59e-06', photon_flux_error2='2.03e-08', ts2='1.23', photon_index='2.07' WHERE bin_id='3' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 150848: <4FGL_J1303.0+2434_daily_bin3> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin3> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 17:35:26 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:39: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 17:39:25 2021
Terminated at Mon Sep  6 17:51:37 2021
Results reported at Mon Sep  6 17:51:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin3 195.757 24.5821 240105601 240364801 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            971 sec.

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

