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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1034
RA = 195.757, Dec = 24.5821
tmin = 507340801, tmax = 507600001
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='162011', job_status='RUN', time_executed='2021-09-06 18:16:06.824299', time_epoch_executed='1630977366.82' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162011

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162011/ft1_4FGL_J1303.0+2434_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162011/ft2_4FGL_J1303.0+2434_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162011/ft1_4FGL_J1303.0+2434_daily_bin1034.fits outfile=/scratch/kocevski/162011/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1034.fits ra=195.757 dec=24.5821 rad=12.0 tmin=507340801.0 tmax=507600001.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.54
user 3.28
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162011/ft1_filtered_4FGL_J1303.0+2434_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/162011/ft2_4FGL_J1303.0+2434_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/162011/ltcube_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.fits outfile=/scratch/kocevski/162011/expmap_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.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/162011/ltcube_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.fits
.....................!
real 189.90
user 185.09
sys 4.44

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/162011/ft1_filtered_4FGL_J1303.0+2434_daily_bin1034.fits scfile=/scratch/kocevski/162011/ft2_4FGL_J1303.0+2434_daily_bin1034.fits outfile=/scratch/kocevski/162011/cmap_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162011/ft1_filtered_4FGL_J1303.0+2434_daily_bin1034.fits scfile=/scratch/kocevski/162011/ft2_4FGL_J1303.0+2434_daily_bin1034.fits outfile=/scratch/kocevski/162011/cmap_HighResolution_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.026       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2207       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16088E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .53156       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8287       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53260E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3846       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1733       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1642       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10613       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.786       1.0000         .10000E-03   10000.    
    20 'norm      '    9.3636       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.7451       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7963       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2900       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81365       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=   6155.418     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3480 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.026        4.1859        .75097E-07   -.26344E-05
   2  Prefactor     3.2206        2.0181        .20055E-07    .30543E-04
   3  Prefactor     5.6864        2.5855        .74036E-07    .71892E-04
   4  Prefactor     .10000E-03    29.511        .13918E-05** at limit **
   5  norm          .53156        .23786        .69950E-07    .53473E-03
   6  norm          2.8287        2.9727        .57895E-06    .13603E-03
   7  Prefactor     .10000E-03    3.8240       -.22893E-06** at limit **
   8  Prefactor     .10000E-03    406.84       -.83041E-05** at limit **
   9  Prefactor     .10010E-03    8.8087       -.10841E-05** at limit **
  10  norm          8.3794        5.4934        .74444E-06    .20715E-03
  11  Prefactor     2.1699        26.566       -.32089E-05    .32053E-06
  12  Prefactor     6.1437        31.063        .16143E-05   -.77581E-05
  13  norm          .10000E-03    2.4698       -.48150E-06** at limit **
  14  norm          .10000E-03    3.3346       -.22466E-06** at limit **
  15  norm          .10000E-03    1.9095        .13240E-07** at limit **
  16  norm          .10000E-03    1.9936        .41530E-07** at limit **
  17  norm          .10000E-03    10.759       -.55182E-06** at limit **
  18  Prefactor     .64390E-01    124.16       -.10281E-04    .21940E-04
  19  Prefactor     17.883        22.276        .12086E-05   -.43825E-04
  20  norm          9.3630        7.4031        .44122E-06   -.55990E-04
  21  Prefactor     .10000E-03    16.688       -.61159E-06** at limit **
  22  Prefactor     .10000E-03    24.526        .23755E-05** at limit **
  23  norm          4.7459        9.0163       -.81651E-06   -.66321E-04
  24  Prefactor     5.7946        11.785       -.29295E-05   -.28668E-04
  25  Prefactor     .10000E-03    110.76       -.55562E-05** at limit **
  26  Normalizat    1.2899        .21643       -.33438E-05    .19416E-03
  27  Prefactor     .81386        .22076        .60656E-05    .16384E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0258
  Prefactor  = 3.22057
  Prefactor  = 5.68642
  Prefactor  = 0.000100004
  norm       = 0.531559
  norm       = 2.82867
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001001
  norm       = 8.37943
  Prefactor  = 2.16987
  Prefactor  = 6.1437
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0643896
  Prefactor  = 17.8834
  norm       = 9.36302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.74591
  Prefactor  = 5.79461
  Prefactor  = 0.000100001
  Normalizat = 1.28989
  Prefactor  = 0.813861
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.418     FROM HESSE     STATUS=OK           498 CALLS     3978 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.026        4.1876        .85706E-04   -1.4986    
   2  Prefactor     3.2206        2.0201        .84083E-04   -1.5349    
   3  Prefactor     5.6864        2.5812        .80498E-04   -1.5231    
   4  Prefactor     .10000E-03    30.377        .34273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .53156        .23545        .24422E-04   -1.5562    
   6  norm          2.8287        2.9366        .13268E-03   -1.5372    
   7  Prefactor     .10000E-03    3.8353        .14987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    412.48        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10010E-03    45.200        .36488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3794        5.4703        .12880E-03   -1.5129    
  11  Prefactor     2.1699        26.794        .27931E-03   -1.5413    
  12  Prefactor     6.1437        31.929        .16170E-03   -1.5212    
  13  norm          .10000E-03    2.5228        .12048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3716        .13974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9596        .10610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9996        .10821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .64390E-01    271.12        .19003E-02   -1.5657    
  19  Prefactor     17.883        32.431        .94968E-04   -1.4862    
  20  norm          9.3630        7.3652        .13097E-03   -1.5096    
  21  Prefactor     .10000E-03    16.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.7459        8.9693        .18471E-03   -1.5272    
  24  Prefactor     5.7946        11.764        .16682E-03   -1.5226    
  25  Prefactor     .10000E-03    112.48        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2899        .21717        .22634E-03   -.83869    
  27  Prefactor     .81386        .22106        .29924E-03   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66696e-09
