/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 3 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin432
RA = 200.296, Dec = 22.2808
tmin = 351302401, tmax = 351561601
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='496419', job_status='RUN', time_executed='2021-09-07 13:12:39.817148', time_epoch_executed='1631045559.82' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496419/ft1_4FGL_J1321.1+2216_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496419/ft2_4FGL_J1321.1+2216_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496419/ft1_4FGL_J1321.1+2216_daily_bin432.fits outfile=/scratch/kocevski/496419/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin432.fits ra=200.296 dec=22.2808 rad=12.0 tmin=351302401.0 tmax=351561601.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.47
user 3.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496419/ft2_4FGL_J1321.1+2216_daily_bin432.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/496419/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/496419/ft1_filtered_4FGL_J1321.1+2216_daily_bin432.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.55
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496419/ft1_filtered_4FGL_J1321.1+2216_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/496419/ft2_4FGL_J1321.1+2216_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/496419/ltcube_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.fits outfile=/scratch/kocevski/496419/expmap_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.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/496419/ltcube_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.fits
.....................!
real 192.99
user 187.22
sys 5.26

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/496419/ft1_filtered_4FGL_J1321.1+2216_daily_bin432.fits scfile=/scratch/kocevski/496419/ft2_4FGL_J1321.1+2216_daily_bin432.fits outfile=/scratch/kocevski/496419/cmap_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.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.81
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496419/ft1_filtered_4FGL_J1321.1+2216_daily_bin432.fits scfile=/scratch/kocevski/496419/ft2_4FGL_J1321.1+2216_daily_bin432.fits outfile=/scratch/kocevski/496419/cmap_HighResolution_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.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.72
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9202       1.0000         .10000E-03   10000.    
     5 'norm      '    11.041       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2016       1.0000         .10000E-03   10000.    
     7 'norm      '    8.6274       1.0000         .10000E-03   10000.    
     8 'norm      '    21.634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.926       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6518       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87491       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=   6505.054     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2043 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.128         .0000    ** at limit **
   2  Prefactor     .10000E-03    13.971         .0000    ** at limit **
   3  norm          .10000E-03    2.2057         .0000    ** at limit **
   4  Prefactor     3.9208        9.3979         .0000        .37615E-02
   5  norm          11.041        5.1104         .0000        .30144E-02
   6  norm          1.2057        6.2665         .0000        .10875E-02
   7  norm          8.6195        10.938         .0000        .41304E-03
   8  norm          21.634        19.105         .0000       -.55943E-04
   9  Prefactor     .10000E-03    7.9294         .0000    ** at limit **
  10  norm          7.0747        6.6626         .0000        .19695E-02
  11  Prefactor     40.926        31.998         .0000        .15285E-03
  12  norm          4.4859        8.9363         .0000        .56523E-02
  13  Prefactor     .10000E-03    6.7406         .0000    ** at limit **
  14  Prefactor     .10000E-03    5.5798         .0000    ** at limit **
  15  Prefactor     .10000E-03    53.279         .0000    ** at limit **
  16  Prefactor     .50208        1.6342         .0000        .12958E-02
  17  Prefactor     .10000E-03    7.2801         .0000    ** at limit **
  18  Prefactor     2.6533        9.5929         .0000        .60706E-02
  19  Normalizat    1.2899        .17546         .0000        .68824E-04
  20  Prefactor     .87487        .16973         .0000        .45068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.9208
  norm       = 11.0409
  norm       = 1.20569
  norm       = 8.61952
  norm       = 21.6345
  Prefactor  = 0.0001
  norm       = 7.07468
  Prefactor  = 40.926
  norm       = 4.48589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.502084
  Prefactor  = 0.0001
  Prefactor  = 2.65333
  Normalizat = 1.2899
  Prefactor  = 0.874873
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.054     FROM HESSE     STATUS=OK           293 CALLS     2336 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2224        .11693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9208        9.3837        .10188E-02   -1.5312    
   5  norm          11.041        5.1127        .59047E-03   -1.5043    
   6  norm          1.2057        5.4583        .20975E-03   -1.5488    
   7  norm          8.6195        10.252        .13647E-03   -1.5121    
   8  norm          21.634        19.103        .43058E-03   -1.4777    
   9  Prefactor     .10000E-03    8.0110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0747        6.6262        .75412E-03   -1.5176    
  11  Prefactor     40.926        31.998        .62659E-04   -1.4428    
  12  norm          4.4859        8.8862        .95056E-03   -1.5284    
  13  Prefactor     .10000E-03    6.7659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50208        1.7025        .18036E-02   -1.5566    
  17  Prefactor     .10000E-03    7.3066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6533        9.5834        .12517E-02   -1.5382    
  19  Normalizat    1.2899        .20442        .23093E-03   -.83868    
  20  Prefactor     .87487        .19786        .27085E-03   -.97025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51403e-10
