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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1027
RA = 195.757, Dec = 24.5821
tmin = 505526401, tmax = 505785601
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='161999', job_status='RUN', time_executed='2021-09-06 18:16:26.345756', time_epoch_executed='1630977386.35' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161999

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161999/ft1_4FGL_J1303.0+2434_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161999/ft2_4FGL_J1303.0+2434_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161999/ft1_4FGL_J1303.0+2434_daily_bin1027.fits outfile=/scratch/kocevski/161999/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1027.fits ra=195.757 dec=24.5821 rad=12.0 tmin=505526401.0 tmax=505785601.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.57
user 3.31
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161999/ft1_filtered_4FGL_J1303.0+2434_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/161999/ft2_4FGL_J1303.0+2434_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/161999/ltcube_505526401_505785601_4FGL_J1303.0+2434_daily_bin1027.fits outfile=/scratch/kocevski/161999/expmap_505526401_505785601_4FGL_J1303.0+2434_daily_bin1027.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/161999/ltcube_505526401_505785601_4FGL_J1303.0+2434_daily_bin1027.fits
.....................!
real 192.88
user 187.34
sys 4.78

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/161999/ft1_filtered_4FGL_J1303.0+2434_daily_bin1027.fits scfile=/scratch/kocevski/161999/ft2_4FGL_J1303.0+2434_daily_bin1027.fits outfile=/scratch/kocevski/161999/cmap_505526401_505785601_4FGL_J1303.0+2434_daily_bin1027.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161999/ft1_filtered_4FGL_J1303.0+2434_daily_bin1027.fits scfile=/scratch/kocevski/161999/ft2_4FGL_J1303.0+2434_daily_bin1027.fits outfile=/scratch/kocevski/161999/cmap_HighResolution_505526401_505785601_4FGL_J1303.0+2434_daily_bin1027.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .86290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14218       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.043       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9305       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7793       1.0000         .10000E-03   10000.    
    15 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.496       1.0000         .10000E-03   10000.    
    23 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.982       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87451       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0131       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=   5658.295     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3233 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.312        4.0313        .86922E-07    .49534E-04
   2  Prefactor     4.9642        2.4307        .86143E-07    .12882E-03
   3  Prefactor     .86212        1.6742       -.12347E-06   -.70993E-03
   4  Prefactor     .10000E-03    3.5367        .35878E-05** at limit **
   5  norm          .14216        .14678        .56366E-07    .32670E-03
   6  norm          5.4216        3.4284        .20079E-06   -.14210E-03
   7  Prefactor     .10000E-03    3.3278       -.18771E-05** at limit **
   8  Prefactor     .10000E-03    36.431       -.21932E-06** at limit **
   9  Prefactor     .10000E-03    2.0131        .18151E-07** at limit **
  10  norm          .10000E-03    1.7358       -.11082E-06** at limit **
  11  Prefactor     16.388        15.426        .14227E-05   -.41782E-04
  12  Prefactor     39.049        23.657        .49266E-05    .18119E-04
  13  norm          5.9308        3.8887        .18872E-06   -.11514E-03
  14  norm          1.7802        3.0839        .10475E-05   -.32319E-03
  15  norm          .10000E-03    1.1056       -.19587E-06** at limit **
  16  norm          .10000E-03    1.4720       -.34247E-07** at limit **
  17  norm          .10000E-03    11.062       -.30452E-06** at limit **
  18  Prefactor     .10000E-03    2.3283       -.88944E-06** at limit **
  19  Prefactor     .10000E-03    4.1684       -.33045E-05** at limit **
  20  norm          19.607        8.3306        .45762E-06   -.18154E-03
  21  Prefactor     .10000E-03    17.500        .41986E-06** at limit **
  22  Prefactor     54.523        61.603        .33538E-04    .25250E-04
  23  norm          .10000E-03    4.8002        .17995E-05** at limit **
  24  Prefactor     37.994        21.781        .66341E-05    .27334E-05
  25  Prefactor     10.366        21.504       -.52368E-05   -.46834E-04
  26  Normalizat    .87405        .18479       -.59206E-05    .17765E-03
  27  Prefactor     1.0136        .18922        .17873E-05   -.23311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3123
  Prefactor  = 4.96421
  Prefactor  = 0.862121
  Prefactor  = 0.0001
  norm       = 0.14216
  norm       = 5.42157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.3882
  Prefactor  = 39.0493
  norm       = 5.93085
  norm       = 1.78019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 19.6071
  Prefactor  = 0.0001
  Prefactor  = 54.5233
  norm       = 0.0001
  Prefactor  = 37.994
  Prefactor  = 10.366
  Normalizat = 0.874049
  Prefactor  = 1.01356
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.295     FROM HESSE     STATUS=OK           490 CALLS     3723 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.312        4.0160        .81976E-04   -1.5006    
   2  Prefactor     4.9642        2.4288        .78280E-04   -1.5262    
   3  Prefactor     .86212        1.4027        .12872E-02   -1.5522    
   4  Prefactor     .10000E-03    3.5839        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14216        .14259        .28252E-03   -1.5633    
   6  norm          5.4216        3.4243        .10740E-03   -1.5242    
   7  Prefactor     .10000E-03    3.3330        .13395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0159        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7515        .96705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.388        15.423        .98940E-04   -1.4898    
  12  Prefactor     39.049        23.713        .64146E-04   -1.4457    
  13  norm          5.9308        3.8874        .11567E-03   -1.5221    
  14  norm          1.7802        3.0466        .16853E-03   -1.5441    
  15  norm          .10000E-03    1.1189        .77193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4744        .89121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4400        .22446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1912        .15028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.607        8.3249        .90456E-04   -1.4822    
  21  Prefactor     .10000E-03    17.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     54.523        61.567        .54336E-04   -1.4230    
  23  norm          .10000E-03    4.8192        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.994        21.792        .65033E-04   -1.4474    
  25  Prefactor     10.366        21.502        .12445E-03   -1.5064    
  26  Normalizat    .87405        .21359        .24907E-03   -.97378    
  27  Prefactor     1.0136        .21999        .25462E-03   -.92279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92641e-09
