/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 24 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 = 7653
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1324.9+4748_daily_bin35
RA = 201.24, Dec = 47.8086
tmin = 248400001, tmax = 248659201
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='532885', job_status='RUN', time_executed='2021-09-07 15:13:56.259353', time_epoch_executed='1631052836.26' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532885/ft1_4FGL_J1324.9+4748_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532885/ft1_4FGL_J1324.9+4748_daily_bin35.fits outfile=/scratch/kocevski/532885/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin35.fits ra=201.24 dec=47.8086 rad=12.0 tmin=248400001.0 tmax=248659201.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.45
user 1.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.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/532885/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/532885/ltcube_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.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/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits
.....................!
real 17.32
user 16.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/532885/ltcube_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.fits outfile=/scratch/kocevski/532885/expmap_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.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/532885/ltcube_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.fits
.....................!
real 192.93
user 187.92
sys 4.62

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1324.9+4748 @ 201.24 47.8086

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits scfile=/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits outfile=/scratch/kocevski/532885/cmap_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.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=201.24 yref=47.8086 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits scfile=/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits outfile=/scratch/kocevski/532885/cmap_HighResolution_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.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=201.24 yref=47.8086 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532885/Model_4FGL_J1324.9+4748_daily_bin35.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/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits.....................!
real 44.53
user 43.13
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits', '/scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits', expMap='/scratch/kocevski/532885/expmap_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.fits', expCube='/scratch/kocevski/532885/ltcube_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532885/Model_4FGL_J1324.9+4748_daily_bin35.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1324.9+4748'

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  9.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/532885/ft1_filtered_4FGL_J1324.9+4748_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/532885/ft2_4FGL_J1324.9+4748_daily_bin35.fits
Exposure map: /scratch/kocevski/532885/expmap_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.fits
Exposure cube: /scratch/kocevski/532885/ltcube_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532885/Model_4FGL_J1324.9+4748_daily_bin35.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) = 5053.50274353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8210       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9929       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .26309E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6387       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1109       1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.9813       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.879       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10898E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.1669       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .87129       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5053.351     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3557 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2656       -.67009E-06** at limit **
   2  Prefactor     .10000E-03    13.148       -.19450E-06** at limit **
   3  Prefactor     4.8215        4.5626       -.22464E-06    .93824E-05
   4  norm          .10000E-03    .88556       -.88079E-07** at limit **
   5  Prefactor     .10000E-03    7.4027       -.37985E-06** at limit **
   6  norm          4.9930        2.4309       -.12421E-07   -.60633E-04
   7  Prefactor     .10000E-03    18.199        .15639E-06** at limit **
   8  Prefactor     3.7592        8.8017        .83015E-05   -.25923E-03
   9  Prefactor     .10000E-03    9.3846       -.20062E-06** at limit **
  10  norm          .10000E-03    14.536        .51500E-06** at limit **
  11  norm          .10000E-03    2.1010        .14976E-06** at limit **
  12  Prefactor     .10000E-03    21.322       -.94475E-06** at limit **
  13  Prefactor     14.692        18.483        .39716E-06   -.37404E-04
  14  Prefactor     7.6334        42.209        .29530E-06   -.51733E-04
  15  norm          4.4371        4.2308        .79726E-07   -.61434E-04
  16  Prefactor     .10000E-03    29.205       -.25407E-06** at limit **
  17  Prefactor     17.853        61.607        .17705E-04    .27071E-03
  18  Prefactor     .10000E-03    27.811       -.60176E-06** at limit **
  19  norm          1.1109        1.3101        .12218E-06   -.30966E-04
  20  norm          .10000E-03    28.922       -.16686E-06** at limit **
  21  norm          .10000E-03    2.8852       -.93843E-07** at limit **
  22  norm          6.9821        13.294        .48338E-07   -.21809E-04
  23  Prefactor     23.880        46.648        .14774E-05   -.99903E-04
  24  Prefactor     .10000E-03    35.170        .12235E-05** at limit **
  25  Prefactor     .10000E-03    1.5383       -.20861E-07** at limit **
  26  Prefactor     .10000E-03    5.4637       -.18226E-07** at limit **
  27  Prefactor     .10003E-03    1.8530        .10578E-05** at limit **
  28  Prefactor     .10000E-03    49.316       -.36651E-06** at limit **
  29  Prefactor     7.1654        52.100        .28126E-06   -.23375E-04
  30  Normalizat    .87108        .16972       -.30645E-05   -.12322E-03
  31  Prefactor     1.1166        .20575        .14596E-05   -.28351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82147
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.99296
  Prefactor  = 0.0001
  Prefactor  = 3.75923
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6916
  Prefactor  = 7.63339
  norm       = 4.43709
  Prefactor  = 0.0001
  Prefactor  = 17.8531
  Prefactor  = 0.0001
  norm       = 1.11094
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.98209
  Prefactor  = 23.8804
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 7.16542
  Normalizat = 0.871084
  Prefactor  = 1.11662
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.351     FROM HESSE     STATUS=OK           614 CALLS     4171 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8215        4.5667        .14315E-03   -1.5269    
   4  norm          .10000E-03    .88898        .65320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9930        2.4319        .74812E-04   -1.5261    
   7  Prefactor     .10000E-03    18.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7592        9.0505        .10411E-02   -1.5320    
   9  Prefactor     .10000E-03    9.4055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.633        .19825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.692        18.463        .10450E-03   -1.4941    
  14  Prefactor     7.6334        41.631        .14510E-03   -1.5155    
  15  norm          4.4371        4.2202        .12710E-03   -1.5287    
  16  Prefactor     .10000E-03    29.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.853        65.461        .94982E-04   -1.4863    
  18  Prefactor     .10000E-03    27.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1109        1.2762        .83252E-04   -1.5497    
  20  norm          .10000E-03    28.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9397        .11782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.9821        13.291        .15183E-03   -1.5179    
  23  Prefactor     23.880        45.510        .81972E-04   -1.4730    
  24  Prefactor     .10000E-03    35.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.5410        .86102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.4682        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    8.2275        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    49.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.1654        52.087        .14984E-03   -1.5173    
  30  Normalizat    .87108        .19960        .22443E-03   -.97484    
  31  Prefactor     1.1166        .24474        .25494E-03   -.88937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65718e-09
