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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1567
RA = 203.323, Dec = 27.4221
tmin = 645494401, tmax = 645753601
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='773765', job_status='RUN', time_executed='2021-09-08 03:24:32.446859', time_epoch_executed='1631096672.45' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773765

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773765/ft1_4FGL_J1333.2+2725_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773765/ft1_4FGL_J1333.2+2725_daily_bin1567.fits outfile=/scratch/kocevski/773765/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1567.fits ra=203.323 dec=27.4221 rad=12.0 tmin=645494401.0 tmax=645753601.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 2.56
user 2.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.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/773765/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1567.fits evtable="EVENTS" outfile="/scratch/kocevski/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.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/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/773765/ltcube_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.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/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits
.....................!
real 14.46
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/773765/ltcube_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.fits outfile=/scratch/kocevski/773765/expmap_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.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/773765/ltcube_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.fits
.....................!
real 191.10
user 185.97
sys 4.68

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/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.fits scfile=/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits outfile=/scratch/kocevski/773765/cmap_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.fits scfile=/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits outfile=/scratch/kocevski/773765/cmap_HighResolution_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.fits', '/scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits', expMap='/scratch/kocevski/773765/expmap_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.fits', expCube='/scratch/kocevski/773765/ltcube_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/773765/Model_4FGL_J1333.2+2725_daily_bin1567.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/773765/ft1_filtered_4FGL_J1333.2+2725_daily_bin1567.fits
Spacecraft file(s): /scratch/kocevski/773765/ft2_4FGL_J1333.2+2725_daily_bin1567.fits
Exposure map: /scratch/kocevski/773765/expmap_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.fits
Exposure cube: /scratch/kocevski/773765/ltcube_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/773765/Model_4FGL_J1333.2+2725_daily_bin1567.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) = 8283.61985427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7358       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6189       1.0000         .10000E-03   10000.    
     7 'norm      '    .12410E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.239       1.0000         .10000E-03   10000.    
     9 'norm      '    .11422E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1526       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7375       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.113       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.6110       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.463       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20806E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.774       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86822       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1690       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=   8283.589     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2184 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.678       -.24032E-04** at limit **
   2  Prefactor     .10000E-03    2.1417       -.84857E-10** at limit **
   3  norm          3.5405        3.9887       -.19866E-07   -.30752E-03
   4  Prefactor     .10000E-03    10.016       -.11890E-04** at limit **
   5  norm          3.7359        3.1484       -.41349E-06   -.17974E-03
   6  Prefactor     8.6366        15.505       -.11678E-04   -.57938E-04
   7  norm          .10000E-03    5.2568        .81113E-06** at limit **
   8  norm          25.247        6.1298       -.59548E-06   -.72879E-03
   9  norm          .10005E-03    6.8591        .77361E-06** at limit **
  10  norm          9.1525        11.437       -.98401E-07   -.36607E-05
  11  Prefactor     3.7389        3.6509        .50435E-06   -.65565E-03
  12  Prefactor     10.113        15.040       -.14203E-06   -.14989E-03
  13  norm          .10000E-03    1.9652        .10356E-07** at limit **
  14  Prefactor     .10000E-03    28.075        .25916E-04** at limit **
  15  norm          6.6113        7.6023       -.45947E-06   -.20482E-03
  16  Prefactor     12.462        13.712       -.56782E-07   -.56165E-04
  17  Prefactor     .10000E-03    7.4752        .83649E-06** at limit **
  18  Prefactor     .10000E-03    111.96       -.16146E-04** at limit **
  19  Prefactor     .10000E-03    1.2796       -.32504E-07** at limit **
  20  Prefactor     .10000E-03    10.459        .12653E-04** at limit **
  21  Prefactor     15.775        5.5487       -.19842E-06   -.57292E-04
  22  Normalizat    .86818        .15506        .15850E-05   -.22546E-03
  23  Prefactor     1.1689        .16139       -.16507E-06   -.14094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54051
  Prefactor  = 0.0001
  norm       = 3.73592
  Prefactor  = 8.6366
  norm       = 0.000100002
  norm       = 25.2466
  norm       = 0.000100054
  norm       = 9.15255
  Prefactor  = 3.73891
  Prefactor  = 10.1131
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.6113
  Prefactor  = 12.4624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7749
  Normalizat = 0.868175
  Prefactor  = 1.16893
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.589     FROM HESSE     STATUS=OK           368 CALLS     2552 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1565        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5405        3.9744        .18329E-03   -1.5332    
   4  Prefactor     .10000E-03    9.9698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7359        3.1500        .14214E-03   -1.5321    
   6  Prefactor     8.6366        15.456        .13654E-03   -1.5120    
   7  norm          .10000E-03    5.4698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.247        5.1591        .79737E-04   -1.4703    
   9  norm          .10005E-03    20.395        .38413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1525        11.432        .13248E-03   -1.5103    
  11  Prefactor     3.7389        3.5971        .14049E-03   -1.5321    
  12  Prefactor     10.113        14.880        .12600E-03   -1.5072    
  13  norm          .10000E-03    1.9703        .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6113        7.5954        .15607E-03   -1.5194    
  16  Prefactor     12.462        13.739        .11347E-03   -1.5002    
  17  Prefactor     .10000E-03    7.4870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    113.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2948        .10048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.775        5.5557        .10084E-03   -1.4913    
  22  Normalizat    .86818        .18350        .26323E-03   -.97588    
  23  Prefactor     1.1689        .19116        .25261E-03   -.87293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.325e-09
