/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 0 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 = 7426
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin281
RA = 200.551, Dec = 8.7036
tmin = 312163201, tmax = 312422401
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='510730', job_status='RUN', time_executed='2021-09-07 14:01:42.730612', time_epoch_executed='1631048502.73' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510730/ft1_4FGL_J1322.2+0842_daily_bin281.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510730/ft2_4FGL_J1322.2+0842_daily_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510730/ft1_4FGL_J1322.2+0842_daily_bin281.fits outfile=/scratch/kocevski/510730/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin281.fits ra=200.551 dec=8.7036 rad=12.0 tmin=312163201.0 tmax=312422401.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.44
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510730/ft1_filtered_4FGL_J1322.2+0842_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/510730/ft2_4FGL_J1322.2+0842_daily_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/510730/ltcube_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.fits outfile=/scratch/kocevski/510730/expmap_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.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/510730/ltcube_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.fits
.....................!
real 191.05
user 185.54
sys 4.92

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/510730/ft1_filtered_4FGL_J1322.2+0842_daily_bin281.fits scfile=/scratch/kocevski/510730/ft2_4FGL_J1322.2+0842_daily_bin281.fits outfile=/scratch/kocevski/510730/cmap_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510730/ft1_filtered_4FGL_J1322.2+0842_daily_bin281.fits scfile=/scratch/kocevski/510730/ft2_4FGL_J1322.2+0842_daily_bin281.fits outfile=/scratch/kocevski/510730/cmap_HighResolution_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.514       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.513       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.606       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5956       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .60855       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=   6385.357     FROM MIGRAD    STATUS=CONVERGED    314 CALLS     1536 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4172        1.2446       -.36710E-07   -.60138E-04
   2  Prefactor     .10000E-03    19.267        .40869E-05** at limit **
   3  Prefactor     13.899        32.284       -.55403E-05   -.24926E-05
   4  Prefactor     .10000E-03    7.2332       -.22433E-06** at limit **
   5  Prefactor     36.514        17.217        .16763E-06    .16827E-04
   6  Prefactor     .10000E-03    10.931       -.72228E-05** at limit **
   7  Prefactor     .10000E-03    3.5492        .19200E-07** at limit **
   8  Prefactor     .10000E-03    21.519       -.96116E-05** at limit **
   9  Prefactor     64.508        68.652       -.63961E-05    .83139E-05
  10  norm          .10000E-03    9.8069        .51687E-05** at limit **
  11  Prefactor     13.830        5.8349       -.78888E-09   -.85288E-04
  12  Prefactor     29.604        24.387       -.22323E-05   -.46346E-04
  13  Prefactor     .10000E-03    1.4179        .54973E-07** at limit **
  14  Prefactor     5.7390        16.008       -.11334E-05   -.50422E-04
  15  Prefactor     .10000E-03    17.957        .73749E-05** at limit **
  16  Normalizat    1.5958        .21306        .70121E-06    .15489E-04
  17  Prefactor     .60844        .15843        .75028E-06    .16106E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41721
  Prefactor  = 0.0001
  Prefactor  = 13.8987
  Prefactor  = 0.0001
  Prefactor  = 36.5142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.5076
  norm       = 0.0001
  Prefactor  = 13.83
  Prefactor  = 29.6043
  Prefactor  = 0.0001
  Prefactor  = 5.73902
  Prefactor  = 0.0001
  Normalizat = 1.59578
  Prefactor  = 0.608444
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.357     FROM HESSE     STATUS=OK           219 CALLS     1755 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4172        1.2521        .81020E-04   -1.5470    
   2  Prefactor     .10000E-03    19.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.899        32.287        .10743E-03   -1.4962    
   4  Prefactor     .10000E-03    7.2647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.514        17.297        .66323E-04   -1.4499    
   6  Prefactor     .10000E-03    10.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5544        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.508        68.613        .49964E-04   -1.4100    
  10  norm          .10000E-03    9.8067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.830        5.8434        .10770E-03   -1.4964    
  12  Prefactor     29.604        24.445        .73633E-04   -1.4619    
  13  Prefactor     .10000E-03    1.4207        .92913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7390        16.055        .16765E-03   -1.5229    
  15  Prefactor     .10000E-03    18.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5958        .25853        .24439E-03   -.75121    
  17  Prefactor     .60844        .19005        .28312E-03   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44999e-11
Minuit parameter uncertainties:
  1  1.25208
  2  2.04312e-05
  3  32.3273
  4  1.85345e-05
  5  17.2993
  6  2.31171e-06
  7  8.38288e-07
  8  8.14666e-06
  9  68.6973
  10  1.13654e-06
  11  5.84366
  12  24.4533
  13  1.88347e-06
  14  16.0669
  15  1.35154e-05
  16  0.258746
  17  0.190254
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.383e-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:  6.084e-01  1.903e-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.596e+00  2.587e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510730/likelihoodResults_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.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) = 6385.35833918
delta logL = -0.0013258675026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6385.35701314
delta logL = 1.7004822439e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2420       1.0000          .0000       10.000    
     3 'Normalizat'    1.5958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60846       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=   6385.357     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    46.873        .14943E-02** at limit **
   2  Index         2.1743        6.5369        .50000        .39592E-04
   3  Normalizat    1.5958        .18160E-01    .24439E-03    .19994E-04
   4  Prefactor     .60844        .13757E-01    .28312E-03    .24775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101752
  Index      = 2.17426
  Normalizat = 1.59578
  Prefactor  = 0.608445
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.357     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10175E-03    190.68        .29886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1743        5.1115        .50000       -.60061    
   3  Normalizat    1.5958        .38420E-01    .48877E-04   -.75121    
   4  Prefactor     .60844        .29103E-01    .11325E-04   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.89051e-08
Minuit parameter uncertainties:
  1  0.0366737
  2  518.583
  3  0.0384207
  4  0.0291041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510730': 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) = 6385.35701261
delta logL = 6.99092197465e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.018e-04  3.667e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.174e+00  5.186e+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:  6.084e-01  2.910e-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.596e+00  3.842e-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/510730/cmap_HighResolution_312163201_312422401_4FGL_J1322.2+0842_daily_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-07 14:10:34.931216', job_id='510730', GAL2='0.61', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1631049034.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='6.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='281' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 510730: <4FGL_J1322.2+0842_daily_bin281> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin281> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:56 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:01:32 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:01:32 2021
Terminated at Tue Sep  7 14:10:35 2021
Results reported at Tue Sep  7 14:10:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin281 200.551 8.7036 312163201 312422401 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 :                                   530.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            579 sec.

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

