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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin484
RA = 203.323, Dec = 27.4221
tmin = 364780801, tmax = 365040001
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='768279', job_status='RUN', time_executed='2021-09-08 03:08:00.938213', time_epoch_executed='1631095680.94' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768279/ft1_4FGL_J1333.2+2725_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768279/ft2_4FGL_J1333.2+2725_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768279/ft1_4FGL_J1333.2+2725_daily_bin484.fits outfile=/scratch/kocevski/768279/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin484.fits ra=203.323 dec=27.4221 rad=12.0 tmin=364780801.0 tmax=365040001.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.36
user 3.09
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768279/ft1_filtered_4FGL_J1333.2+2725_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/768279/ft2_4FGL_J1333.2+2725_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/768279/ltcube_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.fits outfile=/scratch/kocevski/768279/expmap_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.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/768279/ltcube_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.fits
.....................!
real 192.13
user 186.19
sys 4.56

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/768279/ft1_filtered_4FGL_J1333.2+2725_daily_bin484.fits scfile=/scratch/kocevski/768279/ft2_4FGL_J1333.2+2725_daily_bin484.fits outfile=/scratch/kocevski/768279/cmap_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768279/ft1_filtered_4FGL_J1333.2+2725_daily_bin484.fits scfile=/scratch/kocevski/768279/ft2_4FGL_J1333.2+2725_daily_bin484.fits outfile=/scratch/kocevski/768279/cmap_HighResolution_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.868       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7906       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.715       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9089       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0308       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98194       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=   5754.094     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2493 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.683        .26039E-06** at limit **
   2  Prefactor     .10005E-03    5.6090       -.99834E-06** at limit **
   3  norm          5.3585        5.0904        .41304E-06    .27826E-04
   4  Prefactor     26.852        27.573       -.10401E-05   -.17426E-03
   5  norm          .10000E-03    .85895        .76572E-08** at limit **
   6  Prefactor     .10000E-03    19.702        .46351E-06** at limit **
   7  norm          .10000E-03    2.1475       -.10875E-06** at limit **
   8  norm          .10000E-03    2.1135       -.39422E-06** at limit **
   9  norm          .10000E-03    2.4752       -.10230E-06** at limit **
  10  norm          .10000E-03    6.7201       -.66395E-07** at limit **
  11  Prefactor     .10000E-03    1.3409        .40252E-07** at limit **
  12  Prefactor     .10000E-03    5.1639        .11255E-06** at limit **
  13  norm          2.5847        4.7187        .37912E-06    .14684E-05
  14  Prefactor     .10000E-03    17.061       -.48018E-06** at limit **
  15  norm          4.7908        6.7571        .13623E-06   -.99102E-05
  16  Prefactor     .10000E-03    4.8225       -.19979E-06** at limit **
  17  Prefactor     26.003        20.882        .67986E-07    .16457E-04
  18  Prefactor     70.754        74.752        .40945E-05    .15013E-03
  19  Prefactor     6.9080        4.4575        .15823E-05   -.21508E-03
  20  Prefactor     .10000E-03    3.8920        .69300E-07** at limit **
  21  Prefactor     .10000E-03    3.0074        .31476E-07** at limit **
  22  Normalizat    1.0311        .17256       -.10494E-05    .16746E-03
  23  Prefactor     .98153        .17967        .37177E-06    .50845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  norm       = 5.35852
  Prefactor  = 26.8522
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5847
  Prefactor  = 0.0001
  norm       = 4.79076
  Prefactor  = 0.0001
  Prefactor  = 26.0032
  Prefactor  = 70.7541
  Prefactor  = 6.90799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03113
  Prefactor  = 0.981534
 **********
 **   18 **HESSE 
 **********

 FCN=   5754.094     FROM HESSE     STATUS=OK           362 CALLS     2855 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    24.911        .33940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3585        5.0950        .14386E-03   -1.5245    
   4  Prefactor     26.852        28.022        .77286E-04   -1.4671    
   5  norm          .10000E-03    .86103        .68650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1585        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1496        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4845        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.7297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6271        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1848        .16830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5847        4.6800        .20584E-03   -1.5386    
  14  Prefactor     .10000E-03    17.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7908        6.7211        .18381E-03   -1.5270    
  16  Prefactor     .10000E-03    4.8375        .16274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.003        20.927        .78561E-04   -1.4688    
  18  Prefactor     70.754        77.098        .47737E-04   -1.4024    
  19  Prefactor     6.9080        4.5290        .61484E-03   -1.5182    
  20  Prefactor     .10000E-03    3.9048        .14615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0842        .25682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0311        .20100        .22225E-03   -.91995    
  23  Prefactor     .98153        .21080        .25098E-03   -.93348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24365e-09
Minuit parameter uncertainties:
  1  4.67045e-05
  2  0.00217746
  3  5.09538
  4  28.0355
  5  1.02037e-06
  6  0.000148933
  7  3.08223e-06
  8  8.58235e-06
  9  4.87804e-06
  10  4.73413e-06
  11  5.51976e-05
  12  1.38982e-05
  13  4.68067
  14  7.40517e-05
  15  6.7222
  16  1.52877e-05
  17  20.9328
  18  77.2076
  19  4.52919
  20  5.49997e-06
  21  3.80832e-07
  22  0.201152
  23  0.21098
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.600e+01  2.093e+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:  9.815e-01  2.110e-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.031e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/768279/likelihoodResults_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.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) = 5753.88075614
delta logL = 0.213133822442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5753.86282439
delta logL = 0.231065574981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.058       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7286       1.0000          .0000       10.000    
     3 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99166       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=   5753.863     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.042        296.15        .23562E-02    .31888E-04
   2  Index         2.7274        3.4228        .15557        .99142E-04
   3  Normalizat    1.0157        .63527E-01    .44179E-01    .60294E-05
   4  Prefactor     .99162        .65304E-01    .46163E-01    .83187E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0425
  Index      = 2.72742
  Normalizat = 1.01567
  Prefactor  = 0.991623
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.863     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.042        21.110        .94250E-04   -1.4858    
   2  Index         2.7274        .68745        .56030E-02   -.47183    
   3  Normalizat    1.0157        .19073        .22370E-03   -.92507    
   4  Prefactor     .99162        .20864        .24982E-03   -.93009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96742e-12
Minuit parameter uncertainties:
  1  21.1186
  2  0.690212
  3  0.190859
  4  0.208813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768279': 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) = 5753.86280811
delta logL = 0.231081847988

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.804e+01  2.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.727e+00  6.902e-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:  9.916e-01  2.088e-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.016e+00  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.73 +/- 0.69
Photon Flux (Free Index): 5.02e-08 +/- 3.84e-08
Energy Flux (Free Index): 1.18e-05 +/- 9.17e-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/768279/cmap_HighResolution_364780801_365040001_4FGL_J1333.2+2725_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='1.18e-05', photon_flux_error='3.01e-08', dlogl='2.31e-01', energy_flux='1.38e-05', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-09-08 03:18:29.361638', photon_index_error2='0.69', photon_index2='2.73', ts='2.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.17e-06', EG='1.03', time_epoch_completed='1631096309.36', return_code='0', job_id='768279', GAL2='0.99', EG2='1.02', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.84e-08', ts2='2.81', photon_index='2.32' WHERE bin_id='484' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:18:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 768279: <4FGL_J1333.2+2725_daily_bin484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin484 203.323 27.4221 364780801 365040001 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 :                                   618.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            766 sec.

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

