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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1046
RA = 203.323, Dec = 27.4221
tmin = 510451201, tmax = 510710401
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='771968', job_status='RUN', time_executed='2021-09-08 03:19:40.665188', time_epoch_executed='1631096380.67' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771968

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771968/ft1_4FGL_J1333.2+2725_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771968/ft2_4FGL_J1333.2+2725_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771968/ft1_4FGL_J1333.2+2725_daily_bin1046.fits outfile=/scratch/kocevski/771968/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1046.fits ra=203.323 dec=27.4221 rad=12.0 tmin=510451201.0 tmax=510710401.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.11
user 3.74
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771968/ft1_filtered_4FGL_J1333.2+2725_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/771968/ft2_4FGL_J1333.2+2725_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/771968/ltcube_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.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/771968/ft2_4FGL_J1333.2+2725_daily_bin1046.fits
.....................!
real 17.16
user 16.72
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771968/ft1_filtered_4FGL_J1333.2+2725_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/771968/ft2_4FGL_J1333.2+2725_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/771968/ltcube_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.fits outfile=/scratch/kocevski/771968/expmap_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.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/771968/ltcube_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.fits
.....................!
real 192.68
user 187.13
sys 5.10

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/771968/ft1_filtered_4FGL_J1333.2+2725_daily_bin1046.fits scfile=/scratch/kocevski/771968/ft2_4FGL_J1333.2+2725_daily_bin1046.fits outfile=/scratch/kocevski/771968/cmap_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771968/ft1_filtered_4FGL_J1333.2+2725_daily_bin1046.fits scfile=/scratch/kocevski/771968/ft2_4FGL_J1333.2+2725_daily_bin1046.fits outfile=/scratch/kocevski/771968/cmap_HighResolution_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2118       1.0000         .10000E-03   10000.    
     3 'norm      '    .38586E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11604E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3846       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0992       1.0000         .10000E-03   10000.    
     7 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.2388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9413       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3501       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1789       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69511       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7656       1.0000         .10000E-03   10000.    
    18 'Prefactor '    116.91       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87710       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1188       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0241       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96616       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=   5969.082     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2586 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.296       -.65509E-06** at limit **
   2  Prefactor     2.2129        8.8156        .83918E-06   -.13355E-03
   3  norm          .10041E-03    2.3680        .89526E-06** at limit **
   4  Prefactor     .10000E-03    72.577       -.10091E-05** at limit **
   5  norm          3.3850        3.3908        .60822E-07   -.13196E-03
   6  Prefactor     6.0976        9.4174        .22211E-06    .94106E-06
   7  norm          .10000E-03    2.2364        .47670E-07** at limit **
   8  norm          .10000E-03    2.4837        .49296E-08** at limit **
   9  norm          .10000E-03    1.6673        .76897E-08** at limit **
  10  norm          8.2388        9.9396       -.30374E-06   -.52268E-06
  11  Prefactor     2.9409        2.3680        .42324E-07   -.32635E-03
  12  Prefactor     .10000E-03    7.4277       -.28337E-08** at limit **
  13  norm          1.3514        5.2731        .19954E-05   -.12273E-03
  14  Prefactor     .10000E-03    18.531        .99329E-07** at limit **
  15  norm          7.1785        6.6913       -.21472E-07    .18344E-03
  16  Prefactor     .67567        12.233        .24505E-05   -.43992E-03
  17  Prefactor     6.7674        12.043       -.21046E-06   -.18990E-03
  18  Prefactor     116.92        71.305        .35070E-05    .39392E-03
  19  Prefactor     .10000E-03    1.5213        .18128E-07** at limit **
  20  Prefactor     .87569        11.685        .10734E-05   -.15758E-03
  21  Prefactor     6.1194        4.6946        .15699E-06   -.12660E-05
  22  Normalizat    1.0239        .16600       -.13010E-05   -.61070E-03
  23  Prefactor     .96626        .17219        .43971E-07   -.49693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.2129
  norm       = 0.000100411
  Prefactor  = 0.000100002
  norm       = 3.385
  Prefactor  = 6.09765
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.23878
  Prefactor  = 2.9409
  Prefactor  = 0.0001
  norm       = 1.35141
  Prefactor  = 0.0001
  norm       = 7.17853
  Prefactor  = 0.675669
  Prefactor  = 6.7674
  Prefactor  = 116.919
  Prefactor  = 0.0001
  Prefactor  = 0.875686
  Prefactor  = 6.11943
  Normalizat = 1.02393
  Prefactor  = 0.966263
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.082     FROM HESSE     STATUS=OK           380 CALLS     2966 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2129        9.0675        .27657E-03   -1.5410    
   3  norm          .10041E-03    44.877        .20704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    74.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3850        3.3754        .13525E-03   -1.5340    
   6  Prefactor     6.0976        9.3487        .16257E-03   -1.5214    
   7  norm          .10000E-03    4.2530        .22296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5855        .23714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6717        .97414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.2388        9.9690        .69837E-03   -1.5134    
  11  Prefactor     2.9409        2.3660        .10185E-03   -1.5365    
  12  Prefactor     .10000E-03    7.4543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3514        5.9282        .33915E-03   -1.5475    
  14  Prefactor     .10000E-03    18.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1785        6.7512        .14971E-03   -1.5172    
  16  Prefactor     .67567        86.873        .43584E-02   -1.5544    
  17  Prefactor     6.7674        12.065        .15426E-03   -1.5188    
  18  Prefactor     116.92        75.909        .18607E-03   -1.3541    
  19  Prefactor     .10000E-03    1.5476        .93022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .87569        47.755        .47645E-02   -1.5521    
  21  Prefactor     6.1194        4.7004        .14081E-03   -1.5213    
  22  Normalizat    1.0239        .18905        .22003E-03   -.92233    
  23  Prefactor     .96626        .19916        .24968E-03   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48256e-08
