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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin660
RA = 200.296, Dec = 22.2808
tmin = 410400001, tmax = 410659201
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='497167', job_status='RUN', time_executed='2021-09-07 13:16:45.895971', time_epoch_executed='1631045805.9' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497167/ft1_4FGL_J1321.1+2216_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497167/ft1_4FGL_J1321.1+2216_daily_bin660.fits outfile=/scratch/kocevski/497167/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin660.fits ra=200.296 dec=22.2808 rad=12.0 tmin=410400001.0 tmax=410659201.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 7.98
user 6.37
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.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/497167/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.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 1.91
user 0.37
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/497167/ltcube_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.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/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits
.....................!
real 18.12
user 16.75
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/497167/ltcube_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.fits outfile=/scratch/kocevski/497167/expmap_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.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/497167/ltcube_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.fits
.....................!
real 199.26
user 187.98
sys 4.70

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

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits scfile=/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits outfile=/scratch/kocevski/497167/cmap_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.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=200.296 yref=22.2808 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.62
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits scfile=/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits outfile=/scratch/kocevski/497167/cmap_HighResolution_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.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=200.296 yref=22.2808 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.60
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497167/Model_4FGL_J1321.1+2216_daily_bin660.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/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits.....................!
real 46.39
user 44.58
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits', '/scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits', expMap='/scratch/kocevski/497167/expmap_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.fits', expCube='/scratch/kocevski/497167/ltcube_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497167/Model_4FGL_J1321.1+2216_daily_bin660.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/497167/ft1_filtered_4FGL_J1321.1+2216_daily_bin660.fits
Spacecraft file(s): /scratch/kocevski/497167/ft2_4FGL_J1321.1+2216_daily_bin660.fits
Exposure map: /scratch/kocevski/497167/expmap_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.fits
Exposure cube: /scratch/kocevski/497167/ltcube_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497167/Model_4FGL_J1321.1+2216_daily_bin660.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) = 5153.0475041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2892       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.231       1.0000         .10000E-03   10000.    
     5 'norm      '    .52358E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1507       1.0000         .10000E-03   10000.    
     8 'norm      '    15.346       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1019       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.241       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27949E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5112       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5152.967     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2072 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.00         .0000    ** at limit **
   2  Prefactor     1.3086        28.055         .0000        .73341E-02
   3  norm          5.3379        8.2539         .0000        .36376E-02
   4  Prefactor     17.231        15.475         .0000        .34349E-04
   5  norm          .57293E-01    3.3522         .0000        .17046E-03
   6  norm          .10000E-03    2.6812         .0000    ** at limit **
   7  norm          4.1521        5.3963         .0000        .11776E-02
   8  norm          15.346        19.605         .0000        .26892E-03
   9  Prefactor     .10000E-03    16.805         .0000    ** at limit **
  10  norm          .10000E-03    5.1600         .0000    ** at limit **
  11  Prefactor     .10000E-03    13.337         .0000    ** at limit **
  12  norm          .10000E-03    3.8846         .0000    ** at limit **
  13  Prefactor     14.907        21.337         .0000       -.64431E-04
  14  Prefactor     .10000E-03    7.5320         .0000    ** at limit **
  15  Prefactor     .10000E-03    19.008         .0000    ** at limit **
  16  Prefactor     1.1028        4.0877         .0000        .11225E-02
  17  Prefactor     12.241        8.7817         .0000       -.64383E-04
  18  Prefactor     .10000E-03    8.5521         .0000    ** at limit **
  19  Normalizat    1.5110        .21056         .0000       -.10344E-03
  20  Prefactor     .75667        .18946         .0000       -.44233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 1.30857
  norm       = 5.33793
  Prefactor  = 17.231
  norm       = 0.0572925
  norm       = 0.0001
  norm       = 4.15214
  norm       = 15.3464
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10278
  Prefactor  = 12.2414
  Prefactor  = 0.0001
  Normalizat = 1.51104
  Prefactor  = 0.756673
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.967     FROM HESSE     STATUS=OK           297 CALLS     2369 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3086        28.147        .19507E-02   -1.5479    
   3  norm          5.3379        8.2520        .86971E-03   -1.5246    
   4  Prefactor     17.231        15.481        .96485E-04   -1.4878    
   5  norm          .57293E-01    6.7821        .42739E-01   -1.5660    
   6  norm          .10000E-03    2.6928        .11441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1521        5.3741        .92296E-03   -1.5300    
   8  norm          15.346        19.616        .10224E-03   -1.4924    
   9  Prefactor     .10000E-03    16.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.2335        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.9149        .13815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.907        21.355        .10372E-03   -1.4936    
  14  Prefactor     .10000E-03    7.5355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1028        4.0419        .26806E-03   -1.5498    
  17  Prefactor     12.241        8.7820        .11449E-03   -1.5008    
  18  Prefactor     .10000E-03    58.731        .39615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5110        .25146        .23123E-03   -.77469    
  20  Prefactor     .75667        .22431        .28659E-03   -1.0135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23412e-09
Minuit parameter uncertainties:
  1  0.00090011
  2  12.1439
  3  8.25377
  4  15.4842
  5  1.24575
  6  1.35434e-05
  7  5.37477
  8  19.624
  9  0.000266264
  10  4.41802e-05
  11  1.56764e-05
  12  2.26357e-05
  13  21.366
  14  2.29498e-05
  15  7.40844e-05
  16  4.04286
  17  8.78294
  18  1.57389e-05
  19  0.251665
  20  0.224576
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.000e-04  4.418e-05  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.567e-01  2.246e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.511e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497167/likelihoodResults_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5152.96830576
delta logL = -0.000909457564376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5152.95006767
delta logL = 0.017328626338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51664E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5152.950     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      316 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51759E-01    9.0357        .14919E-01    .31817E-03
   2  alpha         5.0000        4.9990        .46267    ** at limit **
   3  Normalizat    1.4953        .49548E-01    .52532E-01    .11296E-03
   4  Prefactor     .76595        .42091E-01    .64436E-01    .32935E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0517587
  alpha      = 5
  Normalizat = 1.49534
  Prefactor  = 0.765947
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.950     FROM HESSE     STATUS=OK            29 CALLS      345 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51759E-01    .40464        .53918E-03   -1.5663    
   2  alpha         5.0000        4.8873        .18507        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4953        .25942        .23225E-03   -.77909    
   4  Prefactor     .76595        .22977        .28505E-03   -1.0100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67238e-10
Minuit parameter uncertainties:
  1  0.289163
  2  7.95927e-05
  3  0.259655
  4  0.230052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497167': 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) = 5152.9500662
delta logL = 0.0173301036357

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.176e-02  2.892e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  5.000e+00  7.959e-05  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.659e-01  2.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.495e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.296 22.281

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/497167/cmap_HighResolution_410400001_410659201_4FGL_J1321.1+2216_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-07 13:26:34.785281', job_id='497167', GAL2='0.77', fit_tolerance='1e-08', EG2='1.50', EG='1.51', time_epoch_completed='1631046394.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.73e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='660' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:26:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 497167: <4FGL_J1321.1+2216_daily_bin660> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin660> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 13:15:50 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:16:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:16:27 2021
Terminated at Tue Sep  7 13:26:35 2021
Results reported at Tue Sep  7 13:26:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin660 200.296 22.2808 410400001 410659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1321.1+2216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            645 sec.

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

