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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin855
RA = 203.323, Dec = 27.4221
tmin = 460944001, tmax = 461203201
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='770543', job_status='RUN', time_executed='2021-09-08 03:15:18.270818', time_epoch_executed='1631096118.27' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770543/ft1_4FGL_J1333.2+2725_daily_bin855.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770543/ft2_4FGL_J1333.2+2725_daily_bin855.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770543/ft1_4FGL_J1333.2+2725_daily_bin855.fits outfile=/scratch/kocevski/770543/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin855.fits ra=203.323 dec=27.4221 rad=12.0 tmin=460944001.0 tmax=461203201.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.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770543/ft1_filtered_4FGL_J1333.2+2725_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/770543/ft2_4FGL_J1333.2+2725_daily_bin855.fits sctable="SC_DATA" expcube=/scratch/kocevski/770543/ltcube_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.fits outfile=/scratch/kocevski/770543/expmap_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.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/770543/ltcube_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.fits
.....................!
real 191.38
user 186.58
sys 4.39

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/770543/ft1_filtered_4FGL_J1333.2+2725_daily_bin855.fits scfile=/scratch/kocevski/770543/ft2_4FGL_J1333.2+2725_daily_bin855.fits outfile=/scratch/kocevski/770543/cmap_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770543/ft1_filtered_4FGL_J1333.2+2725_daily_bin855.fits scfile=/scratch/kocevski/770543/ft2_4FGL_J1333.2+2725_daily_bin855.fits outfile=/scratch/kocevski/770543/cmap_HighResolution_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.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/770543/ft1_filtered_4FGL_J1333.2+2725_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/770543/ft2_4FGL_J1333.2+2725_daily_bin855.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770543/Model_4FGL_J1333.2+2725_daily_bin855.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/770543/ft1_filtered_4FGL_J1333.2+2725_daily_bin855.fits.....................!
real 47.54
user 46.15
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    132.63       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19091E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3515       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21698       1.0000         .10000E-03   10000.    
     9 'norm      '    25.873       1.0000         .10000E-03   10000.    
    10 'norm      '    28.295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3203       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1031       1.0000         .10000E-03   10000.    
    13 'norm      '    10.519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.241       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79251       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1018       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83236       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=   5686.098     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2558 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     132.64        76.658       -.31857E-05   -.11892E-03
   2  Prefactor     .10000E-03    4.5145       -.81710E-07** at limit **
   3  norm          .10000E-03    1.9343        .57306E-08** at limit **
   4  Prefactor     .10028E-03    64.524       -.18040E-04** at limit **
   5  norm          7.0436        3.8671        .11112E-06    .13077E-03
   6  Prefactor     8.3537        12.514       -.16160E-06    .35783E-04
   7  norm          .10000E-03    1.3958       -.19391E-10** at limit **
   8  norm          .23992        4.1018        .21665E-05    .38885E-04
   9  norm          25.848        11.072        .14905E-06    .54060E-03
  10  norm          28.290        22.669        .67397E-06    .12290E-03
  11  Prefactor     1.3236        2.7344        .16665E-06    .52186E-03
  12  Prefactor     3.0933        10.053       -.18367E-06    .10304E-03
  13  norm          10.519        6.6672        .11750E-05    .78877E-03
  14  Prefactor     .10000E-03    53.818       -.43723E-05** at limit **
  15  norm          14.239        10.301        .46290E-06    .37066E-03
  16  Prefactor     8.1569        13.138        .55372E-06    .16988E-03
  17  Prefactor     .10000E-03    36.967       -.49418E-05** at limit **
  18  Prefactor     .10000E-03    33.065        .43009E-05** at limit **
  19  Prefactor     .79333        3.0137        .69420E-06    .46983E-03
  20  Prefactor     5.5904        9.3010        .23193E-05    .10577E-02
  21  Prefactor     .10000E-03    2.3674       -.10260E-07** at limit **
  22  Normalizat    1.1020        .18032       -.56853E-06    .30281E-03
  23  Prefactor     .83223        .19067       -.41744E-06    .16798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 132.639
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100282
  norm       = 7.04357
  Prefactor  = 8.35366
  norm       = 0.0001
  norm       = 0.239919
  norm       = 25.8482
  norm       = 28.2903
  Prefactor  = 1.32359
  Prefactor  = 3.09331
  norm       = 10.5186
  Prefactor  = 0.000100002
  norm       = 14.2392
  Prefactor  = 8.15693
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.79333
  Prefactor  = 5.59039
  Prefactor  = 0.0001
  Normalizat = 1.10199
  Prefactor  = 0.832229
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.098     FROM HESSE     STATUS=OK           370 CALLS     2928 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     132.64        76.597        .17483E-03   -1.3399    
   2  Prefactor     .10000E-03    4.6337        .31289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9462        .10231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10028E-03    89.175        .57393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0436        3.8692        .10609E-03   -1.5177    
   6  Prefactor     8.3537        12.487        .13872E-03   -1.5130    
   7  norm          .10000E-03    1.3975        .86972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .23992        56.030        .19985E-02   -1.5610    
   9  norm          25.848        16.149        .78756E-04   -1.4691    
  10  norm          28.290        22.678        .75317E-04   -1.4644    
  11  Prefactor     1.3236        2.6722        .16188E-03   -1.5478    
  12  Prefactor     3.0933        9.9020        .23020E-03   -1.5356    
  13  norm          10.519        6.7072        .12354E-03   -1.5059    
  14  Prefactor     .10000E-03    54.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.239        10.306        .10614E-03   -1.4953    
  16  Prefactor     8.1569        13.158        .14038E-03   -1.5137    
  17  Prefactor     .10000E-03    37.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .79333        3.0340        .24410E-03   -1.5530    
  20  Prefactor     5.5904        10.298        .84953E-03   -1.5235    
  21  Prefactor     .10000E-03    2.3888        .11327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1020        .21111        .21956E-03   -.89688    
  23  Prefactor     .83223        .22354        .27355E-03   -.98551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15059e-09
