/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 8 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1333.2+2725_daily_bin418
RA = 203.323, Dec = 27.4221
tmin = 347673601, tmax = 347932801
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='768180', job_status='RUN', time_executed='2021-09-08 03:07:22.741018', time_epoch_executed='1631095642.74' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768180/ft1_4FGL_J1333.2+2725_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768180/ft2_4FGL_J1333.2+2725_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768180/ft1_4FGL_J1333.2+2725_daily_bin418.fits outfile=/scratch/kocevski/768180/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin418.fits ra=203.323 dec=27.4221 rad=12.0 tmin=347673601.0 tmax=347932801.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.51
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/768180/ft2_4FGL_J1333.2+2725_daily_bin418.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/768180/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin418.fits evtable="EVENTS" outfile="/scratch/kocevski/768180/ft1_filtered_4FGL_J1333.2+2725_daily_bin418.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.55
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768180/ft1_filtered_4FGL_J1333.2+2725_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/768180/ft2_4FGL_J1333.2+2725_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/768180/ltcube_347673601_347932801_4FGL_J1333.2+2725_daily_bin418.fits outfile=/scratch/kocevski/768180/expmap_347673601_347932801_4FGL_J1333.2+2725_daily_bin418.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/768180/ltcube_347673601_347932801_4FGL_J1333.2+2725_daily_bin418.fits
.....................!
real 195.56
user 190.01
sys 4.98

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/768180/ft1_filtered_4FGL_J1333.2+2725_daily_bin418.fits scfile=/scratch/kocevski/768180/ft2_4FGL_J1333.2+2725_daily_bin418.fits outfile=/scratch/kocevski/768180/cmap_347673601_347932801_4FGL_J1333.2+2725_daily_bin418.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768180/ft1_filtered_4FGL_J1333.2+2725_daily_bin418.fits scfile=/scratch/kocevski/768180/ft2_4FGL_J1333.2+2725_daily_bin418.fits outfile=/scratch/kocevski/768180/cmap_HighResolution_347673601_347932801_4FGL_J1333.2+2725_daily_bin418.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9998       1.0000         .10000E-03   10000.    
     3 'norm      '    .13092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.877       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.387       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15414E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.114       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.521       1.0000         .10000E-03   10000.    
    18 'Prefactor '    150.16       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91188       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0576       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=   6391.733     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2585 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.142        71.919        .87783E-05    .16599E-03
   2  Prefactor     7.9994        8.2973        .58798E-07   -.57342E-05
   3  norm          .10001E-03    3.4341       -.25945E-05** at limit **
   4  Prefactor     15.882        21.024        .16263E-05    .40871E-03
   5  norm          3.8586        3.6222        .44550E-07    .76320E-05
   6  Prefactor     .10000E-03    16.033       -.68079E-06** at limit **
   7  norm          .10000E-03    5.2333       -.71428E-06** at limit **
   8  norm          .10000E-03    1.8944       -.67140E-06** at limit **
   9  norm          .10000E-03    2.3357       -.25052E-06** at limit **
  10  norm          .10000E-03    13.116        .31511E-06** at limit **
  11  Prefactor     .10000E-03    1.5978       -.31277E-06** at limit **
  12  Prefactor     .10000E-03    13.793       -.61350E-06** at limit **
  13  norm          10.388        7.1997       -.17927E-07   -.94367E-05
  14  Prefactor     .10000E-03    351.65       -.37651E-05** at limit **
  15  norm          20.113        9.7666        .24402E-07    .16251E-04
  16  Prefactor     .10000E-03    10.224       -.22841E-06** at limit **
  17  Prefactor     39.519        25.481        .41712E-06    .73665E-04
  18  Prefactor     150.19        87.064        .13703E-05    .63385E-04
  19  Prefactor     .10000E-03    1.0002        .20916E-09** at limit **
  20  Prefactor     .10000E-03    9.2818        .10317E-06** at limit **
  21  Prefactor     .10000E-03    1.1092       -.54023E-09** at limit **
  22  Normalizat    .91187        .16874        .14817E-06    .36339E-03
  23  Prefactor     1.0576        .17467       -.13124E-06    .26952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1417
  Prefactor  = 7.99944
  norm       = 0.00010001
  Prefactor  = 15.8818
  norm       = 3.85862
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3875
  Prefactor  = 0.0001
  norm       = 20.1126
  Prefactor  = 0.0001
  Prefactor  = 39.5192
  Prefactor  = 150.186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.911874
  Prefactor  = 1.05765
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.733     FROM HESSE     STATUS=OK           356 CALLS     2941 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.142        74.183        .71855E-04   -1.4591    
   2  Prefactor     7.9994        8.2868        .14176E-03   -1.5142    
   3  norm          .10001E-03    6.0546        .24686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.882        21.837        .10052E-03   -1.4911    
   5  norm          3.8586        3.6159        .14101E-03   -1.5315    
   6  Prefactor     .10000E-03    16.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4575        .35670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9361        .10732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3572        .11928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6233        .98580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.388        7.1968        .12432E-03   -1.5063    
  14  Prefactor     .10000E-03    362.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.113        9.7648        .89307E-04   -1.4811    
  16  Prefactor     .10000E-03    10.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.519        25.535        .63759E-04   -1.4450    
  18  Prefactor     150.19        87.491        .16445E-03   -1.3251    
  19  Prefactor     .10000E-03    1.0034        .78069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1116        .82227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91187        .19647        .24412E-03   -.96044    
  23  Prefactor     1.0576        .20264        .24598E-03   -.90832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41945e-09
