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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin302
RA = 200.296, Dec = 22.2808
tmin = 317606401, tmax = 317865601
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='496270', job_status='RUN', time_executed='2021-09-07 13:11:11.121606', time_epoch_executed='1631045471.12' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496270/ft1_4FGL_J1321.1+2216_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496270/ft2_4FGL_J1321.1+2216_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496270/ft1_4FGL_J1321.1+2216_daily_bin302.fits outfile=/scratch/kocevski/496270/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin302.fits ra=200.296 dec=22.2808 rad=12.0 tmin=317606401.0 tmax=317865601.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.44
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496270/ft1_filtered_4FGL_J1321.1+2216_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/496270/ft2_4FGL_J1321.1+2216_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/496270/ltcube_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.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/496270/ft2_4FGL_J1321.1+2216_daily_bin302.fits
.....................!
real 18.18
user 17.28
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496270/ft1_filtered_4FGL_J1321.1+2216_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/496270/ft2_4FGL_J1321.1+2216_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/496270/ltcube_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.fits outfile=/scratch/kocevski/496270/expmap_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.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/496270/ltcube_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.fits
.....................!
real 193.41
user 187.33
sys 5.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/496270/ft1_filtered_4FGL_J1321.1+2216_daily_bin302.fits scfile=/scratch/kocevski/496270/ft2_4FGL_J1321.1+2216_daily_bin302.fits outfile=/scratch/kocevski/496270/cmap_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.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.69
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496270/ft1_filtered_4FGL_J1321.1+2216_daily_bin302.fits scfile=/scratch/kocevski/496270/ft2_4FGL_J1321.1+2216_daily_bin302.fits outfile=/scratch/kocevski/496270/cmap_HighResolution_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.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.65
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5496       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1563       1.0000         .10000E-03   10000.    
     5 'norm      '    .15767E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.2689       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.433       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.044       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.904       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6022       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6363       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2353       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91206       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=   6336.191     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1745 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.703        .36530E-06** at limit **
   2  Prefactor     6.5476        6.8526       -.14770E-06   -.38034E-04
   3  norm          .10000E-03    1.6615        .53398E-07** at limit **
   4  Prefactor     4.1544        12.733       -.57655E-06   -.31206E-04
   5  norm          .10000E-03    2.0259       -.36861E-07** at limit **
   6  norm          5.2702        3.0991       -.10758E-06   -.11672E-03
   7  norm          .10000E-03    3.3309        .36062E-06** at limit **
   8  norm          12.432        12.677       -.12021E-06    .27983E-06
   9  Prefactor     .10000E-03    28.720        .35061E-06** at limit **
  10  norm          4.4238        3.0950        .52299E-06   -.12496E-02
  11  Prefactor     .10000E-03    7.8295       -.43158E-06** at limit **
  12  norm          22.044        10.365       -.60144E-07    .79533E-05
  13  Prefactor     18.823        15.415        .12662E-06   -.20909E-05
  14  Prefactor     27.190        18.515       -.11309E-05   -.49043E-04
  15  Prefactor     23.902        30.302       -.15732E-05   -.23151E-04
  16  Prefactor     2.6017        4.1433       -.17422E-05   -.30182E-03
  17  Prefactor     3.4919        9.1158        .23052E-07   -.33743E-04
  18  Prefactor     5.6346        11.462       -.97391E-07   -.24295E-04
  19  Normalizat    1.2354        .18812        .23385E-06   -.58387E-04
  20  Prefactor     .91194        .18063       -.25395E-06   -.12770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.54757
  norm       = 0.0001
  Prefactor  = 4.15445
  norm       = 0.0001
  norm       = 5.27016
  norm       = 0.0001
  norm       = 12.4317
  Prefactor  = 0.0001
  norm       = 4.42377
  Prefactor  = 0.0001
  norm       = 22.044
  Prefactor  = 18.823
  Prefactor  = 27.19
  Prefactor  = 23.9024
  Prefactor  = 2.60169
  Prefactor  = 3.49187
  Prefactor  = 5.63462
  Normalizat = 1.23544
  Prefactor  = 0.911942
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.191     FROM HESSE     STATUS=OK           299 CALLS     2044 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5476        6.8445        .15681E-03   -1.5196    
   3  norm          .10000E-03    1.6814        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1544        12.756        .19770E-03   -1.5300    
   5  norm          .10000E-03    4.6202        .21912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2702        3.0960        .10357E-03   -1.5249    
   7  norm          .10000E-03    3.3629        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.432        12.691        .11360E-03   -1.5003    
   9  Prefactor     .10000E-03    29.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4238        6.2388        .95715E-03   -1.5287    
  11  Prefactor     .10000E-03    7.8307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.044        10.815        .85311E-04   -1.4769    
  13  Prefactor     18.823        15.448        .92316E-04   -1.4840    
  14  Prefactor     27.190        18.522        .76825E-04   -1.4665    
  15  Prefactor     23.902        30.328        .81930E-04   -1.4730    
  16  Prefactor     2.6017        4.2167        .19823E-03   -1.5385    
  17  Prefactor     3.4919        9.1137        .21639E-03   -1.5334    
  18  Prefactor     5.6346        11.472        .16921E-03   -1.5233    
  19  Normalizat    1.2354        .22279        .24083E-03   -.85514    
  20  Prefactor     .91194        .21233        .27408E-03   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44398e-09
