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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1525
RA = 203.323, Dec = 27.4221
tmin = 634608001, tmax = 634867201
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='773701', job_status='RUN', time_executed='2021-09-08 03:23:02.912015', time_epoch_executed='1631096582.91' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773701/ft1_4FGL_J1333.2+2725_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773701/ft2_4FGL_J1333.2+2725_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773701/ft1_4FGL_J1333.2+2725_daily_bin1525.fits outfile=/scratch/kocevski/773701/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1525.fits ra=203.323 dec=27.4221 rad=12.0 tmin=634608001.0 tmax=634867201.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.21
user 2.91
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773701/ft1_filtered_4FGL_J1333.2+2725_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/773701/ft2_4FGL_J1333.2+2725_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/773701/ltcube_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.fits outfile=/scratch/kocevski/773701/expmap_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.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/773701/ltcube_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.fits
.....................!
real 194.06
user 187.03
sys 5.21

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/773701/ft1_filtered_4FGL_J1333.2+2725_daily_bin1525.fits scfile=/scratch/kocevski/773701/ft2_4FGL_J1333.2+2725_daily_bin1525.fits outfile=/scratch/kocevski/773701/cmap_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773701/ft1_filtered_4FGL_J1333.2+2725_daily_bin1525.fits scfile=/scratch/kocevski/773701/ft2_4FGL_J1333.2+2725_daily_bin1525.fits outfile=/scratch/kocevski/773701/cmap_HighResolution_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.271       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.859       1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.401       1.0000         .10000E-03   10000.    
     9 'norm      '    37.823       1.0000         .10000E-03   10000.    
    10 'norm      '    8.1602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9485       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.522       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22770E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.854       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9633       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84677       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0449       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=   4538.780     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2905 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.470       -.34684E-06** at limit **
   2  Prefactor     .10000E-03    3.7882       -.28031E-08** at limit **
   3  norm          .10000E-03    4.7930       -.21919E-06** at limit **
   4  Prefactor     46.235        60.393       -.32729E-05   -.65986E-04
   5  norm          .10000E-03    1.9598        .40832E-08** at limit **
   6  Prefactor     28.862        31.119        .13079E-06   -.19719E-04
   7  norm          .10000E-03    3.2748       -.14373E-06** at limit **
   8  norm          21.406        17.545        .50690E-06   -.12308E-03
   9  norm          37.822        25.288       -.74786E-06   -.70696E-04
  10  norm          8.1610        23.042       -.83819E-07   -.79648E-05
  11  Prefactor     1.9483        7.0557        .21736E-05    .38533E-04
  12  Prefactor     .10000E-03    20.912        .45152E-06** at limit **
  13  norm          3.6888        4.6605       -.53917E-07   -.24168E-04
  14  Prefactor     22.542        87.587       -.15105E-05   -.55661E-05
  15  norm          .10000E-03    2.9185       -.61205E-08** at limit **
  16  Prefactor     37.970        25.003        .29898E-07    .13693E-03
  17  Prefactor     .10044E-03    31.488        .49168E-06** at limit **
  18  Prefactor     .10000E-03    26.269        .10647E-06** at limit **
  19  Prefactor     .10000E-03    1.7004        .14988E-06** at limit **
  20  Prefactor     11.855        12.348        .44083E-06    .45137E-05
  21  Prefactor     7.9632        4.5737        .18844E-06   -.15524E-04
  22  Normalizat    .84688        .21636       -.39605E-05    .16914E-05
  23  Prefactor     1.0449        .21055        .15954E-05   -.15755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.2351
  norm       = 0.0001
  Prefactor  = 28.8622
  norm       = 0.0001
  norm       = 21.4061
  norm       = 37.8223
  norm       = 8.16097
  Prefactor  = 1.94827
  Prefactor  = 0.0001
  norm       = 3.68881
  Prefactor  = 22.5421
  norm       = 0.0001
  Prefactor  = 37.9699
  Prefactor  = 0.000100439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8547
  Prefactor  = 7.96321
  Normalizat = 0.846877
  Prefactor  = 1.04486
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.780     FROM HESSE     STATUS=OK           376 CALLS     3281 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7913        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.8043        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.235        60.931        .58944E-04   -1.4347    
   5  norm          .10000E-03    1.9637        .92100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.862        31.020        .74579E-04   -1.4633    
   7  norm          .10000E-03    3.2772        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.406        17.521        .86582E-04   -1.4782    
   9  norm          37.822        25.441        .65170E-04   -1.4477    
  10  norm          8.1610        23.029        .14035E-03   -1.5137    
  11  Prefactor     1.9483        6.8780        .25177E-03   -1.5429    
  12  Prefactor     .10000E-03    20.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6888        4.6551        .15839E-03   -1.5324    
  14  Prefactor     22.542        85.235        .84403E-04   -1.4758    
  15  norm          .10000E-03    2.9231        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.970        26.459        .65028E-04   -1.4475    
  17  Prefactor     .10044E-03    39.520        .98393E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7172        .85878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.855        12.379        .11635E-03   -1.5019    
  21  Prefactor     7.9632        4.5743        .10476E-03   -1.5144    
  22  Normalizat    .84688        .23617        .25644E-03   -.98353    
  23  Prefactor     1.0449        .23669        .24596E-03   -.91249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95899e-10
