/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 125 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_bin1128
RA = 203.323, Dec = 27.4221
tmin = 531705601, tmax = 531964801
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='772087', job_status='RUN', time_executed='2021-09-08 03:19:59.664481', time_epoch_executed='1631096399.66' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772087/ft1_4FGL_J1333.2+2725_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772087/ft1_4FGL_J1333.2+2725_daily_bin1128.fits outfile=/scratch/kocevski/772087/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1128.fits ra=203.323 dec=27.4221 rad=12.0 tmin=531705601.0 tmax=531964801.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.29
user 3.06
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.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/772087/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1128.fits evtable="EVENTS" outfile="/scratch/kocevski/772087/ft1_filtered_4FGL_J1333.2+2725_daily_bin1128.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.48
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772087/ft1_filtered_4FGL_J1333.2+2725_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/772087/ltcube_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.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/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.fits
.....................!
real 10.85
user 10.54
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772087/ft1_filtered_4FGL_J1333.2+2725_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/772087/ltcube_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.fits outfile=/scratch/kocevski/772087/expmap_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.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/772087/ltcube_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.fits
.....................!
real 153.79
user 149.88
sys 3.58

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/772087/ft1_filtered_4FGL_J1333.2+2725_daily_bin1128.fits scfile=/scratch/kocevski/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.fits outfile=/scratch/kocevski/772087/cmap_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772087/ft1_filtered_4FGL_J1333.2+2725_daily_bin1128.fits scfile=/scratch/kocevski/772087/ft2_4FGL_J1333.2+2725_daily_bin1128.fits outfile=/scratch/kocevski/772087/cmap_HighResolution_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.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.50
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9833       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.400       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7763       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5375       1.0000         .10000E-03   10000.    
    13 'norm      '    11.234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.845       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8112       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23121E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    104.87       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12708E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3680       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0302       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1181       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6138.879     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     2463 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.082       -.12533E-04** at limit **
   2  Prefactor     7.9817        1.0777       -.97945E-06    .93848E-05
   3  norm          .10000E-03    2.4709       -.10838E-06** at limit **
   4  Prefactor     12.413        4.1366       -.83487E-05    .12750E-02
   5  norm          .10000E-03    2.4904        .69368E-06** at limit **
   6  Prefactor     6.7781        1.0121        .77235E-07    .43112E-04
   7  norm          .10000E-03    1.4257       -.12177E-06** at limit **
   8  norm          .10000E-03    1.0223        .14247E-07** at limit **
   9  norm          .10000E-03    1.3699       -.24005E-06** at limit **
  10  norm          .10000E-03    17.557        .90997E-05** at limit **
  11  Prefactor     1.5577        3.7335        .11685E-04    .91087E-03
  12  Prefactor     3.5742        17.625       -.61161E-04    .22427E-03
  13  norm          11.234        1.6361       -.28040E-05   -.38734E-02
  14  Prefactor     37.843        1.2145       -.75016E-06    .60791E-03
  15  norm          2.8115        1.5497       -.51821E-05   -.16955E-02
  16  Prefactor     .10001E-03    11.440       -.13712E-04** at limit **
  17  Prefactor     .10001E-03    185.52       -.15761E-04** at limit **
  18  Prefactor     104.87        1.0043        .64293E-07   -.54779E-04
  19  Prefactor     .10000E-03    11.177        .83715E-05** at limit **
  20  Prefactor     .10002E-03    2.6101       -.77539E-05** at limit **
  21  Prefactor     8.3695        5.8502        .17207E-05   -.42384E-03
  22  Normalizat    1.0298        .21108        .62032E-05   -.28088E-03
  23  Prefactor     1.1183        .21657       -.27401E-05   -.18889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.98168
  norm       = 0.0001
  Prefactor  = 12.4126
  norm       = 0.0001
  Prefactor  = 6.77808
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.55766
  Prefactor  = 3.57423
  norm       = 11.2342
  Prefactor  = 37.8425
  norm       = 2.81151
  Prefactor  = 0.000100006
  Prefactor  = 0.000100013
  Prefactor  = 104.866
  Prefactor  = 0.000100001
  Prefactor  = 0.000100023
  Prefactor  = 8.36952
  Normalizat = 1.0298
  Prefactor  = 1.11832
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.879     FROM HESSE     STATUS=OK           434 CALLS     2897 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9817        9.3984        .35477E-02   -1.5143    
   3  norm          .10000E-03    2.4376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.413        19.409        .28438E-02   -1.5003    
   5  norm          .10000E-03    2.4530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7781        9.1905        .38534E-02   -1.5187    
   7  norm          .10000E-03    1.4216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.545        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5577        4.0393        .85034E-02   -1.5458    
  12  Prefactor     3.5742        21.150        .53729E-02   -1.5330    
  13  norm          11.234        8.1002        .29882E-02   -1.5037    
  14  Prefactor     37.843        39.133        .16288E-02   -1.4477    
  15  norm          2.8115        8.7022        .60651E-02   -1.5373    
  16  Prefactor     .10001E-03    11.585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    18.006        .11199       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     104.87        118.82        .98170E-03   -1.3656    
  19  Prefactor     .10000E-03    1.7954        .55190E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    5.7142        .10298       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3695        5.9110        .34646E-02   -1.5129    
  22  Normalizat    1.0298        .18676        .42142E-01   -.92039    
  23  Prefactor     1.1183        .18502        .57637E-01   -.88883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59978e-08
