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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1259
RA = 203.323, Dec = 27.4221
tmin = 565660801, tmax = 565920001
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='772263', job_status='RUN', time_executed='2021-09-08 03:21:26.565218', time_epoch_executed='1631096486.57' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772263/ft1_4FGL_J1333.2+2725_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772263/ft2_4FGL_J1333.2+2725_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772263/ft1_4FGL_J1333.2+2725_daily_bin1259.fits outfile=/scratch/kocevski/772263/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1259.fits ra=203.323 dec=27.4221 rad=12.0 tmin=565660801.0 tmax=565920001.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 2.86
user 2.63
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772263/ft1_filtered_4FGL_J1333.2+2725_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/772263/ft2_4FGL_J1333.2+2725_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/772263/ltcube_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.fits outfile=/scratch/kocevski/772263/expmap_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.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/772263/ltcube_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.fits
.....................!
real 160.62
user 155.38
sys 4.77

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/772263/ft1_filtered_4FGL_J1333.2+2725_daily_bin1259.fits scfile=/scratch/kocevski/772263/ft2_4FGL_J1333.2+2725_daily_bin1259.fits outfile=/scratch/kocevski/772263/cmap_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772263/ft1_filtered_4FGL_J1333.2+2725_daily_bin1259.fits scfile=/scratch/kocevski/772263/ft2_4FGL_J1333.2+2725_daily_bin1259.fits outfile=/scratch/kocevski/772263/cmap_HighResolution_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.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.50
user 0.32
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11126E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1645       1.0000         .10000E-03   10000.    
     3 'norm      '    6.0940       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.685       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .89901       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4755       1.0000         .10000E-03   10000.    
     9 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.8964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4062       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1231       1.0000         .10000E-03   10000.    
    13 'norm      '    .25013       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8383       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30139E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57012E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    123.14       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99968       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91659       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=   6080.275     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2625 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.962        .21732E-06** at limit **
   2  Prefactor     8.1646        6.0753        .17820E-06    .20540E-03
   3  norm          6.0937        5.9143        .22877E-06   -.11358E-04
   4  Prefactor     57.689        33.615       -.51123E-06   -.60273E-04
   5  norm          .10000E-03    .87340        .35828E-07** at limit **
   6  Prefactor     .10000E-03    28.341       -.68961E-06** at limit **
   7  norm          .90161        4.5549        .25643E-05    .21279E-03
   8  norm          2.4784        2.9237        .50182E-07    .54149E-04
   9  norm          .10000E-03    4.1636       -.15297E-06** at limit **
  10  norm          7.8975        9.9693       -.10303E-06   -.12328E-03
  11  Prefactor     1.4056        2.6437       -.28239E-07   -.11168E-03
  12  Prefactor     4.1222        6.6972       -.44052E-07   -.19936E-03
  13  norm          .22961        4.3718        .11212E-05   -.69825E-03
  14  Prefactor     .10000E-03    28.471        .46709E-07** at limit **
  15  norm          3.8508        7.5793        .47603E-06   -.21393E-03
  16  Prefactor     .10000E-03    7.7962       -.45464E-07** at limit **
  17  Prefactor     1.6536        30.020        .24546E-05    .11050E-04
  18  Prefactor     .10002E-03    511.49       -.61245E-05** at limit **
  19  Prefactor     .10000E-03    2.0000        .38578E-07** at limit **
  20  Prefactor     .10040E-03    8.4502       -.33877E-06** at limit **
  21  Prefactor     123.14        13.440        .31210E-07    .46296E-04
  22  Normalizat    .99956        .17902       -.66607E-06   -.17626E-03
  23  Prefactor     .91672        .19012       -.30914E-06   -.14121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.16464
  norm       = 6.09366
  Prefactor  = 57.689
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.901608
  norm       = 2.47841
  norm       = 0.0001
  norm       = 7.89747
  Prefactor  = 1.40564
  Prefactor  = 4.12219
  norm       = 0.229606
  Prefactor  = 0.0001
  norm       = 3.85082
  Prefactor  = 0.0001
  Prefactor  = 1.65363
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.000100397
  Prefactor  = 123.142
  Normalizat = 0.99956
  Prefactor  = 0.916721
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.275     FROM HESSE     STATUS=OK           384 CALLS     3009 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1646        6.0893        .14031E-03   -1.5136    
   3  norm          6.0937        5.8990        .16127E-03   -1.5214    
   4  Prefactor     57.689        33.583        .52820E-04   -1.4187    
   5  norm          .10000E-03    .87498        .71164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .90161        4.6177        .32158E-03   -1.5518    
   8  norm          2.4784        2.6613        .12500E-03   -1.5393    
   9  norm          .10000E-03    8.0843        .28044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.8975        9.9735        .14269E-03   -1.5146    
  11  Prefactor     1.4056        2.5774        .16129E-03   -1.5471    
  12  Prefactor     4.1222        6.6929        .19852E-03   -1.5302    
  13  norm          .22961        28.541        .25836E-02   -1.5612    
  14  Prefactor     .10000E-03    28.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8508        8.1501        .20600E-03   -1.5315    
  16  Prefactor     .10000E-03    7.8298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6536        30.244        .32807E-03   -1.5451    
  18  Prefactor     .10002E-03    525.93        .42776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0344        .10766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10040E-03    14.975        .65149E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     123.14        13.445        .36271E-04   -1.3484    
  22  Normalizat    .99956        .21234        .24174E-03   -.93045    
  23  Prefactor     .91672        .22678        .27395E-03   -.95559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34573e-09
