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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1403
RA = 200.296, Dec = 22.2808
tmin = 602985601, tmax = 603244801
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='500192', job_status='RUN', time_executed='2021-09-07 13:30:04.546909', time_epoch_executed='1631046604.55' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500192/ft1_4FGL_J1321.1+2216_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500192/ft1_4FGL_J1321.1+2216_daily_bin1403.fits outfile=/scratch/kocevski/500192/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1403.fits ra=200.296 dec=22.2808 rad=12.0 tmin=602985601.0 tmax=603244801.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.06
user 2.82
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.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/500192/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/500192/ltcube_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.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/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits
.....................!
real 18.63
user 18.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/500192/ltcube_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.fits outfile=/scratch/kocevski/500192/expmap_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.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/500192/ltcube_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.fits
.....................!
real 194.64
user 188.72
sys 5.34

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/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.fits scfile=/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits outfile=/scratch/kocevski/500192/cmap_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.fits scfile=/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits outfile=/scratch/kocevski/500192/cmap_HighResolution_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.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.59
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.fits', '/scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits', expMap='/scratch/kocevski/500192/expmap_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.fits', expCube='/scratch/kocevski/500192/ltcube_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500192/Model_4FGL_J1321.1+2216_daily_bin1403.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/500192/ft1_filtered_4FGL_J1321.1+2216_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/500192/ft2_4FGL_J1321.1+2216_daily_bin1403.fits
Exposure map: /scratch/kocevski/500192/expmap_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.fits
Exposure cube: /scratch/kocevski/500192/ltcube_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500192/Model_4FGL_J1321.1+2216_daily_bin1403.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) = 5413.58568567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.837       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1910       1.0000         .10000E-03   10000.    
     6 'norm      '    29.095       1.0000         .10000E-03   10000.    
     7 'norm      '    .75543       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.855       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    32.624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6636       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1960       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2898       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91631       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1363       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5413.503     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1733 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.315       -.14845E-05** at limit **
   2  Prefactor     .10000E-03    5.4587       -.79833E-07** at limit **
   3  norm          .10000E-03    1.9243       -.41060E-07** at limit **
   4  Prefactor     52.829        23.747        .90997E-06   -.12094E-03
   5  norm          5.1912        3.8104        .26451E-07   -.15534E-03
   6  norm          29.104        11.706        .28686E-05    .78762E-04
   7  norm          .72735        106.78       -.39243E-04   -.10663E-04
   8  norm          .10000E-03    6.7744       -.81897E-07** at limit **
   9  Prefactor     20.855        13.966        .40568E-07   -.36864E-05
  10  norm          1.3582        5.9681        .31387E-05    .23985E-04
  11  Prefactor     .10000E-03    36.920        .53751E-06** at limit **
  12  norm          32.626        13.500       -.59763E-06   -.12138E-02
  13  Prefactor     .10000E-03    25.867       -.12922E-07** at limit **
  14  Prefactor     .10000E-03    13.554       -.91246E-06** at limit **
  15  Prefactor     .10000E-03    15.750        .14789E-05** at limit **
  16  Prefactor     3.6634        3.9202        .29945E-06   -.14916E-04
  17  Prefactor     9.1957        10.644        .16797E-07   -.94781E-05
  18  Prefactor     1.2877        5.0726        .61139E-05   -.25834E-03
  19  Normalizat    .91633        .20522       -.24032E-05   -.15322E-03
  20  Prefactor     1.1363        .19096        .34792E-06   -.28687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.8292
  norm       = 5.19117
  norm       = 29.1041
  norm       = 0.72735
  norm       = 0.0001
  Prefactor  = 20.8547
  norm       = 1.35816
  Prefactor  = 0.0001
  norm       = 32.6264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.66342
  Prefactor  = 9.19569
  Prefactor  = 1.28773
  Normalizat = 0.916329
  Prefactor  = 1.13633
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.503     FROM HESSE     STATUS=OK           287 CALLS     2020 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4869        .16786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9280        .99684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     52.829        23.775        .55178E-04   -1.4253    
   5  norm          5.1912        3.8119        .11939E-03   -1.5252    
   6  norm          29.104        16.388        .74276E-04   -1.4628    
   7  norm          .72735        218.92        .44387E-02   -1.5537    
   8  norm          .10000E-03    6.7761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.855        13.976        .87708E-04   -1.4794    
  10  norm          1.3582        5.9118        .32211E-03   -1.5475    
  11  Prefactor     .10000E-03    37.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          32.626        13.425        .70154E-04   -1.4565    
  13  Prefactor     .10000E-03    26.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6634        3.9336        .14330E-03   -1.5325    
  17  Prefactor     9.1957        10.653        .13216E-03   -1.5101    
  18  Prefactor     1.2877        21.603        .19500E-02   -1.5481    
  19  Normalizat    .91633        .24580        .27563E-03   -.95889    
  20  Prefactor     1.1363        .22684        .24579E-03   -.88314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8245e-07
Minuit parameter uncertainties:
  1  8.42965e-05
  2  3.74775e-06
  3  2.6344e-06
  4  23.779
  5  3.81204
  6  16.3907
  7  25.3294
  8  2.72771e-05
  9  13.9778
  10  5.66792
  11  3.79779e-05
  12  13.4258
  13  0.000126233
  14  5.56315e-05
  15  4.90795e-05
  16  3.93391
  17  10.6552
  18  10.5527
  19  0.246106
  20  0.227035
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.358e+00  5.668e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.136e+00  2.270e-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:  9.163e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/500192/likelihoodResults_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.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) = 5413.38666766
delta logL = 0.116770746166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5413.38198206
delta logL = 0.12145634174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6793       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1952       1.0000          .0000       5.0000    
     3 'Normalizat'    .89768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1459       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5413.382     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      245 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6796        4.9121        .17477E-03   -.21141E-03
   2  alpha         3.1954        1.7867        .31284E-01    .13047E-03
   3  Normalizat    .89767        .22959        .27799E-03    .13782E-03
   4  Prefactor     1.1459        .22293        .24478E-03    .14172E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67964
  alpha      = 3.19541
  Normalizat = 0.897669
  Prefactor  = 1.14593
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.382     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6796        4.2522        .69908E-05   -1.5449    
   2  alpha         3.1954        1.5939        .62568E-02    .28188    
   3  Normalizat    .89767        .22981        .11120E-04   -.96542    
   4  Prefactor     1.1459        .22305        .48956E-04   -.88012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34132e-11
Minuit parameter uncertainties:
  1  4.25291
  2  1.74296
  3  0.230062
  4  0.223232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500192': 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) = 5413.38198203
delta logL = 0.121456374703

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.680e+00  4.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  3.195e+00  1.743e+00  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:  1.146e+00  2.232e-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:  8.977e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/500192/cmap_HighResolution_602985601_603244801_4FGL_J1321.1+2216_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-07 13:39:15.938800', job_id='500192', GAL2='1.15', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1631047155.94', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.21e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1403' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:39:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 500192: <4FGL_J1321.1+2216_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1403> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 13:25:55 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:27:54 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:27:54 2021
Terminated at Tue Sep  7 13:39:16 2021
Results reported at Tue Sep  7 13:39:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1403 200.296 22.2808 602985601 603244801 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 :                                   549.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            801 sec.

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

