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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin971
RA = 203.323, Dec = 27.4221
tmin = 491011201, tmax = 491270401
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='771862', job_status='RUN', time_executed='2021-09-08 03:16:30.314641', time_epoch_executed='1631096190.31' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771862

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771862/ft1_4FGL_J1333.2+2725_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771862/ft2_4FGL_J1333.2+2725_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771862/ft1_4FGL_J1333.2+2725_daily_bin971.fits outfile=/scratch/kocevski/771862/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin971.fits ra=203.323 dec=27.4221 rad=12.0 tmin=491011201.0 tmax=491270401.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.59
user 3.38
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771862/ft1_filtered_4FGL_J1333.2+2725_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/771862/ft2_4FGL_J1333.2+2725_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/771862/ltcube_491011201_491270401_4FGL_J1333.2+2725_daily_bin971.fits outfile=/scratch/kocevski/771862/expmap_491011201_491270401_4FGL_J1333.2+2725_daily_bin971.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/771862/ltcube_491011201_491270401_4FGL_J1333.2+2725_daily_bin971.fits
.....................!
real 194.02
user 188.53
sys 5.04

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/771862/ft1_filtered_4FGL_J1333.2+2725_daily_bin971.fits scfile=/scratch/kocevski/771862/ft2_4FGL_J1333.2+2725_daily_bin971.fits outfile=/scratch/kocevski/771862/cmap_491011201_491270401_4FGL_J1333.2+2725_daily_bin971.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.59
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8368       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.907       1.0000         .10000E-03   10000.    
     5 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10454E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .75076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0691       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7654       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.4573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.959       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4969       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7103       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81365       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1960       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=   5447.003     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2531 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.127        .48497E-06** at limit **
   2  Prefactor     .10000E-03    1.8385        .42957E-07** at limit **
   3  norm          6.8364        4.9001       -.37893E-07   -.19750E-04
   4  Prefactor     27.922        27.334       -.11901E-05    .13289E-03
   5  norm          .10000E-03    2.3776        .14601E-06** at limit **
   6  Prefactor     .10000E-03    4.8667       -.23172E-07** at limit **
   7  norm          .10000E-03    3.0434       -.20357E-06** at limit **
   8  norm          .10000E-03    2.5194        .59493E-06** at limit **
   9  norm          .10000E-03    3.2195        .73803E-07** at limit **
  10  norm          .10000E-03    19.955       -.38261E-06** at limit **
  11  Prefactor     .75190        5.8255        .75689E-05   -.21228E-03
  12  Prefactor     3.0948        28.659       -.16095E-04   -.14173E-03
  13  norm          3.7651        8.2163        .34828E-06   -.12410E-03
  14  Prefactor     .10000E-03    53.687       -.72532E-06** at limit **
  15  norm          7.4607        9.8373       -.90180E-07   -.37135E-04
  16  Prefactor     .10000E-03    15.174        .44981E-06** at limit **
  17  Prefactor     7.7778        22.245        .51186E-06   -.97427E-05
  18  Prefactor     63.849        101.19       -.43812E-05   -.20434E-03
  19  Prefactor     6.3359        5.0510        .82498E-07   -.62992E-04
  20  Prefactor     2.4936        20.233        .14508E-05   -.67540E-04
  21  Prefactor     1.7108        4.4875        .66311E-06   -.32700E-03
  22  Normalizat    .81253        .19022        .10561E-05   -.28936E-03
  23  Prefactor     1.1971        .18956       -.18123E-05    .26385E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.8364
  Prefactor  = 27.9225
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.751896
  Prefactor  = 3.09477
  norm       = 3.76515
  Prefactor  = 0.0001
  norm       = 7.46068
  Prefactor  = 0.0001
  Prefactor  = 7.77783
  Prefactor  = 63.849
  Prefactor  = 6.33592
  Prefactor  = 2.49359
  Prefactor  = 1.71078
  Normalizat = 0.812528
  Prefactor  = 1.19709
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.003     FROM HESSE     STATUS=OK           368 CALLS     2899 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8402        .97729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8364        4.8906        .12724E-03   -1.5185    
   4  Prefactor     27.922        27.149        .75837E-04   -1.4651    
   5  norm          .10000E-03    2.4191        .11106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8687        .15901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1104        .12569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8115        .21962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2406        .12912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    20.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75190        5.9904        .25902E-03   -1.5535    
  12  Prefactor     3.0948        29.220        .23154E-03   -1.5356    
  13  norm          3.7651        8.0881        .20805E-03   -1.5320    
  14  Prefactor     .10000E-03    53.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4607        9.7049        .14686E-03   -1.5162    
  16  Prefactor     .10000E-03    15.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7778        22.231        .14379E-03   -1.5150    
  18  Prefactor     63.849        101.48        .25089E-03   -1.4108    
  19  Prefactor     6.3359        5.0735        .13857E-03   -1.5204    
  20  Prefactor     2.4936        20.072        .25864E-03   -1.5392    
  21  Prefactor     1.7108        4.4658        .24201E-03   -1.5446    
  22  Normalizat    .81253        .22173        .25829E-03   -.99606    
  23  Prefactor     1.1971        .22113        .23371E-03   -.86421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87722e-09
