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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin37
RA = 203.323, Dec = 27.4221
tmin = 248918401, tmax = 249177601
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='764973', job_status='RUN', time_executed='2021-09-08 03:01:06.120950', time_epoch_executed='1631095266.12' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764973/ft1_4FGL_J1333.2+2725_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764973/ft2_4FGL_J1333.2+2725_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764973/ft1_4FGL_J1333.2+2725_daily_bin37.fits outfile=/scratch/kocevski/764973/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin37.fits ra=203.323 dec=27.4221 rad=12.0 tmin=248918401.0 tmax=249177601.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.98
user 1.76
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764973/ft1_filtered_4FGL_J1333.2+2725_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/764973/ft2_4FGL_J1333.2+2725_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/764973/ltcube_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.fits outfile=/scratch/kocevski/764973/expmap_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.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/764973/ltcube_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.fits
.....................!
real 191.42
user 185.62
sys 5.34

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/764973/ft1_filtered_4FGL_J1333.2+2725_daily_bin37.fits scfile=/scratch/kocevski/764973/ft2_4FGL_J1333.2+2725_daily_bin37.fits outfile=/scratch/kocevski/764973/cmap_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764973/ft1_filtered_4FGL_J1333.2+2725_daily_bin37.fits scfile=/scratch/kocevski/764973/ft2_4FGL_J1333.2+2725_daily_bin37.fits outfile=/scratch/kocevski/764973/cmap_HighResolution_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.109       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50992E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8980       1.0000         .10000E-03   10000.    
     8 'norm      '    .10775E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .85619       1.0000         .10000E-03   10000.    
    10 'norm      '    14.725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1272       1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77392       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=   4508.410     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2538 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.467        .10821E-06** at limit **
   2  Prefactor     .10000E-03    3.9159        .79700E-07** at limit **
   3  norm          10.123        6.0059       -.13839E-06    .33993E-03
   4  Prefactor     .10301E-03    31.267       -.20201E-05** at limit **
   5  norm          6.3256        4.4761       -.42236E-07   -.43706E-05
   6  Prefactor     .10000E-03    7.5283       -.14438E-07** at limit **
   7  norm          8.9038        6.1809       -.87782E-07    .11655E-03
   8  norm          .10000E-03    2.7630       -.46446E-06** at limit **
   9  norm          .86227        5.6806        .26988E-05    .17843E-03
  10  norm          14.724        18.543       -.40488E-09    .93457E-05
  11  Prefactor     .10000E-03    2.6867        .78090E-08** at limit **
  12  Prefactor     7.1319        13.592       -.64058E-06    .20855E-04
  13  norm          .10000E-03    2.8479        .29895E-07** at limit **
  14  Prefactor     .10000E-03    35.464        .60872E-07** at limit **
  15  norm          22.566        11.528       -.10100E-06    .24631E-04
  16  Prefactor     16.159        23.994       -.10857E-05   -.10785E-03
  17  Prefactor     .10000E-03    26.766       -.17653E-05** at limit **
  18  Prefactor     .10000E-03    43.917        .12943E-07** at limit **
  19  Prefactor     .10000E-03    2.1949       -.24773E-06** at limit **
  20  Prefactor     12.620        10.534        .46918E-07   -.17238E-04
  21  Prefactor     .10000E-03    1.7656        .66217E-07** at limit **
  22  Normalizat    1.1331        .21960        .29916E-05    .12456E-04
  23  Prefactor     .77417        .22302       -.36543E-05    .12607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1226
  Prefactor  = 0.000103013
  norm       = 6.3256
  Prefactor  = 0.0001
  norm       = 8.90381
  norm       = 0.0001
  norm       = 0.862267
  norm       = 14.7242
  Prefactor  = 0.0001
  Prefactor  = 7.13189
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.5656
  Prefactor  = 16.1585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.62
  Prefactor  = 0.0001
  Normalizat = 1.13309
  Prefactor  = 0.774173
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.410     FROM HESSE     STATUS=OK           378 CALLS     2916 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9469        .12975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.123        5.9951        .11584E-03   -1.5072    
   4  Prefactor     .10301E-03    37.950        .93233E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3256        4.4774        .11475E-03   -1.5205    
   6  Prefactor     .10000E-03    7.5324        .17991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9038        6.1716        .13309E-03   -1.5111    
   8  norm          .10000E-03    2.8832        .21971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .86227        6.0784        .31709E-03   -1.5522    
  10  norm          14.724        18.536        .10438E-03   -1.4940    
  11  Prefactor     .10000E-03    2.7247        .10692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1319        13.488        .15026E-03   -1.5174    
  13  norm          .10000E-03    2.8559        .11059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.566        11.535        .84319E-04   -1.4758    
  16  Prefactor     16.159        24.223        .99667E-04   -1.4904    
  17  Prefactor     .10000E-03    26.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2210        .97124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.620        10.536        .11275E-03   -1.4997    
  21  Prefactor     .10000E-03    1.7779        .87115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1331        .23307        .21543E-03   -.88696    
  23  Prefactor     .77417        .23404        .27264E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71098e-10
Minuit parameter uncertainties:
  1  2.12243e-05
  2  2.21302e-06
  3  5.99547
  4  0.0213987
  5  4.47759
  6  8.78349e-07
  7  6.17209
  8  3.49569e-05
  9  4.57913
  10  18.5437
  11  8.51973e-07
  12  13.494
  13  6.4599e-07
  14  1.46735e-05
  15  11.5365
  16  24.2382
  17  6.22374e-05
  18  4.91323e-05
  19  3.49145e-06
  20  10.5372
  21  4.50833e-07
  22  0.233283
  23  0.234344
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.224e-05  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.742e-01  2.343e-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.133e+00  2.333e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764973/likelihoodResults_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.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) = 4508.410252
delta logL = -0.000177197392077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4508.41007529
delta logL = -4.89131707582e-07

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 'Index     '    2.2357       1.0000          .0000       10.000    
     3 'Normalizat'    1.1331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77418       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=   4508.410     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      267 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2287.6        .18142E-02** at limit **
   2  Index         2.2968        8.5935        .50000       -.26954E-04
   3  Normalizat    1.1331        .52763E-01    .21542E-03   -.15713E-03
   4  Prefactor     .77417        .56504E-01    .27265E-03   -.86898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.29675
  Normalizat = 1.13309
  Prefactor  = 0.774172
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.410     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    78.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2968        5.4438        .50000       -.57121    
   3  Normalizat    1.1331        .21171        .43085E-04   -.88696    
   4  Prefactor     .77417        .22666        .10906E-04   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25419e-10
Minuit parameter uncertainties:
  1  0.00241014
  2  7.44169
  3  0.211867
  4  0.226929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764973': 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) = 4508.41007492
delta logL = -1.18975549412e-07

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.410e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.297e+00  7.442e+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.742e-01  2.269e-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.133e+00  2.119e-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/764973/cmap_HighResolution_248918401_249177601_4FGL_J1333.2+2725_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-08 03:10:21.758723', job_id='764973', GAL2='0.77', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631095821.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='37' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:10:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 764973: <4FGL_J1333.2+2725_daily_bin37> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:55:57 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:58:35 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:35 2021
Terminated at Wed Sep  8 03:10:22 2021
Results reported at Wed Sep  8 03:10:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin37 203.323 27.4221 248918401 249177601 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 :                                   549.00 sec.
    Max Memory :                                 1222 MB
    Average Memory :                             291.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            865 sec.

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

