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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin42
RA = 200.296, Dec = 22.2808
tmin = 250214401, tmax = 250473601
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='495598', job_status='RUN', time_executed='2021-09-07 13:10:18.744324', time_epoch_executed='1631045418.74' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495598/ft1_4FGL_J1321.1+2216_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495598/ft2_4FGL_J1321.1+2216_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495598/ft1_4FGL_J1321.1+2216_daily_bin42.fits outfile=/scratch/kocevski/495598/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin42.fits ra=200.296 dec=22.2808 rad=12.0 tmin=250214401.0 tmax=250473601.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 1.49
user 1.28
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495598/ft1_filtered_4FGL_J1321.1+2216_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/495598/ft2_4FGL_J1321.1+2216_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/495598/ltcube_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.fits outfile=/scratch/kocevski/495598/expmap_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.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/495598/ltcube_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.fits
.....................!
real 191.40
user 186.39
sys 4.45

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/495598/ft1_filtered_4FGL_J1321.1+2216_daily_bin42.fits scfile=/scratch/kocevski/495598/ft2_4FGL_J1321.1+2216_daily_bin42.fits outfile=/scratch/kocevski/495598/cmap_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495598/ft1_filtered_4FGL_J1321.1+2216_daily_bin42.fits scfile=/scratch/kocevski/495598/ft2_4FGL_J1321.1+2216_daily_bin42.fits outfile=/scratch/kocevski/495598/cmap_HighResolution_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0504       1.0000         .10000E-03   10000.    
     6 'norm      '    15.173       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .81820E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.563       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6180       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0573       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=   7626.683     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     1823 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2398        85.111       -.24453E-05    .64756E-06
   2  Prefactor     .10000E-03    2.9847       -.18349E-06** at limit **
   3  norm          .10000E-03    1.2889        .77313E-08** at limit **
   4  Prefactor     .10000E-03    8.7482        .81745E-06** at limit **
   5  norm          5.0501        3.6694        .25592E-07    .42049E-04
   6  norm          15.174        4.4573        .86040E-07    .59606E-03
   7  norm          .10000E-03    5.6616       -.32565E-05** at limit **
   8  norm          .10000E-03    5.2695       -.15816E-05** at limit **
   9  Prefactor     .10000E-03    5.3303        .24492E-05** at limit **
  10  norm          5.3427        7.1914       -.75608E-07    .12445E-04
  11  Prefactor     .10000E-03    5.8741        .26189E-05** at limit **
  12  norm          2.2898        1.2561        .10572E-07   -.18440E-03
  13  Prefactor     .10000E-03    8.4779       -.25983E-06** at limit **
  14  Prefactor     28.822        22.296        .64470E-06    .39625E-04
  15  Prefactor     18.588        42.541        .30223E-05   -.10458E-06
  16  Prefactor     1.6181        1.9397        .11261E-08    .84503E-05
  17  Prefactor     .10000E-03    9.9408       -.11715E-05** at limit **
  18  Prefactor     .10000E-03    10.750        .55932E-06** at limit **
  19  Normalizat    1.0002        .16386       -.57524E-07    .45158E-04
  20  Prefactor     1.0573        .15541       -.12710E-06    .40963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23981
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.05014
  norm       = 15.1742
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.34267
  Prefactor  = 0.0001
  norm       = 2.28979
  Prefactor  = 0.0001
  Prefactor  = 28.8222
  Prefactor  = 18.5881
  Prefactor  = 1.61807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00022
  Prefactor  = 1.05733
 **********
 **   18 **HESSE 
 **********

 FCN=   7626.683     FROM HESSE     STATUS=OK           303 CALLS     2126 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2398        85.182        .16072E-03   -1.5208    
   2  Prefactor     .10000E-03    7.2494        .29170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.2912        .96805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0501        3.6623        .13667E-03   -1.5258    
   6  norm          15.174        4.4675        .48141E-03   -1.4929    
   7  norm          .10000E-03    5.7163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.2686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3427        9.7078        .17376E-03   -1.5246    
  11  Prefactor     .10000E-03    5.8696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2898        16.731        .13614E-02   -1.5405    
  13  Prefactor     .10000E-03    20.318        .75784E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.822        22.567        .74647E-04   -1.4634    
  15  Prefactor     18.588        42.602        .92960E-04   -1.4845    
  16  Prefactor     1.6181        1.9317        .12955E-03   -1.5454    
  17  Prefactor     .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0002        .19331        .24771E-03   -.93023    
  20  Prefactor     1.0573        .18266        .23829E-03   -.90842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90879e-10
Minuit parameter uncertainties:
  1  46.1894
  2  8.54771e-05
  3  4.88751e-07
  4  3.51676e-07
  5  3.66246
  6  4.46755
  7  8.32212e-06
  8  3.7975e-07
  9  2.7732e-06
  10  9.71069
  11  3.20339e-07
  12  12.3836
  13  8.49205e-06
  14  22.574
  15  42.6716
  16  1.9318
  17  2.74482e-06
  18  7.50418e-07
  19  0.19345
  20  0.182769
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.343e+00  9.711e+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.057e+00  1.828e-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.000e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/495598/likelihoodResults_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.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) = 7622.66788161
delta logL = 4.01491822841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7622.53825895
delta logL = 4.14454088667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64293       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .81302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1823       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=   7622.538     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      321 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64286        4.6354        .58949E-02    .73261E-03
   2  alpha         5.0000        2.5233        .46389    ** at limit **
   3  Normalizat    .81318        .10702        .43780E-01    .10113E-04
   4  Prefactor     1.1822        .10508        .51329E-01    .27489E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.642855
  alpha      = 5
  Normalizat = 0.813182
  Prefactor  = 1.18224
 **********
 **   18 **HESSE 
 **********

 FCN=   7622.538     FROM HESSE     STATUS=OK            35 CALLS      356 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64286        .37359        .26316E-04   -1.5548    
   2  alpha         5.0000        .72644        .39686        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81318        .19734        .27098E-03   -.99582    
   4  Prefactor     1.1822        .18830        .22692E-03   -.86880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42622e-12
Minuit parameter uncertainties:
  1  0.373595
  2  1.62755e-06
  3  0.197516
  4  0.18841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495598': 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) = 7622.53825837
delta logL = 4.14454146238

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  6.429e-01  3.736e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  5.000e+00  1.628e-06  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.182e+00  1.884e-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.132e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.08
Ra Dec: 200.296 22.281
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.58e-07 +/- 9.11e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/495598/cmap_HighResolution_250214401_250473601_4FGL_J1321.1+2216_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='4.14e+00', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-07 13:21:10.224317', photon_index_error2='0.00', photon_index2='5.00', ts='0.70', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.88e-08', energy_flux_error2='1.24e-05', EG='1.00', time_epoch_completed='1631046070.22', return_code='0', job_id='495598', GAL2='1.18', EG2='0.81', return_code2='0', photon_flux_error2='9.11e-08', ts2='10.08', photon_index='2.28' WHERE bin_id='42' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 495598: <4FGL_J1321.1+2216_daily_bin42> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin42 200.296 22.2808 250214401 250473601 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 :                                   651.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            929 sec.

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