Minuit parameter uncertainties:
  1  0.000168608
  2  1.30548e-06
  3  4.89087
  4  27.1609
  5  1.05693e-05
  6  5.72165e-06
  7  2.92163e-05
  8  0.000296914
  9  1.47365e-05
  10  0.000196537
  11  4.24489
  12  19.0309
  13  8.0904
  14  4.06049e-05
  15  9.7069
  16  5.44322e-07
  17  22.2549
  18  101.76
  19  5.07385
  20  14.1557
  21  4.46672
  22  0.221979
  23  0.221297
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  7.778e+00  2.225e+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.197e+00  2.213e-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.125e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771862/likelihoodResults_491011201_491270401_4FGL_J1333.2+2725_daily_bin971.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) = 5446.99863607
delta logL = 0.00416637318449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5446.99773751
delta logL = 0.00506493361081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8098       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1867       1.0000          .0000       10.000    
     3 'Normalizat'    .81397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1957       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=   5446.998     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7943        25.946        .13504E-03   -.25424E-04
   2  Index         2.1873        1.2365        .15228E-01    .72841E-05
   3  Normalizat    .81393        .20067        .25808E-03   -.27841E-04
   4  Prefactor     1.1957        .21665        .23383E-03    .26692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.79428
  Index      = 2.18733
  Normalizat = 0.813931
  Prefactor  = 1.19572
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.998     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7943        25.107        .54017E-05   -1.5115    
   2  Index         2.1873        1.1982        .60913E-03   -.59745    
   3  Normalizat    .81393        .20081        .10323E-04   -.99554    
   4  Prefactor     1.1957        .21673        .93531E-05   -.86463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18662e-11
Minuit parameter uncertainties:
  1  25.137
  2  1.21567
  3  0.200995
  4  0.216887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771862': 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) = 5446.99773721
delta logL = 0.00506523338026

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  8.794e+00  2.514e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.187e+00  1.216e+00  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.196e+00  2.169e-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.139e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/771862/cmap_HighResolution_491011201_491270401_4FGL_J1333.2+2725_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.13e-08', time_completed='2021-09-08 03:26:27.550120', job_id='771862', GAL2='1.20', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631096787.55', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='5.07e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='971' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:26:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 771862: <4FGL_J1333.2+2725_daily_bin971> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin971> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:29 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:16:12 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:16:12 2021
Terminated at Wed Sep  8 03:26:28 2021
Results reported at Wed Sep  8 03:26:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin971 203.323 27.4221 491011201 491270401 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 :                                   595.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            659 sec.

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

