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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin16
RA = 203.323, Dec = 27.4221
tmin = 243475201, tmax = 243734401
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='764952', job_status='RUN', time_executed='2021-09-08 03:00:57.845087', time_epoch_executed='1631095257.85' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764952/ft1_4FGL_J1333.2+2725_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764952/ft1_4FGL_J1333.2+2725_daily_bin16.fits outfile=/scratch/kocevski/764952/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin16.fits ra=203.323 dec=27.4221 rad=12.0 tmin=243475201.0 tmax=243734401.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.44
user 1.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.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/764952/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin16.fits evtable="EVENTS" outfile="/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/764952/ltcube_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.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/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits
.....................!
real 14.35
user 13.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/764952/ltcube_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.fits outfile=/scratch/kocevski/764952/expmap_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.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/764952/ltcube_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.fits
.....................!
real 192.42
user 185.95
sys 5.85

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J1333.2+2725 @ 203.323 27.4221

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits scfile=/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits outfile=/scratch/kocevski/764952/cmap_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.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=203.323 yref=27.4221 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits scfile=/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits outfile=/scratch/kocevski/764952/cmap_HighResolution_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.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=203.323 yref=27.4221 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764952/Model_4FGL_J1333.2+2725_daily_bin16.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/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits.....................!
real 51.45
user 50.04
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits', '/scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits', expMap='/scratch/kocevski/764952/expmap_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.fits', expCube='/scratch/kocevski/764952/ltcube_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764952/Model_4FGL_J1333.2+2725_daily_bin16.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.2+2725'

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/764952/ft1_filtered_4FGL_J1333.2+2725_daily_bin16.fits
Spacecraft file(s): /scratch/kocevski/764952/ft2_4FGL_J1333.2+2725_daily_bin16.fits
Exposure map: /scratch/kocevski/764952/expmap_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.fits
Exposure cube: /scratch/kocevski/764952/ltcube_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764952/Model_4FGL_J1333.2+2725_daily_bin16.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) = 6121.30938101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4011       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9263       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4072       1.0000         .10000E-03   10000.    
     7 'norm      '    .71606       1.0000         .10000E-03   10000.    
     8 'norm      '    11.325       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8101       1.0000         .10000E-03   10000.    
    10 'norm      '    29.832       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6626       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7581       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66836E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9373       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1722       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77711       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6121.233     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2226 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.683        67.370       -.10608E-04   -.14472E-04
   2  Prefactor     4.3997        5.9434        .79235E-07    .33454E-04
   3  norm          .10000E-03    1.3006        .82307E-06** at limit **
   4  Prefactor     .10000E-03    9.2770        .69826E-06** at limit **
   5  norm          5.9263        3.7069       -.11599E-06    .14542E-04
   6  Prefactor     2.4085        10.907        .58020E-05   -.44219E-04
   7  norm          .71543        2.4678       -.25815E-07    .12689E-03
   8  norm          11.326        5.1309       -.22824E-05    .44557E-04
   9  norm          1.8095        6.5345        .12163E-04   -.10605E-03
  10  norm          29.831        22.629       -.12499E-06   -.15037E-04
  11  Prefactor     1.2239        2.1560        .11794E-06   -.48865E-04
  12  Prefactor     .10000E-03    3.0576       -.47348E-07** at limit **
  13  norm          .60994        7.2817        .11779E-05   -.63578E-04
  14  Prefactor     .10000E-03    13.138       -.59761E-06** at limit **
  15  norm          8.6617        10.152       -.49175E-06   -.10634E-03
  16  Prefactor     .10000E-03    13.496       -.59570E-07** at limit **
  17  Prefactor     2.8113        27.513       -.58915E-06   -.47703E-04
  18  Prefactor     .10000E-03    49.124       -.32371E-06** at limit **
  19  Prefactor     5.7578        4.6420        .56220E-08   -.25252E-04
  20  Prefactor     .10001E-03    7.7000        .22570E-05** at limit **
  21  Prefactor     2.9373        3.5442        .31130E-07   -.71500E-05
  22  Normalizat    1.1720        .16914       -.93608E-06    .97891E-04
  23  Prefactor     .77739        .17139        .25085E-05    .40310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6828
  Prefactor  = 4.3997
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.92626
  Prefactor  = 2.40851
  norm       = 0.715429
  norm       = 11.3265
  norm       = 1.80946
  norm       = 29.8306
  Prefactor  = 1.22388
  Prefactor  = 0.0001
  norm       = 0.609941
  Prefactor  = 0.0001
  norm       = 8.66174
  Prefactor  = 0.0001
  Prefactor  = 2.8113
  Prefactor  = 0.0001
  Prefactor  = 5.75784
  Prefactor  = 0.000100012
  Prefactor  = 2.93732
  Normalizat = 1.17201
  Prefactor  = 0.777387
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.233     FROM HESSE     STATUS=OK           378 CALLS     2604 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.683        67.397        .95408E-04   -1.4867    
   2  Prefactor     4.3997        5.9315        .19197E-03   -1.5288    
   3  norm          .10000E-03    1.3192        .87551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9263        3.7023        .11389E-03   -1.5221    
   6  Prefactor     2.4085        10.556        .13194E-02   -1.5398    
   7  norm          .71543        2.5393        .21453E-02   -1.5539    
   8  norm          11.326        5.1837        .89846E-04   -1.5035    
   9  norm          1.8095        6.6166        .14705E-02   -1.5439    
  10  norm          29.831        22.573        .73355E-04   -1.4615    
  11  Prefactor     1.2239        2.1034        .14485E-03   -1.5487    
  12  Prefactor     .10000E-03    3.0590        .13359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60994        6.6863        .35840E-03   -1.5552    
  14  Prefactor     .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6617        9.7121        .13619E-03   -1.5119    
  16  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8113        27.435        .24225E-03   -1.5373    
  18  Prefactor     .10000E-03    49.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7578        4.6489        .14267E-03   -1.5228    
  20  Prefactor     .10001E-03    35.631        .40704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9373        3.5371        .15683E-03   -1.5365    
  22  Normalizat    1.1720        .19578        .21616E-03   -.87472    
  23  Prefactor     .77739        .19872        .27610E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73792e-09
