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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1037
RA = 203.323, Dec = 27.4221
tmin = 508118401, tmax = 508377601
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='771955', job_status='RUN', time_executed='2021-09-08 03:17:09.567178', time_epoch_executed='1631096229.57' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771955/ft1_4FGL_J1333.2+2725_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771955/ft2_4FGL_J1333.2+2725_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771955/ft1_4FGL_J1333.2+2725_daily_bin1037.fits outfile=/scratch/kocevski/771955/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1037.fits ra=203.323 dec=27.4221 rad=12.0 tmin=508118401.0 tmax=508377601.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.66
user 3.43
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771955/ft1_filtered_4FGL_J1333.2+2725_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/771955/ft2_4FGL_J1333.2+2725_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/771955/ltcube_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.fits outfile=/scratch/kocevski/771955/expmap_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.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/771955/ltcube_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.fits
.....................!
real 192.42
user 187.13
sys 4.89

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/771955/ft1_filtered_4FGL_J1333.2+2725_daily_bin1037.fits scfile=/scratch/kocevski/771955/ft2_4FGL_J1333.2+2725_daily_bin1037.fits outfile=/scratch/kocevski/771955/cmap_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771955/ft1_filtered_4FGL_J1333.2+2725_daily_bin1037.fits scfile=/scratch/kocevski/771955/ft2_4FGL_J1333.2+2725_daily_bin1037.fits outfile=/scratch/kocevski/771955/cmap_HighResolution_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.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.63
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2731       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.882       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17040E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.293       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.839       1.0000         .10000E-03   10000.    
    18 'Prefactor '    99.329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25114       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84626       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3646       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98826       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=   6129.844     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2546 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2134        99.909       -.16557E-05   -.19428E-04
   2  Prefactor     .10000E-03    6.9244        .41669E-06** at limit **
   3  norm          .87986        2.9793        .84989E-07    .13995E-03
   4  Prefactor     .10000E-03    25.072       -.23850E-06** at limit **
   5  norm          .10000E-03    1.6755        .48897E-07** at limit **
   6  Prefactor     20.890        18.439       -.26130E-06    .77277E-04
   7  norm          .10000E-03    2.2539        .79101E-07** at limit **
   8  norm          .10000E-03    2.7788       -.13425E-05** at limit **
   9  norm          .10000E-03    2.2776       -.41559E-07** at limit **
  10  norm          10.295        12.629        .53650E-07    .35436E-05
  11  Prefactor     6.9261        3.9581        .11882E-05    .65359E-03
  12  Prefactor     .10000E-03    21.138       -.41291E-06** at limit **
  13  norm          .10000E-03    2.7942        .73887E-07** at limit **
  14  Prefactor     .10000E-03    16.201       -.46992E-07** at limit **
  15  norm          .10000E-03    4.0621        .88185E-07** at limit **
  16  Prefactor     .10000E-03    7.8890       -.19504E-06** at limit **
  17  Prefactor     13.827        19.695       -.13263E-06    .38937E-05
  18  Prefactor     99.347        94.991       -.20377E-06    .18119E-04
  19  Prefactor     .28619        2.9337       -.28043E-06    .30851E-03
  20  Prefactor     .10000E-03    18.062        .52355E-06** at limit **
  21  Prefactor     .86397        3.8647       -.86775E-07    .11825E-03
  22  Normalizat    1.3637        .19716       -.55663E-07    .25955E-03
  23  Prefactor     .98899        .18978       -.58297E-06    .14843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21344
  Prefactor  = 0.0001
  norm       = 0.879863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.8904
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.2948
  Prefactor  = 6.92608
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8274
  Prefactor  = 99.3474
  Prefactor  = 0.286188
  Prefactor  = 0.0001
  Prefactor  = 0.863973
  Normalizat = 1.36368
  Prefactor  = 0.988993
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.844     FROM HESSE     STATUS=OK           370 CALLS     2916 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2134        101.25        .17503E-03   -1.5251    
   2  Prefactor     .10000E-03    7.1755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .87986        2.9014        .23843E-03   -1.5520    
   4  Prefactor     .10000E-03    25.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6991        .98949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.890        18.445        .87650E-04   -1.4794    
   7  norm          .10000E-03    2.2614        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9463        .23877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2824        .11534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.295        12.626        .12489E-03   -1.5066    
  11  Prefactor     6.9261        4.1345        .57875E-03   -1.5182    
  12  Prefactor     .10000E-03    21.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8115        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0887        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.9037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.827        19.713        .10767E-03   -1.4964    
  18  Prefactor     99.347        95.387        .40336E-04   -1.3711    
  19  Prefactor     .28619        28.687        .24549E-02   -1.5601    
  20  Prefactor     .10000E-03    18.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .86397        15.161        .28686E-02   -1.5522    
  22  Normalizat    1.3637        .23902        .23599E-03   -.81685    
  23  Prefactor     .98899        .22630        .28174E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65076e-09
Minuit parameter uncertainties:
  1  46.0391
  2  1.15596e-05
  3  2.90189
  4  2.34872e-05
  5  9.0134e-07
  6  18.4501
  7  4.5426e-06
  8  8.92186e-05
  9  1.24023e-06
  10  12.6296
  11  4.1347
  12  8.79568e-05
  13  1.22413e-06
  14  2.65133e-05
  15  3.23173e-06
  16  6.31411e-06
  17  19.7226
  18  95.5345
  19  5.73241
  20  3.06334e-05
  21  7.24026
  22  0.239219
  23  0.226519
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.383e+01  1.972e+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.890e-01  2.265e-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.364e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771955/likelihoodResults_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.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) = 6129.83954655
delta logL = 0.00432966163226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6129.83904987
delta logL = 0.00482634660784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.362       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2097       1.0000          .0000       10.000    
     3 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98725       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=   6129.839     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      227 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.369        21.104        .10569E-03    .57655E-04
   2  Index         2.2132        1.0255        .13148E-01   -.52867E-05
   3  Normalizat    1.3663        .21388        .23580E-03    .76593E-04
   4  Prefactor     .98735        .22109        .28194E-03   -.63952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3691
  Index      = 2.21324
  Normalizat = 1.36627
  Prefactor  = 0.987346
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.839     FROM HESSE     STATUS=OK            25 CALLS      252 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.369        20.850        .42276E-05   -1.4950    
   2  Index         2.2132        1.0131        .52591E-03   -.59119    
   3  Normalizat    1.3663        .21397        .47159E-04   -.81609    
   4  Prefactor     .98735        .22121        .11278E-04   -.93153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03883e-10
Minuit parameter uncertainties:
  1  20.8609
  2  1.02343
  3  0.214105
  4  0.221409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771955': 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) = 6129.83904355
delta logL = 0.00483266505671

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.873e-01  2.214e-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.366e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
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/771955/cmap_HighResolution_508118401_508377601_4FGL_J1333.2+2725_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', job_status='DONE', photon_flux_upper_limit='9.27e-08', time_completed='2021-09-08 03:27:46.404946', job_id='771955', GAL2='0.99', fit_tolerance='1e-08', EG2='1.37', EG='1.36', time_epoch_completed='1631096866.41', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.83e-03', ts2='0.71', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1037' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:27:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 771955: <4FGL_J1333.2+2725_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1037 203.323 27.4221 508118401 508377601 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            733 sec.

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

