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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin630
RA = 200.551, Dec = 8.7036
tmin = 402624001, tmax = 402883201
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='513327', job_status='RUN', time_executed='2021-09-07 14:12:25.331997', time_epoch_executed='1631049145.33' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513327

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513327/ft1_4FGL_J1322.2+0842_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513327/ft2_4FGL_J1322.2+0842_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513327/ft1_4FGL_J1322.2+0842_daily_bin630.fits outfile=/scratch/kocevski/513327/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin630.fits ra=200.551 dec=8.7036 rad=12.0 tmin=402624001.0 tmax=402883201.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.69
user 3.40
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513327/ft2_4FGL_J1322.2+0842_daily_bin630.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/513327/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin630.fits evtable="EVENTS" outfile="/scratch/kocevski/513327/ft1_filtered_4FGL_J1322.2+0842_daily_bin630.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.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513327/ft1_filtered_4FGL_J1322.2+0842_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/513327/ft2_4FGL_J1322.2+0842_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/513327/ltcube_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.fits outfile=/scratch/kocevski/513327/expmap_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.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/513327/ltcube_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.fits
.....................!
real 191.22
user 185.79
sys 4.85

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/513327/ft1_filtered_4FGL_J1322.2+0842_daily_bin630.fits scfile=/scratch/kocevski/513327/ft2_4FGL_J1322.2+0842_daily_bin630.fits outfile=/scratch/kocevski/513327/cmap_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513327/ft1_filtered_4FGL_J1322.2+0842_daily_bin630.fits scfile=/scratch/kocevski/513327/ft2_4FGL_J1322.2+0842_daily_bin630.fits outfile=/scratch/kocevski/513327/cmap_HighResolution_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6569       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.497       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.449       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-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 '    2.1567       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.234       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2825       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2316       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=   7337.609     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1566 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6569        2.5168       -.18746E-07    .12138E-04
   2  Prefactor     46.499        42.554        .62504E-06   -.15006E-05
   3  Prefactor     34.444        34.462       -.46564E-05    .22764E-06
   4  Prefactor     .10000E-03    4.5924       -.78439E-07** at limit **
   5  Prefactor     32.640        16.932       -.48647E-06    .40792E-05
   6  Prefactor     10.830        21.162        .95435E-05   -.23780E-04
   7  Prefactor     12.157        11.447        .48938E-05   -.11974E-04
   8  Prefactor     .10000E-03    11.343       -.95125E-05** at limit **
   9  Prefactor     .10000E-03    108.49       -.87756E-05** at limit **
  10  norm          .10000E-03    11.759        .76372E-05** at limit **
  11  Prefactor     2.1569        4.4638       -.29376E-05   -.94841E-03
  12  Prefactor     .10000E-03    10.041        .22326E-05** at limit **
  13  Prefactor     .10000E-03    2.3038        .84436E-07** at limit **
  14  Prefactor     18.236        18.094       -.48278E-05    .29844E-05
  15  Prefactor     4.2813        8.7400        .43574E-06   -.13475E-03
  16  Normalizat    1.0763        .21463        .40754E-06    .88960E-05
  17  Prefactor     1.2317        .16465       -.45457E-06    .94098E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.65686
  Prefactor  = 46.4985
  Prefactor  = 34.4442
  Prefactor  = 0.0001
  Prefactor  = 32.6402
  Prefactor  = 10.8295
  Prefactor  = 12.1569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.15688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2362
  Prefactor  = 4.28127
  Normalizat = 1.07628
  Prefactor  = 1.23169
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.609     FROM HESSE     STATUS=OK           221 CALLS     1787 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6569        2.5179        .67060E-04   -1.5086    
   2  Prefactor     46.499        42.550        .58801E-04   -1.4343    
   3  Prefactor     34.444        34.462        .68276E-04   -1.4534    
   4  Prefactor     .10000E-03    4.6000        .17924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.640        17.002        .70135E-04   -1.4565    
   6  Prefactor     10.830        21.010        .12160E-03   -1.5050    
   7  Prefactor     12.157        11.407        .11487E-03   -1.5010    
   8  Prefactor     .10000E-03    11.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    108.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1569        4.5714        .25054E-03   -1.5414    
  12  Prefactor     .10000E-03    10.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3142        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.236        18.126        .93796E-04   -1.4854    
  15  Prefactor     4.2813        8.7253        .19469E-03   -1.5294    
  16  Normalizat    1.0763        .25993        .31503E-03   -.90517    
  17  Prefactor     1.2317        .19965        .23536E-03   -.85362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6012e-10
Minuit parameter uncertainties:
  1  2.51797
  2  42.578
  3  34.4815
  4  1.01414e-05
  5  17.0047
  6  21.0239
  7  11.4088
  8  1.167e-06
  9  0.000294996
  10  2.98761e-06
  11  4.57215
  12  2.60581e-06
  13  1.32825e-05
  14  18.1313
  15  8.72784
  16  0.260237
  17  0.199777
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.216e+01  1.141e+01  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.232e+00  1.998e-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.076e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.89e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/513327/likelihoodResults_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.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) = 7337.59930254
delta logL = 0.00989030499841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7337.58730706
delta logL = 0.021885786914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4501       1.0000          .0000       10.000    
     3 'Normalizat'    1.0670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2368       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=   7337.587     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7797        17.801        .12815E-03    .77128E-03
   2  Index         2.4499        1.0953        .66847E-02    .26042E-03
   3  Normalizat    1.0670        .25623        .31626E-03    .28007E-03
   4  Prefactor     1.2371        .20174        .23493E-03    .49368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.77973
  Index      = 2.44989
  Normalizat = 1.06697
  Prefactor  = 1.23707
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.587     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7797        15.140        .51260E-05   -1.5082    
   2  Index         2.4499        .93326        .26739E-03   -.53521    
   3  Normalizat    1.0670        .25492        .12650E-04   -.90819    
   4  Prefactor     1.2371        .20098        .46986E-04   -.85198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1603e-09
Minuit parameter uncertainties:
  1  15.146
  2  0.940741
  3  0.255211
  4  0.201104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513327': 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) = 7337.58730537
delta logL = 0.0218874814964

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  9.780e+00  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.450e+00  9.407e-01  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.237e+00  2.011e-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.067e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.45 +/- 0.94
Photon Flux (Free Index): 4.48e-08 +/- 4.90e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.47e-05

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/513327/cmap_HighResolution_402624001_402883201_4FGL_J1322.2+0842_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', photon_flux='3.89e-08', energy_flux2='1.38e-05', photon_flux_error='3.64e-08', dlogl='2.19e-02', energy_flux='1.56e-05', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-07 14:21:58.598309', photon_index_error2='0.94', photon_index2='2.45', ts='1.75', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.47e-05', EG='1.08', time_epoch_completed='1631049718.6', return_code='0', job_id='513327', GAL2='1.24', EG2='1.07', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.90e-08', ts2='1.79', photon_index='2.26' WHERE bin_id='630' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:21:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 513327: <4FGL_J1322.2+0842_daily_bin630> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin630> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:17 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:20 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:20 2021
Terminated at Tue Sep  7 14:21:59 2021
Results reported at Tue Sep  7 14:21:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin630 200.551 8.7036 402624001 402883201 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            702 sec.

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

