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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin189
RA = 200.551, Dec = 8.7036
tmin = 288316801, tmax = 288576001
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='510599', job_status='RUN', time_executed='2021-09-07 14:04:52.548408', time_epoch_executed='1631048692.55' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510599/ft1_4FGL_J1322.2+0842_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510599/ft2_4FGL_J1322.2+0842_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510599/ft1_4FGL_J1322.2+0842_daily_bin189.fits outfile=/scratch/kocevski/510599/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin189.fits ra=200.551 dec=8.7036 rad=12.0 tmin=288316801.0 tmax=288576001.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.63
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510599/ft1_filtered_4FGL_J1322.2+0842_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/510599/ft2_4FGL_J1322.2+0842_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/510599/ltcube_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.fits outfile=/scratch/kocevski/510599/expmap_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.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/510599/ltcube_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.fits
.....................!
real 193.05
user 187.01
sys 5.26

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/510599/ft1_filtered_4FGL_J1322.2+0842_daily_bin189.fits scfile=/scratch/kocevski/510599/ft2_4FGL_J1322.2+0842_daily_bin189.fits outfile=/scratch/kocevski/510599/cmap_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.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.60
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510599/ft1_filtered_4FGL_J1322.2+0842_daily_bin189.fits scfile=/scratch/kocevski/510599/ft2_4FGL_J1322.2+0842_daily_bin189.fits outfile=/scratch/kocevski/510599/cmap_HighResolution_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7476       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9035       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22878E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9542       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0997       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=   6841.403     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1648 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7478        1.1263        .10383E-07   -.25554E-04
   2  Prefactor     .10000E-03    20.299       -.68009E-06** at limit **
   3  Prefactor     33.181        62.776        .45884E-05   -.54633E-05
   4  Prefactor     5.3039        13.812        .10744E-05   -.55445E-05
   5  Prefactor     .10000E-03    6.6558       -.73225E-06** at limit **
   6  Prefactor     8.9072        16.423       -.13354E-06   -.15360E-05
   7  Prefactor     4.5011        5.1351       -.11182E-07   -.74298E-05
   8  Prefactor     .10000E-03    11.000       -.24373E-06** at limit **
   9  Prefactor     .10000E-03    19.980       -.48504E-06** at limit **
  10  norm          .10000E-03    17.448        .49479E-06** at limit **
  11  Prefactor     .10000E-03    2.8319        .27926E-06** at limit **
  12  Prefactor     .10000E-03    17.495        .36991E-06** at limit **
  13  Prefactor     .43809        6.8859       -.29782E-06    .32236E-04
  14  Prefactor     .64782        8.0884       -.44509E-06    .15474E-03
  15  Prefactor     2.9548        11.004        .31365E-06   -.46616E-05
  16  Normalizat    1.0048        .19620        .80987E-06   -.43581E-04
  17  Prefactor     1.0996        .15442       -.86850E-06    .41841E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7478
  Prefactor  = 0.0001
  Prefactor  = 33.1806
  Prefactor  = 5.30386
  Prefactor  = 0.0001
  Prefactor  = 8.90719
  Prefactor  = 4.50113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.438094
  Prefactor  = 0.647817
  Prefactor  = 2.95476
  Normalizat = 1.0048
  Prefactor  = 1.0996
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.403     FROM HESSE     STATUS=OK           229 CALLS     1877 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7478        1.1303        .68505E-04   -1.5444    
   2  Prefactor     .10000E-03    20.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.181        62.960        .69401E-04   -1.4555    
   4  Prefactor     5.3039        13.865        .17486E-03   -1.5247    
   5  Prefactor     .10000E-03    6.7209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9072        16.426        .13433E-03   -1.5111    
   7  Prefactor     4.5011        5.1351        .18977E-03   -1.5284    
   8  Prefactor     .10000E-03    11.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8206        .26476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .43809        6.8829        .20369E-02   -1.5576    
  14  Prefactor     .64782        45.840        .43689E-02   -1.5547    
  15  Prefactor     2.9548        11.008        .11814E-02   -1.5364    
  16  Normalizat    1.0048        .22555        .27605E-03   -.92870    
  17  Prefactor     1.0996        .17911        .21384E-03   -.89479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70741e-10
Minuit parameter uncertainties:
  1  1.13035
  2  1.42317e-06
  3  63.0864
  4  13.8734
  5  1.2433e-05
  6  16.4343
  7  5.13559
  8  2.83259e-07
  9  1.88777e-06
  10  3.71886e-06
  11  6.09918e-05
  12  1.54583e-06
  13  3.47303
  14  10.9066
  15  11.0159
  16  0.225763
  17  0.179204
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.501e+00  5.136e+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:  1.100e+00  1.792e-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.005e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.64e-08
Energy Flux (Fixed Index): 5.79e-06 +/- 6.61e-06

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

Saving results to:
/scratch/kocevski/510599/likelihoodResults_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.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) = 6840.33823577
delta logL = 1.06451136137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6840.33315287
delta logL = 1.06959425742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9888       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1958       1.0000          .0000       10.000    
     3 'Normalizat'    1.0165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   6840.333     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9888        5.2262        .45012E-02   -.18124E-02
   2  Index         1.1953        .46958        .29349       -.50221E-04
   3  Normalizat    1.0165        .18676        .43914E-01    .13648E-04
   4  Prefactor     1.0946        .15129        .37798E-01    .31486E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98878
  Index      = 1.19535
  Normalizat = 1.01647
  Prefactor  = 1.09456
 **********
 **   18 **HESSE 
 **********

 FCN=   6840.333     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9888        6.1712        .18005E-03   -1.5261    
   2  Index         1.1953        .61328        .11701E-01   -.86475    
   3  Normalizat    1.0165        .21772        .27452E-03   -.92481    
   4  Prefactor     1.0946        .17649        .21419E-03   -.89641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36637e-09
Minuit parameter uncertainties:
  1  6.172
  2  0.616996
  3  0.217909
  4  0.176588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510599': 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) = 6840.33315252
delta logL = 1.06959461207

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.989e+00  6.172e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.195e+00  6.170e-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:  1.095e+00  1.766e-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.016e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 200.551 8.704
Photon Index (Free Index): 1.20 +/- 0.62
Photon Flux (Free Index): 4.50e-09 +/- 5.50e-09
Energy Flux (Free Index): 3.82e-05 +/- 6.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/510599/cmap_HighResolution_288316801_288576001_4FGL_J1322.2+0842_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='3.82e-05', photon_flux_error='1.64e-08', dlogl='1.07e+00', energy_flux='5.79e-06', photon_flux2='4.50e-09', job_status='DONE', time_completed='2021-09-07 14:14:14.347788', photon_index_error2='0.62', photon_index2='1.20', ts='2.11', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='6.77e-08', energy_flux_error2='6.12e-05', EG='1.00', time_epoch_completed='1631049254.35', return_code='0', job_id='510599', GAL2='1.09', EG2='1.02', return_code2='0', energy_flux_error='6.61e-06', photon_flux_error2='5.50e-09', ts2='4.25', photon_index='2.26' WHERE bin_id='189' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 510599: <4FGL_J1322.2+0842_daily_bin189> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin189 200.551 8.7036 288316801 288576001 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            807 sec.

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

