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


Performing analysis on: 4FGL_J1324.9+4748_daily_bin261
RA = 201.24, Dec = 47.8086
tmin = 306979201, tmax = 307238401
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='534244', job_status='RUN', time_executed='2021-09-07 15:16:05.462999', time_epoch_executed='1631052965.46' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534244/ft1_4FGL_J1324.9+4748_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534244/ft1_4FGL_J1324.9+4748_daily_bin261.fits outfile=/scratch/kocevski/534244/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin261.fits ra=201.24 dec=47.8086 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.20
user 13.71
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.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/534244/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.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.57
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/534244/ltcube_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.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/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits
.....................!
real 15.00
user 14.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/534244/ltcube_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.fits outfile=/scratch/kocevski/534244/expmap_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.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/534244/ltcube_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.fits
.....................!
real 192.16
user 187.43
sys 4.28

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/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.fits scfile=/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits outfile=/scratch/kocevski/534244/cmap_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.fits scfile=/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits outfile=/scratch/kocevski/534244/cmap_HighResolution_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.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.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.fits', '/scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits', expMap='/scratch/kocevski/534244/expmap_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.fits', expCube='/scratch/kocevski/534244/ltcube_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/534244/Model_4FGL_J1324.9+4748_daily_bin261.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/534244/ft1_filtered_4FGL_J1324.9+4748_daily_bin261.fits
Spacecraft file(s): /scratch/kocevski/534244/ft2_4FGL_J1324.9+4748_daily_bin261.fits
Exposure map: /scratch/kocevski/534244/expmap_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.fits
Exposure cube: /scratch/kocevski/534244/ltcube_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/534244/Model_4FGL_J1324.9+4748_daily_bin261.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) = 4028.62781565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4113       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1281       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0902       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4897       1.0000         .10000E-03   10000.    
    12 'Prefactor '    77.514       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26699E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6237       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.186       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2407       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.0944       1.0000         .10000E-03   10000.    
    22 'norm      '    11.729       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.249       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    51.071       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0851       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.478       1.0000         .10000E-03   10000.    
    29 'Prefactor '    47.197       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0550       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67735       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=   4028.611     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4073 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1397        5.8528        .84582E-05    .13601E-03
   2  Prefactor     .10000E-03    22.713       -.20569E-05** at limit **
   3  Prefactor     .10000E-03    3.2572       -.22663E-06** at limit **
   4  norm          3.4114        2.9789       -.11324E-06   -.45023E-04
   5  Prefactor     .10000E-03    21.331       -.12019E-05** at limit **
   6  norm          4.1287        2.8263        .14136E-06   -.20741E-03
   7  Prefactor     .10000E-03    12.818       -.21265E-07** at limit **
   8  Prefactor     6.5494        9.8174        .36392E-05    .10393E-04
   9  Prefactor     .10000E-03    8.3323        .16082E-07** at limit **
  10  norm          7.0902        8.4675        .38013E-07   -.37841E-05
  11  norm          6.4905        4.3672        .10495E-06   -.20434E-03
  12  Prefactor     77.532        44.298        .74908E-06    .84506E-04
  13  Prefactor     .10000E-03    12.503       -.38206E-06** at limit **
  14  Prefactor     .10000E-03    100.22        .13812E-05** at limit **
  15  norm          2.6243        2.9814        .13294E-06   -.18675E-03
  16  Prefactor     .10000E-03    38.147       -.47984E-06** at limit **
  17  Prefactor     10.865        209.21        .19929E-04    .15550E-03
  18  Prefactor     25.204        46.515        .23614E-05    .53163E-04
  19  norm          2.2409        1.6900        .17696E-06   -.66743E-04
  20  norm          .10000E-03    31.103        .60482E-06** at limit **
  21  norm          5.0955        4.7831        .36851E-06   -.23377E-03
  22  norm          11.731        16.989        .74884E-06   -.67598E-05
  23  Prefactor     20.234        41.531       -.72223E-06   -.11089E-03
  24  Prefactor     .10000E-03    23.882       -.70411E-07** at limit **
  25  Prefactor     .10000E-03    1.7760        .77094E-07** at limit **
  26  Prefactor     51.096        33.630        .23851E-05    .21983E-03
  27  Prefactor     2.0851        2.5490        .13278E-06   -.13399E-05
  28  Prefactor     23.479        32.327        .30946E-06   -.11889E-04
  29  Prefactor     47.203        61.522        .85335E-06    .13179E-04
  30  Normalizat    1.0543        .22155       -.10046E-04    .28096E-03
  31  Prefactor     .67814        .24967        .93841E-05   -.23930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13974
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.41144
  Prefactor  = 0.0001
  norm       = 4.12867
  Prefactor  = 0.0001
  Prefactor  = 6.54939
  Prefactor  = 0.0001
  norm       = 7.09024
  norm       = 6.49048
  Prefactor  = 77.5323
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.62426
  Prefactor  = 0.0001
  Prefactor  = 10.865
  Prefactor  = 25.2035
  norm       = 2.24086
  norm       = 0.000100001
  norm       = 5.09553
  norm       = 11.7307
  Prefactor  = 20.2335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.0957
  Prefactor  = 2.08513
  Prefactor  = 23.4793
  Prefactor  = 47.2027
  Normalizat = 1.05427
  Prefactor  = 0.678141
 **********
 **   18 **HESSE 
 **********

 FCN=   4028.611     FROM HESSE     STATUS=OK           616 CALLS     4689 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1397        5.9425        .10284E-02   -1.5354    
   2  Prefactor     .10000E-03    22.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2702        .11181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4114        2.9735        .98241E-04   -1.5339    
   5  Prefactor     .10000E-03    21.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1287        2.8238        .84668E-04   -1.5302    
   7  Prefactor     .10000E-03    12.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5494        9.8180        .78416E-03   -1.5196    
   9  Prefactor     .10000E-03    8.3372        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0902        8.4671        .15065E-03   -1.5175    
  11  norm          6.4905        4.3674        .10447E-03   -1.5198    
  12  Prefactor     77.532        44.336        .45611E-04   -1.3945    
  13  Prefactor     .10000E-03    12.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    101.28        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6243        2.9757        .11312E-03   -1.5384    
  16  Prefactor     .10000E-03    38.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.865        209.84        .12237E-03   -1.5049    
  18  Prefactor     25.204        46.514        .79821E-04   -1.4703    
  19  norm          2.2409        1.6837        .68488E-04   -1.5409    
  20  norm          .10000E-03    31.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.0955        4.7730        .12633E-03   -1.5256    
  22  norm          11.731        16.983        .11697E-03   -1.5023    
  23  Prefactor     20.234        41.568        .89009E-04   -1.4808    
  24  Prefactor     .10000E-03    23.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.7774        .82599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     51.096        33.770        .56118E-04   -1.4277    
  27  Prefactor     2.0851        2.5276        .10399E-03   -1.5419    
  28  Prefactor     23.479        32.290        .82668E-04   -1.4738    
  29  Prefactor     47.203        61.510        .58365E-04   -1.4333    
  30  Normalizat    1.0543        .24819        .21147E-03   -.91234    
  31  Prefactor     .67814        .28133        .31233E-03   -1.0439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93826e-09
