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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin122
RA = 203.323, Dec = 27.4221
tmin = 270950401, tmax = 271209601
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='765089', job_status='RUN', time_executed='2021-09-08 02:59:58.299563', time_epoch_executed='1631095198.3' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765089/ft1_4FGL_J1333.2+2725_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765089/ft2_4FGL_J1333.2+2725_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765089/ft1_4FGL_J1333.2+2725_daily_bin122.fits outfile=/scratch/kocevski/765089/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin122.fits ra=203.323 dec=27.4221 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.37
user 1.16
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765089/ft1_filtered_4FGL_J1333.2+2725_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/765089/ft2_4FGL_J1333.2+2725_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/765089/ltcube_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.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/765089/ft2_4FGL_J1333.2+2725_daily_bin122.fits
.....................!
real 13.07
user 12.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765089/ft1_filtered_4FGL_J1333.2+2725_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/765089/ft2_4FGL_J1333.2+2725_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/765089/ltcube_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.fits outfile=/scratch/kocevski/765089/expmap_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.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/765089/ltcube_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.fits
.....................!
real 156.57
user 150.71
sys 4.99

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/765089/ft1_filtered_4FGL_J1333.2+2725_daily_bin122.fits scfile=/scratch/kocevski/765089/ft2_4FGL_J1333.2+2725_daily_bin122.fits outfile=/scratch/kocevski/765089/cmap_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765089/ft1_filtered_4FGL_J1333.2+2725_daily_bin122.fits scfile=/scratch/kocevski/765089/ft2_4FGL_J1333.2+2725_daily_bin122.fits outfile=/scratch/kocevski/765089/cmap_HighResolution_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.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.69
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48842E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.085       1.0000         .10000E-03   10000.    
     5 'norm      '    7.2808       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.2146       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6962       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.902       1.0000         .10000E-03   10000.    
    13 'norm      '    15.513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22263E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5945       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0650       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.204       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0260       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5361       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0453       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0925       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=   6871.231     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2578 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    269.30        .10015E-05** at limit **
   2  Prefactor     .10000E-03    3.3661       -.34650E-06** at limit **
   3  norm          .10000E-03    3.6537        .55371E-06** at limit **
   4  Prefactor     58.074        32.697       -.25319E-06   -.18996E-03
   5  norm          7.2810        3.8227        .99738E-07    .63096E-04
   6  Prefactor     .10000E-03    8.2453        .73398E-07** at limit **
   7  norm          6.2145        5.7037       -.14708E-07   -.13999E-04
   8  norm          3.6966        3.6419        .82237E-07   -.10936E-03
   9  norm          .10000E-03    7.7286        .47859E-07** at limit **
  10  norm          .10000E-03    17.328       -.39326E-06** at limit **
  11  Prefactor     1.2575        4.4351        .18604E-05    .31081E-03
  12  Prefactor     25.913        20.024       -.25625E-06   -.93422E-04
  13  norm          15.513        8.3149        .47871E-07    .48320E-04
  14  Prefactor     .10000E-03    44.313        .53063E-06** at limit **
  15  norm          4.5959        9.4344        .44893E-06    .56298E-04
  16  Prefactor     4.0676        7.7021        .27044E-06    .34857E-04
  17  Prefactor     .10000E-03    4.5518       -.13770E-06** at limit **
  18  Prefactor     13.450        102.39       -.22496E-05   -.99071E-05
  19  Prefactor     .10000E-03    1.2185       -.17253E-06** at limit **
  20  Prefactor     8.0218        8.4167       -.48749E-08    .39177E-04
  21  Prefactor     3.5367        4.0269        .29647E-06    .94552E-04
  22  Normalizat    1.0451        .20557       -.48723E-05    .99458E-04
  23  Prefactor     1.0926        .21313        .51931E-05   -.43750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.0738
  norm       = 7.28102
  Prefactor  = 0.0001
  norm       = 6.21451
  norm       = 3.69656
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.2575
  Prefactor  = 25.913
  norm       = 15.513
  Prefactor  = 0.0001
  norm       = 4.59588
  Prefactor  = 4.06758
  Prefactor  = 0.0001
  Prefactor  = 13.4505
  Prefactor  = 0.0001
  Prefactor  = 8.02182
  Prefactor  = 3.5367
  Normalizat = 1.04507
  Prefactor  = 1.09256
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.231     FROM HESSE     STATUS=OK           374 CALLS     2952 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.83        .19235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4145        .14864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2016        .28589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.074        30.918        .52639E-04   -1.4182    
   5  norm          7.2810        3.8216        .11319E-03   -1.5168    
   6  Prefactor     .10000E-03    8.2545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.2145        5.6574        .16103E-03   -1.5209    
   8  norm          3.6966        3.5792        .14180E-03   -1.5323    
   9  norm          .10000E-03    7.8047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2575        4.3261        .25891E-03   -1.5484    
  12  Prefactor     25.913        19.153        .78711E-04   -1.4689    
  13  norm          15.513        8.2593        .10169E-03   -1.4920    
  14  Prefactor     .10000E-03    44.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5959        9.3567        .18779E-03   -1.5279    
  16  Prefactor     4.0676        7.6906        .19998E-03   -1.5305    
  17  Prefactor     .10000E-03    4.5549        .17274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.450        102.11        .11023E-03   -1.4974    
  19  Prefactor     .10000E-03    1.2317        .89332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0218        8.4161        .14153E-03   -1.5141    
  21  Prefactor     3.5367        4.0210        .17114E-03   -1.5332    
  22  Normalizat    1.0451        .20902        .24997E-03   -.91535    
  23  Prefactor     1.0926        .21466        .26426E-03   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29323e-10