Minuit parameter uncertainties:
  1  8.15771e-06
  2  1.81425e-05
  3  4.56702
  4  3.72873e-06
  5  2.55752e-05
  6  2.43193
  7  4.02952e-05
  8  9.0538
  9  1.76345e-05
  10  8.85133e-05
  11  8.45254e-05
  12  9.82559e-05
  13  18.4699
  14  35.6911
  15  4.22051
  16  2.21131e-05
  17  65.7266
  18  9.00916e-05
  19  1.27627
  20  3.4666e-05
  21  2.05058e-06
  22  13.2963
  23  45.576
  24  0.000326661
  25  7.26095e-07
  26  4.43071e-06
  27  0.000973972
  28  0.000194094
  29  38.6854
  30  0.199768
  31  0.24499
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.826e-05  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.117e+00  2.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.711e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.240 47.809
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532885/likelihoodResults_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.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) = 5053.35096074
delta logL = -0.000223196243496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.35073624
delta logL = 1.30612170324e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2401       1.0000          .0000       10.000    
     3 'Normalizat'    .87107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5053.351     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      260 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    .25088E-01    .64279E-01** at limit **
   2  Index         4.3239        5.5589        .50000       -.17698E-04
   3  Normalizat    .87108        .51472E-03    .44531E-01    .78902E-04
   4  Prefactor     1.1166        .65682E-03    .57652E-01    .45216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100074
  Index      = 4.32392
  Normalizat = 0.871081
  Prefactor  = 1.11662
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.351     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      303 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    .12382        .29702E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.3239        7.1589        .50000       -.13563    
   3  Normalizat    .87108        .65092E-03    .22443E-03   -.97484    
   4  Prefactor     1.1166        .83046E-03    .25494E-03   -.88937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81579e-08
Minuit parameter uncertainties:
  1  0.000191371
  2  37.991
  3  0.000650923
  4  0.000830458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532885': 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) = 5053.35073571
delta logL = 1.83875636139e-06

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.001e-04  1.914e-04  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  4.324e+00  3.799e+01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.117e+00  8.305e-04  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  8.711e-01  6.509e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.240 47.809

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/532885/cmap_HighResolution_248400001_248659201_4FGL_J1324.9+4748_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-07 15:27:36.560010', job_id='532885', GAL2='1.12', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631053656.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='35' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:27:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 532885: <4FGL_J1324.9+4748_daily_bin35> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin35> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:11:06 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:13:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:13:13 2021
Terminated at Tue Sep  7 15:27:37 2021
Results reported at Tue Sep  7 15:27:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin35 201.24 47.8086 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1324.9+4748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   815.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            991 sec.

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

