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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin578
RA = 200.551, Dec = 8.7036
tmin = 389145601, tmax = 389404801
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='512183', job_status='RUN', time_executed='2021-09-07 14:06:07.953641', time_epoch_executed='1631048767.95' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512183/ft1_4FGL_J1322.2+0842_daily_bin578.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512183/ft1_4FGL_J1322.2+0842_daily_bin578.fits outfile=/scratch/kocevski/512183/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin578.fits ra=200.551 dec=8.7036 rad=12.0 tmin=389145601.0 tmax=389404801.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.59
user 5.29
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.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/512183/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin578.fits evtable="EVENTS" outfile="/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/512183/ltcube_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.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/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits
.....................!
real 17.82
user 16.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/512183/ltcube_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.fits outfile=/scratch/kocevski/512183/expmap_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.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/512183/ltcube_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.fits
.....................!
real 193.59
user 187.31
sys 5.41

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

Setting source of interest to:
4FGL J1322.2+0842 @ 200.551 8.7036

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits scfile=/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits outfile=/scratch/kocevski/512183/cmap_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.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.551 yref=8.7036 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits scfile=/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits outfile=/scratch/kocevski/512183/cmap_HighResolution_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.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.551 yref=8.7036 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/512183/Model_4FGL_J1322.2+0842_daily_bin578.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/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits.....................!
real 48.09
user 46.45
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits', '/scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits', expMap='/scratch/kocevski/512183/expmap_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.fits', expCube='/scratch/kocevski/512183/ltcube_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/512183/Model_4FGL_J1322.2+0842_daily_bin578.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.2+0842'

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.652e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/512183/ft1_filtered_4FGL_J1322.2+0842_daily_bin578.fits
Spacecraft file(s): /scratch/kocevski/512183/ft2_4FGL_J1322.2+0842_daily_bin578.fits
Exposure map: /scratch/kocevski/512183/expmap_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.fits
Exposure cube: /scratch/kocevski/512183/ltcube_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/512183/Model_4FGL_J1322.2+0842_daily_bin578.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) = 5812.46804736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17838E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.954       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0601       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.845       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0444       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0257       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5812.460     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1642 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5481        1.8454        .11050E-07    .46978E-04
   2  Prefactor     7.8157        60.595       -.45803E-05   -.31045E-04
   3  Prefactor     .10000E-03    67.628       -.36113E-05** at limit **
   4  Prefactor     21.980        17.086       -.23886E-05   -.38073E-03
   5  Prefactor     7.1267        18.869       -.33870E-05   -.18268E-03
   6  Prefactor     1.2568        49.193       -.29796E-06   -.74809E-04
   7  Prefactor     8.6700        9.6020       -.87532E-06   -.12759E-03
   8  Prefactor     15.838        28.372       -.16825E-05   -.56124E-04
   9  Prefactor     .10000E-03    13.428        .23776E-06** at limit **
  10  norm          .10000E-03    9.8622       -.12192E-06** at limit **
  11  Prefactor     6.1442        3.6625        .84751E-06   -.19580E-02
  12  Prefactor     .10000E-03    7.7590       -.25843E-06** at limit **
  13  Prefactor     4.3989        4.0406       -.76924E-07   -.38113E-04
  14  Prefactor     .10000E-03    7.7243        .28502E-06** at limit **
  15  Prefactor     .10000E-03    5.8450       -.65192E-08** at limit **
  16  Normalizat    1.0440        .21800        .18661E-05   -.35540E-04
  17  Prefactor     1.0258        .16468       -.53336E-06    .11969E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54809
  Prefactor  = 7.81567
  Prefactor  = 0.0001
  Prefactor  = 21.9798
  Prefactor  = 7.12673
  Prefactor  = 1.2568
  Prefactor  = 8.67
  Prefactor  = 15.8382
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.14419
  Prefactor  = 0.0001
  Prefactor  = 4.39891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04404
  Prefactor  = 1.02582
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.460     FROM HESSE     STATUS=OK           225 CALLS     1867 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5481        1.8462        .72148E-04   -1.5331    
   2  Prefactor     7.8157        61.411        .14338E-03   -1.5149    
   3  Prefactor     .10000E-03    67.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.980        17.266        .85486E-04   -1.4770    
   5  Prefactor     7.1267        19.092        .15040E-03   -1.5174    
   6  Prefactor     1.2568        53.924        .47616E-02   -1.5484    
   7  Prefactor     8.6700        9.6312        .13615E-03   -1.5119    
   8  Prefactor     15.838        28.477        .10062E-03   -1.4912    
   9  Prefactor     .10000E-03    13.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.8666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1442        5.1549        .74332E-03   -1.5212    
  12  Prefactor     .10000E-03    7.7782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3989        4.0379        .14240E-03   -1.5288    
  14  Prefactor     .10000E-03    7.7541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8621        .18001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0440        .26235        .28052E-03   -.91569    
  17  Prefactor     1.0258        .19722        .22427E-03   -.91874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21154e-09
