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


Performing analysis on: 4FGL_J1324.9+4748_daily_bin906
RA = 201.24, Dec = 47.8086
tmin = 474163201, tmax = 474422401
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='539517', job_status='RUN', time_executed='2021-09-07 15:32:46.818580', time_epoch_executed='1631053966.82' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539517/ft1_4FGL_J1324.9+4748_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539517/ft2_4FGL_J1324.9+4748_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539517/ft1_4FGL_J1324.9+4748_daily_bin906.fits outfile=/scratch/kocevski/539517/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin906.fits ra=201.24 dec=47.8086 rad=12.0 tmin=474163201.0 tmax=474422401.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 5.61
user 5.26
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539517/ft2_4FGL_J1324.9+4748_daily_bin906.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/539517/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/539517/ft1_filtered_4FGL_J1324.9+4748_daily_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539517/ft1_filtered_4FGL_J1324.9+4748_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/539517/ft2_4FGL_J1324.9+4748_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/539517/ltcube_474163201_474422401_4FGL_J1324.9+4748_daily_bin906.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/539517/ft2_4FGL_J1324.9+4748_daily_bin906.fits
.....................!
real 16.82
user 16.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539517/ft1_filtered_4FGL_J1324.9+4748_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/539517/ft2_4FGL_J1324.9+4748_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/539517/ltcube_474163201_474422401_4FGL_J1324.9+4748_daily_bin906.fits outfile=/scratch/kocevski/539517/expmap_474163201_474422401_4FGL_J1324.9+4748_daily_bin906.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/539517/ltcube_474163201_474422401_4FGL_J1324.9+4748_daily_bin906.fits
.....................!
real 193.49
user 186.41
sys 6.25

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/539517/ft1_filtered_4FGL_J1324.9+4748_daily_bin906.fits scfile=/scratch/kocevski/539517/ft2_4FGL_J1324.9+4748_daily_bin906.fits outfile=/scratch/kocevski/539517/cmap_474163201_474422401_4FGL_J1324.9+4748_daily_bin906.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.642       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0011       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9789       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4125       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    120.50       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.885       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1120       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.980       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1973       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.904       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16610E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77432       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=   2402.773     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4098 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1967        .78273E-07** at limit **
   2  Prefactor     .10000E-03    70.688        .39473E-05** at limit **
   3  Prefactor     26.644        24.556       -.35235E-05    .10556E-04
   4  norm          5.0027        9.9247        .62052E-05   -.35009E-04
   5  Prefactor     .10000E-03    23.846        .13507E-05** at limit **
   6  norm          3.9794        3.7123       -.32841E-06    .74108E-05
   7  Prefactor     7.4287        140.25        .20727E-05    .42846E-05
   8  Prefactor     .10000E-03    8.5479       -.90064E-07** at limit **
   9  Prefactor     .10000E-03    11.307       -.18635E-06** at limit **
  10  norm          .10000E-03    8.5734       -.21206E-07** at limit **
  11  norm          .10000E-03    6.3302        .82841E-06** at limit **
  12  Prefactor     120.54        75.127        .49657E-06    .35546E-04
  13  Prefactor     .10000E-03    12.884        .77836E-06** at limit **
  14  Prefactor     .10000E-03    22.901       -.60169E-07** at limit **
  15  norm          11.784        7.9856       -.40798E-07    .41796E-05
  16  Prefactor     .10000E-03    35.788        .93693E-06** at limit **
  17  Prefactor     .10000E-03    66.889        .15036E-05** at limit **
  18  Prefactor     27.896        79.123        .66754E-06    .10041E-04
  19  norm          1.1123        2.1050        .66978E-07   -.18864E-04
  20  norm          .10000E-03    60.861       -.12886E-05** at limit **
  21  norm          .10000E-03    3.3989       -.11957E-07** at limit **
  22  norm          .10000E-03    13.377       -.47606E-06** at limit **
  23  Prefactor     .10000E-03    54.039       -.41911E-05** at limit **
  24  Prefactor     .10000E-03    22.636       -.12072E-05** at limit **
  25  Prefactor     .10000E-03    3.0682       -.90675E-07** at limit **
  26  Prefactor     17.974        31.893       -.56876E-06    .12342E-04
  27  Prefactor     2.2035        5.3941       -.16517E-05    .35876E-04
  28  Prefactor     12.730        80.437       -.33974E-05   -.56715E-04
  29  Prefactor     .10000E-03    210.51       -.33049E-05** at limit **
  30  Normalizat    1.2081        .28342        .40354E-05   -.80396E-04
  31  Prefactor     .77408        .32883       -.43759E-05    .50638E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6444
  norm       = 5.00274
  Prefactor  = 0.0001
  norm       = 3.97938
  Prefactor  = 7.42874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 120.537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8961
  norm       = 1.11234
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9742
  Prefactor  = 2.20347
  Prefactor  = 12.7298
  Prefactor  = 0.000100001
  Normalizat = 1.20811
  Prefactor  = 0.774076
 **********
 **   18 **HESSE 
 **********

 FCN=   2402.773     FROM HESSE     STATUS=OK           614 CALLS     4712 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2081        .12843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.644        24.608        .77613E-04   -1.4675    
   4  norm          5.0027        10.004        .89911E-03   -1.5261    
   5  Prefactor     .10000E-03    23.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9794        3.7174        .44334E-03   -1.5309    
   7  Prefactor     7.4287        140.16        .14731E-03   -1.5163    
   8  Prefactor     .10000E-03    8.5517        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.318        .16101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.5742        .14019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3570        .12018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     120.54        75.506        .18330E-03   -1.3508    
  13  Prefactor     .10000E-03    12.897        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.784        7.9856        .10937E-03   -1.5021    
  16  Prefactor     .10000E-03    35.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.896        79.368        .75866E-04   -1.4651    
  19  norm          1.1123        2.0504        .92387E-04   -1.5497    
  20  norm          .10000E-03    60.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4176        .88212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.435        .17515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.0751        .83850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     17.974        31.991        .94454E-04   -1.4860    
  27  Prefactor     2.2035        5.2948        .13763E-03   -1.5411    
  28  Prefactor     12.730        80.984        .11151E-03   -1.4994    
  29  Prefactor     .10000E-03    211.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2081        .32340        .21307E-03   -.86352    
  31  Prefactor     .77408        .37366        .31852E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55854e-10
