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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1052
RA = 203.323, Dec = 27.4221
tmin = 512006401, tmax = 512265601
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='771976', job_status='RUN', time_executed='2021-09-08 03:20:15.285740', time_epoch_executed='1631096415.29' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771976/ft1_4FGL_J1333.2+2725_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771976/ft1_4FGL_J1333.2+2725_daily_bin1052.fits outfile=/scratch/kocevski/771976/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1052.fits ra=203.323 dec=27.4221 rad=12.0 tmin=512006401.0 tmax=512265601.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.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.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/771976/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/771976/ft1_filtered_4FGL_J1333.2+2725_daily_bin1052.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771976/ft1_filtered_4FGL_J1333.2+2725_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/771976/ltcube_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.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/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.fits
.....................!
real 15.96
user 15.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771976/ft1_filtered_4FGL_J1333.2+2725_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/771976/ltcube_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.fits outfile=/scratch/kocevski/771976/expmap_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.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/771976/ltcube_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.fits
.....................!
real 192.58
user 187.50
sys 4.39

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/771976/ft1_filtered_4FGL_J1333.2+2725_daily_bin1052.fits scfile=/scratch/kocevski/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.fits outfile=/scratch/kocevski/771976/cmap_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.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/771976/ft1_filtered_4FGL_J1333.2+2725_daily_bin1052.fits scfile=/scratch/kocevski/771976/ft2_4FGL_J1333.2+2725_daily_bin1052.fits outfile=/scratch/kocevski/771976/cmap_HighResolution_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    5.0854       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5238       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.493       1.0000         .10000E-03   10000.    
     5 'norm      '    .13264E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8472       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1726       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4222       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.541       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.153       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79484       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1666       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=   5402.399     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2504 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.815        .25996E-05** at limit **
   2  Prefactor     5.0855        5.7342        .17663E-05    .70359E-04
   3  norm          1.5230        3.4249        .30900E-06   -.14905E-03
   4  Prefactor     10.492        11.012       -.15854E-06   -.28656E-04
   5  norm          .10006E-03    1.7857       -.10308E-05** at limit **
   6  Prefactor     7.8471        12.102        .91064E-07   -.11482E-04
   7  norm          .10000E-03    1.4909       -.25775E-07** at limit **
   8  norm          1.1768        3.3572        .83089E-06    .54836E-04
   9  norm          .10000E-03    3.5539       -.25840E-07** at limit **
  10  norm          .10000E-03    5.4338       -.22434E-06** at limit **
  11  Prefactor     3.4236        3.6585        .19350E-06   -.13777E-03
  12  Prefactor     18.529        16.991       -.12981E-05   -.35055E-03
  13  norm          .10000E-03    1.8911       -.13698E-07** at limit **
  14  Prefactor     .10000E-03    22.970       -.23862E-05** at limit **
  15  norm          15.022        8.5725        .37167E-06    .24271E-04
  16  Prefactor     .10000E-03    6.9783        .47192E-06** at limit **
  17  Prefactor     10.452        19.271       -.86472E-06   -.12409E-03
  18  Prefactor     32.148        43.884       -.75732E-06   -.55225E-04
  19  Prefactor     .10000E-03    1.8070        .12055E-06** at limit **
  20  Prefactor     15.208        14.056        .10509E-05   -.60437E-05
  21  Prefactor     .10000E-03    1.8043       -.53340E-07** at limit **
  22  Normalizat    .79484        .16914        .24825E-06    .33425E-04
  23  Prefactor     1.1666        .18490       -.79227E-06    .10908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 5.08552
  norm       = 1.52298
  Prefactor  = 10.4919
  norm       = 0.000100059
  Prefactor  = 7.84715
  norm       = 0.0001
  norm       = 1.17683
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.42364
  Prefactor  = 18.5292
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 15.0215
  Prefactor  = 0.0001
  Prefactor  = 10.4523
  Prefactor  = 32.1483
  Prefactor  = 0.0001
  Prefactor  = 15.2077
  Prefactor  = 0.0001
  Normalizat = 0.794845
  Prefactor  = 1.16656
 **********
 **   18 **HESSE 
 **********

 FCN=   5402.399     FROM HESSE     STATUS=OK           370 CALLS     2874 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0855        5.8737        .89148E-03   -1.5257    
   3  norm          1.5230        3.4029        .19493E-03   -1.5461    
   4  Prefactor     10.492        11.001        .12369E-03   -1.5060    
   5  norm          .10006E-03    9.8632        .17566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8471        12.093        .14314E-03   -1.5148    
   7  norm          .10000E-03    1.4971        .87623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1768        3.2969        .20598E-03   -1.5491    
   9  norm          .10000E-03    3.5599        .13461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.4415        .16742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4236        3.6303        .12117E-03   -1.5338    
  12  Prefactor     18.529        17.217        .93015E-04   -1.4847    
  13  norm          .10000E-03    1.8958        .98663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.022        8.5919        .51668E-03   -1.4933    
  16  Prefactor     .10000E-03    7.0526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.452        19.480        .12389E-03   -1.5061    
  18  Prefactor     32.148        44.003        .70665E-04   -1.4573    
  19  Prefactor     .10000E-03    1.8243        .96475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.208        14.150        .51354E-03   -1.4928    
  21  Prefactor     .10000E-03    1.8170        .96427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79484        .19856        .24661E-03   -1.0026    
  23  Prefactor     1.1666        .21740        .23194E-03   -.87367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39374e-09
