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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin324
RA = 200.551, Dec = 8.7036
tmin = 323308801, tmax = 323568001
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='510780', job_status='RUN', time_executed='2021-09-07 14:05:40.403984', time_epoch_executed='1631048740.4' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510780/ft1_4FGL_J1322.2+0842_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510780/ft2_4FGL_J1322.2+0842_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510780/ft1_4FGL_J1322.2+0842_daily_bin324.fits outfile=/scratch/kocevski/510780/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin324.fits ra=200.551 dec=8.7036 rad=12.0 tmin=323308801.0 tmax=323568001.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.34
user 3.12
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510780/ft2_4FGL_J1322.2+0842_daily_bin324.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/510780/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/510780/ft1_filtered_4FGL_J1322.2+0842_daily_bin324.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510780/ft1_filtered_4FGL_J1322.2+0842_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/510780/ft2_4FGL_J1322.2+0842_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/510780/ltcube_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.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/510780/ft2_4FGL_J1322.2+0842_daily_bin324.fits
.....................!
real 16.01
user 15.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510780/ft1_filtered_4FGL_J1322.2+0842_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/510780/ft2_4FGL_J1322.2+0842_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/510780/ltcube_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.fits outfile=/scratch/kocevski/510780/expmap_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.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/510780/ltcube_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.fits
.....................!
real 194.41
user 189.26
sys 4.66

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/510780/ft1_filtered_4FGL_J1322.2+0842_daily_bin324.fits scfile=/scratch/kocevski/510780/ft2_4FGL_J1322.2+0842_daily_bin324.fits outfile=/scratch/kocevski/510780/cmap_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510780/ft1_filtered_4FGL_J1322.2+0842_daily_bin324.fits scfile=/scratch/kocevski/510780/ft2_4FGL_J1322.2+0842_daily_bin324.fits outfile=/scratch/kocevski/510780/cmap_HighResolution_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15942E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.652       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2393       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5552       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .54026       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=   5271.554     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1602 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3075        2.5455       -.44161E-07   -.48652E-03
   2  Prefactor     .10000E-03    66.755        .87228E-06** at limit **
   3  Prefactor     .10000E-03    23.101       -.49025E-06** at limit **
   4  Prefactor     8.7304        12.241        .21199E-05    .58217E-03
   5  Prefactor     .10001E-03    51.776        .26487E-04** at limit **
   6  Prefactor     .10000E-03    12.522        .12831E-07** at limit **
   7  Prefactor     6.2176        7.5310        .20534E-06    .19813E-03
   8  Prefactor     16.382        28.109        .11404E-05   -.49456E-04
   9  Prefactor     .10000E-03    33.804        .43625E-06** at limit **
  10  norm          18.643        25.572        .32819E-06   -.42196E-04
  11  Prefactor     7.1817        4.8854        .14719E-06    .56979E-03
  12  Prefactor     12.964        24.939        .16234E-06    .29243E-04
  13  Prefactor     4.2957        4.4775        .48858E-06    .87105E-03
  14  Prefactor     .10000E-03    5.5231        .90593E-09** at limit **
  15  Prefactor     4.2380        10.794        .11894E-05    .35813E-03
  16  Normalizat    1.5553        .20682       -.17714E-06    .20772E-04
  17  Prefactor     .54029        .15829        .39519E-06    .12719E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.30748
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.73035
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 6.21756
  Prefactor  = 16.382
  Prefactor  = 0.000100001
  norm       = 18.6427
  Prefactor  = 7.18169
  Prefactor  = 12.9635
  Prefactor  = 4.29565
  Prefactor  = 0.0001
  Prefactor  = 4.23797
  Normalizat = 1.55528
  Prefactor  = 0.540289
 **********
 **   18 **HESSE 
 **********

 FCN=   5271.554     FROM HESSE     STATUS=OK           225 CALLS     1827 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3075        2.5466        .58745E-04   -1.5098    
   2  Prefactor     .10000E-03    67.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7304        12.227        .13569E-03   -1.5117    
   5  Prefactor     .10001E-03    51.163        .43304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2176        7.5330        .16099E-03   -1.5209    
   8  Prefactor     16.382        28.134        .98904E-04   -1.4898    
   9  Prefactor     .10000E-03    33.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.643        25.572        .92739E-04   -1.4844    
  11  Prefactor     7.1817        4.8895        .12615E-03   -1.5172    
  12  Prefactor     12.964        24.927        .11124E-03   -1.4988    
  13  Prefactor     4.2957        4.4964        .15227E-03   -1.5293    
  14  Prefactor     .10000E-03    5.5446        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2380        10.833        .19570E-03   -1.5296    
  16  Normalizat    1.5553        .24008        .22525E-03   -.76237    
  17  Prefactor     .54029        .18347        .28065E-03   -1.1016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81859e-09
Minuit parameter uncertainties:
  1  2.54661
  2  0.001096
  3  0.00015665
  4  12.2306
  5  0.00120776
  6  2.01639e-06
  7  7.53415
  8  28.1572
  9  0.000355707
  10  25.5865
  11  4.88976
  12  24.9466
  13  4.49671
  14  5.49172e-07
  15  10.8381
  16  0.240254
  17  0.183676
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  5.403e-01  1.837e-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.555e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 8.00e-06 +/- 9.69e-06

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

Saving results to:
/scratch/kocevski/510780/likelihoodResults_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.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) = 5271.55001278
delta logL = 0.00419266876361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5271.54684817
delta logL = 0.00735727612027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0113       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1439       1.0000          .0000       10.000    
     3 'Normalizat'    1.5579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53886       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=   5271.547     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0147        11.006        .15151E-03   -.17131E-02
   2  Index         2.1432        .99392        .10225E-01   -.38599E-03
   3  Normalizat    1.5579        .23507        .22509E-03    .80556E-03
   4  Prefactor     .53885        .18241        .28099E-03    .83751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.01473
  Index      = 2.14318
  Normalizat = 1.55794
  Prefactor  = 0.538846
 **********
 **   18 **HESSE 
 **********

 FCN=   5271.547     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0147        10.465        .30301E-04   -1.5178    
   2  Index         2.1432        .94594        .40901E-03   -.60817    
   3  Normalizat    1.5579        .23505        .45018E-04   -.76163    
   4  Prefactor     .53885        .18245        .56199E-04   -1.1023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34871e-09
Minuit parameter uncertainties:
  1  10.4678
  2  0.954523
  3  0.235212
  4  0.182646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510780': 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) = 5271.54684793
delta logL = 0.00735751408774

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.015e+00  1.047e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.143e+00  9.545e-01  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:  5.388e-01  1.826e-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.558e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.14 +/- 0.95
Photon Flux (Free Index): 1.80e-08 +/- 2.65e-08
Energy Flux (Free Index): 9.05e-06 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/510780/cmap_HighResolution_323308801_323568001_4FGL_J1322.2+0842_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='9.05e-06', photon_flux_error='2.41e-08', dlogl='7.36e-03', energy_flux='8.00e-06', photon_flux2='1.80e-08', job_status='DONE', time_completed='2021-09-07 14:14:16.195534', photon_index_error2='0.95', photon_index2='2.14', ts='1.36', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='8.87e-08', energy_flux_error2='1.48e-05', EG='1.56', time_epoch_completed='1631049256.2', return_code='0', job_id='510780', GAL2='0.54', EG2='1.56', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='2.65e-08', ts2='1.37', photon_index='2.26' WHERE bin_id='324' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:14:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 510780: <4FGL_J1322.2+0842_daily_bin324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin324 200.551 8.7036 323308801 323568001 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 :                                   513.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            795 sec.

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

