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


Performing analysis on: 4FGL_J1324.9+4748_daily_bin55
RA = 201.24, Dec = 47.8086
tmin = 253584001, tmax = 253843201
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='532919', job_status='RUN', time_executed='2021-09-07 15:13:34.451040', time_epoch_executed='1631052814.45' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532919/ft1_4FGL_J1324.9+4748_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532919/ft2_4FGL_J1324.9+4748_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532919/ft1_4FGL_J1324.9+4748_daily_bin55.fits outfile=/scratch/kocevski/532919/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin55.fits ra=201.24 dec=47.8086 rad=12.0 tmin=253584001.0 tmax=253843201.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.50
user 1.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532919/ft1_filtered_4FGL_J1324.9+4748_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/532919/ft2_4FGL_J1324.9+4748_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/532919/ltcube_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.fits outfile=/scratch/kocevski/532919/expmap_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.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/532919/ltcube_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.fits
.....................!
real 192.77
user 188.26
sys 4.00

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/532919/ft1_filtered_4FGL_J1324.9+4748_daily_bin55.fits scfile=/scratch/kocevski/532919/ft2_4FGL_J1324.9+4748_daily_bin55.fits outfile=/scratch/kocevski/532919/cmap_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532919/ft1_filtered_4FGL_J1324.9+4748_daily_bin55.fits scfile=/scratch/kocevski/532919/ft2_4FGL_J1324.9+4748_daily_bin55.fits outfile=/scratch/kocevski/532919/cmap_HighResolution_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5086       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.473       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .55854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.943       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6170       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13750E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    82.566       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96356E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2481       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.685       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39672E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    100.87       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11521E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.107       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.1417       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12513E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    52.548       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67369       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1432       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=   4243.193     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     4144 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.013        10.378        .49739E-06    .14152E-03
   2  Prefactor     .10000E-03    46.885       -.18048E-05** at limit **
   3  Prefactor     .10000E-03    8.0052        .15248E-06** at limit **
   4  norm          7.5092        4.2754        .51850E-07   -.47073E-04
   5  Prefactor     23.489        24.344        .59434E-06    .11810E-04
   6  norm          .10000E-03    .99768        .61820E-07** at limit **
   7  Prefactor     .10000E-03    19.126        .22267E-06** at limit **
   8  Prefactor     .10000E-03    15.279        .18134E-06** at limit **
   9  Prefactor     .10000E-03    6.8061        .95209E-07** at limit **
  10  norm          .10000E-03    5.3793        .54481E-07** at limit **
  11  norm          .55780        2.0862        .22411E-06   -.64499E-04
  12  Prefactor     .10000E-03    11.370        .10474E-06** at limit **
  13  Prefactor     32.938        36.703       -.79626E-05   -.14015E-04
  14  Prefactor     .10000E-03    10.344        .66482E-07** at limit **
  15  norm          2.6184        8.3172        .91009E-05   -.57718E-03
  16  Prefactor     .10000E-03    177.71       -.31551E-05** at limit **
  17  Prefactor     82.554        83.552        .11946E-05   -.61740E-05
  18  Prefactor     .10000E-03    366.92        .96055E-05** at limit **
  19  norm          3.2485        1.7005        .30660E-08   -.80614E-04
  20  norm          .10000E-03    54.776        .28165E-05** at limit **
  21  norm          .10000E-03    3.3559       -.17411E-06** at limit **
  22  norm          24.689        18.263        .19274E-06   -.14297E-04
  23  Prefactor     .10004E-03    234.95       -.88297E-05** at limit **
  24  Prefactor     100.79        70.277        .69828E-05    .20497E-03
  25  Prefactor     .10002E-03    9.3887       -.54004E-05** at limit **
  26  Prefactor     33.110        30.387       -.88981E-06    .87574E-04
  27  Prefactor     4.1413        4.1085       -.15326E-06    .35587E-04
  28  Prefactor     .10000E-03    74.153       -.16587E-05** at limit **
  29  Prefactor     52.550        57.662       -.33642E-06    .20571E-04
  30  Normalizat    .67333        .19875        .20297E-07    .40609E-04
  31  Prefactor     1.1435        .23218       -.17384E-05   -.19202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.50915
  Prefactor  = 23.4887
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.557799
  Prefactor  = 0.0001
  Prefactor  = 32.9382
  Prefactor  = 0.0001
  norm       = 2.61844
  Prefactor  = 0.0001
  Prefactor  = 82.5544
  Prefactor  = 0.000100001
  norm       = 3.24848
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.6885
  Prefactor  = 0.00010004
  Prefactor  = 100.792
  Prefactor  = 0.000100016
  Prefactor  = 33.1101
  Prefactor  = 4.14133
  Prefactor  = 0.0001
  Prefactor  = 52.5496
  Normalizat = 0.673332
  Prefactor  = 1.1435
 **********
 **   18 **HESSE 
 **********

 FCN=   4243.193     FROM HESSE     STATUS=OK           616 CALLS     4760 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.013        10.372        .10340E-03   -1.4933    
   2  Prefactor     .10000E-03    47.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1091        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5092        4.2637        .98430E-04   -1.5160    
   5  Prefactor     23.489        24.400        .82677E-04   -1.4738    
   6  norm          .10000E-03    1.0037        .63525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8146        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.3828        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55780        2.0949        .17585E-03   -1.5559    
  12  Prefactor     .10000E-03    11.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.938        37.388        .69814E-04   -1.4559    
  14  Prefactor     .10000E-03    10.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6184        8.5472        .11325E-02   -1.5384    
  16  Prefactor     .10000E-03    178.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     82.554        83.962        .44205E-04   -1.3888    
  18  Prefactor     .10000E-03    374.25        .41573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2485        1.6986        .59037E-04   -1.5347    
  20  norm          .10000E-03    54.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3893        .11649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.689        18.261        .40313E-03   -1.4714    
  23  Prefactor     .10004E-03    238.43        .21267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     100.79        70.819        .20015E-03   -1.3697    
  25  Prefactor     .10002E-03    10.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     33.110        30.399        .69642E-04   -1.4557    
  27  Prefactor     4.1413        4.0901        .12436E-03   -1.5301    
  28  Prefactor     .10000E-03    74.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     52.550        57.655        .55328E-04   -1.4257    
  30  Normalizat    .67333        .23269        .25903E-03   -1.0496    
  31  Prefactor     1.1435        .27250        .25557E-03   -.88088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81883e-09