Minuit parameter uncertainties:
  1  76.6544
  2  6.08815e-06
  3  1.4625e-05
  4  0.0100447
  5  3.86932
  6  12.4909
  7  1.63103e-06
  8  7.33826
  9  16.152
  10  22.6851
  11  2.67245
  12  9.9072
  13  6.70767
  14  0.000634493
  15  10.3074
  16  13.1625
  17  0.000629012
  18  0.000537044
  19  3.03461
  20  10.3016
  21  1.34738e-06
  22  0.211274
  23  0.223789
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.290e-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:  8.322e-01  2.238e-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.102e+00  2.113e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/770543/likelihoodResults_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.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) = 5686.09804766
delta logL = -0.000126564831589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5686.09020879
delta logL = 0.00771230857026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83985       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1862       1.0000          .0000       10.000    
     3 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83610       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=   5686.090     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      301 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84251        11.374        .79614E-01    .41414E-03
   2  Index         3.1862        .69990        .50000        .88613E-05
   3  Normalizat    1.0953        .74965E-02    .38195E-01   -.89585E-04
   4  Prefactor     .83612        .82766E-02    .44185E-01   -.56321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.84251
  Index      = 3.18625
  Normalizat = 1.09526
  Prefactor  = 0.836119
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.090     FROM HESSE     STATUS=OK            35 CALLS      336 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84251        118.09        .27618E-02   -1.5524    
   2  Index         3.1862        6.2258        .61721E-02   -.37122    
   3  Normalizat    1.0953        .21196        .22016E-03   -.89904    
   4  Prefactor     .83612        .22159        .27298E-03   -.98410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38109e-10
Minuit parameter uncertainties:
  1  19.9887
  2  8.14706
  3  0.21212
  4  0.221831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770543': 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) = 5686.0902087
delta logL = 0.00771239223832

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  8.425e-01  1.999e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.186e+00  8.147e+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:  8.361e-01  2.218e-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.095e+00  2.121e-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/770543/cmap_HighResolution_460944001_461203201_4FGL_J1333.2+2725_daily_bin855.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-08 03:25:42.280503', job_id='770543', GAL2='0.84', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631096742.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.71e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='855' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 770543: <4FGL_J1333.2+2725_daily_bin855> in cluster <slac> Done

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

Your job looked like:

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

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

