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


Performing analysis on: 4FGL_J1324.9+4748_daily_bin1154
RA = 201.24, Dec = 47.8086
tmin = 538444801, tmax = 538704001
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='541386', job_status='RUN', time_executed='2021-09-07 15:32:30.581374', time_epoch_executed='1631053950.58' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541386

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541386/ft1_4FGL_J1324.9+4748_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541386/ft2_4FGL_J1324.9+4748_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541386/ft1_4FGL_J1324.9+4748_daily_bin1154.fits outfile=/scratch/kocevski/541386/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1154.fits ra=201.24 dec=47.8086 rad=12.0 tmin=538444801.0 tmax=538704001.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.55
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541386/ft1_filtered_4FGL_J1324.9+4748_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/541386/ft2_4FGL_J1324.9+4748_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/541386/ltcube_538444801_538704001_4FGL_J1324.9+4748_daily_bin1154.fits outfile=/scratch/kocevski/541386/expmap_538444801_538704001_4FGL_J1324.9+4748_daily_bin1154.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/541386/ltcube_538444801_538704001_4FGL_J1324.9+4748_daily_bin1154.fits
.....................!
real 193.52
user 187.10
sys 4.45

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/541386/ft1_filtered_4FGL_J1324.9+4748_daily_bin1154.fits scfile=/scratch/kocevski/541386/ft2_4FGL_J1324.9+4748_daily_bin1154.fits outfile=/scratch/kocevski/541386/cmap_538444801_538704001_4FGL_J1324.9+4748_daily_bin1154.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/541386/ft1_filtered_4FGL_J1324.9+4748_daily_bin1154.fits scfile=/scratch/kocevski/541386/ft2_4FGL_J1324.9+4748_daily_bin1154.fits outfile=/scratch/kocevski/541386/cmap_HighResolution_538444801_538704001_4FGL_J1324.9+4748_daily_bin1154.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .95167       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1978       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.898       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9704       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    146.54       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1000       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8677       1.0000         .10000E-03   10000.    
    20 'norm      '    44.439       1.0000         .10000E-03   10000.    
    21 'norm      '    .45155       1.0000         .10000E-03   10000.    
    22 'norm      '    4.8311       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.043       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4441       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .56221       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1082       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .69343       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=   4859.284     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4215 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.374        7.8214        .30229E-06    .76623E-05
   2  Prefactor     .10000E-03    18.056       -.45040E-06** at limit **
   3  Prefactor     .10000E-03    5.9901       -.47357E-06** at limit **
   4  norm          .10000E-03    2.5540       -.30935E-06** at limit **
   5  Prefactor     .10000E-03    18.486       -.61063E-06** at limit **
   6  norm          .95152        1.8632        .79757E-07    .85448E-04
   7  Prefactor     44.923        60.276        .11094E-05    .17111E-05
   8  Prefactor     .67668        13.957        .34409E-05   -.32101E-03
   9  Prefactor     .10000E-03    7.9057       -.41429E-07** at limit **
  10  norm          7.1973        9.2219        .66753E-06    .12867E-03
  11  norm          .10000E-03    1.3860       -.13316E-06** at limit **
  12  Prefactor     61.483        32.321        .15022E-06   -.19218E-04
  13  Prefactor     4.2384        22.496       -.41297E-06   -.24046E-04
  14  Prefactor     24.894        24.921        .14624E-06   -.21859E-04
  15  norm          2.9702        5.9449        .88564E-06    .11173E-03
  16  Prefactor     .10000E-03    23.177        .10430E-06** at limit **
  17  Prefactor     146.66        90.484        .15980E-05    .62517E-04
  18  Prefactor     8.1145        45.465       -.10663E-05   -.28999E-04
  19  norm          4.8676        1.8651        .89788E-07    .21064E-04
  20  norm          44.519        71.183       -.13562E-06    .27409E-04
  21  norm          .44224        4.3863       -.20324E-05    .39602E-03
  22  norm          4.8304        13.494        .13200E-05    .41160E-04
  23  Prefactor     21.066        41.352       -.30836E-05   -.83371E-04
  24  Prefactor     .10000E-03    24.893       -.19127E-06** at limit **
  25  Prefactor     .10000E-03    2.2437       -.23349E-06** at limit **
  26  Prefactor     7.4406        20.335        .14910E-05   -.12711E-04
  27  Prefactor     .56091        2.8272        .22676E-05    .50691E-03
  28  Prefactor     .10000E-03    17.012       -.29316E-06** at limit **
  29  Prefactor     .10000E-03    21.787       -.62219E-07** at limit **
  30  Normalizat    1.1083        .20888       -.49512E-05   -.23102E-03
  31  Prefactor     .69340        .23483        .49183E-05   -.22725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.95152
  Prefactor  = 44.9231
  Prefactor  = 0.676681
  Prefactor  = 0.0001
  norm       = 7.19732
  norm       = 0.0001
  Prefactor  = 61.4831
  Prefactor  = 4.23839
  Prefactor  = 24.8938
  norm       = 2.97019
  Prefactor  = 0.0001
  Prefactor  = 146.662
  Prefactor  = 8.11447
  norm       = 4.86756
  norm       = 44.5192
  norm       = 0.44224
  norm       = 4.83043
  Prefactor  = 21.0661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44057
  Prefactor  = 0.560907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10833
  Prefactor  = 0.693403
 **********
 **   18 **HESSE 
 **********

 FCN=   4859.284     FROM HESSE     STATUS=OK           630 CALLS     4845 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.374        7.8247        .11878E-03   -1.5033    
   2  Prefactor     .10000E-03    18.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1178        .16632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6233        .21632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .95152        1.6463        .12857E-02   -1.5513    
   7  Prefactor     44.923        60.340        .59822E-04   -1.4366    
   8  Prefactor     .67668        50.390        .44147E-02   -1.5543    
   9  Prefactor     .10000E-03    7.9244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1973        9.2419        .74756E-03   -1.5171    
  11  norm          .10000E-03    1.3935        .80120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     61.483        32.314        .51173E-04   -1.4138    
  13  Prefactor     4.2384        21.146        .19576E-03   -1.5296    
  14  Prefactor     24.894        24.916        .80281E-04   -1.4710    
  15  norm          2.9702        5.7742        .18758E-03   -1.5363    
  16  Prefactor     .10000E-03    23.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     146.66        90.661        .16644E-03   -1.3280    
  18  Prefactor     8.1145        45.247        .14087E-03   -1.5138    
  19  norm          4.8676        1.8653        .56193E-04   -1.5267    
  20  norm          44.519        72.090        .30071E-03   -1.4373    
  21  norm          .44224        7.3683        .24159E-02   -1.5575    
  22  norm          4.8304        13.499        .18303E-03   -1.5268    
  23  Prefactor     21.066        41.609        .87314E-04   -1.4790    
  24  Prefactor     .10000E-03    24.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.2563        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4406        20.402        .14700E-03   -1.5162    
  27  Prefactor     .56091        3.0335        .21897E-03   -1.5558    
  28  Prefactor     .10000E-03    17.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    21.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1083        .22674        .20421E-03   -.89485    
  31  Prefactor     .69340        .25479        .31023E-03   -1.0379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79624e-09