Minuit parameter uncertainties:
  1  10.373
  2  7.97784e-05
  3  2.1653e-05
  4  4.2639
  5  24.4103
  6  3.19383e-06
  7  2.05211e-05
  8  5.84467e-05
  9  1.22394e-05
  10  6.32158e-06
  11  2.09515
  12  3.01208e-06
  13  37.415
  14  3.40551e-07
  15  8.55121
  16  0.000457022
  17  84.0825
  18  0.00104724
  19  1.69865
  20  5.20558e-05
  21  1.52846e-05
  22  18.2656
  23  0.00623232
  24  70.8785
  25  0.000814115
  26  30.4132
  27  4.09039
  28  0.000292641
  29  57.716
  30  0.233027
  31  0.272831
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.012e-06  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.144e+00  2.728e-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:  6.733e-01  2.330e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532919/likelihoodResults_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.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) = 4243.1933375
delta logL = -0.00041696048811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4243.19292268
delta logL = -2.14280862565e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6511       1.0000          .0000       10.000    
     3 'Normalizat'    .67367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1431       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=   4243.193     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      260 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.815        .18142E-01** at limit **
   2  Index         1.9336        6.6294        .50000       -.14279E-07
   3  Normalizat    .67333        .91092E-02    .25903E-03   -.12579E-03
   4  Prefactor     1.1435        .11499E-01    .25557E-03   -.12642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93359
  Normalizat = 0.673331
  Prefactor  = 1.1435
 **********
 **   18 **HESSE 
 **********

 FCN=   4243.193     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    449.30        .25947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9336        9.0026        .50000       -.66021    
   3  Normalizat    .67333        .24375E-01    .10361E-04   -1.0496    
   4  Prefactor     1.1435        .30768E-01    .51115E-04   -.88088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.83512e-11
Minuit parameter uncertainties:
  1  0.000149902
  2  1158.08
  3  0.0243754
  4  0.0307688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532919': 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) = 4243.19291915
delta logL = 1.3904655134e-06

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.499e-04  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.934e+00  1.158e+03  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.144e+00  3.077e-02  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:  6.733e-01  2.438e-02  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/532919/cmap_HighResolution_253584001_253843201_4FGL_J1324.9+4748_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-07 15:26:32.512123', job_id='532919', GAL2='1.14', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631053592.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='55' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:26:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 532919: <4FGL_J1324.9+4748_daily_bin55> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin55> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:11:07 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:13:19 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:19 2021
Terminated at Tue Sep  7 15:26:33 2021
Results reported at Tue Sep  7 15:26:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin55 201.24 47.8086 253584001 253843201 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 :                                   777.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            926 sec.

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

