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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1527
RA = 203.323, Dec = 27.4221
tmin = 635126401, tmax = 635385601
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='773704', job_status='RUN', time_executed='2021-09-08 03:21:01.713635', time_epoch_executed='1631096461.71' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773704/ft1_4FGL_J1333.2+2725_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773704/ft1_4FGL_J1333.2+2725_daily_bin1527.fits outfile=/scratch/kocevski/773704/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1527.fits ra=203.323 dec=27.4221 rad=12.0 tmin=635126401.0 tmax=635385601.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.01
user 2.75
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.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/773704/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1527.fits evtable="EVENTS" outfile="/scratch/kocevski/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.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.59
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/773704/ltcube_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.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/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits
.....................!
real 15.87
user 15.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/773704/ltcube_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.fits outfile=/scratch/kocevski/773704/expmap_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.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/773704/ltcube_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.fits
.....................!
real 192.09
user 186.79
sys 4.72

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/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.fits scfile=/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits outfile=/scratch/kocevski/773704/cmap_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.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.54
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.fits scfile=/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits outfile=/scratch/kocevski/773704/cmap_HighResolution_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.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/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/773704/ft2_4FGL_J1333.2+2725_daily_bin1527.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/773704/Model_4FGL_J1333.2+2725_daily_bin1527.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/773704/ft1_filtered_4FGL_J1333.2+2725_daily_bin1527.fits.....................!
real 47.74
user 46.34
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12553E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7631       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2310       1.0000         .10000E-03   10000.    
     8 'norm      '    8.9001       1.0000         .10000E-03   10000.    
     9 'norm      '    16.909       1.0000         .10000E-03   10000.    
    10 'norm      '    10.145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .82659       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1978       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .30184E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1620       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38364E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.951       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2682       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96627       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=   5697.859     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2970 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.173        .16159E-06** at limit **
   2  Prefactor     .10187E-03    7.6646       -.93887E-06** at limit **
   3  norm          7.1898        6.0366       -.22534E-06    .15001E-05
   4  Prefactor     .10000E-03    67.787       -.98280E-06** at limit **
   5  norm          .10000E-03    1.3018       -.17973E-09** at limit **
   6  Prefactor     9.8232        27.502       -.12244E-04   -.73572E-04
   7  norm          3.2292        5.5891        .94106E-06   -.27067E-03
   8  norm          8.9104        8.5458        .24215E-06    .18638E-03
   9  norm          16.903        13.177        .36247E-06    .17173E-03
  10  norm          10.144        13.819        .82692E-07   -.13653E-05
  11  Prefactor     2.5581        3.3796        .24545E-06    .14092E-03
  12  Prefactor     .83049        11.398       -.15486E-05    .12260E-03
  13  norm          6.1922        5.4739       -.85639E-07   -.12646E-03
  14  Prefactor     .10000E-03    17.721       -.27736E-05** at limit **
  15  norm          .10004E-03    6.4162        .98918E-06** at limit **
  16  Prefactor     .10000E-03    7.3095       -.42269E-07** at limit **
  17  Prefactor     .10000E-03    17.259        .21466E-05** at limit **
  18  Prefactor     .10000E-03    249.97        .45321E-05** at limit **
  19  Prefactor     2.1627        2.8954       -.23148E-06   -.38585E-03
  20  Prefactor     .10820E-03    9.8253       -.18032E-05** at limit **
  21  Prefactor     25.956        7.2279       -.33128E-07    .27688E-04
  22  Normalizat    1.2671        .20085        .14433E-05    .27436E-03
  23  Prefactor     .96722        .20365       -.48361E-06    .29626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101871
  norm       = 7.18975
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.82322
  norm       = 3.22919
  norm       = 8.91042
  norm       = 16.9026
  norm       = 10.144
  Prefactor  = 2.55811
  Prefactor  = 0.830489
  norm       = 6.19218
  Prefactor  = 0.0001
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16271
  Prefactor  = 0.000108196
  Prefactor  = 25.9564
  Normalizat = 1.26715
  Prefactor  = 0.967223
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.859     FROM HESSE     STATUS=OK           392 CALLS     3362 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10187E-03    9.2762        .64988E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1898        6.0298        .14965E-03   -1.5172    
   4  Prefactor     .10000E-03    68.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3039        .84101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8232        27.224        .12825E-03   -1.5081    
   7  norm          3.2292        5.4862        .21410E-03   -1.5349    
   8  norm          8.9104        8.5580        .13435E-03   -1.5111    
   9  norm          16.903        13.308        .97399E-04   -1.4885    
  10  norm          10.144        13.815        .12580E-03   -1.5071    
  11  Prefactor     2.5581        3.3467        .14608E-03   -1.5388    
  12  Prefactor     .83049        73.234        .43756E-02   -1.5526    
  13  norm          6.1922        5.3860        .15827E-03   -1.5210    
  14  Prefactor     .10000E-03    17.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10004E-03    27.200        .35723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    253.07        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1627        2.8916        .14380E-03   -1.5414    
  20  Prefactor     .10820E-03    22.332        .63120E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.956        7.2441        .78637E-04   -1.4689    
  22  Normalizat    1.2671        .23794        .24215E-03   -.84552    
  23  Prefactor     .96722        .24012        .28742E-03   -.93830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40844e-09
