/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 119 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7603
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.0+8317_daily_bin1110
RA = 200.501, Dec = 83.2845
tmin = 527040001, tmax = 527299201
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='506100', job_status='RUN', time_executed='2021-09-07 13:48:14.921939', time_epoch_executed='1631047694.92' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506100

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506100/ft1_4FGL_J1322.0+8317_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506100/ft1_4FGL_J1322.0+8317_daily_bin1110.fits outfile=/scratch/kocevski/506100/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1110.fits ra=200.501 dec=83.2845 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.04
user 5.76
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.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/506100/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/506100/ltcube_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.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/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits
.....................!
real 16.65
user 16.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/506100/ltcube_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.fits outfile=/scratch/kocevski/506100/expmap_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.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/506100/ltcube_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.fits
.....................!
real 191.38
user 186.31
sys 4.44

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1322.0+8317 @ 200.501 83.2845

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits scfile=/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits outfile=/scratch/kocevski/506100/cmap_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.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.501 yref=83.2845 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits scfile=/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits outfile=/scratch/kocevski/506100/cmap_HighResolution_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.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.501 yref=83.2845 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506100/Model_4FGL_J1322.0+8317_daily_bin1110.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/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits.....................!
real 74.95
user 73.53
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits', '/scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits', expMap='/scratch/kocevski/506100/expmap_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.fits', expCube='/scratch/kocevski/506100/ltcube_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506100/Model_4FGL_J1322.0+8317_daily_bin1110.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.0+8317'

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/506100/ft1_filtered_4FGL_J1322.0+8317_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/506100/ft2_4FGL_J1322.0+8317_daily_bin1110.fits
Exposure map: /scratch/kocevski/506100/expmap_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.fits
Exposure cube: /scratch/kocevski/506100/ltcube_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506100/Model_4FGL_J1322.0+8317_daily_bin1110.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) = 5396.4485854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.6226       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.270       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.118       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4703       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66779       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5396.446     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2889 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.673       -.29824E-06** at limit **
   2  Prefactor     5.6209        7.9850        .44516E-05    .69320E-03
   3  Prefactor     .10000E-03    13.662        .52091E-06** at limit **
   4  Prefactor     .13196        8.5575       -.71450E-06    .17720E-03
   5  Prefactor     28.303        17.782        .48492E-07    .61015E-05
   6  Prefactor     .10000E-03    36.050        .57692E-06** at limit **
   7  norm          .10000E-03    2.0564        .11713E-06** at limit **
   8  Prefactor     .10000E-03    3.9676        .79786E-07** at limit **
   9  Prefactor     5.7767        10.619        .28590E-06    .38740E-04
  10  Prefactor     .10000E-03    23.650        .39471E-06** at limit **
  11  norm          .10000E-03    3.4698        .99928E-07** at limit **
  12  Prefactor     11.739        46.375       -.11566E-05   -.62716E-04
  13  Prefactor     29.051        20.150        .49505E-07    .11395E-04
  14  Prefactor     .63398        11.930       -.52107E-05    .74042E-03
  15  Prefactor     .10000E-03    6.6473       -.86667E-07** at limit **
  16  Prefactor     .10000E-03    49.274       -.13665E-05** at limit **
  17  Prefactor     33.245        45.409       -.91327E-06   -.14504E-03
  18  Prefactor     .10000E-03    22.022       -.29744E-06** at limit **
  19  norm          .10000E-03    8.1654       -.17565E-07** at limit **
  20  Prefactor     12.249        5.2999        .20087E-06    .17734E-03
  21  Prefactor     .10001E-03    69.846        .19355E-05** at limit **
  22  Prefactor     40.075        69.857       -.22810E-05   -.18202E-03
  23  norm          1.4700        1.0451        .65789E-07    .22692E-03
  24  Normalizat    .66802        .20428       -.53913E-06    .80177E-04
  25  Prefactor     1.1154        .12793       -.16030E-06    .12718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.62095
  Prefactor  = 0.0001
  Prefactor  = 0.131962
  Prefactor  = 28.3034
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77668
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.739
  Prefactor  = 29.0511
  Prefactor  = 0.633983
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 33.2446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2486
  Prefactor  = 0.000100006
  Prefactor  = 40.0753
  norm       = 1.46998
  Normalizat = 0.66802
  Prefactor  = 1.11537
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.446     FROM HESSE     STATUS=OK           431 CALLS     3320 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6209        8.3640        .84708E-03   -1.5234    
   3  Prefactor     .10000E-03    13.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13196        14.627        .68974E-01   -1.5635    
   5  Prefactor     28.303        17.791        .75302E-04   -1.4643    
   6  Prefactor     .10000E-03    36.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0678        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9760        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7767        10.567        .16702E-03   -1.5227    
  10  Prefactor     .10000E-03    23.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5546        .26597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.739        46.589        .11684E-03   -1.5023    
  13  Prefactor     29.051        20.143        .74321E-04   -1.4629    
  14  Prefactor     .63398        23.209        .38372E-02   -1.5549    
  15  Prefactor     .10000E-03    6.6526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.245        45.562        .69472E-04   -1.4554    
  18  Prefactor     .10000E-03    22.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.1678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.249        5.2995        .10668E-03   -1.5008    
  21  Prefactor     .10001E-03    70.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     40.075        70.693        .63284E-04   -1.4441    
  23  norm          1.4700        1.0379        .60951E-04   -1.5465    
  24  Normalizat    .66802        .22734        .33189E-03   -1.0517    
  25  Prefactor     1.1154        .14258        .17355E-03   -.88977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50567e-09
