/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 171 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin37
RA = 200.551, Dec = 8.7036
tmin = 248918401, tmax = 249177601
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='510380', job_status='RUN', time_executed='2021-09-07 14:03:36.415666', time_epoch_executed='1631048616.42' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510380

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510380/ft1_4FGL_J1322.2+0842_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510380/ft2_4FGL_J1322.2+0842_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510380/ft1_4FGL_J1322.2+0842_daily_bin37.fits outfile=/scratch/kocevski/510380/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin37.fits ra=200.551 dec=8.7036 rad=12.0 tmin=248918401.0 tmax=249177601.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 2.03
user 1.77
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510380/ft1_filtered_4FGL_J1322.2+0842_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/510380/ft2_4FGL_J1322.2+0842_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/510380/ltcube_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.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/510380/ft2_4FGL_J1322.2+0842_daily_bin37.fits
.....................!
real 19.38
user 18.87
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510380/ft1_filtered_4FGL_J1322.2+0842_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/510380/ft2_4FGL_J1322.2+0842_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/510380/ltcube_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.fits outfile=/scratch/kocevski/510380/expmap_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.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/510380/ltcube_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.fits
.....................!
real 190.99
user 186.69
sys 3.88

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/510380/ft1_filtered_4FGL_J1322.2+0842_daily_bin37.fits scfile=/scratch/kocevski/510380/ft2_4FGL_J1322.2+0842_daily_bin37.fits outfile=/scratch/kocevski/510380/cmap_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510380/ft1_filtered_4FGL_J1322.2+0842_daily_bin37.fits scfile=/scratch/kocevski/510380/ft2_4FGL_J1322.2+0842_daily_bin37.fits outfile=/scratch/kocevski/510380/cmap_HighResolution_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.551       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7762       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.221       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15525E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5099       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57440E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0608       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97910       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=   5383.641     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2014 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2547        1.3421        .86655E-04   -.39358E-05
   2  Prefactor     .10000E-03    15.015        .18142E-02** at limit **
   3  Prefactor     .10000E-03    14.660        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.3789        .14974E-02** at limit **
   5  Prefactor     26.549        14.706        .77745E-04   -.55568E-05
   6  Prefactor     .10000E-03    7.0319        .18142E-02** at limit **
   7  Prefactor     8.7775        8.9799        .67651E-03   -.52549E-04
   8  Prefactor     29.746        31.572        .73465E-04    .33271E-04
   9  Prefactor     29.222        40.010        .74116E-04    .13805E-04
  10  norm          .10000E-03    21.138        .18142E-02** at limit **
  11  Prefactor     .10000E-03    5.1854        .23377E-02** at limit **
  12  Prefactor     .10000E-03    10.232        .18142E-02** at limit **
  13  Prefactor     6.5088        5.0030        .69573E-03   -.23428E-03
  14  Prefactor     14.437        12.441        .10542E-03    .14989E-04
  15  Prefactor     .10000E-03    174.08        .48751E-02** at limit **
  16  Normalizat    1.0604        .24755        .26413E-03    .17772E-03
  17  Prefactor     .97902        .19812        .22163E-03    .19898E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5489
  Prefactor  = 0.0001
  Prefactor  = 8.7775
  Prefactor  = 29.7459
  Prefactor  = 29.2216
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.50878
  Prefactor  = 14.4372
  Prefactor  = 0.000100001
  Normalizat = 1.06041
  Prefactor  = 0.979017
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.641     FROM HESSE     STATUS=OK           205 CALLS     2219 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2547        1.3420        .34662E-05   -1.5484    
   2  Prefactor     .10000E-03    15.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3791        .29947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.549        14.705        .31098E-05   -1.4677    
   6  Prefactor     .10000E-03    7.0323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7775        8.9791        .27061E-04   -1.5115    
   8  Prefactor     29.746        31.573        .29386E-05   -1.4617    
   9  Prefactor     29.222        40.007        .29646E-05   -1.4626    
  10  norm          .10000E-03    21.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2028        .46755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5088        5.0028        .27829E-04   -1.5198    
  14  Prefactor     14.437        12.441        .42170E-05   -1.4948    
  15  Prefactor     .10000E-03    181.56        .19501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0604        .24775        .10565E-04   -.91033    
  17  Prefactor     .97902        .19831        .44326E-04   -.93432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61136e-10
Minuit parameter uncertainties:
  1  1.34206
  2  4.52212e-05
  3  5.73801e-05
  4  2.46714e-06
  5  14.7073
  6  6.11923e-06
  7  8.98048
  8  31.5908
  9  40.0439
  10  0.000119552
  11  0.000195688
  12  2.87694e-05
  13  5.00309
  14  12.4429
  15  0.000857581
  16  0.248025
  17  0.198459
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.777e+00  8.980e+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:  9.790e-01  1.985e-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.060e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/510380/likelihoodResults_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.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) = 5383.63557158
delta logL = 0.00531736651283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5383.6317207
delta logL = 0.00916824717024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8532       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4089       1.0000          .0000       10.000    
     3 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98247       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=   5383.632     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8532        233.02        .35771E-02    .53442E-03
   2  Index         2.4086        6.0527        .15112        .86305E-04
   3  Normalizat    1.0534        .10081        .59901E-01    .11484E-04
   4  Prefactor     .98236        .59926E-01    .46048E-01    .84414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85318
  Index      = 2.40859
  Normalizat = 1.05336
  Prefactor  = 0.98236
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.632     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8532        12.289        .14309E-03   -1.5147    
   2  Index         2.4086        1.2149        .86950E-02   -.54484    
   3  Normalizat    1.0534        .25109        .26491E-03   -.91264    
   4  Prefactor     .98236        .19976        .22130E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23034e-09
Minuit parameter uncertainties:
  1  12.2929
  2  1.23186
  3  0.25137
  4  0.199911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510380': 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) = 5383.63172039
delta logL = 0.00916855523246

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.853e+00  1.229e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.409e+00  1.232e+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:  9.824e-01  1.999e-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.053e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.41 +/- 1.23
Photon Flux (Free Index): 3.32e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.15e-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/510380/cmap_HighResolution_248918401_249177601_4FGL_J1322.2+0842_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='1.07e-05', photon_flux_error='2.87e-08', dlogl='9.17e-03', energy_flux='1.13e-05', photon_flux2='3.32e-08', job_status='DONE', time_completed='2021-09-07 14:12:23.628837', photon_index_error2='1.23', photon_index2='2.41', ts='1.98', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.15e-05', EG='1.06', time_epoch_completed='1631049143.63', return_code='0', job_id='510380', GAL2='0.98', EG2='1.05', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.09e-08', ts2='1.99', photon_index='2.26' WHERE bin_id='37' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 510380: <4FGL_J1322.2+0842_daily_bin37> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin37> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:31 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:00:34 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:00:34 2021
Terminated at Tue Sep  7 14:12:24 2021
Results reported at Tue Sep  7 14:12:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin37 200.551 8.7036 248918401 249177601 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 :                                   528.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            713 sec.

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

