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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin644
RA = 200.551, Dec = 8.7036
tmin = 406252801, tmax = 406512001
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='513347', job_status='RUN', time_executed='2021-09-07 14:13:21.884356', time_epoch_executed='1631049201.88' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513347

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513347/ft1_4FGL_J1322.2+0842_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513347/ft2_4FGL_J1322.2+0842_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513347/ft1_4FGL_J1322.2+0842_daily_bin644.fits outfile=/scratch/kocevski/513347/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin644.fits ra=200.551 dec=8.7036 rad=12.0 tmin=406252801.0 tmax=406512001.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.18
user 2.95
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513347/ft1_filtered_4FGL_J1322.2+0842_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/513347/ft2_4FGL_J1322.2+0842_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/513347/ltcube_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.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/513347/ft2_4FGL_J1322.2+0842_daily_bin644.fits
.....................!
real 13.60
user 13.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513347/ft1_filtered_4FGL_J1322.2+0842_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/513347/ft2_4FGL_J1322.2+0842_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/513347/ltcube_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.fits outfile=/scratch/kocevski/513347/expmap_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.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/513347/ltcube_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.fits
.....................!
real 157.55
user 152.83
sys 4.31

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/513347/ft1_filtered_4FGL_J1322.2+0842_daily_bin644.fits scfile=/scratch/kocevski/513347/ft2_4FGL_J1322.2+0842_daily_bin644.fits outfile=/scratch/kocevski/513347/cmap_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.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.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513347/ft1_filtered_4FGL_J1322.2+0842_daily_bin644.fits scfile=/scratch/kocevski/513347/ft2_4FGL_J1322.2+0842_daily_bin644.fits outfile=/scratch/kocevski/513347/cmap_HighResolution_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.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.50
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12439E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.595       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25109E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3215       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88328       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=   5316.679     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1575 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2709        2.5033        .30978E-07   -.30087E-04
   2  Prefactor     .10000E-03    208.04        .14175E-05** at limit **
   3  Prefactor     44.624        42.514       -.22719E-05   -.21183E-03
   4  Prefactor     2.2776        17.511        .12169E-05   -.12123E-04
   5  Prefactor     14.588        14.370        .58569E-06    .12455E-03
   6  Prefactor     .10000E-03    13.631       -.21132E-06** at limit **
   7  Prefactor     .10000E-03    2.3112        .47372E-08** at limit **
   8  Prefactor     .10000E-03    10.505        .30631E-07** at limit **
   9  Prefactor     .10000E-03    15.150        .16752E-06** at limit **
  10  norm          .10000E-03    21.920       -.90871E-07** at limit **
  11  Prefactor     .10000E-03    3.1788       -.67991E-07** at limit **
  12  Prefactor     .10000E-03    14.300        .20942E-07** at limit **
  13  Prefactor     .10000E-03    2.7093        .44905E-08** at limit **
  14  Prefactor     .10000E-03    7.1795        .99647E-08** at limit **
  15  Prefactor     5.3251        10.003        .30545E-05   -.79981E-04
  16  Normalizat    1.2035        .20662       -.42620E-06    .83994E-05
  17  Prefactor     .88319        .16070        .14371E-06   -.23222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.27093
  Prefactor  = 0.0001
  Prefactor  = 44.6243
  Prefactor  = 2.27762
  Prefactor  = 14.5884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32506
  Normalizat = 1.20349
  Prefactor  = 0.883189
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.679     FROM HESSE     STATUS=OK           219 CALLS     1794 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2709        2.5030        .70129E-04   -1.5207    
   2  Prefactor     .10000E-03    215.00        .41224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.624        44.129        .59994E-04   -1.4371    
   4  Prefactor     2.2776        17.058        .27273E-03   -1.5406    
   5  Prefactor     14.588        14.399        .10484E-03   -1.4944    
   6  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3123        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    21.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9076        .24990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7380        .11718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3251        10.154        .87111E-03   -1.5246    
  16  Normalizat    1.2035        .24623        .25154E-03   -.86495    
  17  Prefactor     .88319        .19187        .23028E-03   -.96731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25682e-10
Minuit parameter uncertainties:
  1  2.503
  2  0.000557545
  3  44.1617
  4  12.4708
  5  14.4022
  6  2.51096e-05
  7  2.52625e-07
  8  2.52033e-06
  9  2.45841e-05
  10  1.60504e-05
  11  1.27006e-05
  12  8.98598e-08
  13  7.77924e-07
  14  1.66435e-06
  15  10.1569
  16  0.246465
  17  0.192017
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.526e-07  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.832e-01  1.920e-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.203e+00  2.465e-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: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513347/likelihoodResults_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.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) = 5316.68049697
delta logL = -0.00196532476821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5316.67853102
delta logL = 6.2422350311e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2346       1.0000          .0000       10.000    
     3 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88314       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=   5316.679     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      252 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.091        .11191E-01** at limit **
   2  Index         1.5434        8.8483        .50000        .16871E-07
   3  Normalizat    1.2035        .98717E-02    .25154E-03   -.26006E-02
   4  Prefactor     .88318        .79165E-02    .23028E-03   -.28248E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.54338
  Normalizat = 1.20349
  Prefactor  = 0.883185
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.679     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.30        .13891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5434        5.0445        .50000       -.76332    
   3  Normalizat    1.2035        .28848E-01    .50308E-04   -.86495    
   4  Prefactor     .88318        .23135E-01    .46056E-04   -.96731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02053e-09
Minuit parameter uncertainties:
  1  4.75112e-05
  2  550.531
  3  0.0288488
  4  0.0231349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513347': 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) = 5316.67852316
delta logL = 8.47900719236e-06

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.751e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.543e+00  5.505e+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:  8.832e-01  2.313e-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.203e+00  2.885e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/513347/cmap_HighResolution_406252801_406512001_4FGL_J1322.2+0842_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-09-07 14:20:25.255270', job_id='513347', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631049625.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.48e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='644' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:20:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 513347: <4FGL_J1322.2+0842_daily_bin644> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin644 200.551 8.7036 406252801 406512001 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 :                                   422.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            607 sec.

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

