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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin59
RA = 200.551, Dec = 8.7036
tmin = 254620801, tmax = 254880001
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='510413', job_status='RUN', time_executed='2021-09-07 14:03:01.775168', time_epoch_executed='1631048581.78' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510413

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510413/ft1_4FGL_J1322.2+0842_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510413/ft2_4FGL_J1322.2+0842_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510413/ft1_4FGL_J1322.2+0842_daily_bin59.fits outfile=/scratch/kocevski/510413/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin59.fits ra=200.551 dec=8.7036 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.36
user 1.17
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510413/ft1_filtered_4FGL_J1322.2+0842_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/510413/ft2_4FGL_J1322.2+0842_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/510413/ltcube_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.fits outfile=/scratch/kocevski/510413/expmap_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.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/510413/ltcube_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.fits
.....................!
real 193.41
user 187.81
sys 4.86

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/510413/ft1_filtered_4FGL_J1322.2+0842_daily_bin59.fits scfile=/scratch/kocevski/510413/ft2_4FGL_J1322.2+0842_daily_bin59.fits outfile=/scratch/kocevski/510413/cmap_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510413/ft1_filtered_4FGL_J1322.2+0842_daily_bin59.fits scfile=/scratch/kocevski/510413/ft2_4FGL_J1322.2+0842_daily_bin59.fits outfile=/scratch/kocevski/510413/cmap_HighResolution_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0637       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.935       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11464E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6439       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3197       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0209       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=   7628.769     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1570 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0640        2.3227       -.74242E-07   -.10278E-02
   2  Prefactor     2.6039        58.143        .62085E-05   -.38267E-04
   3  Prefactor     .10000E-03    9.7597       -.50413E-05** at limit **
   4  Prefactor     .10000E-03    4.3607       -.15213E-06** at limit **
   5  Prefactor     .10000E-03    6.6095       -.13606E-05** at limit **
   6  Prefactor     .10000E-03    8.4372        .25444E-05** at limit **
   7  Prefactor     .10000E-03    4.6932        .35537E-06** at limit **
   8  Prefactor     32.953        23.059        .13319E-05    .15024E-05
   9  Prefactor     65.936        52.936        .11303E-05   -.69930E-05
  10  norm          .10000E-03    23.252       -.67750E-05** at limit **
  11  Prefactor     .10000E-03    1.4540        .14136E-07** at limit **
  12  Prefactor     .10000E-03    14.984        .19503E-06** at limit **
  13  Prefactor     2.6438        2.4672        .30825E-07    .15832E-03
  14  Prefactor     .10000E-03    8.4196        .24413E-05** at limit **
  15  Prefactor     .10000E-03    20.264        .68526E-05** at limit **
  16  Normalizat    1.3196        .18771       -.19810E-07   -.10143E-03
  17  Prefactor     1.0209        .15121       -.29502E-06   -.99715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.06395
  Prefactor  = 2.60386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9528
  Prefactor  = 65.9358
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31962
  Prefactor  = 1.02089
 **********
 **   18 **HESSE 
 **********

 FCN=   7628.769     FROM HESSE     STATUS=OK           219 CALLS     1789 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0640        2.3291        .34606E-03   -1.5140    
   2  Prefactor     2.6039        57.277        .25293E-03   -1.5385    
   3  Prefactor     .10000E-03    9.7859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3869        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.953        23.072        .69806E-04   -1.4559    
   9  Prefactor     65.936        52.945        .49426E-04   -1.4082    
  10  norm          .10000E-03    23.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5847        .20419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6438        2.4750        .12909E-03   -1.5383    
  14  Prefactor     .10000E-03    8.4874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3196        .22329        .26775E-03   -.82983    
  17  Prefactor     1.0209        .18017        .24029E-03   -.92036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12638e-10
Minuit parameter uncertainties:
  1  2.32915
  2  24.4507
  3  1.3282e-06
  4  2.48587e-06
  5  4.71682e-06
  6  7.15375e-07
  7  1.3021e-08
  8  23.0782
  9  52.9829
  10  2.11348e-05
  11  5.3632e-07
  12  1.02353e-06
  13  2.4751
  14  5.34264e-06
  15  0.000100462
  16  0.223456
  17  0.180279
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.302e-08  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.021e+00  1.803e-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.320e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510413/likelihoodResults_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.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): 102
logL (Free Index) = 7628.76954959
delta logL = -0.00100927902349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7628.76854026
delta logL = 5.72399585508e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2444       1.0000          .0000       10.000    
     3 'Normalizat'    1.3196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0209       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=   7628.769     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10299E-03    1.5604        .18142E-01** at limit **
   2  Index         2.1195        6.4724        .50000        .23813E-04
   3  Normalizat    1.3196        .26138E-02    .26775E-03   -.24340E-03
   4  Prefactor     1.0209        .21073E-02    .24029E-03   -.16275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102992
  Index      = 2.11954
  Normalizat = 1.31961
  Prefactor  = 1.0209
 **********
 **   18 **HESSE 
 **********

 FCN=   7628.769     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10299E-03    85.998        .19267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1195        6.3253        .50000       -.61394    
   3  Normalizat    1.3196        .19614E-01    .53551E-04   -.82983    
   4  Prefactor     1.0209        .15813E-01    .96116E-05   -.92036    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07452e-08
Minuit parameter uncertainties:
  1  0.0321293
  2  549.4
  3  0.0196139
  4  0.0158132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510413': 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): 102
logL (Free Index) = 7628.76853965
delta logL = 6.61149897496e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.030e-04  3.213e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.120e+00  5.494e+02  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.021e+00  1.581e-02  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.320e+00  1.961e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.551 8.704

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/510413/cmap_HighResolution_254620801_254880001_4FGL_J1322.2+0842_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-07 14:12:37.393514', job_id='510413', GAL2='1.02', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631049157.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='59' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 510413: <4FGL_J1322.2+0842_daily_bin59> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin59 200.551 8.7036 254620801 254880001 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 :                                   576.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            724 sec.

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

