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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1033
RA = 203.323, Dec = 27.4221
tmin = 507081601, tmax = 507340801
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='771949', job_status='RUN', time_executed='2021-09-08 03:19:22.529654', time_epoch_executed='1631096362.53' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771949/ft1_4FGL_J1333.2+2725_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771949/ft1_4FGL_J1333.2+2725_daily_bin1033.fits outfile=/scratch/kocevski/771949/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1033.fits ra=203.323 dec=27.4221 rad=12.0 tmin=507081601.0 tmax=507340801.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 4.82
user 4.36
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.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/771949/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/771949/ft1_filtered_4FGL_J1333.2+2725_daily_bin1033.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771949/ft1_filtered_4FGL_J1333.2+2725_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/771949/ltcube_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.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/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.fits
.....................!
real 14.83
user 14.37
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771949/ft1_filtered_4FGL_J1333.2+2725_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/771949/ltcube_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.fits outfile=/scratch/kocevski/771949/expmap_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.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/771949/ltcube_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.fits
.....................!
real 191.35
user 185.67
sys 5.02

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/771949/ft1_filtered_4FGL_J1333.2+2725_daily_bin1033.fits scfile=/scratch/kocevski/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.fits outfile=/scratch/kocevski/771949/cmap_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.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.60
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771949/ft1_filtered_4FGL_J1333.2+2725_daily_bin1033.fits scfile=/scratch/kocevski/771949/ft2_4FGL_J1333.2+2725_daily_bin1033.fits outfile=/scratch/kocevski/771949/cmap_HighResolution_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8563       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13846       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1872       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5081       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9757       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.265       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    32.532       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.852       1.0000         .10000E-03   10000.    
    18 'Prefactor '    179.06       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5127       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87688       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0288       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=   5423.399     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2599 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8340        58.509        .69697E-05    .51848E-05
   2  Prefactor     .10000E-03    4.5212        .14830E-06** at limit **
   3  norm          .13720        2.3341        .25823E-06   -.39306E-03
   4  Prefactor     .10000E-03    6.6266        .76064E-07** at limit **
   5  norm          1.6580        3.2130        .22504E-07   -.17958E-04
   6  Prefactor     4.1928        14.834       -.56399E-06   -.11607E-04
   7  norm          9.5082        5.6506       -.77645E-07   -.19647E-04
   8  norm          2.9766        3.0215       -.80012E-07   -.75084E-04
   9  norm          .10000E-03    2.5078        .17576E-07** at limit **
  10  norm          14.266        13.602        .18801E-07   -.23984E-05
  11  Prefactor     1.7097        2.9348        .13708E-05   -.12939E-03
  12  Prefactor     .10000E-03    18.142        .11749E-05** at limit **
  13  norm          32.538        11.400       -.10177E-06   -.29871E-04
  14  Prefactor     .10000E-03    14.745        .41561E-06** at limit **
  15  norm          3.9354        10.419        .59036E-06    .85033E-05
  16  Prefactor     .10000E-03    7.0697        .89480E-07** at limit **
  17  Prefactor     22.864        21.229       -.11926E-05   -.30050E-04
  18  Prefactor     178.99        95.802        .51980E-05    .31106E-04
  19  Prefactor     .81000        2.5250        .22255E-06    .11940E-04
  20  Prefactor     .10000E-03    3.2604        .12837E-07** at limit **
  21  Prefactor     4.5129        3.7860        .56754E-07   -.13444E-05
  22  Normalizat    .87605        .18423       -.53411E-06   -.26650E-04
  23  Prefactor     1.0298        .19374       -.22890E-06   -.55634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.83399
  Prefactor  = 0.0001
  norm       = 0.137195
  Prefactor  = 0.0001
  norm       = 1.65799
  Prefactor  = 4.19279
  norm       = 9.5082
  norm       = 2.97659
  norm       = 0.0001
  norm       = 14.2655
  Prefactor  = 1.70973
  Prefactor  = 0.0001
  norm       = 32.538
  Prefactor  = 0.0001
  norm       = 3.93536
  Prefactor  = 0.0001
  Prefactor  = 22.8637
  Prefactor  = 178.991
  Prefactor  = 0.809999
  Prefactor  = 0.0001
  Prefactor  = 4.51285
  Normalizat = 0.876048
  Prefactor  = 1.02977
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.399     FROM HESSE     STATUS=OK           382 CALLS     2981 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8340        59.412        .12764E-03   -1.5081    
   2  Prefactor     .10000E-03    18.988        .30318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13720        20.750        .20866E-02   -1.5634    
   4  Prefactor     .10000E-03    6.6296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6580        3.1822        .17606E-03   -1.5450    
   6  Prefactor     4.1928        14.800        .19695E-03   -1.5298    
   7  norm          9.5082        5.6347        .12405E-03   -1.5091    
   8  norm          2.9766        3.0098        .12073E-03   -1.5363    
   9  norm          .10000E-03    2.5111        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.266        13.599        .10605E-03   -1.4952    
  11  Prefactor     1.7097        2.9531        .77369E-03   -1.5446    
  12  Prefactor     .10000E-03    18.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          32.538        11.298        .70253E-04   -1.4567    
  14  Prefactor     .10000E-03    14.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9354        10.302        .20326E-03   -1.5311    
  16  Prefactor     .10000E-03    7.0861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.864        21.307        .83791E-04   -1.4751    
  18  Prefactor     178.99        95.858        .15082E-03   -1.3024    
  19  Prefactor     .81000        2.4591        .19804E-03   -1.5528    
  20  Prefactor     .10000E-03    3.2657        .12986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5129        3.7859        .12718E-03   -1.5283    
  22  Normalizat    .87605        .21703        .24023E-03   -.97307    
  23  Prefactor     1.0298        .22835        .24835E-03   -.91744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43553e-10
