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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1164
RA = 203.323, Dec = 27.4221
tmin = 541036801, tmax = 541296001
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='772144', job_status='RUN', time_executed='2021-09-08 03:20:15.190222', time_epoch_executed='1631096415.19' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772144/ft1_4FGL_J1333.2+2725_daily_bin1164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772144/ft1_4FGL_J1333.2+2725_daily_bin1164.fits outfile=/scratch/kocevski/772144/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1164.fits ra=203.323 dec=27.4221 rad=12.0 tmin=541036801.0 tmax=541296001.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.19
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.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/772144/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1164.fits evtable="EVENTS" outfile="/scratch/kocevski/772144/ft1_filtered_4FGL_J1333.2+2725_daily_bin1164.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772144/ft1_filtered_4FGL_J1333.2+2725_daily_bin1164.fits" evtable="EVENTS" scfile=/scratch/kocevski/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.fits sctable="SC_DATA" outfile=/scratch/kocevski/772144/ltcube_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.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/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.fits
.....................!
real 12.31
user 11.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772144/ft1_filtered_4FGL_J1333.2+2725_daily_bin1164.fits evtable="EVENTS" scfile=/scratch/kocevski/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.fits sctable="SC_DATA" expcube=/scratch/kocevski/772144/ltcube_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.fits outfile=/scratch/kocevski/772144/expmap_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.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/772144/ltcube_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.fits
.....................!
real 158.62
user 152.71
sys 4.84

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/772144/ft1_filtered_4FGL_J1333.2+2725_daily_bin1164.fits scfile=/scratch/kocevski/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.fits outfile=/scratch/kocevski/772144/cmap_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772144/ft1_filtered_4FGL_J1333.2+2725_daily_bin1164.fits scfile=/scratch/kocevski/772144/ft2_4FGL_J1333.2+2725_daily_bin1164.fits outfile=/scratch/kocevski/772144/cmap_HighResolution_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.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.49
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.7332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6342       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7134       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2274       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8497       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .59234E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19443E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.219       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99271       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=   6605.563     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2247 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.596        57.026       -.22593E-06   -.95176E-05
   2  Prefactor     .10000E-03    1.3621        .51237E-08** at limit **
   3  norm          7.7316        5.1281        .18198E-05   -.40422E-03
   4  Prefactor     .10000E-03    12.210       -.55391E-06** at limit **
   5  norm          7.6339        4.0906       -.12042E-06   -.21263E-04
   6  Prefactor     4.7150        28.405        .20814E-04   -.21127E-03
   7  norm          4.2285        4.2713       -.36687E-06   -.21314E-03
   8  norm          5.8531        5.1288       -.43221E-05    .12663E-03
   9  norm          .10000E-03    2.7666        .31101E-06** at limit **
  10  norm          .10000E-03    14.402        .38783E-06** at limit **
  11  Prefactor     .10000E-03    2.9606        .29064E-06** at limit **
  12  Prefactor     .10000E-03    7.8586       -.23904E-06** at limit **
  13  norm          .10000E-03    5.2756        .30406E-06** at limit **
  14  Prefactor     .10000E-03    22.801       -.16445E-06** at limit **
  15  norm          8.9300        7.8069       -.13594E-05   -.19304E-02
  16  Prefactor     .10034E-03    10.195        .12039E-05** at limit **
  17  Prefactor     .10000E-03    5.9174       -.20884E-06** at limit **
  18  Prefactor     .10001E-03    989.47       -.22857E-04** at limit **
  19  Prefactor     .10000E-03    1.6745        .17202E-08** at limit **
  20  Prefactor     .10000E-03    8.7663        .46591E-06** at limit **
  21  Prefactor     25.220        7.7829       -.29780E-07   -.16056E-04
  22  Normalizat    1.1530        .17822        .64586E-06   -.16332E-03
  23  Prefactor     .99254        .17864       -.27405E-06   -.77067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5955
  Prefactor  = 0.0001
  norm       = 7.73156
  Prefactor  = 0.0001
  norm       = 7.63395
  Prefactor  = 4.71504
  norm       = 4.22848
  norm       = 5.85307
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.93
  Prefactor  = 0.00010034
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2199
  Normalizat = 1.15297
  Prefactor  = 0.992543
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.563     FROM HESSE     STATUS=OK           372 CALLS     2619 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.596        56.980        .10142E-03   -1.4918    
   2  Prefactor     .10000E-03    1.3631        .92636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.7316        5.1030        .13887E-03   -1.5152    
   4  Prefactor     .10000E-03    12.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6339        4.0916        .11620E-03   -1.5155    
   6  Prefactor     4.7150        26.969        .18535E-03   -1.5274    
   7  norm          4.2285        4.2546        .15856E-03   -1.5297    
   8  norm          5.8531        5.1914        .15857E-03   -1.5224    
   9  norm          .10000E-03    2.7763        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0405        .27220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9300        8.1657        .67051E-03   -1.5110    
  16  Prefactor     .10034E-03    14.891        .79863E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.9205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    1003.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6846        .10266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.220        7.7989        .79769E-04   -1.4703    
  22  Normalizat    1.1530        .21279        .24268E-03   -.88069    
  23  Prefactor     .99254        .21199        .27032E-03   -.92979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55595e-09
Minuit parameter uncertainties:
  1  57.1797
  2  1.18975e-07
  3  5.10328
  4  4.5403e-05
  5  4.0917
  6  22.5682
  7  4.25493
  8  5.19181
  9  4.86955e-05
  10  1.47876e-06
  11  4.72385e-05
  12  9.55759e-05
  13  3.0428e-05
  14  1.49178e-05
  15  8.16675
  16  0.00450108
  17  6.3425e-06
  18  0.00556804
  19  8.50504e-07
  20  1.66885e-05
  21  7.79918
  22  0.212946
  23  0.212166
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.343e-06  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.925e-01  2.122e-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.153e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/772144/likelihoodResults_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.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) = 6605.56368019
delta logL = -0.000800869337581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.56287929
delta logL = 3.13357304549e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2965       1.0000          .0000       10.000    
     3 'Normalizat'    1.1530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99248       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=   6605.563     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    78.466        .18142E-02** at limit **
   2  Index         2.2218        7.6301        .50000        .21001E-04
   3  Normalizat    1.1530        .15515E-01    .24268E-03    .20284E-04
   4  Prefactor     .99254        .16254E-01    .27032E-03    .11565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101871
  Index      = 2.22183
  Normalizat = 1.15297
  Prefactor  = 0.992542
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.563     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    321.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2218        6.8602        .50000       -.58912    
   3  Normalizat    1.1530        .33015E-01    .97073E-05   -.88069    
   4  Prefactor     .99254        .34587E-01    .10813E-04   -.92979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40295e-08
Minuit parameter uncertainties:
  1  0.0492963
  2  768.881
  3  0.033016
  4  0.0345878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772144': 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) = 6605.56287894
delta logL = 3.81372956326e-07

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.019e-04  4.930e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.222e+00  7.689e+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.925e-01  3.459e-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.153e+00  3.302e-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/772144/cmap_HighResolution_541036801_541296001_4FGL_J1333.2+2725_daily_bin1164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-03', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2021-09-08 03:30:25.831233', job_id='772144', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631097025.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1164' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:30:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 772144: <4FGL_J1333.2+2725_daily_bin1164> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1164 203.323 27.4221 541036801 541296001 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 :                                   523.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            880 sec.

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