Minuit parameter uncertainties:
  1  4.18774
  2  2.02015
  3  2.58121
  4  0.000673099
  5  0.235452
  6  2.93675
  7  1.22384e-06
  8  0.00169852
  9  0.00425661
  10  5.4706
  11  15.2581
  12  28.0349
  13  6.42359e-06
  14  6.70533e-06
  15  1.01335e-05
  16  3.06369e-06
  17  7.711e-07
  18  8.38813
  19  32.4628
  20  7.36587
  21  3.32534e-05
  22  0.00012652
  23  8.97185
  24  11.769
  25  0.000795183
  26  0.217327
  27  0.221298
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  6.424e-06  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:  8.139e-01  2.213e-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.290e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/162011/likelihoodResults_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.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) = 6155.41960618
delta logL = -0.0018849229964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6155.4177192
delta logL = 2.05373362405e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1202       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81382       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=   6154.741     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      281 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42599        17.596        .90712E-02   -.11179E-02
   2  alpha         3.9902        3.8034        .41768        .50070E-04
   3  Normalizat    1.2067        .26072        .52669E-01    .11264E-03
   4  Prefactor     .86643        .17506        .65769E-01    .75792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.425985
  alpha      = 3.99017
  Normalizat = 1.20668
  Prefactor  = 0.866432
 **********
 **   18 **HESSE 
 **********

 FCN=   6154.741     FROM HESSE     STATUS=OK            31 CALLS      312 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42599        1.7763        .46041E-04   -1.5838    
   2  alpha         3.9902        3.8024        .17614E-01    .63860    
   3  Normalizat    1.2067        .21550        .23288E-03   -.86397    
   4  Prefactor     .86643        .22526        .29093E-03   -.97324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1064e-08
Minuit parameter uncertainties:
  1  1.73961
  2  2.20955
  3  0.21566
  4  0.225502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162011': 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) = 6154.74081876
delta logL = 0.676902492562

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.260e-01  1.740e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.990e+00  2.210e+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:  8.664e-01  2.255e-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.207e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.99 +/- 2.21
Photon Flux (Free Index): 6.01e-08 +/- 4.80e-07
Energy Flux (Free Index): 9.37e-06 +/- 7.10e-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/162011/cmap_HighResolution_507340801_507600001_4FGL_J1303.0+2434_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', comment='SUCCESS', energy_flux2='9.37e-06', dlogl='6.77e-01', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-06 18:29:06.620490', photon_index_error2='2.21', photon_index2='3.99', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='5.49e-08', energy_flux_error2='7.10e-05', EG='1.29', time_epoch_completed='1630978146.62', return_code='0', job_id='162011', GAL2='0.87', EG2='1.21', return_code2='0', photon_flux_error2='4.80e-07', ts2='1.46', photon_index='2.07' WHERE bin_id='1034' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 162011: <4FGL_J1303.0+2434_daily_bin1034> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1034 195.757 24.5821 507340801 507600001 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 :                                   774.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            818 sec.

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