Minuit parameter uncertainties:
  1  48.4146
  2  3.78148e-05
  3  3.37448
  4  4.29239e-06
  5  3.18249
  6  14.8131
  7  5.63504
  8  3.00994
  9  2.39031e-06
  10  13.6022
  11  2.95336
  12  1.51363e-05
  13  11.299
  14  8.79819e-07
  15  10.3065
  16  1.33628e-05
  17  21.3141
  18  95.9413
  19  2.45939
  20  1.24322e-06
  21  3.7861
  22  0.217248
  23  0.228562
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.286e+01  2.131e+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.030e+00  2.286e-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.760e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.28e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.13e-05

TS (Fixed Index): 1.72
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771949/likelihoodResults_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.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) = 5423.14262911
delta logL = 0.256521532661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5423.12851421
delta logL = 0.270636433526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.245       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9400       1.0000          .0000       10.000    
     3 'Normalizat'    .84960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0509       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=   5423.129     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      247 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.207        246.38        .28619E-02    .36172E-03
   2  Index         2.9420        3.8125        .12324        .20555E-03
   3  Normalizat    .84951        .67010E-01    .44254E-01   -.52344E-05
   4  Prefactor     1.0508        .70523E-01    .39860E-01   -.74648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2068
  Index      = 2.94198
  Normalizat = 0.849505
  Prefactor  = 1.05083
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.129     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.207        25.670        .11448E-03   -1.5009    
   2  Index         2.9420        1.2396        .60441E-02   -.42421    
   3  Normalizat    .84951        .20806        .24352E-03   -.98258    
   4  Prefactor     1.0508        .22901        .24617E-03   -.91054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50122e-10
Minuit parameter uncertainties:
  1  25.6933
  2  1.25537
  3  0.208253
  4  0.229228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771949': 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) = 5423.12851107
delta logL = 0.27063956977

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.221e+01  2.569e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.942e+00  1.255e+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.051e+00  2.292e-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.495e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.94 +/- 1.26
Photon Flux (Free Index): 4.91e-08 +/- 4.07e-08
Energy Flux (Free Index): 1.01e-05 +/- 9.10e-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/771949/cmap_HighResolution_507081601_507340801_4FGL_J1333.2+2725_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', comment='SUCCESS', photon_flux='3.28e-08', energy_flux2='1.01e-05', photon_flux_error='3.06e-08', dlogl='2.71e-01', energy_flux='1.21e-05', photon_flux2='4.91e-08', job_status='DONE', time_completed='2021-09-08 03:30:17.439005', photon_index_error2='1.26', photon_index2='2.94', ts='1.72', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='9.10e-06', EG='0.88', time_epoch_completed='1631097017.44', return_code='0', job_id='771949', GAL2='1.05', EG2='0.85', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.07e-08', ts2='2.29', photon_index='2.32' WHERE bin_id='1033' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:30:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 771949: <4FGL_J1333.2+2725_daily_bin1033> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1033 203.323 27.4221 507081601 507340801 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 :                                   616.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            884 sec.

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

