/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 212 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1333.2+2725_daily_bin56
RA = 203.323, Dec = 27.4221
tmin = 253843201, tmax = 254102401
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='764992', job_status='RUN', time_executed='2021-09-08 03:02:37.406245', time_epoch_executed='1631095357.41' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764992/ft1_4FGL_J1333.2+2725_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764992/ft2_4FGL_J1333.2+2725_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764992/ft1_4FGL_J1333.2+2725_daily_bin56.fits outfile=/scratch/kocevski/764992/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin56.fits ra=203.323 dec=27.4221 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.51
user 1.31
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764992/ft1_filtered_4FGL_J1333.2+2725_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/764992/ft2_4FGL_J1333.2+2725_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/764992/ltcube_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.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/764992/ft2_4FGL_J1333.2+2725_daily_bin56.fits
.....................!
real 14.95
user 14.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764992/ft1_filtered_4FGL_J1333.2+2725_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/764992/ft2_4FGL_J1333.2+2725_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/764992/ltcube_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.fits outfile=/scratch/kocevski/764992/expmap_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.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/764992/ltcube_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.fits
.....................!
real 191.82
user 185.66
sys 5.59

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/764992/ft1_filtered_4FGL_J1333.2+2725_daily_bin56.fits scfile=/scratch/kocevski/764992/ft2_4FGL_J1333.2+2725_daily_bin56.fits outfile=/scratch/kocevski/764992/cmap_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.323 yref=27.4221 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.8941       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.427       1.0000         .10000E-03   10000.    
     5 'norm      '    8.5040       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1209       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7876       1.0000         .10000E-03   10000.    
     9 'norm      '    16.007       1.0000         .10000E-03   10000.    
    10 'norm      '    33.715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.095       1.0000         .10000E-03   10000.    
    13 'norm      '    .40510E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.422       1.0000         .10000E-03   10000.    
    15 'norm      '    10.517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0681       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0667       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74493       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=   4901.378     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2569 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.083       -.11011E-06** at limit **
   2  Prefactor     6.8940        6.6583        .10804E-06   -.17114E-05
   3  norm          .10000E-03    1.7713       -.86765E-07** at limit **
   4  Prefactor     48.425        32.764       -.20529E-06   -.10457E-03
   5  norm          8.5045        4.7629        .11451E-06   -.14049E-04
   6  Prefactor     2.1283        44.351        .50519E-05   -.17470E-04
   7  norm          .10000E-03    7.6988        .13314E-05** at limit **
   8  norm          2.7888        8.5197        .16286E-05   -.44602E-04
   9  norm          16.007        14.837       -.90429E-06   -.93738E-04
  10  norm          33.711        23.908        .34640E-06   -.87901E-05
  11  Prefactor     .10000E-03    2.1720        .14415E-05** at limit **
  12  Prefactor     25.098        21.371       -.33596E-06   -.14710E-03
  13  norm          .10002E-03    5.0443       -.48051E-07** at limit **
  14  Prefactor     25.502        77.231        .80975E-06    .18384E-04
  15  norm          10.517        8.8435        .75730E-06    .49153E-04
  16  Prefactor     .10000E-03    7.7228       -.19906E-06** at limit **
  17  Prefactor     .10000E-03    16.558       -.26957E-06** at limit **
  18  Prefactor     15.506        55.228        .76637E-06   -.10808E-05
  19  Prefactor     1.0689        6.1540        .24298E-05    .82330E-05
  20  Prefactor     4.0671        11.680        .86150E-06    .69689E-05
  21  Prefactor     .10000E-03    1.1452       -.35362E-07** at limit **
  22  Normalizat    1.1317        .19752       -.23315E-05   -.10510E-03
  23  Prefactor     .74521        .19169        .15789E-05   -.18576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.89401
  norm       = 0.0001
  Prefactor  = 48.4247
  norm       = 8.50448
  Prefactor  = 2.12827
  norm       = 0.0001
  norm       = 2.78881
  norm       = 16.0071
  norm       = 33.7109
  Prefactor  = 0.0001
  Prefactor  = 25.0981
  norm       = 0.000100018
  Prefactor  = 25.5021
  norm       = 10.5166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5056
  Prefactor  = 1.06894
  Prefactor  = 4.06711
  Prefactor  = 0.0001
  Normalizat = 1.13166
  Prefactor  = 0.745213
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.378     FROM HESSE     STATUS=OK           374 CALLS     2943 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8940        6.6559        .15280E-03   -1.5183    
   3  norm          .10000E-03    1.7757        .90905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.425        32.443        .57623E-04   -1.4315    
   5  norm          8.5045        4.7612        .10899E-03   -1.5125    
   6  Prefactor     2.1283        42.372        .28319E-03   -1.5416    
   7  norm          .10000E-03    7.6431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7888        8.2477        .19435E-03   -1.5374    
   9  norm          16.007        14.525        .10011E-03   -1.4908    
  10  norm          33.711        23.728        .69013E-04   -1.4546    
  11  Prefactor     .10000E-03    2.1845        .10025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.098        21.307        .79965E-04   -1.4706    
  13  norm          .10002E-03    45.439        .27349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.502        77.073        .79450E-04   -1.4698    
  15  norm          10.517        8.2806        .12355E-03   -1.5059    
  16  Prefactor     .10000E-03    7.7387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.506        55.272        .10173E-03   -1.4920    
  19  Prefactor     1.0689        6.2003        .31324E-03   -1.5501    
  20  Prefactor     4.0671        11.657        .19994E-03   -1.5305    
  21  Prefactor     .10000E-03    1.1474        .73164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1317        .22170        .21509E-03   -.88742    
  23  Prefactor     .74521        .21790        .27487E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90738e-10