Minuit parameter uncertainties:
  1  0.000223658
  2  8.96106
  3  0.00860023
  4  0.000699636
  5  3.37562
  6  9.35095
  7  1.4285e-06
  8  2.36863e-06
  9  2.79641e-07
  10  9.97102
  11  2.36604
  12  5.18213e-06
  13  5.66162
  14  2.25359e-05
  15  6.75189
  16  15.3445
  17  12.0692
  18  75.9725
  19  1.33902e-06
  20  12.9436
  21  4.70066
  22  0.189172
  23  0.199309
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.767e+00  1.207e+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.663e-01  1.993e-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.024e+00  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771968/likelihoodResults_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.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) = 5969.08203948
delta logL = 7.05216707502e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5969.08195442
delta logL = 0.000155573523443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6537       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3402       1.0000          .0000       10.000    
     3 'Normalizat'    1.0236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96646       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=   5969.082     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6506        13.946        .15556E-03   -.31139E-03
   2  Index         2.3417        1.5281        .86115E-02   -.12415E-03
   3  Normalizat    1.0236        .17671        .22007E-03   -.81173E-03
   4  Prefactor     .96651        .19511        .24965E-03   -.68225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65064
  Index      = 2.34166
  Normalizat = 1.02359
  Prefactor  = 0.966506
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.082     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6506        13.556        .62226E-05   -1.5192    
   2  Index         2.3417        1.4863        .34446E-03   -.56057    
   3  Normalizat    1.0236        .17673        .44013E-04   -.92244    
   4  Prefactor     .96651        .19519        .49930E-04   -.93854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90546e-09
Minuit parameter uncertainties:
  1  13.5625
  2  1.51869
  3  0.176835
  4  0.195328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771968': 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) = 5969.08195349
delta logL = 0.000156509795488

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.651e+00  1.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.342e+00  1.519e+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:  9.665e-01  1.953e-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.024e+00  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/771968/cmap_HighResolution_510451201_510710401_4FGL_J1333.2+2725_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-08 03:31:47.624683', job_id='771968', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631097107.62', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.57e-04', ts2='0.51', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1046' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 771968: <4FGL_J1333.2+2725_daily_bin1046> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1046> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:35 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:17:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:17:05 2021
Terminated at Wed Sep  8 03:31:48 2021
Results reported at Wed Sep  8 03:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1046 203.323 27.4221 510451201 510710401 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            973 sec.

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