Minuit parameter uncertainties:
  1  9.24341e-05
  2  8.36575
  3  8.431e-05
  4  2.77826
  5  17.7939
  6  0.000297939
  7  4.39765e-06
  8  2.93159e-06
  9  10.5707
  10  0.000165358
  11  3.14012e-06
  12  46.7344
  13  20.1473
  14  7.67442
  15  8.10383e-06
  16  0.000946931
  17  45.61
  18  0.000121717
  19  9.15251e-06
  20  5.29973
  21  0.00135324
  22  70.8419
  23  1.03787
  24  0.227661
  25  0.142625
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.905e+01  2.015e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.115e+00  1.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.680e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.99e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.60e-05

TS (Fixed Index): 3.04
Ra Dec: 200.501 83.284
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506100/likelihoodResults_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.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) = 5395.99196997
delta logL = 0.45397417267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5395.97729645
delta logL = 0.468647691454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.509       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0747       1.0000          .0000       10.000    
     3 'Normalizat'    .63851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   5395.977     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.511        27.901        .11809E-03    .23847E-03
   2  Index         3.0746        1.2520        .40822E-02    .13490E-03
   3  Normalizat    .63849        .21000        .33855E-03    .14070E-04
   4  Prefactor     1.1266        .13870        .17272E-03    .13423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5108
  Index      = 3.07459
  Normalizat = 0.638494
  Prefactor  = 1.12661
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.977     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.511        18.223        .47235E-05   -1.5029    
   2  Index         3.0746        .82267        .16329E-03   -.39530    
   3  Normalizat    .63849        .20854        .13542E-04   -1.0637    
   4  Prefactor     1.1266        .13761        .34545E-04   -.88621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24599e-10
Minuit parameter uncertainties:
  1  18.232
  2  0.827089
  3  0.2088
  4  0.137652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506100': 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) = 5395.97729643
delta logL = 0.468647711982

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.151e+01  1.823e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  3.075e+00  8.271e-01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.127e+00  1.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.385e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 200.501 83.284
Photon Index (Free Index): 3.07 +/- 0.83
Photon Flux (Free Index): 9.69e-08 +/- 5.97e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.20e-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/506100/cmap_HighResolution_527040001_527299201_4FGL_J1322.0+8317_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='6.99e-08', energy_flux2='1.87e-05', photon_flux_error='4.84e-08', dlogl='4.69e-01', energy_flux='2.30e-05', photon_flux2='9.69e-08', job_status='DONE', time_completed='2021-09-07 14:01:20.686809', photon_index_error2='0.83', photon_index2='3.07', ts='3.04', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.20e-05', EG='0.67', time_epoch_completed='1631048480.69', return_code='0', job_id='506100', GAL2='1.13', EG2='0.64', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.97e-08', ts2='4.01', photon_index='2.40' WHERE bin_id='1110' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 506100: <4FGL_J1322.0+8317_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin1110> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 13:45:44 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:46:06 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:46:06 2021
Terminated at Tue Sep  7 14:01:21 2021
Results reported at Tue Sep  7 14:01:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin1110 200.501 83.2845 527040001 527299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.0+8317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            937 sec.

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

