/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 220 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 = 7408
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.0+8317_daily_bin1170
RA = 200.501, Dec = 83.2845
tmin = 542592001, tmax = 542851201
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='506192', job_status='RUN', time_executed='2021-09-07 13:51:11.525669', time_epoch_executed='1631047871.53' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506192/ft1_4FGL_J1322.0+8317_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506192/ft1_4FGL_J1322.0+8317_daily_bin1170.fits outfile=/scratch/kocevski/506192/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1170.fits ra=200.501 dec=83.2845 rad=12.0 tmin=542592001.0 tmax=542851201.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 5.58
user 5.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506192/ft1_filtered_4FGL_J1322.0+8317_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/506192/ltcube_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.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/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits
.....................!
real 11.49
user 11.16
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506192/ft1_filtered_4FGL_J1322.0+8317_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/506192/ltcube_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.fits outfile=/scratch/kocevski/506192/expmap_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.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/506192/ltcube_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.fits
.....................!
real 155.86
user 151.14
sys 4.28

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/506192/ft1_filtered_4FGL_J1322.0+8317_daily_bin1170.fits scfile=/scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits outfile=/scratch/kocevski/506192/cmap_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506192/ft1_filtered_4FGL_J1322.0+8317_daily_bin1170.fits scfile=/scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits outfile=/scratch/kocevski/506192/cmap_HighResolution_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.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.49
user 0.34
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506192/ft1_filtered_4FGL_J1322.0+8317_daily_bin1170.fits', '/scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits', expMap='/scratch/kocevski/506192/expmap_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.fits', expCube='/scratch/kocevski/506192/ltcube_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506192/Model_4FGL_J1322.0+8317_daily_bin1170.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/506192/ft1_filtered_4FGL_J1322.0+8317_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/506192/ft2_4FGL_J1322.0+8317_daily_bin1170.fits
Exposure map: /scratch/kocevski/506192/expmap_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.fits
Exposure cube: /scratch/kocevski/506192/ltcube_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506192/Model_4FGL_J1322.0+8317_daily_bin1170.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) = 4293.40678773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.133       1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.407       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.140       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7064       1.0000         .10000E-03   10000.    
    21 'Prefactor '    93.285       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .47361       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .38030       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1596       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=   4293.361     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2906 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6965        130.30        .10127E-04    .54855E-04
   2  Prefactor     .10000E-03    3.9047        .20276E-06** at limit **
   3  Prefactor     .10000E-03    2.8572        .11605E-07** at limit **
   4  Prefactor     6.4491        7.8196        .28441E-07    .60453E-06
   5  Prefactor     .10000E-03    13.170       -.14224E-05** at limit **
   6  Prefactor     .10000E-03    9.5733       -.35054E-06** at limit **
   7  norm          .10000E-03    10.235        .84221E-06** at limit **
   8  Prefactor     .10000E-03    7.0928        .44059E-07** at limit **
   9  Prefactor     68.132        29.559        .37216E-06   -.51287E-04
  10  Prefactor     74.371        137.67       -.39150E-05   -.82368E-04
  11  norm          .10000E-03    2.6755       -.56455E-07** at limit **
  12  Prefactor     .10001E-03    45.449       -.54977E-05** at limit **
  13  Prefactor     34.144        38.810        .78965E-06    .15025E-04
  14  Prefactor     26.667        33.837        .51049E-07   -.16428E-06
  15  Prefactor     .10000E-03    20.647        .26911E-06** at limit **
  16  Prefactor     .10007E-03    115.41       -.11697E-04** at limit **
  17  Prefactor     64.622        72.148       -.15856E-05   -.80041E-04
  18  Prefactor     .10003E-03    68.496        .70272E-05** at limit **
  19  norm          .10000E-03    14.769        .88819E-06** at limit **
  20  Prefactor     4.7055        7.8523        .67933E-05   -.68419E-03
  21  Prefactor     93.291        93.674       -.10376E-04   -.36302E-04
  22  Prefactor     .10002E-03    62.365        .58689E-05** at limit **
  23  norm          .47400        1.7099        .92828E-06   -.19664E-03
  24  Normalizat    .38030        .28665        .34637E-06   -.88561E-04
  25  Prefactor     1.1595        .16089       -.10447E-05   -.59693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.4491
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.1323
  Prefactor  = 74.3707
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 34.144
  Prefactor  = 26.6668
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 64.6218
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 4.70552
  Prefactor  = 93.2911
  Prefactor  = 0.000100016
  norm       = 0.474003
  Normalizat = 0.380302
  Prefactor  = 1.15955
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.361     FROM HESSE     STATUS=OK           417 CALLS     3323 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6965        134.73        .16863E-03   -1.5231    
   2  Prefactor     .10000E-03    3.9080        .12640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8592        .10816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4491        7.8161        .15804E-03   -1.5200    
   5  Prefactor     .10000E-03    13.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1033        .17036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.132        29.265        .48627E-04   -1.4055    
  10  Prefactor     74.371        138.00        .46546E-04   -1.3981    
  11  norm          .10000E-03    2.6915        .10456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    46.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.144        38.863        .68583E-04   -1.4539    
  14  Prefactor     26.667        33.792        .77577E-04   -1.4675    
  15  Prefactor     .10000E-03    20.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    119.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     64.622        72.222        .49917E-04   -1.4098    
  18  Prefactor     .10003E-03    69.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7055        8.0088        .92744E-03   -1.5274    
  21  Prefactor     93.291        92.374        .41610E-04   -1.3773    
  22  Prefactor     .10002E-03    63.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .47400        1.6460        .13595E-03   -1.5570    
  24  Normalizat    .38030        .28600        .48627E-03   -1.1833    
  25  Prefactor     1.1595        .16642        .16333E-03   -.87585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59469e-09
