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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1228
RA = 195.757, Dec = 24.5821
tmin = 557625601, tmax = 557884801
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='163389', job_status='RUN', time_executed='2021-09-06 18:24:14.329400', time_epoch_executed='1630977854.33' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163389

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163389/ft1_4FGL_J1303.0+2434_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163389/ft2_4FGL_J1303.0+2434_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163389/ft1_4FGL_J1303.0+2434_daily_bin1228.fits outfile=/scratch/kocevski/163389/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1228.fits ra=195.757 dec=24.5821 rad=12.0 tmin=557625601.0 tmax=557884801.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.53
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163389/ft1_filtered_4FGL_J1303.0+2434_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/163389/ft2_4FGL_J1303.0+2434_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/163389/ltcube_557625601_557884801_4FGL_J1303.0+2434_daily_bin1228.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/163389/ft2_4FGL_J1303.0+2434_daily_bin1228.fits
.....................!
real 18.39
user 17.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163389/ft1_filtered_4FGL_J1303.0+2434_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/163389/ft2_4FGL_J1303.0+2434_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/163389/ltcube_557625601_557884801_4FGL_J1303.0+2434_daily_bin1228.fits outfile=/scratch/kocevski/163389/expmap_557625601_557884801_4FGL_J1303.0+2434_daily_bin1228.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/163389/ltcube_557625601_557884801_4FGL_J1303.0+2434_daily_bin1228.fits
.....................!
real 194.70
user 189.79
sys 4.36

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/163389/ft1_filtered_4FGL_J1303.0+2434_daily_bin1228.fits scfile=/scratch/kocevski/163389/ft2_4FGL_J1303.0+2434_daily_bin1228.fits outfile=/scratch/kocevski/163389/cmap_557625601_557884801_4FGL_J1303.0+2434_daily_bin1228.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.58
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12073E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0059       1.0000         .10000E-03   10000.    
     6 'norm      '    20.998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    184.40       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4236       1.0000         .10000E-03   10000.    
    10 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12515E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4582       1.0000         .10000E-03   10000.    
    14 'norm      '    19.885       1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.633       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8065       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .64446E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7839       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5422       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3613.405     FROM MIGRAD    STATUS=CONVERGED   1175 CALLS     4366 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8160        4.8703        .14400E-03   -.36696E-03
   2  Prefactor     .10001E-03    8.2476        .22078E-02** at limit **
   3  Prefactor     1.8754        2.9747        .12628E-03   -.62255E-04
   4  Prefactor     .10000E-03    8.5853        .17176E-02** at limit **
   5  norm          1.0061        .68007        .39490E-04    .73555E-04
   6  norm          21.000        12.188        .87407E-04   -.30370E-04
   7  Prefactor     12.508        16.636        .11327E-03   -.34226E-04
   8  Prefactor     184.52        148.64        .14866E-03    .41158E-04
   9  Prefactor     3.4250        10.095        .21862E-03    .21321E-05
  10  norm          .10000E-03    3.0496        .10239E-02** at limit **
  11  Prefactor     .10000E-03    15.240        .18142E-02** at limit **
  12  Prefactor     .10000E-03    233.12        .18142E-02** at limit **
  13  norm          3.4590        6.6704        .19890E-03    .40068E-04
  14  norm          19.883        11.947        .89818E-04   -.27416E-03
  15  norm          .10000E-03    2.7123        .96294E-03** at limit **
  16  norm          .10000E-03    2.9343        .10048E-02** at limit **
  17  norm          24.626        28.347        .80710E-04    .40370E-04
  18  Prefactor     1.8062        6.1416        .24084E-03   -.29857E-04
  19  Prefactor     .10001E-03    48.058        .18142E-02** at limit **
  20  norm          .10000E-03    4.8477        .12893E-02** at limit **
  21  Prefactor     .10000E-03    16.440        .18142E-02** at limit **
  22  Prefactor     .10000E-03    63.449        .18142E-02** at limit **
  23  norm          .10000E-03    29.347        .52100E-01** at limit **
  24  Prefactor     7.7876        18.773        .14373E-03   -.19696E-04
  25  Prefactor     .10000E-03    9.8994        .18142E-02** at limit **
  26  Normalizat    1.5420        .31443        .22690E-03   -.78474E-04
  27  Prefactor     .59076        .28088        .34264E-03    .22844E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.81603
  Prefactor  = 0.000100008
  Prefactor  = 1.87541
  Prefactor  = 0.0001
  norm       = 1.00605
  norm       = 21
  Prefactor  = 12.5082
  Prefactor  = 184.522
  Prefactor  = 3.42503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45902
  norm       = 19.8828
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.626
  Prefactor  = 1.80623
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.78763
  Prefactor  = 0.0001
  Normalizat = 1.54204
  Prefactor  = 0.590763
 **********
 **   18 **HESSE 
 **********

 FCN=   3613.405     FROM HESSE     STATUS=OK           470 CALLS     4836 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8160        4.8584        .57600E-05   -1.5317    
   2  Prefactor     .10001E-03    8.2541        .44156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8754        2.9747        .50511E-05   -1.5434    
   4  Prefactor     .10000E-03    8.5859        .34352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0061        .68003        .15796E-05   -1.5507    
   6  norm          21.000        12.187        .34963E-05   -1.4791    
   7  Prefactor     12.508        16.636        .45307E-05   -1.5000    
   8  Prefactor     184.52        148.62        .29732E-04   -1.2983    
   9  Prefactor     3.4250        10.093        .87447E-05   -1.5338    
  10  norm          .10000E-03    3.0497        .20478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    233.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4590        6.6683        .79559E-05   -1.5336    
  14  norm          19.883        11.943        .17964E-04   -1.4816    
  15  norm          .10000E-03    2.7124        .19259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9343        .20097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.626        28.342        .16142E-04   -1.4715    
  18  Prefactor     1.8062        6.1354        .96334E-05   -1.5439    
  19  Prefactor     .10001E-03    48.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.8479        .25785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    63.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.515        .67999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.7876        18.770        .57490E-05   -1.5150    
  25  Prefactor     .10000E-03    9.8996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5420        .31420        .45380E-04   -.76604    
  27  Prefactor     .59076        .28105        .13706E-04   -1.0798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58907e-09
