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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin242
RA = 203.323, Dec = 27.4221
tmin = 302054401, tmax = 302313601
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='766378', job_status='RUN', time_executed='2021-09-08 03:01:04.637853', time_epoch_executed='1631095264.64' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766378/ft1_4FGL_J1333.2+2725_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766378/ft2_4FGL_J1333.2+2725_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766378/ft1_4FGL_J1333.2+2725_daily_bin242.fits outfile=/scratch/kocevski/766378/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin242.fits ra=203.323 dec=27.4221 rad=12.0 tmin=302054401.0 tmax=302313601.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.60
user 3.33
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766378/ft1_filtered_4FGL_J1333.2+2725_daily_bin242.fits" evtable="EVENTS" scfile=/scratch/kocevski/766378/ft2_4FGL_J1333.2+2725_daily_bin242.fits sctable="SC_DATA" outfile=/scratch/kocevski/766378/ltcube_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.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/766378/ft2_4FGL_J1333.2+2725_daily_bin242.fits
.....................!
real 14.96
user 14.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766378/ft1_filtered_4FGL_J1333.2+2725_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/766378/ft2_4FGL_J1333.2+2725_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/766378/ltcube_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.fits outfile=/scratch/kocevski/766378/expmap_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.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/766378/ltcube_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.fits
.....................!
real 192.31
user 185.65
sys 5.84

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/766378/ft1_filtered_4FGL_J1333.2+2725_daily_bin242.fits scfile=/scratch/kocevski/766378/ft2_4FGL_J1333.2+2725_daily_bin242.fits outfile=/scratch/kocevski/766378/cmap_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766378/ft1_filtered_4FGL_J1333.2+2725_daily_bin242.fits scfile=/scratch/kocevski/766378/ft2_4FGL_J1333.2+2725_daily_bin242.fits outfile=/scratch/kocevski/766378/cmap_HighResolution_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5075       1.0000         .10000E-03   10000.    
     5 'norm      '    .77939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.722       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6607       1.0000         .10000E-03   10000.    
     8 'norm      '    12.041       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8731       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5344       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.225       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.660       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6985       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86228       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2571       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=   6570.526     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2570 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.723        .40690E-07** at limit **
   2  Prefactor     .10000E-03    4.6474        .39921E-07** at limit **
   3  norm          .10000E-03    1.4705       -.31923E-07** at limit **
   4  Prefactor     4.5031        36.286       -.75866E-07   -.34208E-05
   5  norm          .77839        2.9178        .77022E-06    .11047E-04
   6  Prefactor     14.701        25.807        .76396E-06   -.20512E-05
   7  norm          5.6639        7.4444        .14874E-05   -.11848E-04
   8  norm          12.042        5.0754        .16872E-08    .37817E-05
   9  norm          .10000E-03    6.2197       -.15092E-06** at limit **
  10  norm          3.9105        18.464        .44346E-06   -.93715E-05
  11  Prefactor     4.8728        4.0673       -.46098E-06   -.79508E-04
  12  Prefactor     .10000E-03    6.1564        .96101E-07** at limit **
  13  norm          6.5325        6.9630        .90676E-07   -.10386E-03
  14  Prefactor     15.211        54.509        .51063E-05   -.18303E-05
  15  norm          .10001E-03    6.0213        .38746E-06** at limit **
  16  Prefactor     .10000E-03    7.8391        .26380E-06** at limit **
  17  Prefactor     27.413        19.954        .92726E-07   -.15795E-04
  18  Prefactor     21.643        102.14        .54762E-05   -.20302E-05
  19  Prefactor     7.7705        4.8814        .10774E-07   -.18809E-04
  20  Prefactor     .10000E-03    7.7425       -.16636E-06** at limit **
  21  Prefactor     5.6986        4.6339       -.99067E-07   -.41244E-05
  22  Normalizat    .86238        .18146        .82144E-07   -.47704E-04
  23  Prefactor     1.2570        .18153       -.76304E-06   -.64307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.5031
  norm       = 0.778386
  Prefactor  = 14.7006
  norm       = 5.66393
  norm       = 12.0417
  norm       = 0.0001
  norm       = 3.91051
  Prefactor  = 4.87285
  Prefactor  = 0.0001
  norm       = 6.53251
  Prefactor  = 15.211
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 27.4132
  Prefactor  = 21.643
  Prefactor  = 7.77052
  Prefactor  = 0.0001
  Prefactor  = 5.6986
  Normalizat = 0.862376
  Prefactor  = 1.25697
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.526     FROM HESSE     STATUS=OK           378 CALLS     2948 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6969        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4737        .95921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5031        35.841        .18963E-03   -1.5284    
   5  norm          .77839        2.9092        .25653E-03   -1.5532    
   6  Prefactor     14.701        25.801        .10439E-03   -1.4941    
   7  norm          5.6639        7.4640        .84418E-03   -1.5232    
   8  norm          12.042        5.0345        .10739E-03   -1.5014    
   9  norm          .10000E-03    6.2453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9105        18.313        .20408E-03   -1.5312    
  11  Prefactor     4.8728        4.0616        .13225E-03   -1.5266    
  12  Prefactor     .10000E-03    6.1605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5325        6.6238        .15699E-03   -1.5197    
  14  Prefactor     15.211        54.467        .10265E-03   -1.4928    
  15  norm          .10001E-03    62.242        .36012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.413        19.990        .76513E-04   -1.4660    
  18  Prefactor     21.643        103.50        .86063E-04   -1.4777    
  19  Prefactor     7.7705        4.8896        .13427E-03   -1.5150    
  20  Prefactor     .10000E-03    7.7921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6986        4.6351        .15192E-03   -1.5230    
  22  Normalizat    .86238        .21206        .27172E-03   -.97795    
  23  Prefactor     1.2570        .21219        .24599E-03   -.84596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79673e-10
