/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 119 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7450
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1582
RA = 203.323, Dec = 27.4221
tmin = 649382401, tmax = 649641601
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='773798', job_status='RUN', time_executed='2021-09-08 03:23:02.337456', time_epoch_executed='1631096582.34' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773798

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773798/ft1_4FGL_J1333.2+2725_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773798/ft2_4FGL_J1333.2+2725_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773798/ft1_4FGL_J1333.2+2725_daily_bin1582.fits outfile=/scratch/kocevski/773798/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1582.fits ra=203.323 dec=27.4221 rad=12.0 tmin=649382401.0 tmax=649641601.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 2.78
user 2.54
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773798/ft1_filtered_4FGL_J1333.2+2725_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/773798/ft2_4FGL_J1333.2+2725_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/773798/ltcube_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.fits outfile=/scratch/kocevski/773798/expmap_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.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/773798/ltcube_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.fits
.....................!
real 191.67
user 186.30
sys 4.97

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/773798/ft1_filtered_4FGL_J1333.2+2725_daily_bin1582.fits scfile=/scratch/kocevski/773798/ft2_4FGL_J1333.2+2725_daily_bin1582.fits outfile=/scratch/kocevski/773798/cmap_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773798/ft1_filtered_4FGL_J1333.2+2725_daily_bin1582.fits scfile=/scratch/kocevski/773798/ft2_4FGL_J1333.2+2725_daily_bin1582.fits outfile=/scratch/kocevski/773798/cmap_HighResolution_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8247       1.0000         .10000E-03   10000.    
     3 'norm      '    .26330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .92814       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0329       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7897       1.0000         .10000E-03   10000.    
    10 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4962       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1428       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19369E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1361       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.076       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85977       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=   8051.048     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     2970 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.280        56.765        .50840E-04    .43561E-04
   2  Prefactor     5.8237        5.3448        .16641E-03   -.36004E-04
   3  norm          .26247        3.7430        .32765E-03    .42921E-04
   4  Prefactor     .10000E-03    11.439        .18142E-02** at limit **
   5  norm          .10000E-03    1.1701        .93962E-03** at limit **
   6  Prefactor     .10000E-03    6.7454        .18142E-02** at limit **
   7  norm          .92522        3.2579        .29592E-03   -.28660E-04
   8  norm          3.0323        3.4399        .14042E-03   -.15415E-03
   9  norm          3.7907        4.7800        .17864E-03   -.13257E-03
  10  norm          .10000E-03    9.0293        .18142E-02** at limit **
  11  Prefactor     4.3487        3.2894        .12161E-03   -.11713E-02
  12  Prefactor     .10000E-03    9.6254        .18142E-02** at limit **
  13  norm          2.5014        5.8607        .25869E-03   -.24501E-03
  14  Prefactor     1.2350        53.505        .16479        .63036E-04
  15  norm          8.9022        9.4557        .13431E-03   -.23759E-03
  16  Prefactor     34.844        15.604        .67870E-04   -.21454E-03
  17  Prefactor     .10006E-03    51.295        .53964E-02** at limit **
  18  Prefactor     .10000E-03    55.951        .18142E-02** at limit **
  19  Prefactor     .10000E-03    1.0327        .88734E-03** at limit **
  20  Prefactor     8.1340        8.9860        .14056E-03   -.19460E-03
  21  Prefactor     20.076        5.8279        .89391E-04   -.66769E-04
  22  Normalizat    1.1488        .17837        .22773E-03   -.45912E-03
  23  Prefactor     .85984        .18147        .27511E-03   -.33142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.2797
  Prefactor  = 5.82365
  norm       = 0.262466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.925217
  norm       = 3.03228
  norm       = 3.79072
  norm       = 0.0001
  Prefactor  = 4.34867
  Prefactor  = 0.0001
  norm       = 2.50142
  Prefactor  = 1.23502
  norm       = 8.9022
  Prefactor  = 34.8439
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.13402
  Prefactor  = 20.076
  Normalizat = 1.14878
  Prefactor  = 0.859839
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.048     FROM HESSE     STATUS=OK           356 CALLS     3326 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.280        56.755        .10168E-04   -1.4128    
   2  Prefactor     5.8237        5.3447        .66563E-05   -1.5225    
   3  norm          .26247        3.7405        .13106E-04   -1.5606    
   4  Prefactor     .10000E-03    11.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1703        .18792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .92522        3.2573        .11837E-04   -1.5516    
   8  norm          3.0323        3.4417        .56168E-05   -1.5360    
   9  norm          3.7907        4.7831        .71454E-05   -1.5319    
  10  norm          .10000E-03    9.0307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3487        3.2905        .48645E-05   -1.5291    
  12  Prefactor     .10000E-03    9.6299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5014        5.8554        .10347E-04   -1.5392    
  14  Prefactor     1.2350        54.108        .16364       -1.5486    
  15  norm          8.9022        9.4479        .53725E-05   -1.5111    
  16  Prefactor     34.844        15.600        .13574E-04   -1.4527    
  17  Prefactor     .10006E-03    52.429        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0327        .17747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.1340        8.9856        .56223E-05   -1.5137    
  21  Prefactor     20.076        5.8280        .35756E-05   -1.4812    
  22  Normalizat    1.1488        .17853        .45546E-04   -.88201    
  23  Prefactor     .85984        .18163        .11005E-04   -.97559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02352e-09
Minuit parameter uncertainties:
  1  56.804
  2  5.34516
  3  1.98145
  4  7.54651e-05
  5  3.80769e-06
  6  1.35121e-05
  7  3.25797
  8  3.44197
  9  4.78354
  10  3.94553e-05
  11  3.29064
  12  2.61183e-05
  13  5.85673
  14  16.3644
  15  9.4495
  16  15.6021
  17  0.00365428
  18  0.000175488
  19  3.74988e-06
  20  8.98714
  21  5.82814
  22  0.17862
  23  0.181757
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.001e-04  3.654e-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:  8.598e-01  1.818e-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.149e+00  1.786e-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: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773798/likelihoodResults_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.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) = 8051.04767295
delta logL = -9.09869659154e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8051.04767294
delta logL = -9.09797863642e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3151       1.0000          .0000       10.000    
     3 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85984       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=   8051.048     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .41107        .90713E-01** at limit **
   2  Index         2.3065        5.7607        .50000        .11362E-05
   3  Normalizat    1.1488        .72350E-03    .36290E-01    .39902E-04
   4  Prefactor     .85984        .77179E-03    .44491E-01    .40671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30653
  Normalizat = 1.14878
  Prefactor  = 0.859839
 **********
 **   18 **HESSE 
 **********

 FCN=   8051.048     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      251 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    134.71        .57266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3065        5.4654        .50000       -.56889    
   3  Normalizat    1.1488        .60004E-02    .22773E-03   -.88201    
   4  Prefactor     .85984        .63986E-02    .27511E-03   -.97559    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.14336e-09
Minuit parameter uncertainties:
  1  0.000281061
  2  300.467
  3  0.00600045
  4  0.00639858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773798': 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) = 8051.04758196
delta logL = 3.22597770719e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.598e-01  6.399e-03  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.149e+00  6.000e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.323 27.422

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/773798/cmap_HighResolution_649382401_649641601_4FGL_J1333.2+2725_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-09-08 03:36:02.100039', job_id='773798', GAL2='0.86', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631097362.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.23e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1582' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 773798: <4FGL_J1333.2+2725_daily_bin1582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1582 203.323 27.4221 649382401 649641601 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 :                                   772.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            916 sec.

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