Minuit parameter uncertainties:
  1  67.6898
  2  5.93234
  3  6.12706e-05
  4  0.000136645
  5  3.70249
  6  10.0872
  7  2.53971
  8  5.1839
  9  6.61932
  10  22.579
  11  2.10356
  12  5.44197e-06
  13  4.03918
  14  1.04379e-05
  15  9.71391
  16  0.000150521
  17  17.5747
  18  0.000149892
  19  4.64921
  20  0.00128201
  21  3.53736
  22  0.195904
  23  0.198905
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.811e+00  1.757e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.774e-01  1.989e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.172e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764952/likelihoodResults_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.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) = 6121.23223223
delta logL = 0.000557172051231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6120.19698235
delta logL = 1.03580705496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8747       1.0000          .0000       10.000    
     3 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6120.197     FROM MIGRAD    STATUS=CONVERGED    256 CALLS      565 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25835E-02    .32263E-03** at limit **
   2  Index         8.8748        2.5241        .18638        .13880E-03
   3  Normalizat    1.0834        .42091E-01    .38713E-01   -.10166E-04
   4  Prefactor     .84445        .44152E-01    .44291E-01   -.42139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.87483
  Normalizat = 1.08339
  Prefactor  = 0.844452
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.197     FROM HESSE     STATUS=OK            35 CALLS      600 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12813E-02    .85043E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8748        .36599        .77362E-02    .88666    
   3  Normalizat    1.0834        .19450        .22340E-03   -.90287    
   4  Prefactor     .84445        .20351        .26604E-03   -.98110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37486e-11
Minuit parameter uncertainties:
  1  7.14786e-09
  2  0.366818
  3  0.194633
  4  0.203689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764952': 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) = 6120.19698062
delta logL = 1.03580878245

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.148e-09  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  8.875e+00  3.668e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.445e-01  2.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.083e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 203.323 27.422
Photon Index (Free Index): 8.87 +/- 0.37
Photon Flux (Free Index): 6.91e-08 +/- 5.29e-08
Energy Flux (Free Index): 7.87e-06 +/- 6.00e-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/764952/cmap_HighResolution_243475201_243734401_4FGL_J1333.2+2725_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', comment='SUCCESS', energy_flux2='7.87e-06', dlogl='1.04e+00', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-08 03:11:39.313454', photon_index_error2='0.37', photon_index2='8.87', ts='0.03', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='7.62e-08', energy_flux_error2='6.00e-06', EG='1.17', time_epoch_completed='1631095899.31', return_code='0', job_id='764952', GAL2='0.84', EG2='1.08', return_code2='0', photon_flux_error2='5.29e-08', ts2='2.28', photon_index='2.32' WHERE bin_id='16' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:11:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 764952: <4FGL_J1333.2+2725_daily_bin16> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin16> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:55:55 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:58:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:58:17 2021
Terminated at Wed Sep  8 03:11:40 2021
Results reported at Wed Sep  8 03:11:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin16 203.323 27.4221 243475201 243734401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.2+2725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            945 sec.

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