Minuit parameter uncertainties:
  1  1.02984e-05
  2  0.00833331
  3  6.03028
  4  0.000256048
  5  4.43662e-07
  6  27.258
  7  5.48705
  8  8.55918
  9  13.3105
  10  13.8197
  11  3.34699
  12  15.6163
  13  5.3864
  14  5.06707e-05
  15  0.00203339
  16  3.83172e-06
  17  2.67785e-05
  18  0.000200775
  19  2.89176
  20  0.0270677
  21  7.24435
  22  0.23814
  23  0.240389
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.678e-05  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:  9.672e-01  2.404e-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.267e+00  2.381e-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: 6.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773704/likelihoodResults_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.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) = 5697.85950504
delta logL = -0.000275029946351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5697.85923172
delta logL = -1.70952807821e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6879       1.0000          .0000       10.000    
     3 'Normalizat'    1.2671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96722       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5697.859     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      282 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10487E-03    6.4377        .18142E-01** at limit **
   2  Index         2.5814        6.0769        .50000        .23858E-04
   3  Normalizat    1.2671        .35330E-02    .24215E-03    .56808E-04
   4  Prefactor     .96722        .37413E-02    .28743E-03   -.23732E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104866
  Index      = 2.58135
  Normalizat = 1.26715
  Prefactor  = 0.96722
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.859     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10487E-03    320.10        .51488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5814        8.7033        .50000       -.50491    
   3  Normalizat    1.2671        .25358E-01    .96860E-05   -.84552    
   4  Prefactor     .96722        .26853E-01    .11497E-04   -.93830    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9699e-08
Minuit parameter uncertainties:
  1  0.0793646
  2  596.128
  3  0.0253581
  4  0.0268531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773704': 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) = 5697.8592313
delta logL = -1.29154886963e-06

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.049e-04  7.936e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.581e+00  5.961e+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:  9.672e-01  2.685e-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:  1.267e+00  2.536e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/773704/cmap_HighResolution_635126401_635385601_4FGL_J1333.2+2725_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2021-09-08 03:32:08.868076', job_id='773704', GAL2='0.97', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631097128.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1527' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:32:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 773704: <4FGL_J1333.2+2725_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1527> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:20:41 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:20:44 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:44 2021
Terminated at Wed Sep  8 03:32:09 2021
Results reported at Wed Sep  8 03:32:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1527 203.323 27.4221 635126401 635385601 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 :                                   649.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            688 sec.

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

