/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 146 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin61
RA = 200.296, Dec = 22.2808
tmin = 255139201, tmax = 255398401
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='495619', job_status='RUN', time_executed='2021-09-07 13:10:56.215635', time_epoch_executed='1631045456.22' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495619/ft1_4FGL_J1321.1+2216_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495619/ft2_4FGL_J1321.1+2216_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495619/ft1_4FGL_J1321.1+2216_daily_bin61.fits outfile=/scratch/kocevski/495619/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin61.fits ra=200.296 dec=22.2808 rad=12.0 tmin=255139201.0 tmax=255398401.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.54
user 7.20
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495619/ft1_filtered_4FGL_J1321.1+2216_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/495619/ft2_4FGL_J1321.1+2216_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/495619/ltcube_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.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/495619/ft2_4FGL_J1321.1+2216_daily_bin61.fits
.....................!
real 16.03
user 15.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495619/ft1_filtered_4FGL_J1321.1+2216_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/495619/ft2_4FGL_J1321.1+2216_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/495619/ltcube_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.fits outfile=/scratch/kocevski/495619/expmap_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.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/495619/ltcube_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.fits
.....................!
real 194.47
user 188.75
sys 4.19

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/495619/ft1_filtered_4FGL_J1321.1+2216_daily_bin61.fits scfile=/scratch/kocevski/495619/ft2_4FGL_J1321.1+2216_daily_bin61.fits outfile=/scratch/kocevski/495619/cmap_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.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.60
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495619/ft1_filtered_4FGL_J1321.1+2216_daily_bin61.fits scfile=/scratch/kocevski/495619/ft2_4FGL_J1321.1+2216_daily_bin61.fits outfile=/scratch/kocevski/495619/cmap_HighResolution_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.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.64
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1349       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7594       1.0000         .10000E-03   10000.    
     7 'norm      '    .10629E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.934       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3521       1.0000         .10000E-03   10000.    
    12 'norm      '    33.226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84524       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=   5645.228     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1992 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.812        64.483        .64308E-05    .46700E-06
   2  Prefactor     .10000E-03    3.4799        .89002E-06** at limit **
   3  norm          .10000E-03    2.2372       -.12194E-06** at limit **
   4  Prefactor     .10000E-03    5.1243       -.10414E-05** at limit **
   5  norm          2.1354        2.6310        .78148E-06    .13687E-03
   6  norm          5.7591        4.3203       -.24209E-06   -.21855E-03
   7  norm          .10000E-03    15.505        .59669E-06** at limit **
   8  norm          16.345        25.309       -.32132E-04   -.76570E-04
   9  Prefactor     19.934        19.262       -.53558E-06   -.20439E-04
  10  norm          3.7515        9.9668        .10548E-04   -.14411E-04
  11  Prefactor     5.3510        38.008       -.41965E-05   -.18866E-04
  12  norm          33.218        13.758       -.29736E-05   -.21387E-03
  13  Prefactor     .10000E-03    24.266        .30465E-05** at limit **
  14  Prefactor     .10000E-03    7.2502       -.72821E-06** at limit **
  15  Prefactor     45.132        47.501       -.99194E-06    .77050E-05
  16  Prefactor     1.6758        3.8630       -.22661E-05   -.71386E-03
  17  Prefactor     .10000E-03    13.882       -.38294E-05** at limit **
  18  Prefactor     .10000E-03    10.537        .29841E-05** at limit **
  19  Normalizat    1.1140        .18894        .14208E-05   -.89582E-04
  20  Prefactor     .84529        .17692        .11138E-05   -.32504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.13539
  norm       = 5.75906
  norm       = 0.0001
  norm       = 16.3454
  Prefactor  = 19.9339
  norm       = 3.75152
  Prefactor  = 5.35102
  norm       = 33.2176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1316
  Prefactor  = 1.6758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11399
  Prefactor  = 0.845291
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.228     FROM HESSE     STATUS=OK           289 CALLS     2281 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.812        64.557        .60572E-04   -1.4383    
   2  Prefactor     .10000E-03    3.5071        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2528        .10973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1463        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1354        2.6234        .13081E-03   -1.5416    
   6  norm          5.7591        4.2501        .12585E-03   -1.5228    
   7  norm          .10000E-03    15.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.345        25.215        .98996E-04   -1.4899    
   9  Prefactor     19.934        19.268        .89708E-04   -1.4815    
  10  norm          3.7515        9.7821        .20871E-03   -1.5321    
  11  Prefactor     5.3510        37.993        .17371E-03   -1.5245    
  12  norm          33.218        13.621        .69517E-04   -1.4555    
  13  Prefactor     .10000E-03    24.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.132        47.507        .59680E-04   -1.4363    
  16  Prefactor     1.6758        3.8584        .21613E-03   -1.5449    
  17  Prefactor     .10000E-03    14.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1140        .21949        .23468E-03   -.89304    
  20  Prefactor     .84529        .20523        .25529E-03   -.98080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28866e-10
Minuit parameter uncertainties:
  1  64.66
  2  2.88076e-06
  3  4.68733e-06
  4  9.28668e-06
  5  2.62355
  6  4.25035
  7  4.28764e-05
  8  25.2315
  9  19.2738
  10  9.7863
  11  28.5422
  12  13.6221
  13  1.20296e-06
  14  3.53092e-06
  15  47.5467
  16  3.85899
  17  1.92799e-05
  18  6.36203e-05
  19  0.219671
  20  0.205412
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  3.752e+00  9.786e+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.453e-01  2.054e-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.114e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/495619/likelihoodResults_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.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) = 5645.08150088
delta logL = 0.146071158931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5645.07760826
delta logL = 0.149963777601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5596       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9440       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85811       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=   5645.078     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      238 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5594        7.8717        .19234E-03    .83816E-04
   2  alpha         2.9442        1.3816        .21389E-01    .17607E-04
   3  Normalizat    1.0915        .21726        .23660E-03   -.16466E-03
   4  Prefactor     .85812        .20557        .25350E-03   -.14145E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.55937
  alpha      = 2.94421
  Normalizat = 1.09153
  Prefactor  = 0.858123
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.078     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5594        6.8794        .76934E-05   -1.5331    
   2  alpha         2.9442        1.2231        .85554E-03    .17863    
   3  Normalizat    1.0915        .21755        .47320E-04   -.90024    
   4  Prefactor     .85812        .20562        .10140E-04   -.97620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37201e-11
Minuit parameter uncertainties:
  1  6.88088
  2  1.28008
  3  0.217732
  4  0.205804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495619': 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) = 5645.07760825
delta logL = 0.149963789489

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  3.559e+00  6.881e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.944e+00  1.280e+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:  8.581e-01  2.058e-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.092e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
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/495619/cmap_HighResolution_255139201_255398401_4FGL_J1321.1+2216_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-07 13:20:49.558466', job_id='495619', GAL2='0.86', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1631046049.56', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.50e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='61' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 495619: <4FGL_J1321.1+2216_daily_bin61> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin61> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 13:05:46 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:08:18 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:08:18 2021
Terminated at Tue Sep  7 13:20:50 2021
Results reported at Tue Sep  7 13:20:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin61 200.296 22.2808 255139201 255398401 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 :                                   587.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            904 sec.

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