Minuit parameter uncertainties:
  1  5.94361
  2  0.000305597
  3  7.00931e-07
  4  2.97361
  5  0.000118109
  6  2.82391
  7  4.54172e-06
  8  9.82042
  9  3.78373e-06
  10  8.46851
  11  4.3676
  12  44.3547
  13  5.68785e-05
  14  0.00120005
  15  2.97589
  16  8.28852e-05
  17  95.8857
  18  46.5806
  19  1.68373
  20  0.000340153
  21  4.77333
  22  16.9897
  23  41.6278
  24  6.46742e-05
  25  6.71888e-07
  26  33.7823
  27  2.52769
  28  32.3135
  29  61.5926
  30  0.248466
  31  0.281925
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  7.753e+01  4.435e+01  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:  6.781e-01  2.819e-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:  1.054e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 201.240 47.809
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 8.25e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.16e-05

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) = 4027.74668477
delta logL = 0.864260039745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4027.74377897
delta logL = 0.867165837839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.200       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6135       1.0000          .0000       10.000    
     3 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72426       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4027.744     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      297 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.195        43.280        .74143E-04    .11991E-03
   2  Index         3.6133        .98453        .37648E-02    .49823E-04
   3  Normalizat    1.0023        .23475        .21588E-03   -.70490E-04
   4  Prefactor     .72426        .28049        .30301E-03   -.61568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1952
  Index      = 3.61335
  Normalizat = 1.0023
  Prefactor  = 0.724263
 **********
 **   18 **HESSE 
 **********

 FCN=   4027.744     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.195        35.355        .29657E-05   -1.4627    
   2  Index         3.6133        .80549        .15059E-03   -.28101    
   3  Normalizat    1.0023        .23472        .86350E-05   -.92953    
   4  Prefactor     .72426        .28038        .12121E-04   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29888e-11
Minuit parameter uncertainties:
  1  35.3805
  2  0.809317
  3  0.234963
  4  0.280925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534244': 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) = 4027.74377866
delta logL = 0.867166141235

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  2.920e+01  3.538e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  3.613e+00  8.093e-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:  7.243e-01  2.809e-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:  1.002e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.83
Ra Dec: 201.240 47.809
Photon Index (Free Index): 3.61 +/- 0.81
Photon Flux (Free Index): 1.23e-07 +/- 6.18e-08
Energy Flux (Free Index): 1.99e-05 +/- 9.61e-06

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/534244/cmap_HighResolution_306979201_307238401_4FGL_J1324.9+4748_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.25e-08', energy_flux2='1.99e-05', photon_flux_error='4.71e-08', dlogl='8.67e-01', energy_flux='2.03e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-07 15:28:26.265783', photon_index_error2='0.81', photon_index2='3.61', ts='5.96', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='9.61e-06', EG='1.05', time_epoch_completed='1631053706.27', return_code='0', job_id='534244', GAL2='0.72', EG2='1.00', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='6.18e-08', ts2='7.83', photon_index='2.67' WHERE bin_id='261' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:28:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 534244: <4FGL_J1324.9+4748_daily_bin261> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin261> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 15:15:37 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:15:46 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:15:46 2021
Terminated at Tue Sep  7 15:28:27 2021
Results reported at Tue Sep  7 15:28:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin261 201.24 47.8086 306979201 307238401 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 :                                   731.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            770 sec.

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