Minuit parameter uncertainties:
  1  2.50284e-06
  2  6.65666
  3  1.12217e-06
  4  32.4545
  5  4.76138
  6  19.0075
  7  5.30235e-05
  8  8.25107
  9  14.5286
  10  23.7351
  11  4.62559e-06
  12  21.3132
  13  0.00179987
  14  77.3765
  15  8.28145
  16  2.72135e-05
  17  1.00297e-06
  18  55.4554
  19  5.14946
  20  11.6632
  21  2.40653e-07
  22  0.221886
  23  0.21815
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.003e-06  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:  7.452e-01  2.181e-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.132e+00  2.219e-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: 6.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764992/likelihoodResults_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.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) = 4901.37838258
delta logL = -0.000286423915895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4901.37809656
delta logL = -4.08772393712e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2144       1.0000          .0000       10.000    
     3 'Normalizat'    1.1317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74522       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=   4901.378     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      272 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6173.8        .18142E-02** at limit **
   2  Index         2.2414        5.7993        .50000       -.16160E-04
   3  Normalizat    1.1317        .79454E-01    .21509E-03   -.99620E-04
   4  Prefactor     .74522        .84382E-01    .27487E-03    .72092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.24144
  Normalizat = 1.13166
  Prefactor  = 0.745217
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.378     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2414        6.1076        .50000       -.58442    
   3  Normalizat    1.1317        .20053        .43019E-04   -.88742    
   4  Prefactor     .74522        .21295        .10995E-04   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12157e-10
Minuit parameter uncertainties:
  1  0.000531222
  2  4.54076
  3  0.200665
  4  0.213185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764992': 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) = 4901.37809645
delta logL = -2.99118255498e-07

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.312e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.241e+00  4.541e+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:  7.452e-01  2.132e-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.132e+00  2.007e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/764992/cmap_HighResolution_253843201_254102401_4FGL_J1333.2+2725_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-08 03:12:07.225650', job_id='764992', GAL2='0.75', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631095927.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='56' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 764992: <4FGL_J1333.2+2725_daily_bin56> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin56> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:56:00 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:58:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:58:55 2021
Terminated at Wed Sep  8 03:12:08 2021
Results reported at Wed Sep  8 03:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin56 203.323 27.4221 253843201 254102401 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 :                                   569.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             226.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            968 sec.

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