Minuit parameter uncertainties:
  1  5.37379e-06
  2  0.000328105
  3  24.6178
  4  10.0073
  5  6.16991e-05
  6  3.7176
  7  64.7116
  8  3.304e-05
  9  1.49068e-05
  10  8.11117e-06
  11  1.99033e-05
  12  75.566
  13  2.95773e-05
  14  4.23187e-05
  15  7.98632
  16  6.52405e-05
  17  0.000136976
  18  79.6707
  19  2.0505
  20  0.000144083
  21  2.23133e-06
  22  3.86293e-05
  23  0.000264837
  24  4.29055e-05
  25  8.69242e-07
  26  32.021
  27  5.29596
  28  64.3437
  29  0.000898092
  30  0.323933
  31  0.374883
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.205e+02  7.557e+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:  7.741e-01  3.749e-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.208e+00  3.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 201.240 47.809
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 8.03e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.98e-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) = 2402.52029683
delta logL = 0.252824538537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2402.51779013
delta logL = 0.255331233626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.268       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1774       1.0000          .0000       10.000    
     3 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80554       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=   2402.518     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      289 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.314        87.703        .46904E-04    .12483E-04
   2  Index         3.1781        .82849        .37095E-02    .15518E-04
   3  Normalizat    1.1713        .31188        .21571E-03    .59928E-04
   4  Prefactor     .80548        .37382        .31290E-03   -.16804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.3144
  Index      = 3.17808
  Normalizat = 1.17126
  Prefactor  = 0.805478
 **********
 **   18 **HESSE 
 **********

 FCN=   2402.518     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.314        80.353        .18762E-05   -1.3993    
   2  Index         3.1781        .75870        .14838E-03   -.37297    
   3  Normalizat    1.1713        .31202        .43143E-04   -.87496    
   4  Prefactor     .80548        .37392        .12516E-04   -.99527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11965e-11
Minuit parameter uncertainties:
  1  80.4719
  2  0.762098
  3  0.312514
  4  0.375103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539517': 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) = 2402.51778616
delta logL = 0.255335209198

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  7.331e+01  8.047e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  3.178e+00  7.621e-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:  8.055e-01  3.751e-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.171e+00  3.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 201.240 47.809
Photon Index (Free Index): 3.18 +/- 0.76
Photon Flux (Free Index): 1.59e-07 +/- 9.73e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.73e-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/539517/cmap_HighResolution_474163201_474422401_4FGL_J1324.9+4748_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='2.94e-05', photon_flux_error='8.03e-08', dlogl='2.55e-01', energy_flux='3.15e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-07 15:42:02.898712', photon_index_error2='0.76', photon_index2='3.18', ts='4.43', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.21', time_epoch_completed='1631054522.9', return_code='0', job_id='539517', GAL2='0.81', EG2='1.17', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='9.73e-08', ts2='5.00', photon_index='2.67' WHERE bin_id='906' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:42:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 539517: <4FGL_J1324.9+4748_daily_bin906> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin906> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 15:25:37 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:28:53 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:28:53 2021
Terminated at Tue Sep  7 15:42:03 2021
Results reported at Tue Sep  7 15:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin906 201.24 47.8086 474163201 474422401 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 :                                   553.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             195.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            986 sec.

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