Minuit parameter uncertainties:
  1  4.8589
  2  0.000529215
  3  2.97494
  4  9.32538e-06
  5  0.680034
  6  12.1887
  7  16.6425
  8  148.927
  9  10.0981
  10  2.38612e-06
  11  1.6003e-05
  12  0.000191185
  13  6.66977
  14  11.9443
  15  4.04632e-05
  16  1.60273e-05
  17  28.3578
  18  6.13749
  19  0.0014499
  20  5.93717e-06
  21  1.04384e-05
  22  0.000455663
  23  0.000123
  24  18.784
  25  1.03731e-05
  26  0.314598
  27  0.281716
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.459e+00  6.670e+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:  5.908e-01  2.817e-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.542e+00  3.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163389/likelihoodResults_557625601_557884801_4FGL_J1303.0+2434_daily_bin1228.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) = 3613.38831012
delta logL = 0.0170046216622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3613.38767087
delta logL = 0.0176438681556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3031       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6756       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58754       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3613.388     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      251 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3005        9.9615         .0000        .70247E-02
   2  alpha         1.6748        1.3873         .0000       -.53601E-03
   3  Normalizat    1.5494        .24328         .0000        .93338E-04
   4  Prefactor     .58768        .24104         .0000        .73531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30047
  alpha      = 1.67476
  Normalizat = 1.5494
  Prefactor  = 0.587677
 **********
 **   18 **HESSE 
 **********

 FCN=   3613.388     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3005        11.920        .97600E-03   -1.5345    
   2  alpha         1.6748        1.5106        .50000       -.33641    
   3  Normalizat    1.5494        .28262        .22646E-03   -.76400    
   4  Prefactor     .58768        .27941        .34350E-03   -1.0811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16171e-10
Minuit parameter uncertainties:
  1  11.9287
  2  1.63931
  3  0.282908
  4  0.28007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163389': 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) = 3613.38767063
delta logL = 0.017644104234

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.300e+00  1.193e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.675e+00  1.639e+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:  5.877e-01  2.801e-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.549e+00  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 195.757 24.582

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-05', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-06 18:34:42.324263', job_id='163389', GAL2='0.59', fit_tolerance='1e-08', EG2='1.55', EG='1.54', time_epoch_completed='1630978482.32', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.76e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1228' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:34:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 163389: <4FGL_J1303.0+2434_daily_bin1228> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1228> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:22 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:26 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:20:26 2021
Terminated at Mon Sep  6 18:34:43 2021
Results reported at Mon Sep  6 18:34:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1228 195.757 24.5821 557625601 557884801 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            861 sec.

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

