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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin246
RA = 200.551, Dec = 8.7036
tmin = 303091201, tmax = 303350401
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='510681', job_status='RUN', time_executed='2021-09-07 14:03:21.199423', time_epoch_executed='1631048601.2' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510681/ft1_4FGL_J1322.2+0842_daily_bin246.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510681/ft2_4FGL_J1322.2+0842_daily_bin246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510681/ft1_4FGL_J1322.2+0842_daily_bin246.fits outfile=/scratch/kocevski/510681/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin246.fits ra=200.551 dec=8.7036 rad=12.0 tmin=303091201.0 tmax=303350401.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.50
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510681/ft1_filtered_4FGL_J1322.2+0842_daily_bin246.fits" evtable="EVENTS" scfile=/scratch/kocevski/510681/ft2_4FGL_J1322.2+0842_daily_bin246.fits sctable="SC_DATA" outfile=/scratch/kocevski/510681/ltcube_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.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/510681/ft2_4FGL_J1322.2+0842_daily_bin246.fits
.....................!
real 15.02
user 14.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510681/ft1_filtered_4FGL_J1322.2+0842_daily_bin246.fits evtable="EVENTS" scfile=/scratch/kocevski/510681/ft2_4FGL_J1322.2+0842_daily_bin246.fits sctable="SC_DATA" expcube=/scratch/kocevski/510681/ltcube_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.fits outfile=/scratch/kocevski/510681/expmap_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.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/510681/ltcube_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.fits
.....................!
real 191.00
user 186.07
sys 4.03

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/510681/ft1_filtered_4FGL_J1322.2+0842_daily_bin246.fits scfile=/scratch/kocevski/510681/ft2_4FGL_J1322.2+0842_daily_bin246.fits outfile=/scratch/kocevski/510681/cmap_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510681/ft1_filtered_4FGL_J1322.2+0842_daily_bin246.fits scfile=/scratch/kocevski/510681/ft2_4FGL_J1322.2+0842_daily_bin246.fits outfile=/scratch/kocevski/510681/cmap_HighResolution_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50180E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21309E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.773       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14694E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7424       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5457       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .62109       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=   6479.407     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1633 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9450        2.5200       -.21127E-07    .13573E-03
   2  Prefactor     .10000E-03    67.818       -.15476E-05** at limit **
   3  Prefactor     .10000E-03    280.50       -.95823E-04** at limit **
   4  Prefactor     16.376        12.789        .13372E-05    .10480E-02
   5  Prefactor     .10000E-03    7.2096       -.89422E-07** at limit **
   6  Prefactor     .10000E-03    13.272        .29659E-07** at limit **
   7  Prefactor     5.0481        13.686       -.43938E-05   -.99505E-04
   8  Prefactor     .10001E-03    203.10        .45537E-04** at limit **
   9  Prefactor     .10000E-03    21.995       -.21502E-06** at limit **
  10  norm          14.771        15.270       -.63607E-06    .12786E-04
  11  Prefactor     9.6343        5.0086        .33287E-08   -.73190E-04
  12  Prefactor     .10000E-03    26.838        .74512E-06** at limit **
  13  Prefactor     .10000E-03    2.4021       -.58259E-07** at limit **
  14  Prefactor     .10000E-03    12.203       -.30373E-07** at limit **
  15  Prefactor     2.7364        10.270       -.15344E-05   -.18819E-03
  16  Normalizat    1.5458        .20200        .27717E-06    .13235E-03
  17  Prefactor     .62098        .15081        .32076E-06    .65991E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.94499
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.3763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.04809
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 14.7713
  Prefactor  = 9.63426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73636
  Normalizat = 1.54582
  Prefactor  = 0.620984
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.407     FROM HESSE     STATUS=OK           219 CALLS     1852 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9450        2.5216        .69247E-04   -1.5144    
   2  Prefactor     .10000E-03    68.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    283.02        .38395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.376        12.965        .98988E-04   -1.4898    
   5  Prefactor     .10000E-03    7.2665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0481        13.738        .17884E-03   -1.5259    
   8  Prefactor     .10001E-03    206.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.771        15.270        .10421E-03   -1.4939    
  11  Prefactor     9.6343        5.0177        .12345E-03   -1.5087    
  12  Prefactor     .10000E-03    27.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3524        .24217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7364        10.289        .24585E-03   -1.5377    
  16  Normalizat    1.5458        .24475        .23956E-03   -.76499    
  17  Prefactor     .62098        .18111        .27276E-03   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28589e-09
Minuit parameter uncertainties:
  1  2.52166
  2  1.22696e-05
  3  0.00108714
  4  12.9668
  5  9.82455e-06
  6  4.99776e-06
  7  13.7469
  8  0.00255702
  9  7.01686e-07
  10  15.2745
  11  5.01794
  12  7.27508e-06
  13  8.82864e-07
  14  7.25776e-06
  15  10.2958
  16  0.244941
  17  0.181281
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  6.210e-01  1.813e-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.546e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510681/likelihoodResults_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.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) = 6479.21828013
delta logL = 0.188302714402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6479.20090317
delta logL = 0.205679675192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6198       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9323       1.0000          .0000       10.000    
     3 'Normalizat'    1.5152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63239       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=   6479.201     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      246 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6084        143.42        .53090E-02    .64147E-03
   2  Index         2.9342        3.5994        .13737        .13066E-03
   3  Normalizat    1.5150        .54480E-01    .54628E-01    .54034E-06
   4  Prefactor     .63246        .40510E-01    .61125E-01    .23606E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60839
  Index      = 2.93416
  Normalizat = 1.51503
  Prefactor  = 0.63246
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.201     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6084        13.309        .19903E-03   -1.5328    
   2  Index         2.9342        1.6405        .75490E-02   -.42593    
   3  Normalizat    1.5150        .24535        .24154E-03   -.77357    
   4  Prefactor     .63246        .18330        .27041E-03   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.945e-11
Minuit parameter uncertainties:
  1  13.3201
  2  1.67827
  3  0.245542
  4  0.183476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510681': 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) = 6479.20090144
delta logL = 0.205681410536

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.608e+00  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.934e+00  1.678e+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:  6.325e-01  1.835e-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.515e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/510681/cmap_HighResolution_303091201_303350401_4FGL_J1322.2+0842_daily_bin246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-07 14:12:29.592634', job_id='510681', GAL2='0.63', fit_tolerance='1e-08', EG2='1.52', EG='1.55', time_epoch_completed='1631049149.59', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.06e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='246' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 510681: <4FGL_J1322.2+0842_daily_bin246> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin246 200.551 8.7036 303091201 303350401 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 :                                   546.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            697 sec.

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

