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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin651
RA = 200.551, Dec = 8.7036
tmin = 408067201, tmax = 408326401
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='513356', job_status='RUN', time_executed='2021-09-07 14:13:49.990514', time_epoch_executed='1631049229.99' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513356/ft1_4FGL_J1322.2+0842_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513356/ft1_4FGL_J1322.2+0842_daily_bin651.fits outfile=/scratch/kocevski/513356/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin651.fits ra=200.551 dec=8.7036 rad=12.0 tmin=408067201.0 tmax=408326401.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.97
user 3.69
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.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/513356/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/513356/ltcube_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.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/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits
.....................!
real 16.73
user 16.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/513356/ltcube_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.fits outfile=/scratch/kocevski/513356/expmap_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.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/513356/ltcube_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.fits
.....................!
real 196.14
user 188.99
sys 4.80

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/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits scfile=/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits outfile=/scratch/kocevski/513356/cmap_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits scfile=/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits outfile=/scratch/kocevski/513356/cmap_HighResolution_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.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.60
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits', '/scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits', expMap='/scratch/kocevski/513356/expmap_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.fits', expCube='/scratch/kocevski/513356/ltcube_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513356/Model_4FGL_J1322.2+0842_daily_bin651.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/513356/ft1_filtered_4FGL_J1322.2+0842_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/513356/ft2_4FGL_J1322.2+0842_daily_bin651.fits
Exposure map: /scratch/kocevski/513356/expmap_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.fits
Exposure cube: /scratch/kocevski/513356/ltcube_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513356/Model_4FGL_J1322.2+0842_daily_bin651.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) = 12130.0944481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4118       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12089E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4313       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .80503       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12130.09     FROM MIGRAD    STATUS=CONVERGED    318 CALLS     1586 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7515        1.3772         .0000        .22440E-03
   2  Prefactor     17.158        22.586         .0000       -.28699E-03
   3  Prefactor     6.5152        14.999         .0000       -.28070E-03
   4  Prefactor     10.221        9.5952         .0000        .71536E-03
   5  Prefactor     2.4342        14.087         .0000        .48073E-02
   6  Prefactor     3.4123        8.1669         .0000        .23542E-03
   7  Prefactor     9.1567        9.1017         .0000        .28790E-02
   8  Prefactor     .10000E-03    7.7825         .0000    ** at limit **
   9  Prefactor     .10000E-03    12.707         .0000    ** at limit **
  10  norm          .10000E-03    3.5365         .0000    ** at limit **
  11  Prefactor     .10000E-03    .69110         .0000    ** at limit **
  12  Prefactor     .10000E-03    9.1499         .0000    ** at limit **
  13  Prefactor     1.3732        2.1596         .0000        .75062E-03
  14  Prefactor     7.6693        8.6963         .0000        .10767E-03
  15  Prefactor     .10000E-03    1.8898         .0000    ** at limit **
  16  Normalizat    1.4313        .14884         .0000       -.28492E-06
  17  Prefactor     .80503        .11406         .0000        .20475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.75145
  Prefactor  = 17.1582
  Prefactor  = 6.5152
  Prefactor  = 10.2208
  Prefactor  = 2.43425
  Prefactor  = 3.41233
  Prefactor  = 9.15668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37322
  Prefactor  = 7.66925
  Prefactor  = 0.0001
  Normalizat = 1.43128
  Prefactor  = 0.80503
 **********
 **   18 **HESSE 
 **********

 FCN=   12130.09     FROM HESSE     STATUS=OK           225 CALLS     1811 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7515        1.3770        .67062E-04   -1.5272    
   2  Prefactor     17.158        22.583        .96691E-04   -1.4879    
   3  Prefactor     6.5152        14.976        .15723E-03   -1.5197    
   4  Prefactor     10.221        9.5458        .12532E-03   -1.5068    
   5  Prefactor     2.4342        13.958        .13116E-02   -1.5396    
   6  Prefactor     3.4123        8.1504        .21901E-03   -1.5338    
   7  Prefactor     9.1567        9.1156        .66225E-03   -1.5103    
   8  Prefactor     .10000E-03    7.7880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .69708        .89381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.5285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3732        2.1252        .19683E-03   -1.5474    
  14  Prefactor     7.6693        8.6918        .14480E-03   -1.5154    
  15  Prefactor     .10000E-03    1.8954        .14786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.4313        .17881        .24898E-03   -.79728    
  17  Prefactor     .80503        .13626        .25093E-03   -.99543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09892e-09
Minuit parameter uncertainties:
  1  1.37704
  2  22.5945
  3  14.9841
  4  9.54723
  5  11.662
  6  8.15301
  7  9.11698
  8  1.31129e-05
  9  3.59288e-05
  10  2.5547e-06
  11  5.97822e-08
  12  9.26356e-06
  13  2.1253
  14  8.69323
  15  1.44773e-06
  16  0.178893
  17  0.136316
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  9.157e+00  9.117e+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:  8.050e-01  1.363e-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.431e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.93e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.17e-05

TS (Fixed Index): 1.24
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513356/likelihoodResults_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.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) = 12129.1331108
delta logL = 0.960457869563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12129.0941088
delta logL = 0.99945992876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9686       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4527       1.0000          .0000       10.000    
     3 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84164       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12129.09     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      308 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9697        32.587        .44064E-03   -.13492E-02
   2  Index         3.4531        3.4024        .50125E-02   -.13113E-03
   3  Normalizat    1.3614        .15833        .25423E-03   -.10437E-02
   4  Prefactor     .84164        .12255        .24593E-03   -.98230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96967
  Index      = 3.45309
  Normalizat = 1.36141
  Prefactor  = 0.84164
 **********
 **   18 **HESSE 
 **********

 FCN=   12129.09     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9697        5.0450        .17626E-04   -1.5427    
   2  Index         3.4531        1.1843        .20050E-03   -.31454    
   3  Normalizat    1.3614        .18321        .50846E-04   -.81751    
   4  Prefactor     .84164        .13998        .49186E-04   -.98211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32429e-10
Minuit parameter uncertainties:
  1  5.04611
  2  1.19686
  3  0.183296
  4  0.140037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513356': 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) = 12129.0941032
delta logL = 0.999465532916

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.970e+00  5.046e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.453e+00  1.197e+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:  8.416e-01  1.400e-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.361e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.45 +/- 1.20
Photon Flux (Free Index): 7.64e-08 +/- 4.96e-08
Energy Flux (Free Index): 1.29e-05 +/- 8.16e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513356/cmap_HighResolution_408067201_408326401_4FGL_J1322.2+0842_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', comment='SUCCESS', photon_flux='2.93e-08', energy_flux2='1.29e-05', photon_flux_error='2.91e-08', dlogl='9.99e-01', energy_flux='1.18e-05', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-07 14:26:42.563169', photon_index_error2='1.20', photon_index2='3.45', ts='1.24', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.76e-08', energy_flux_error2='8.16e-06', EG='1.43', time_epoch_completed='1631050002.56', return_code='0', job_id='513356', GAL2='0.84', EG2='1.36', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.96e-08', ts2='3.38', photon_index='2.26' WHERE bin_id='651' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:26:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 513356: <4FGL_J1322.2+0842_daily_bin651> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin651> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:19 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:32 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:10:32 2021
Terminated at Tue Sep  7 14:26:43 2021
Results reported at Tue Sep  7 14:26:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin651 200.551 8.7036 408067201 408326401 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 :                                   765.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            984 sec.

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