Minuit parameter uncertainties:
  1  4.83458e-08
  2  2.32209e-06
  3  1.51837e-06
  4  25.4291
  5  2.90973
  6  25.8204
  7  7.4652
  8  5.0347
  9  4.57615e-07
  10  16.9331
  11  4.06185
  12  7.45341e-06
  13  6.62452
  14  54.6456
  15  0.00193359
  16  3.08152e-07
  17  19.9949
  18  94.9247
  19  4.88989
  20  1.12123e-05
  21  4.63535
  22  0.212264
  23  0.212338
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.741e+01  1.999e+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.257e+00  2.123e-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.624e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.06e-05

TS (Fixed Index): 3.73
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766378/likelihoodResults_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.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) = 6570.0358226
delta logL = 0.489677422675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6570.0306756
delta logL = 0.494824428357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.483       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1350       1.0000          .0000       10.000    
     3 'Normalizat'    .80800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2935       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.

 FCN=   6570.031     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      275 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.461        146.31        .26312E-02   -.52696E-04
   2  Index         3.1370        3.0709        .14803        .93819E-04
   3  Normalizat    .80776        .72934E-01    .63308E-01   -.58445E-04
   4  Prefactor     1.2938        .64121E-01    .54961E-01   -.83457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4608
  Index      = 3.13697
  Normalizat = 0.807756
  Prefactor  = 1.29378
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.031     FROM HESSE     STATUS=OK            31 CALLS      306 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.461        23.814        .10525E-03   -1.4947    
   2  Index         3.1370        1.1372        .50882E-02   -.38182    
   3  Normalizat    .80776        .20807        .28004E-03   -.99782    
   4  Prefactor     1.2938        .21512        .24300E-03   -.83492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5385e-08
Minuit parameter uncertainties:
  1  23.8293
  2  1.14892
  3  0.20828
  4  0.215271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766378': 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) = 6570.0306714
delta logL = 0.494828622703

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.446e+01  2.383e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.137e+00  1.149e+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:  1.294e+00  2.153e-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.078e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 203.323 27.422
Photon Index (Free Index): 3.14 +/- 1.15
Photon Flux (Free Index): 8.23e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.54e-05 +/- 9.20e-06

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/766378/cmap_HighResolution_302054401_302313601_4FGL_J1333.2+2725_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.54e-05', photon_flux_error='2.87e-08', dlogl='4.95e-01', energy_flux='1.46e-05', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-09-08 03:12:16.933962', photon_index_error2='1.15', photon_index2='3.14', ts='3.73', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.20e-06', EG='0.86', time_epoch_completed='1631095936.93', return_code='0', job_id='766378', GAL2='1.29', EG2='0.81', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='6.52e-08', ts2='4.84', photon_index='2.32' WHERE bin_id='242' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:12:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 766378: <4FGL_J1333.2+2725_daily_bin242> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin242 203.323 27.4221 302054401 302313601 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            700 sec.

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

