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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin250
RA = 203.323, Dec = 27.4221
tmin = 304128001, tmax = 304387201
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='766390', job_status='RUN', time_executed='2021-09-08 03:00:59.291562', time_epoch_executed='1631095259.29' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766390/ft1_4FGL_J1333.2+2725_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766390/ft2_4FGL_J1333.2+2725_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766390/ft1_4FGL_J1333.2+2725_daily_bin250.fits outfile=/scratch/kocevski/766390/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin250.fits ra=203.323 dec=27.4221 rad=12.0 tmin=304128001.0 tmax=304387201.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.43
user 3.19
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766390/ft1_filtered_4FGL_J1333.2+2725_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/766390/ft2_4FGL_J1333.2+2725_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/766390/ltcube_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.fits outfile=/scratch/kocevski/766390/expmap_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.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/766390/ltcube_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.fits
.....................!
real 192.08
user 186.64
sys 5.01

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/766390/ft1_filtered_4FGL_J1333.2+2725_daily_bin250.fits scfile=/scratch/kocevski/766390/ft2_4FGL_J1333.2+2725_daily_bin250.fits outfile=/scratch/kocevski/766390/cmap_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766390/ft1_filtered_4FGL_J1333.2+2725_daily_bin250.fits scfile=/scratch/kocevski/766390/ft2_4FGL_J1333.2+2725_daily_bin250.fits outfile=/scratch/kocevski/766390/cmap_HighResolution_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=203.323 yref=27.4221 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.344       1.0000         .10000E-03   10000.    
     3 'norm      '    .69235E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .21442E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.043       1.0000         .10000E-03   10000.    
     7 'norm      '    9.5248       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0700       1.0000         .10000E-03   10000.    
     9 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4216       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6054       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.980       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9577       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3172       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79558       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=   5755.388     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2569 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.491        .93285E-06** at limit **
   2  Prefactor     10.352        11.058        .51411E-07   -.13222E-04
   3  norm          .31972E-01    2.3460       -.80523E-07   -.10230E-03
   4  Prefactor     .10000E-03    13.464        .51041E-07** at limit **
   5  norm          .10000E-03    3.2555       -.32603E-06** at limit **
   6  Prefactor     15.042        15.416        .35891E-06   -.43908E-05
   7  norm          9.5252        5.9023       -.78573E-07   -.50951E-04
   8  norm          3.0695        2.9360       -.14569E-06   -.18535E-03
   9  norm          .10000E-03    3.6301        .30007E-06** at limit **
  10  norm          .10000E-03    5.6091        .11137E-06** at limit **
  11  Prefactor     .10000E-03    .73173       -.19056E-06** at limit **
  12  Prefactor     5.4204        8.5508       -.86104E-07   -.10101E-03
  13  norm          6.6057        6.0558        .77887E-07   -.19801E-04
  14  Prefactor     .10000E-03    16.025       -.25766E-06** at limit **
  15  norm          15.738        9.8444       -.52003E-06   -.75769E-03
  16  Prefactor     19.976        17.160       -.13752E-05    .60825E-06
  17  Prefactor     .10000E-03    8.8254       -.18042E-06** at limit **
  18  Prefactor     46.077        58.150       -.11556E-04    .14985E-05
  19  Prefactor     .10000E-03    3.0153       -.42597E-07** at limit **
  20  Prefactor     5.9544        8.9557       -.27533E-06   -.11955E-03
  21  Prefactor     .10000E-03    1.0083        .11043E-06** at limit **
  22  Normalizat    1.3173        .17817        .75431E-06    .24296E-04
  23  Prefactor     .79573        .18535       -.25133E-06    .60886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.3521
  norm       = 0.0319722
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0418
  norm       = 9.5252
  norm       = 3.06947
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42045
  norm       = 6.60566
  Prefactor  = 0.0001
  norm       = 15.7379
  Prefactor  = 19.976
  Prefactor  = 0.0001
  Prefactor  = 46.0768
  Prefactor  = 0.0001
  Prefactor  = 5.95439
  Prefactor  = 0.0001
  Normalizat = 1.31731
  Prefactor  = 0.795732
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.388     FROM HESSE     STATUS=OK           382 CALLS     2951 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.352        10.923        .12458E-03   -1.5064    
   3  norm          .31972E-01    4.5696        .39669E-01   -1.5672    
   4  Prefactor     .10000E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.5049        .26000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.042        15.411        .10327E-03   -1.4932    
   7  norm          9.5252        5.8994        .12985E-03   -1.5091    
   8  norm          3.0695        2.9223        .12050E-03   -1.5358    
   9  norm          .10000E-03    3.6427        .14058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.6099        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .73287        .63314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4204        8.5426        .17258E-03   -1.5242    
  13  norm          6.6057        6.0548        .15614E-03   -1.5194    
  14  Prefactor     .10000E-03    16.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.738        10.109        .50477E-03   -1.4914    
  16  Prefactor     19.976        17.189        .89606E-04   -1.4814    
  17  Prefactor     .10000E-03    8.8331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.077        57.331        .59062E-04   -1.4349    
  19  Prefactor     .10000E-03    5.9996        .25206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9544        8.9671        .16451E-03   -1.5220    
  21  Prefactor     .10000E-03    1.0100        .74390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3173        .20833        .21717E-03   -.83051    
  23  Prefactor     .79573        .21722        .29245E-03   -.99886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49983e-10
Minuit parameter uncertainties:
  1  1.83202e-06
  2  10.9248
  3  0.763322
  4  2.42118e-06
  5  4.79541e-05
  6  15.4147
  7  5.89981
  8  2.92241
  9  5.55259e-06
  10  4.83983e-07
  11  7.79996e-07
  12  8.54447
  13  6.0554
  14  4.84479e-06
  15  10.1104
  16  17.1929
  17  8.54285e-06
  18  57.3994
  19  1.78042e-05
  20  8.96916
  21  2.08179e-07
  22  0.208467
  23  0.217458
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  8.543e-06  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:  7.957e-01  2.175e-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.317e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/766390/likelihoodResults_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.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) = 5755.38836637
delta logL = -0.000538416053132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5755.38782795
delta logL = -3.24962456943e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3116       1.0000          .0000       10.000    
     3 'Normalizat'    1.3173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79574       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=   5755.388     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8.9072        .90712E-02** at limit **
   2  Index         2.3080        6.1540        .50000        .33770E-05
   3  Normalizat    1.3173        .16977        .49124E-01   -.33779E-03
   4  Prefactor     .79573        .18351        .66108E-01   -.18118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.30803
  Normalizat = 1.3173
  Prefactor  = 0.795732
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.388     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3080        6.1479        .50000       -.56853    
   3  Normalizat    1.3173        .19910        .21717E-03   -.83051    
   4  Prefactor     .79573        .21494        .29245E-03   -.99886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2695e-09
Minuit parameter uncertainties:
  1  0.000578089
  2  4.51872
  3  0.199215
  4  0.215163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766390': 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) = 5755.38782795
delta logL = 5.28871169081e-09

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.781e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.308e+00  4.519e+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:  7.957e-01  2.152e-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.317e+00  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/766390/cmap_HighResolution_304128001_304387201_4FGL_J1333.2+2725_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-08 03:11:37.977884', job_id='766390', GAL2='0.80', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631095897.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='250' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 766390: <4FGL_J1333.2+2725_daily_bin250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin250 203.323 27.4221 304128001 304387201 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            660 sec.

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

