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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin19
RA = 203.323, Dec = 27.4221
tmin = 244252801, tmax = 244512001
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='764955', job_status='RUN', time_executed='2021-09-08 03:01:14.465397', time_epoch_executed='1631095274.47' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764955/ft1_4FGL_J1333.2+2725_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764955/ft2_4FGL_J1333.2+2725_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764955/ft1_4FGL_J1333.2+2725_daily_bin19.fits outfile=/scratch/kocevski/764955/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin19.fits ra=203.323 dec=27.4221 rad=12.0 tmin=244252801.0 tmax=244512001.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.57
user 2.25
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764955/ft1_filtered_4FGL_J1333.2+2725_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/764955/ft2_4FGL_J1333.2+2725_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/764955/ltcube_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.fits outfile=/scratch/kocevski/764955/expmap_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.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/764955/ltcube_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.fits
.....................!
real 195.55
user 190.65
sys 4.08

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/764955/ft1_filtered_4FGL_J1333.2+2725_daily_bin19.fits scfile=/scratch/kocevski/764955/ft2_4FGL_J1333.2+2725_daily_bin19.fits outfile=/scratch/kocevski/764955/cmap_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764955/ft1_filtered_4FGL_J1333.2+2725_daily_bin19.fits scfile=/scratch/kocevski/764955/ft2_4FGL_J1333.2+2725_daily_bin19.fits outfile=/scratch/kocevski/764955/cmap_HighResolution_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33897E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .53741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.9753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.7401       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2460       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2666       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.367       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .66284       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99702       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0038       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=   4500.330     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2158 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.594       -.77866E-05** at limit **
   2  Prefactor     .10000E-03    5.4057       -.14691E-06** at limit **
   3  norm          .53738        4.7954        .26587E-06   -.29112E-03
   4  Prefactor     .10000E-03    23.621        .59582E-06** at limit **
   5  norm          4.9758        4.6537        .10219E-05    .19199E-03
   6  Prefactor     .10000E-03    5.7915        .18290E-06** at limit **
   7  norm          4.7397        4.8026       -.13742E-05   -.31519E-03
   8  norm          1.2455        3.6092        .29683E-06   -.12659E-03
   9  norm          .10000E-03    7.9534       -.35450E-06** at limit **
  10  norm          .10000E-03    10.009       -.60469E-08** at limit **
  11  Prefactor     2.8554        3.0093        .13003E-06   -.12477E-04
  12  Prefactor     7.2636        12.427        .39102E-06   -.35787E-03
  13  norm          5.4168        6.9146        .16951E-06   -.12878E-02
  14  Prefactor     .10000E-03    17.394       -.18753E-05** at limit **
  15  norm          3.6957        7.0481        .10903E-05   -.14015E-02
  16  Prefactor     13.614        13.058       -.13038E-07   -.19038E-04
  17  Prefactor     .10000E-03    15.586        .30614E-05** at limit **
  18  Prefactor     .10000E-03    31.903        .88339E-05** at limit **
  19  Prefactor     11.367        5.2059       -.52290E-07   -.48087E-04
  20  Prefactor     .10000E-03    18.459       -.36369E-05** at limit **
  21  Prefactor     .66268        4.6957       -.31546E-06   -.29397E-03
  22  Normalizat    .99711        .19451       -.39218E-06    .51644E-04
  23  Prefactor     1.0038        .20690       -.67088E-07    .42236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.537381
  Prefactor  = 0.0001
  norm       = 4.9758
  Prefactor  = 0.0001
  norm       = 4.73966
  norm       = 1.24551
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.85536
  Prefactor  = 7.26359
  norm       = 5.41681
  Prefactor  = 0.0001
  norm       = 3.69573
  Prefactor  = 13.6139
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.3669
  Prefactor  = 0.0001
  Prefactor  = 0.662681
  Normalizat = 0.997113
  Prefactor  = 1.00378
 **********
 **   18 **HESSE 
 **********

 FCN=   4500.330     FROM HESSE     STATUS=OK           374 CALLS     2532 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.700        .30231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .53738        4.8746        .28322E-03   -1.5561    
   4  Prefactor     .10000E-03    23.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.9758        4.6441        .13368E-03   -1.5262    
   6  Prefactor     .10000E-03    5.7964        .15769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7397        4.8176        .14333E-03   -1.5273    
   8  norm          1.2455        3.4893        .19462E-03   -1.5485    
   9  norm          .10000E-03    7.9677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8554        2.9880        .11023E-03   -1.5370    
  12  Prefactor     7.2636        12.663        .74398E-03   -1.5169    
  13  norm          5.4168        6.9291        .86330E-03   -1.5242    
  14  Prefactor     .10000E-03    17.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6957        9.0753        .10501E-02   -1.5323    
  16  Prefactor     13.614        13.075        .10856E-03   -1.4970    
  17  Prefactor     .10000E-03    15.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.367        5.2195        .99436E-04   -1.5034    
  20  Prefactor     .10000E-03    18.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .66268        4.9055        .28597E-03   -1.5545    
  22  Normalizat    .99711        .23188        .22998E-03   -.93127    
  23  Prefactor     1.0038        .24438        .25095E-03   -.92604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84758e-09
Minuit parameter uncertainties:
  1  0.000471058
  2  0.000124383
  3  3.23702
  4  4.63729e-05
  5  4.64441
  6  9.23784e-06
  7  4.81798
  8  3.48984
  9  1.91486e-05
  10  7.22779e-06
  11  2.98814
  12  12.6673
  13  6.93012
  14  7.44497e-05
  15  9.07865
  16  13.0777
  17  0.000113356
  18  0.00048306
  19  5.21967
  20  0.000116127
  21  3.60613
  22  0.232119
  23  0.244654
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.134e-04  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.004e+00  2.447e-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.971e-01  2.321e-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: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764955/likelihoodResults_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.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) = 4500.330523
delta logL = -0.000304454214529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4500.33022
delta logL = -1.44589921547e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8702       1.0000          .0000       10.000    
     3 'Normalizat'    .99711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0038       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=   4500.330     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10331E-03    2.6623        .18142E-01** at limit **
   2  Index         2.7670        8.5546        .50000        .16787E-04
   3  Normalizat    .99711        .22508E-02    .22998E-03   -.53883E-05
   4  Prefactor     1.0038        .24761E-02    .25095E-03   -.39867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103305
  Index      = 2.76701
  Normalizat = 0.997112
  Prefactor  = 1.00378
 **********
 **   18 **HESSE 
 **********

 FCN=   4500.330     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10331E-03    450.65        .44396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7670        5.4091        .50000       -.46296    
   3  Normalizat    .99711        .30209E-01    .91990E-05   -.93127    
   4  Prefactor     1.0038        .33229E-01    .10038E-04   -.92604    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28451e-07
Minuit parameter uncertainties:
  1  0.0777823
  2  954.916
  3  0.0302092
  4  0.0332298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764955': 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) = 4500.33021969
delta logL = -1.13949408842e-06

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.033e-04  7.778e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.767e+00  9.549e+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.004e+00  3.323e-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:  9.971e-01  3.021e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/764955/cmap_HighResolution_244252801_244512001_4FGL_J1333.2+2725_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-08 03:10:15.298389', job_id='764955', GAL2='1.00', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631095815.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-1.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='19' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:10:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 764955: <4FGL_J1333.2+2725_daily_bin19> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin19> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 02:55:55 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:58:20 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:58:20 2021
Terminated at Wed Sep  8 03:10:16 2021
Results reported at Wed Sep  8 03:10:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin19 203.323 27.4221 244252801 244512001 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 :                                   536.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            861 sec.

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