Minuit parameter uncertainties:
  1  74.4036
  2  8.28795
  3  0.000503025
  4  21.8481
  5  3.61606
  6  4.99848e-06
  7  1.93169e-05
  8  6.70836e-06
  9  4.00444e-06
  10  1.94447e-05
  11  3.51042e-06
  12  1.38888e-05
  13  7.19743
  14  0.000485058
  15  9.7656
  16  2.43291e-05
  17  25.5424
  18  87.5671
  19  3.01936e-07
  20  8.75795e-06
  21  4.13601e-08
  22  0.196624
  23  0.202787
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.952e+01  2.554e+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:  1.058e+00  2.028e-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:  9.119e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.11
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.36e-05

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) = 6391.72246262
delta logL = 0.0104540749817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6391.71880834
delta logL = 0.0141083533481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.746       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2292       1.0000          .0000       10.000    
     3 'Normalizat'    .91710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0542       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=   6391.719     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.735        29.807        .62043E-04    .98143E-04
   2  Index         2.2292        .51173        .65357E-02    .19281E-03
   3  Normalizat    .91735        .18926        .24347E-03   -.44500E-04
   4  Prefactor     1.0537        .20171        .24637E-03    .12298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.7347
  Index      = 2.22916
  Normalizat = 0.917346
  Prefactor  = 1.05367
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.719     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.735        29.397        .12409E-04   -1.4415    
   2  Index         2.2292        .50430        .13071E-02   -.58736    
   3  Normalizat    .91735        .18937        .97388E-05   -.95853    
   4  Prefactor     1.0537        .20185        .98547E-05   -.90961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3776e-10
Minuit parameter uncertainties:
  1  29.4075
  2  0.505543
  3  0.18951
  4  0.201993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768180': 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) = 6391.71880384
delta logL = 0.0141128601053

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  4.173e+01  2.941e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.229e+00  5.055e-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:  1.054e+00  2.020e-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:  9.173e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 203.323 27.422
Photon Index (Free Index): 2.23 +/- 0.51
Photon Flux (Free Index): 5.28e-08 +/- 4.19e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.76e-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/768180/cmap_HighResolution_347673601_347932801_4FGL_J1333.2+2725_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='2.25e-05', photon_flux_error='3.67e-08', dlogl='1.41e-02', energy_flux='2.10e-05', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-09-08 03:17:29.723516', photon_index_error2='0.51', photon_index2='2.23', ts='4.11', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='0.91', time_epoch_completed='1631096249.72', return_code='0', job_id='768180', GAL2='1.05', EG2='0.92', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.19e-08', ts2='4.12', photon_index='2.32' WHERE bin_id='418' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:17:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 768180: <4FGL_J1333.2+2725_daily_bin418> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin418> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 03:05:37 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:07:04 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:07:04 2021
Terminated at Wed Sep  8 03:17:30 2021
Results reported at Wed Sep  8 03:17:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin418 203.323 27.4221 347673601 347932801 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 :                                   602.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            713 sec.

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

