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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin575
RA = 200.551, Dec = 8.7036
tmin = 388368001, tmax = 388627201
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='512179', job_status='RUN', time_executed='2021-09-07 14:08:58.406701', time_epoch_executed='1631048938.41' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512179/ft1_4FGL_J1322.2+0842_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512179/ft2_4FGL_J1322.2+0842_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512179/ft1_4FGL_J1322.2+0842_daily_bin575.fits outfile=/scratch/kocevski/512179/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin575.fits ra=200.551 dec=8.7036 rad=12.0 tmin=388368001.0 tmax=388627201.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 4.52
user 4.24
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512179/ft1_filtered_4FGL_J1322.2+0842_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/512179/ft2_4FGL_J1322.2+0842_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/512179/ltcube_388368001_388627201_4FGL_J1322.2+0842_daily_bin575.fits outfile=/scratch/kocevski/512179/expmap_388368001_388627201_4FGL_J1322.2+0842_daily_bin575.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/512179/ltcube_388368001_388627201_4FGL_J1322.2+0842_daily_bin575.fits
.....................!
real 192.33
user 187.01
sys 4.65

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/512179/ft1_filtered_4FGL_J1322.2+0842_daily_bin575.fits scfile=/scratch/kocevski/512179/ft2_4FGL_J1322.2+0842_daily_bin575.fits outfile=/scratch/kocevski/512179/cmap_388368001_388627201_4FGL_J1322.2+0842_daily_bin575.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512179/ft1_filtered_4FGL_J1322.2+0842_daily_bin575.fits scfile=/scratch/kocevski/512179/ft2_4FGL_J1322.2+0842_daily_bin575.fits outfile=/scratch/kocevski/512179/cmap_HighResolution_388368001_388627201_4FGL_J1322.2+0842_daily_bin575.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5016       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.564       1.0000         .10000E-03   10000.    
    10 'norm      '    74.977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9882       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.374       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3917       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .70225       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.

 FCN=   5572.581     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     1578 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5015        1.9565        .54015E-02    .10417E-03
   2  Prefactor     .10000E-03    46.678        .90712E-02** at limit **
   3  Prefactor     .10000E-03    23.757        .90712E-02** at limit **
   4  Prefactor     1.6267        20.328        .82818E-02    .32671E-03
   5  Prefactor     27.158        17.823        .19218E-02    .44704E-03
   6  Prefactor     .10000E-03    8.8462        .90712E-02** at limit **
   7  Prefactor     23.440        14.219        .20683E-02   -.62007E-04
   8  Prefactor     17.055        19.241        .24245E-02    .79807E-05
   9  Prefactor     54.564        47.106        .13575E-02    .48331E-03
  10  norm          74.978        50.647        .11593E-02   -.14137E-02
  11  Prefactor     3.9874        5.0744        .50489E-02    .36645E-03
  12  Prefactor     .10000E-03    11.736        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.5628        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.7410        .90712E-02** at limit **
  15  Prefactor     35.374        21.211        .16845E-02    .67557E-05
  16  Normalizat    1.3919        .22179        .56937E-01   -.29169E-05
  17  Prefactor     .70211        .16652        .42431E-01    .18720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.50146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62668
  Prefactor  = 27.1583
  Prefactor  = 0.0001
  Prefactor  = 23.4404
  Prefactor  = 17.0553
  Prefactor  = 54.5635
  norm       = 74.9779
  Prefactor  = 3.98742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.3739
  Normalizat = 1.39194
  Prefactor  = 0.70211
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.581     FROM HESSE     STATUS=OK           221 CALLS     1799 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5015        1.9556        .75578E-04   -1.5334    
   2  Prefactor     .10000E-03    47.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6267        19.913        .33127E-03   -1.5453    
   5  Prefactor     27.158        17.748        .76870E-04   -1.4665    
   6  Prefactor     .10000E-03    8.8613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.440        14.260        .82732E-04   -1.4739    
   8  Prefactor     17.055        19.242        .96982E-04   -1.4882    
   9  Prefactor     54.564        47.115        .54302E-04   -1.4229    
  10  norm          74.978        50.780        .46370E-04   -1.3974    
  11  Prefactor     3.9874        5.0701        .17874E-03   -1.5309    
  12  Prefactor     .10000E-03    11.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5661        .91129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7431        .14101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.374        21.220        .67380E-04   -1.4518    
  16  Normalizat    1.3919        .26469        .25178E-03   -.80862    
  17  Prefactor     .70211        .19715        .26274E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05439e-09
Minuit parameter uncertainties:
  1  1.95565
  2  0.00010244
  3  1.55974e-05
  4  11.3872
  5  17.7516
  6  6.96087e-07
  7  14.2625
  8  19.2485
  9  47.1476
  10  50.8096
  11  5.07065
  12  1.59357e-06
  13  4.7142e-07
  14  1.73972e-06
  15  21.2244
  16  0.264954
  17  0.19735
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.344e+01  1.426e+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:  7.021e-01  1.973e-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.392e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.96
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 7.49e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 1.83e-05

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) = 5571.95873217
delta logL = 0.622161426797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5571.94307248
delta logL = 0.637821119143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6452       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0615       1.0000          .0000       10.000    
     3 'Normalizat'    1.2860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75513       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.

 FCN=   5571.943     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6326        70.913        .32258E-02    .14902E-03
   2  Index         3.0623        2.4732        .87235E-01    .16810E-03
   3  Normalizat    1.2861        .10492        .58771E-01    .67675E-05
   4  Prefactor     .75507        .66107E-01    .43130E-01    .15048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63261
  Index      = 3.06228
  Normalizat = 1.28606
  Prefactor  = 0.755069
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.943     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6326        20.785        .10248E-03   -1.5087    
   2  Index         3.0623        1.1947        .34167E-02   -.39797    
   3  Normalizat    1.2861        .28580        .25991E-03   -.83983    
   4  Prefactor     .75507        .20926        .25417E-03   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12359e-08
Minuit parameter uncertainties:
  1  20.8004
  2  1.2085
  3  0.286152
  4  0.209477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512179': 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) = 5571.94307161
delta logL = 0.637821984702

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  9.633e+00  2.080e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.062e+00  1.209e+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:  7.551e-01  2.095e-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.286e+00  2.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.36
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.06 +/- 1.21
Photon Flux (Free Index): 1.57e-07 +/- 1.10e-07
Energy Flux (Free Index): 3.05e-05 +/- 1.46e-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/512179/cmap_HighResolution_388368001_388627201_4FGL_J1322.2+0842_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.49e-08', energy_flux2='3.05e-05', photon_flux_error='4.56e-08', dlogl='6.38e-01', energy_flux='3.02e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-07 14:17:11.515186', photon_index_error2='1.21', photon_index2='3.06', ts='5.96', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='1.39', time_epoch_completed='1631049431.52', return_code='0', job_id='512179', GAL2='0.76', EG2='1.29', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.10e-07', ts2='7.36', photon_index='2.26' WHERE bin_id='575' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 512179: <4FGL_J1322.2+0842_daily_bin575> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin575> 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) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:53 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:53 2021
Terminated at Tue Sep  7 14:17:12 2021
Results reported at Tue Sep  7 14:17:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin575 200.551 8.7036 388368001 388627201 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 :                                   492.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            696 sec.

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