Minuit parameter uncertainties:
  1  1.79964e-05
  2  1.50481e-06
  3  3.97471
  4  6.0256e-05
  5  3.15018
  6  15.4631
  7  0.0002239
  8  5.15923
  9  0.00209748
  10  11.4344
  11  3.59734
  12  14.885
  13  7.74954e-08
  14  4.13839e-05
  15  7.59648
  16  13.742
  17  5.8609e-06
  18  0.00017843
  19  3.11462e-06
  20  0.000105898
  21  5.55585
  22  0.183628
  23  0.191269
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.861e-06  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:  1.169e+00  1.913e-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:  8.682e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/773765/likelihoodResults_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.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): 102
logL (Free Index) = 8283.59010923
delta logL = -0.000636059803583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8283.58947335
delta logL = -1.85274984688e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3147       1.0000          .0000       10.000    
     3 'Normalizat'    .86828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1688       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=   8283.589     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.165        .90712E-02** at limit **
   2  Index         2.3144        5.7024        .50000        .41514E-06
   3  Normalizat    .86818        .65455E-02    .44495E-01    .22541E-04
   4  Prefactor     1.1689        .72094E-02    .57128E-01    .73951E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31438
  Normalizat = 0.868176
  Prefactor  = 1.16893
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.589     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3144        8.8412        .50000       -.56702    
   3  Normalizat    .86818        .16642E-01    .26323E-03   -.97588    
   4  Prefactor     1.1689        .18328E-01    .25261E-03   -.87293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.32132e-09
Minuit parameter uncertainties:
  1  1.76783e-05
  2  679.817
  3  0.016642
  4  0.0183285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773765': 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): 102
logL (Free Index) = 8283.58947317
delta logL = 1.00044417195e-10

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.768e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.314e+00  6.798e+02  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:  1.169e+00  1.833e-02  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:  8.682e-01  1.664e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.323 27.422

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/773765/cmap_HighResolution_645494401_645753601_4FGL_J1333.2+2725_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-08 03:36:17.254026', job_id='773765', GAL2='1.17', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631097377.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.00e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1567' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:36:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 773765: <4FGL_J1333.2+2725_daily_bin1567> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1567> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:20:45 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:20:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:20:49 2021
Terminated at Wed Sep  8 03:36:18 2021
Results reported at Wed Sep  8 03:36:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1567 203.323 27.4221 645494401 645753601 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 :                                   702.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            933 sec.

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