Minuit parameter uncertainties:
  1  55.5474
  2  6.00947e-06
  3  3.49066e-07
  4  7.81729
  5  0.000231366
  6  4.69679e-05
  7  0.000109436
  8  2.83233e-06
  9  29.2711
  10  138.599
  11  3.66361e-07
  12  0.00166276
  13  38.8917
  14  33.816
  15  6.42025e-05
  16  0.00578454
  17  72.3201
  18  0.0026669
  19  0.000154509
  20  8.0106
  21  92.5165
  22  0.00203219
  23  1.64615
  24  0.287109
  25  0.166494
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  3.414e+01  3.889e+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.160e+00  1.665e-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:  3.803e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/506192/likelihoodResults_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.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) = 4293.35839661
delta logL = 0.00307516031899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4293.35676375
delta logL = 0.00470801835218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.692       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3141       1.0000          .0000       10.000    
     3 'Normalizat'    .38297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1587       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=   4293.357     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      262 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.693        49.335        .66163E-04   -.93750E-04
   2  Index         2.3139        .86359        .87380E-02   -.16838E-04
   3  Normalizat    .38331        .26682        .48447E-03   -.25226E-04
   4  Prefactor     1.1585        .15289        .16340E-03   -.21012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.693
  Index      = 2.31394
  Normalizat = 0.383311
  Prefactor  = 1.15854
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.357     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.693        47.319        .13233E-04   -1.4496    
   2  Index         2.3139        .82804        .34952E-03   -.56713    
   3  Normalizat    .38331        .26656        .19379E-04   -1.1817    
   4  Prefactor     1.1585        .15279        .65359E-05   -.87617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67153e-11
Minuit parameter uncertainties:
  1  47.3672
  2  0.833458
  3  0.267449
  4  0.152846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506192': 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) = 4293.35676281
delta logL = 0.00470895830222

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  3.669e+01  4.737e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.314e+00  8.335e-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.159e+00  1.528e-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:  3.833e-01  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.97
Ra Dec: 200.501 83.284

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/506192/cmap_HighResolution_542592001_542851201_4FGL_J1322.0+8317_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-02', job_status='DONE', photon_flux_upper_limit='2.75e-07', time_completed='2021-09-07 14:00:25.656944', job_id='506192', GAL2='1.16', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1631048425.66', return_code2='0', ts='0.97', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.71e-03', ts2='0.99', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1170' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 506192: <4FGL_J1322.0+8317_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin1170 200.501 83.2845 542592001 542851201 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 :                                   549.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             209.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            875 sec.

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