Minuit parameter uncertainties:
  1  0.000161075
  2  6.08976
  3  5.89953
  4  33.5945
  5  5.95601e-07
  6  0.000226853
  7  4.08112
  8  2.66139
  9  1.37114e-05
  10  9.97556
  11  2.5776
  12  6.69413
  13  5.12117
  14  7.046e-05
  15  8.15241
  16  1.53255e-06
  17  14.1518
  18  0.00712903
  19  2.86005e-06
  20  0.00487922
  21  13.4458
  22  0.212515
  23  0.22701
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.654e+00  1.415e+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.167e-01  2.270e-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.996e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/772263/likelihoodResults_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.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) = 6080.26651565
delta logL = 0.00860295203256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6080.26144417
delta logL = 0.0136744352321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3346       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0046       1.0000          .0000       10.000    
     3 'Normalizat'    1.0002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91519       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=   6080.261     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      253 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3420        22.828        .22165E-03   -.45238E-03
   2  Index         2.0054        1.5611        .12419E-01   -.27220E-03
   3  Normalizat    1.0003        .20552        .24166E-03   -.87500E-03
   4  Prefactor     .91498        .22542        .27418E-03   -.62138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.342
  Index      = 2.0054
  Normalizat = 1.00029
  Prefactor  = 0.914975
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.261     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3420        22.167        .88661E-05   -1.5342    
   2  Index         2.0054        1.5403        .49677E-03   -.64215    
   3  Normalizat    1.0003        .20572        .48332E-04   -.93021    
   4  Prefactor     .91498        .22562        .54835E-04   -.95620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26588e-08
Minuit parameter uncertainties:
  1  17.2233
  2  1.58105
  3  0.205885
  4  0.225855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772263': 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) = 6080.26144301
delta logL = 0.0136755969634

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.342e+00  1.722e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.005e+00  1.581e+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.150e-01  2.259e-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.000e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/772263/cmap_HighResolution_565660801_565920001_4FGL_J1333.2+2725_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-08 03:31:27.108540', job_id='772263', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631097087.11', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.37e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1259' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 772263: <4FGL_J1333.2+2725_daily_bin1259> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1259> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:54 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:18:52 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:18:52 2021
Terminated at Wed Sep  8 03:31:28 2021
Results reported at Wed Sep  8 03:31:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1259 203.323 27.4221 565660801 565920001 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 :                                   554.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            934 sec.

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