Minuit parameter uncertainties:
  1  4.01614
  2  2.42889
  3  1.40275
  4  2.28548e-06
  5  0.142588
  6  3.42444
  7  8.36137e-06
  8  4.61985e-06
  9  4.38644e-06
  10  1.48538e-05
  11  15.427
  12  23.7183
  13  3.88753
  14  3.04687
  15  1.62432e-05
  16  6.54187e-06
  17  8.45637e-06
  18  0.000133184
  19  5.37422e-05
  20  8.32544
  21  1.22771e-05
  22  61.6387
  23  6.20467e-06
  24  21.7961
  25  21.5179
  26  0.213794
  27  0.220182
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.740e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.30
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.02e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.37e-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) = 5658.23995493
delta logL = 0.0553745391044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5658.23874039
delta logL = 0.0565890820026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3252       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2584       1.0000          .0000       5.0000    
     3 'Normalizat'    .86566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0201       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=   5658.239     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      249 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3289        84.895        .43540E-02    .10140E-03
   2  alpha         2.2592        3.3856        .32306        .32691E-04
   3  Normalizat    .86577        .86523E-01    .44461E-01    .14522E-04
   4  Prefactor     1.0199        .83050E-01    .42128E-01    .76834E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32887
  alpha      = 2.25918
  Normalizat = 0.865769
  Prefactor  = 1.01993
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.239     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3289        4.2072        .10712E-03   -1.5246    
   2  alpha         2.2592        .60236        .12208E-01   -.96476E-01
   3  Normalizat    .86577        .19868        .25013E-03   -.97674    
   4  Prefactor     1.0199        .21691        .25391E-03   -.92068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68913e-12
Minuit parameter uncertainties:
  1  4.20748
  2  0.608408
  3  0.198852
  4  0.217096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161999': 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) = 5658.23873701
delta logL = 0.0565924575876

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.329e+00  4.207e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.259e+00  6.084e-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.020e+00  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  8.658e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.26 +/- 0.61
Photon Flux (Free Index): 4.59e-08 +/- 3.31e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.41e-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/161999/cmap_HighResolution_505526401_505785601_4FGL_J1303.0+2434_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.02e-08', energy_flux2='1.79e-05', photon_flux_error='2.64e-08', dlogl='5.66e-02', energy_flux='2.09e-05', photon_flux2='4.59e-08', job_status='DONE', time_completed='2021-09-06 18:27:14.123339', photon_index_error2='0.61', photon_index2='2.26', ts='5.30', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.87', time_epoch_completed='1630978034.12', return_code='0', job_id='161999', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.31e-08', ts2='5.39', photon_index='2.07' WHERE bin_id='1027' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:27:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 161999: <4FGL_J1303.0+2434_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1027 195.757 24.5821 505526401 505785601 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 :                                   645.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            706 sec.

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