Minuit parameter uncertainties:
  1  8.2596e-06
  2  6.84529
  3  6.02075e-07
  4  12.7641
  5  1.30204e-05
  6  3.09606
  7  7.66109e-06
  8  12.6936
  9  3.79054e-05
  10  6.23972
  11  6.47498e-06
  12  10.8163
  13  15.4513
  14  18.5262
  15  30.3471
  16  4.21717
  17  9.11727
  18  11.4769
  19  0.222957
  20  0.212525
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  4.424e+00  6.240e+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:  9.119e-01  2.125e-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.235e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496270/likelihoodResults_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.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) = 6335.33272236
delta logL = 0.858342415825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6335.20930996
delta logL = 0.981754812819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41867       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98904       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=   6335.209     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      356 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41871        7.2559        .71131E-02    .88278E-03
   2  alpha         5.0000        4.6531        .46344    ** at limit **
   3  Normalizat    1.1235        .90162E-01    .56642E-01   -.93627E-05
   4  Prefactor     .98923        .88730E-01    .46130E-01    .33089E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.418714
  alpha      = 5
  Normalizat = 1.12345
  Prefactor  = 0.989226
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.209     FROM HESSE     STATUS=OK            35 CALLS      391 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41871        .35059        .32048E-04   -1.5579    
   2  alpha         5.0000        3.0831        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1235        .22667        .25048E-03   -.89002    
   4  Prefactor     .98923        .21832        .26455E-03   -.93090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22769e-12
Minuit parameter uncertainties:
  1  0.350596
  2  4.98411e-07
  3  0.226868
  4  0.218515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496270': 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) = 6335.20930948
delta logL = 0.981755294499

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  4.187e-01  3.506e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  5.000e+00  4.984e-07  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:  9.892e-01  2.185e-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.123e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 200.296 22.281
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.03e-07 +/- 8.55e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.16e-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/496270/cmap_HighResolution_317606401_317865601_4FGL_J1321.1+2216_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='9.82e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-07 13:21:18.719157', photon_index_error2='0.00', photon_index2='5.00', ts='0.90', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='1.16e-05', EG='1.24', time_epoch_completed='1631046078.72', return_code='0', job_id='496270', GAL2='0.99', EG2='1.12', return_code2='0', photon_flux_error2='8.55e-08', ts2='3.23', photon_index='2.28' WHERE bin_id='302' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 496270: <4FGL_J1321.1+2216_daily_bin302> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin302> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 13:10:27 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:10:53 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:10:53 2021
Terminated at Tue Sep  7 13:21:19 2021
Results reported at Tue Sep  7 13:21:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin302 200.296 22.2808 317606401 317865601 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 :                                   605.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            652 sec.

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

