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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1472
RA = 203.323, Dec = 27.4221
tmin = 620870401, tmax = 621129601
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='773622', job_status='RUN', time_executed='2021-09-08 03:23:53.823862', time_epoch_executed='1631096633.82' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773622/ft1_4FGL_J1333.2+2725_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773622/ft2_4FGL_J1333.2+2725_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773622/ft1_4FGL_J1333.2+2725_daily_bin1472.fits outfile=/scratch/kocevski/773622/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1472.fits ra=203.323 dec=27.4221 rad=12.0 tmin=620870401.0 tmax=621129601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.26
user 3.04
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773622/ft1_filtered_4FGL_J1333.2+2725_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/773622/ft2_4FGL_J1333.2+2725_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/773622/ltcube_620870401_621129601_4FGL_J1333.2+2725_daily_bin1472.fits outfile=/scratch/kocevski/773622/expmap_620870401_621129601_4FGL_J1333.2+2725_daily_bin1472.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/773622/ltcube_620870401_621129601_4FGL_J1333.2+2725_daily_bin1472.fits
.....................!
real 194.86
user 189.47
sys 4.58

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.90       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13704E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7167       1.0000         .10000E-03   10000.    
     8 'norm      '    8.4973       1.0000         .10000E-03   10000.    
     9 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91975       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .59305E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12302E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12297E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.695       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.996       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87657       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93782       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=   3777.886     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2519 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.80        138.47       -.84499E-04   -.39911E-05
   2  Prefactor     .10000E-03    3.8564        .96191E-06** at limit **
   3  norm          .10001E-03    7.1535        .20678E-05** at limit **
   4  Prefactor     .10000E-03    23.723       -.54497E-05** at limit **
   5  norm          .10000E-03    2.1953       -.45672E-06** at limit **
   6  Prefactor     .10000E-03    7.9837       -.90428E-07** at limit **
   7  norm          5.7166        5.5420       -.73831E-06    .21318E-03
   8  norm          8.5039        6.0946        .44424E-06    .26247E-03
   9  norm          .10000E-03    15.668       -.46248E-06** at limit **
  10  norm          .10000E-03    14.718        .20533E-05** at limit **
  11  Prefactor     .91206        3.1992        .55891E-06    .11409E-03
  12  Prefactor     .10000E-03    13.686        .12058E-05** at limit **
  13  norm          30.277        12.321       -.49078E-06   -.55923E-04
  14  Prefactor     .10000E-03    194.01       -.16461E-03** at limit **
  15  norm          .10000E-03    14.154        .20543E-05** at limit **
  16  Prefactor     6.7362        16.397       -.18002E-05    .33433E-04
  17  Prefactor     48.645        36.095        .64632E-05    .84026E-04
  18  Prefactor     .10000E-03    47.061        .12410E-04** at limit **
  19  Prefactor     .10003E-03    2.5603       -.15351E-05** at limit **
  20  Prefactor     19.700        15.994       -.59369E-06    .29344E-05
  21  Prefactor     33.999        7.9487       -.12996E-06    .17813E-03
  22  Normalizat    .87589        .22640        .27539E-05    .46896E-03
  23  Prefactor     .93839        .22649        .77379E-06    .41006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.804
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71657
  norm       = 8.50388
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.912058
  Prefactor  = 0.0001
  norm       = 30.2768
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 6.73618
  Prefactor  = 48.6446
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 19.6998
  Prefactor  = 33.9994
  Normalizat = 0.875888
  Prefactor  = 0.938393
 **********
 **   18 **HESSE 
 **********

 FCN=   3777.886     FROM HESSE     STATUS=OK           360 CALLS     2879 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.80        138.79        .17730E-03   -1.3433    
   2  Prefactor     .10000E-03    3.8579        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    7.2368        .16064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2004        .88936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9849        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7166        5.5392        .13816E-03   -1.5230    
   8  norm          8.5039        6.0298        .12082E-03   -1.5125    
   9  norm          .10000E-03    15.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .91206        3.0951        .19534E-03   -1.5517    
  12  Prefactor     .10000E-03    13.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.277        12.302        .72814E-04   -1.4607    
  14  Prefactor     .10000E-03    194.43        .21070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7362        16.372        .15464E-03   -1.5189    
  17  Prefactor     48.645        36.155        .57499E-04   -1.4312    
  18  Prefactor     .10000E-03    47.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    12.729        .18778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.700        15.989        .90251E-04   -1.4820    
  21  Prefactor     33.999        7.9679        .68728E-04   -1.4541    
  22  Normalizat    .87589        .26366        .25188E-03   -.97313    
  23  Prefactor     .93839        .26524        .25483E-03   -.94812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79054e-09
Minuit parameter uncertainties:
  1  139.145
  2  5.37035e-07
  3  0.000479017
  4  0.000314406
  5  3.2209e-08
  6  1.28785e-05
  7  5.53974
  8  6.03027
  9  2.58359e-05
  10  1.07768e-05
  11  3.09568
  12  3.51749e-05
  13  12.3033
  14  0.00135383
  15  5.47991e-05
  16  16.383
  17  36.1709
  18  1.75074e-05
  19  0.00120445
  20  15.9922
  21  7.96818
  22  0.26405
  23  0.265607
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  4.864e+01  3.617e+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.384e-01  2.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  8.759e-01  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 6.99e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.92e-05

TS (Fixed Index): 2.76
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773622/likelihoodResults_620870401_621129601_4FGL_J1333.2+2725_daily_bin1472.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) = 3777.63919841
delta logL = 0.24691360226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3777.62346981
delta logL = 0.262642207535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.298       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7866       1.0000          .0000       10.000    
     3 'Normalizat'    .84715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96145       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=   3777.623     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.260        41.298        .74018E-04    .97531E-05
   2  Index         2.7875        .82029        .45654E-02    .31313E-03
   3  Normalizat    .84703        .25812        .25560E-03    .57823E-06
   4  Prefactor     .96145        .26675        .25216E-03    .34715E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2598
  Index      = 2.78755
  Normalizat = 0.847029
  Prefactor  = 0.961454
 **********
 **   18 **HESSE 
 **********

 FCN=   3777.623     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.260        37.329        .29607E-05   -1.4626    
   2  Index         2.7875        .74160        .91308E-03   -.45837    
   3  Normalizat    .84703        .25827        .10224E-04   -.98347    
   4  Prefactor     .96145        .26674        .10087E-04   -.94026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13898e-12
Minuit parameter uncertainties:
  1  37.3587
  2  0.745021
  3  0.258645
  4  0.26711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773622': 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) = 3777.62346849
delta logL = 0.262643520791

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.926e+01  3.736e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.788e+00  7.450e-01  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.615e-01  2.671e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  8.470e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.79 +/- 0.75
Photon Flux (Free Index): 9.02e-08 +/- 6.39e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.53e-05

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/773622/cmap_HighResolution_620870401_621129601_4FGL_J1333.2+2725_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='6.99e-08', energy_flux2='2.04e-05', photon_flux_error='5.19e-08', dlogl='2.63e-01', energy_flux='2.58e-05', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-08 03:35:54.733215', photon_index_error2='0.75', photon_index2='2.79', ts='2.76', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.53e-05', EG='0.88', time_epoch_completed='1631097354.73', return_code='0', job_id='773622', GAL2='0.96', EG2='0.85', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='6.39e-08', ts2='3.32', photon_index='2.32' WHERE bin_id='1472' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 773622: <4FGL_J1333.2+2725_daily_bin1472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1472 203.323 27.4221 620870401 621129601 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 :                                   518.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