Minuit parameter uncertainties:
  1  1.01075e-06
  2  3.98845e-06
  3  2.08109e-05
  4  61.013
  5  4.16612e-06
  6  31.0369
  7  2.19501e-07
  8  17.525
  9  25.4486
  10  23.054
  11  6.88079
  12  3.85138e-05
  13  4.65561
  14  85.7006
  15  4.59026e-06
  16  26.4668
  17  0.00833726
  18  1.47997e-05
  19  6.62935e-06
  20  12.382
  21  4.57451
  22  0.236462
  23  0.236925
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.004e-04  8.337e-03  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.045e+00  2.369e-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.469e-01  2.365e-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: 9.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773701/likelihoodResults_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.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) = 4538.77976947
delta logL = -1.21173388834e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4538.77976946
delta logL = -1.21144139484e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3151       1.0000          .0000       10.000    
     3 'Normalizat'    .84687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   4538.098     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      276 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13708        2.0158        .49827E-02    .56366E-03
   2  Index         5.4806        2.7158        .13060        .85010E-04
   3  Normalizat    .75575        .43206E-01    .44219E-01   -.20658E-03
   4  Prefactor     1.1069        .45844E-01    .40220E-01   -.15742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.13708
  Index      = 5.48062
  Normalizat = 0.755748
  Prefactor  = 1.10687
 **********
 **   18 **HESSE 
 **********

 FCN=   4538.098     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13708        5.7532        .22678E-03   -1.5634    
   2  Index         5.4806        7.5453        .46089E-02    .96272E-01
   3  Normalizat    .75575        .17186        .26951E-03   -1.0173    
   4  Prefactor     1.1069        .17846        .23980E-03   -.89247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21228e-07
Minuit parameter uncertainties:
  1  1.77565
  2  6.31819
  3  0.171981
  4  0.178554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773701': 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) = 4538.09806906
delta logL = 0.681688287021

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.371e-01  1.776e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  5.481e+00  6.318e+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.107e+00  1.786e-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:  7.557e-01  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 203.323 27.422
Photon Index (Free Index): 5.48 +/- 6.32
Photon Flux (Free Index): 7.54e-08 +/- 6.70e-08
Energy Flux (Free Index): 9.67e-06 +/- 9.58e-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/773701/cmap_HighResolution_634608001_634867201_4FGL_J1333.2+2725_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', energy_flux2='9.67e-06', dlogl='6.82e-01', photon_flux2='7.54e-08', job_status='DONE', time_completed='2021-09-08 03:35:30.971134', photon_index_error2='6.32', photon_index2='5.48', ts='-0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='9.58e-06', EG='0.85', time_epoch_completed='1631097330.97', return_code='0', job_id='773701', GAL2='1.11', EG2='0.76', return_code2='102', photon_flux_error2='6.70e-08', ts2='1.50', photon_index='2.32' WHERE bin_id='1525' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:35:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 773701: <4FGL_J1333.2+2725_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1525> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:20:41 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:20:44 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:20:44 2021
Terminated at Wed Sep  8 03:35:31 2021
Results reported at Wed Sep  8 03:35:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1525 203.323 27.4221 634608001 634867201 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 :                                   576.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