Minuit parameter uncertainties:
  1  2.74677e-05
  2  3.66294e-05
  3  3.87218e-07
  4  9.3872
  5  5.11291
  6  5.13124
  7  10.2541
  8  19.1088
  9  1.30014e-05
  10  6.62691
  11  32.0117
  12  8.88881
  13  5.84064e-06
  14  4.90191e-06
  15  5.75503e-05
  16  1.7027
  17  2.23226e-06
  18  9.58897
  19  0.204545
  20  0.198024
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.075e+00  6.627e+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:  8.749e-01  1.980e-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.290e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.51e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.18e-05

TS (Fixed Index): 3.44
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496419/likelihoodResults_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.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) = 6504.89223086
delta logL = 0.162122344549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6504.8671785
delta logL = 0.187174709253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4843       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7495       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86740       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=   6504.867     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4815        5.1652        .42893E-02   -.22607E-03
   2  alpha         1.7492        .54483        .43782       -.31223E-04
   3  Normalizat    1.3080        .17054        .51940E-01    .56368E-04
   4  Prefactor     .86734        .16862        .44588E-01    .14749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48153
  alpha      = 1.74922
  Normalizat = 1.30798
  Prefactor  = 0.867336
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.867     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4815        6.8515        .85787E-03   -1.5240    
   2  alpha         1.7492        .86742        .18013E-01   -.30502    
   3  Normalizat    1.3080        .19921        .22964E-03   -.83328    
   4  Prefactor     .86734        .19651        .27198E-03   -.97292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22611e-09
Minuit parameter uncertainties:
  1  6.85249
  2  0.887786
  3  0.199324
  4  0.196675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496419': 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) = 6504.86717836
delta logL = 0.187174846082

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.482e+00  6.852e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.749e+00  8.878e-01  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:  8.673e-01  1.967e-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.308e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.75 +/- 0.89
Photon Flux (Free Index): 1.71e-08 +/- 2.85e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.68e-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/496419/cmap_HighResolution_351302401_351561601_4FGL_J1321.1+2216_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', comment='SUCCESS', photon_flux='3.51e-08', energy_flux2='1.51e-05', photon_flux_error='3.28e-08', dlogl='1.87e-01', energy_flux='1.26e-05', photon_flux2='1.71e-08', job_status='DONE', time_completed='2021-09-07 13:23:06.120397', photon_index_error2='0.89', photon_index2='1.75', ts='3.44', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.68e-05', EG='1.29', time_epoch_completed='1631046186.12', return_code='0', job_id='496419', GAL2='0.87', EG2='1.31', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.85e-08', ts2='3.82', photon_index='2.28' WHERE bin_id='432' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:23:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 496419: <4FGL_J1321.1+2216_daily_bin432> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin432> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 13:10:41 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:12:26 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:12:26 2021
Terminated at Tue Sep  7 13:23:06 2021
Results reported at Tue Sep  7 13:23:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin432 200.296 22.2808 351302401 351561601 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 :                                   620.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            745 sec.

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