Minuit parameter uncertainties:
  1  0.000138959
  2  9.40013
  3  6.11554e-07
  4  19.4187
  5  1.17788e-05
  6  9.19245
  7  5.28482e-06
  8  1.22101e-06
  9  4.84845e-06
  10  7.53359e-05
  11  4.04002
  12  17.3983
  13  8.10101
  14  39.16
  15  8.7061
  16  0.00051906
  17  0.000954988
  18  119.092
  19  7.11367e-05
  20  0.000729483
  21  5.9114
  22  0.186879
  23  0.18513
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.550e-04  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.118e+00  1.851e-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.030e+00  1.869e-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: 7.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772087/likelihoodResults_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.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) = 6138.87905453
delta logL = -2.55955992543e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6138.87905453
delta logL = -2.5591280064e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96348E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3151       1.0000          .0000       10.000    
     3 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1183       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=   6138.433     FROM MIGRAD    STATUS=CONVERGED    227 CALLS      397 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11659E-02    .15858E-04** at limit **
   2  Index         8.5588        .59337        .10699E-01    .20662E-04
   3  Normalizat    .98835        .20660        .25470E-03    .12868E-03
   4  Prefactor     1.1484        .21727        .25202E-03    .32434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.55878
  Normalizat = 0.988348
  Prefactor  = 1.1484
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.433     FROM HESSE     STATUS=OK            25 CALLS      422 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11519E-02    .63432E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5588        .57654        .42796E-03    .79200    
   3  Normalizat    .98835        .20668        .10188E-04   -.93422    
   4  Prefactor     1.1484        .21744        .10081E-04   -.87934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40499e-11
Minuit parameter uncertainties:
  1  1.14908e-08
  2  0.579158
  3  0.206847
  4  0.217608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772087': 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) = 6138.43324836
delta logL = 0.445780574919

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.149e-08  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  8.559e+00  5.792e-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.148e+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:  9.883e-01  2.068e-01  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/772087/cmap_HighResolution_531705601_531964801_4FGL_J1333.2+2725_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-08 03:29:56.313167', job_id='772087', GAL2='1.15', fit_tolerance='1e-08', EG2='0.99', EG='1.03', time_epoch_completed='1631096996.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.46e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1128' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 772087: <4FGL_J1333.2+2725_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1128 203.323 27.4221 531705601 531964801 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 :                                   517.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            855 sec.

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