Minuit parameter uncertainties:
  1  1.84625
  2  43.8781
  3  0.000133276
  4  17.27
  5  19.1087
  6  16.48
  7  9.6329
  8  28.5018
  9  1.34924e-05
  10  8.22364e-06
  11  5.15528
  12  1.95175e-05
  13  4.03819
  14  4.22614e-06
  15  7.77512e-06
  16  0.262671
  17  0.19736
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.670e+00  9.633e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.026e+00  1.974e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.044e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.24e-05

TS (Fixed Index): 1.82
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/512183/likelihoodResults_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.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) = 5812.46023251
delta logL = 6.43060711809e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.46021106
delta logL = 8.57504901433e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6084       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2764       1.0000          .0000       10.000    
     3 'Normalizat'    1.0434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0260       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+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=   5812.460     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      255 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6062        11.197        .13662E-03    .10403E-02
   2  Index         2.2759        1.0772        .10646E-01    .19377E-03
   3  Normalizat    1.0434        .24975        .28059E-03   -.56863E-03
   4  Prefactor     1.0261        .19595        .22425E-03   -.87716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.60616
  Index      = 2.27586
  Normalizat = 1.04345
  Prefactor  = 1.02605
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.460     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6062        10.762        .27325E-04   -1.5121    
   2  Index         2.2759        1.0339        .42585E-03   -.57618    
   3  Normalizat    1.0434        .24930        .56117E-04   -.91589    
   4  Prefactor     1.0261        .19593        .44850E-04   -.91866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10634e-09
Minuit parameter uncertainties:
  1  10.7645
  2  1.04463
  3  0.249584
  4  0.196071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512183': 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) = 5812.46021053
delta logL = 8.62797915033e-05

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.606e+00  1.076e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.276e+00  1.045e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.026e+00  1.961e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.043e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.28 +/- 1.04
Photon Flux (Free Index): 2.82e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.29e-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/512183/cmap_HighResolution_389145601_389404801_4FGL_J1322.2+0842_daily_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.11e-05', photon_flux_error='3.08e-08', dlogl='8.63e-05', energy_flux='1.12e-05', photon_flux2='2.82e-08', job_status='DONE', time_completed='2021-09-07 14:15:09.376960', photon_index_error2='1.04', photon_index2='2.28', ts='1.82', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.29e-05', EG='1.04', time_epoch_completed='1631049309.38', return_code='0', job_id='512183', GAL2='1.03', EG2='1.04', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.97e-08', ts2='1.82', photon_index='2.26' WHERE bin_id='578' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 512183: <4FGL_J1322.2+0842_daily_bin578> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin578> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:36 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:05:54 2021
Terminated at Tue Sep  7 14:15:10 2021
Results reported at Tue Sep  7 14:15:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin578 200.551 8.7036 389145601 389404801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.2+0842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   539.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             388.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            574 sec.

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