Minuit parameter uncertainties:
  1  7.82536
  2  2.27947e-05
  3  3.5076e-05
  4  2.99857e-05
  5  2.85317e-05
  6  1.64635
  7  60.4224
  8  11.688
  9  6.61723e-06
  10  9.24372
  11  2.38226e-06
  12  32.3227
  13  18.9444
  14  24.9264
  15  5.77527
  16  4.4606e-05
  17  90.7475
  18  38.3671
  19  1.86534
  20  72.2312
  21  3.61041
  22  13.5074
  23  41.6666
  24  5.61216e-06
  25  6.78742e-06
  26  20.4207
  27  2.60882
  28  6.53072e-05
  29  7.58588e-06
  30  0.226937
  31  0.255224
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  6.148e+01  3.232e+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.934e-01  2.552e-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.108e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.26
Ra Dec: 201.240 47.809
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 8.45e-06

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) = 4855.70258632
delta logL = 3.5810184858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4855.40977716
delta logL = 3.87382764457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.311       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6062       1.0000          .0000       10.000    
     3 'Normalizat'    1.1532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64904       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=   4855.410     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      218 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.311        46.075        .10346E-02   -.18862E-02
   2  Index         1.6062        .27990        .12274       -.44165E-04
   3  Normalizat    1.1532        .17616        .36155E-01    .19987E-05
   4  Prefactor     .64910        .21667        .72063E-01    .20715E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.3114
  Index      = 1.6062
  Normalizat = 1.1532
  Prefactor  = 0.649098
 **********
 **   18 **HESSE 
 **********

 FCN=   4855.410     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.311        49.245        .41385E-04   -1.3763    
   2  Index         1.6062        .31397        .51791E-02   -.74607    
   3  Normalizat    1.1532        .20430        .20067E-03   -.88062    
   4  Prefactor     .64910        .25070        .31897E-03   -1.0556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05208e-08
Minuit parameter uncertainties:
  1  49.2665
  2  0.314351
  3  0.204445
  4  0.251133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541386': 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) = 4855.40977713
delta logL = 3.87382768074

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  9.431e+01  4.927e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.606e+00  3.144e-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:  6.491e-01  2.511e-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.153e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.16
Ra Dec: 201.240 47.809
Photon Index (Free Index): 1.61 +/- 0.31
Photon Flux (Free Index): 3.44e-08 +/- 1.99e-08
Energy Flux (Free Index): 7.63e-05 +/- 6.71e-05

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/541386/cmap_HighResolution_538444801_538704001_4FGL_J1324.9+4748_daily_bin1154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='7.63e-05', photon_flux_error='3.43e-08', dlogl='3.87e+00', energy_flux='1.61e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-09-07 15:45:20.132620', photon_index_error2='0.31', photon_index2='1.61', ts='11.26', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='6.71e-05', EG='1.11', time_epoch_completed='1631054720.13', return_code='0', job_id='541386', GAL2='0.65', EG2='1.15', return_code2='0', energy_flux_error='8.45e-06', photon_flux_error2='1.99e-08', ts2='19.16', photon_index='2.67' WHERE bin_id='1154' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 541386: <4FGL_J1324.9+4748_daily_bin1154> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin1154> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:30:29 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:32:15 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:32:15 2021
Terminated at Tue Sep  7 15:45:20 2021
Results reported at Tue Sep  7 15:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin1154 201.24 47.8086 538444801 538704001 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            891 sec.

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