Minuit parameter uncertainties:
  1  0.000450447
  2  5.87439
  3  3.40331
  4  11.003
  5  0.00152962
  6  12.097
  7  9.86688e-07
  8  3.29739
  9  1.15717e-05
  10  1.98111e-05
  11  3.6305
  12  17.2216
  13  1.29613e-06
  14  0.000416723
  15  8.59262
  16  6.99223e-05
  17  19.4918
  18  44.0478
  19  6.24071e-06
  20  14.1529
  21  4.46231e-06
  22  0.198746
  23  0.217565
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.045e+01  1.949e+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:  1.167e+00  2.176e-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:  7.948e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771976/likelihoodResults_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.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) = 5400.02034063
delta logL = 2.37861951787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5399.58091526
delta logL = 2.8180448891

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 'Index     '    8.9436       1.0000          .0000       10.000    
     3 'Normalizat'    .69752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2473       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=   5399.581     FROM MIGRAD    STATUS=CONVERGED    228 CALLS      550 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .37969E-02    .26069E-03** at limit **
   2  Index         8.9439        2.5043        .13660        .13806E-03
   3  Normalizat    .69708        .57450E-01    .42257E-01    .17124E-03
   4  Prefactor     1.2478        .64216E-01    .50958E-01    .13464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.94388
  Normalizat = 0.697082
  Prefactor  = 1.2478
 **********
 **   18 **HESSE 
 **********

 FCN=   5399.581     FROM HESSE     STATUS=OK            31 CALLS      581 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .79558E-03    .77964E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9439        .26958        .60223E-03    .90882    
   3  Normalizat    .69708        .19604        .26104E-03   -1.0401    
   4  Prefactor     1.2478        .21877        .22528E-03   -.84873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32759e-11
Minuit parameter uncertainties:
  1  8.3014e-09
  2  0.269924
  3  0.19624
  4  0.218927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771976': 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) = 5399.58090694
delta logL = 2.81805320654

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.301e-09  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  8.944e+00  2.699e-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:  1.248e+00  2.189e-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:  6.971e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 203.323 27.422
Photon Index (Free Index): 8.94 +/- 0.27
Photon Flux (Free Index): 8.01e-08 +/- 4.51e-08
Energy Flux (Free Index): 9.12e-06 +/- 5.12e-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/771976/cmap_HighResolution_512006401_512265601_4FGL_J1333.2+2725_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', comment='SUCCESS', energy_flux2='9.12e-06', dlogl='2.82e+00', photon_flux2='8.01e-08', job_status='DONE', time_completed='2021-09-08 03:31:59.866859', photon_index_error2='0.27', photon_index2='8.94', ts='0.35', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.16e-08', energy_flux_error2='5.12e-06', EG='0.79', time_epoch_completed='1631097119.87', return_code='0', job_id='771976', GAL2='1.25', EG2='0.70', return_code2='0', photon_flux_error2='4.51e-08', ts2='6.28', photon_index='2.32' WHERE bin_id='1052' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 771976: <4FGL_J1333.2+2725_daily_bin1052> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1052> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:36 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:17:11 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:17:11 2021
Terminated at Wed Sep  8 03:32:00 2021
Results reported at Wed Sep  8 03:32:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1052 203.323 27.4221 512006401 512265601 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 :                                   613.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            984 sec.

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