Minuit parameter uncertainties:
  1  0.00068861
  2  1.49671e-05
  3  8.70661e-05
  4  30.9267
  5  3.8217
  6  2.33107e-06
  7  5.65786
  8  3.57936
  9  3.03773e-05
  10  4.49458e-05
  11  4.32719
  12  19.1576
  13  8.25986
  14  4.7324e-05
  15  9.35971
  16  7.69247
  17  5.8623e-06
  18  74.2961
  19  2.24703e-06
  20  8.41737
  21  4.02135
  22  0.20918
  23  0.214826
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.862e-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:  1.093e+00  2.148e-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.045e+00  2.092e-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: 3.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765089/likelihoodResults_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.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): 102
logL (Free Index) = 6871.23242879
delta logL = -0.00103334682171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6871.23139564
delta logL = -1.99424903258e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2913       1.0000          .0000       10.000    
     3 'Normalizat'    1.0452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0924       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=   6871.231     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.179        .17665E-01** at limit **
   2  Index         1.7800        8.9994        .50000        .46371E-06
   3  Normalizat    1.0451        .64232E-02    .24998E-03   -.33228E-03
   4  Prefactor     1.0926        .69539E-02    .26425E-03   -.31262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78004
  Normalizat = 1.04507
  Prefactor  = 1.09256
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.231     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.26        .19978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7800        8.2681        .50000       -.69971    
   3  Normalizat    1.0451        .19411E-01    .49995E-04   -.91535    
   4  Prefactor     1.0926        .21015E-01    .52851E-04   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94599e-09
Minuit parameter uncertainties:
  1  0.000138755
  2  540.866
  3  0.0194112
  4  0.0210151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765089': 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): 102
logL (Free Index) = 6871.23139267
delta logL = 2.77190792985e-06

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.388e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.780e+00  5.409e+02  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.093e+00  2.102e-02  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.045e+00  1.941e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/765089/cmap_HighResolution_270950401_271209601_4FGL_J1333.2+2725_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2021-09-08 03:09:21.914303', job_id='765089', GAL2='1.09', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631095761.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='122' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 765089: <4FGL_J1333.2+2725_daily_bin122> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin122> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:56:07 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:59:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:59:45 2021
Terminated at Wed Sep  8 03:09:23 2021
Results reported at Wed Sep  8 03:09:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin122 203.323 27.4221 270950401 271209601 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 :                                   548.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            796 sec.

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

