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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin387
RA = 200.551, Dec = 8.7036
tmin = 339638401, tmax = 339897601
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='511906', job_status='RUN', time_executed='2021-09-07 14:08:06.525764', time_epoch_executed='1631048886.53' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511906/ft1_4FGL_J1322.2+0842_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511906/ft2_4FGL_J1322.2+0842_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511906/ft1_4FGL_J1322.2+0842_daily_bin387.fits outfile=/scratch/kocevski/511906/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin387.fits ra=200.551 dec=8.7036 rad=12.0 tmin=339638401.0 tmax=339897601.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.38
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511906/ft2_4FGL_J1322.2+0842_daily_bin387.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/511906/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin387.fits evtable="EVENTS" outfile="/scratch/kocevski/511906/ft1_filtered_4FGL_J1322.2+0842_daily_bin387.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/511906/ft1_filtered_4FGL_J1322.2+0842_daily_bin387.fits" evtable="EVENTS" scfile=/scratch/kocevski/511906/ft2_4FGL_J1322.2+0842_daily_bin387.fits sctable="SC_DATA" outfile=/scratch/kocevski/511906/ltcube_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.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/511906/ft2_4FGL_J1322.2+0842_daily_bin387.fits
.....................!
real 15.16
user 14.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511906/ft1_filtered_4FGL_J1322.2+0842_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/511906/ft2_4FGL_J1322.2+0842_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/511906/ltcube_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.fits outfile=/scratch/kocevski/511906/expmap_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.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/511906/ltcube_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.fits
.....................!
real 191.05
user 186.17
sys 3.93

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/511906/ft1_filtered_4FGL_J1322.2+0842_daily_bin387.fits scfile=/scratch/kocevski/511906/ft2_4FGL_J1322.2+0842_daily_bin387.fits outfile=/scratch/kocevski/511906/cmap_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511906/ft1_filtered_4FGL_J1322.2+0842_daily_bin387.fits scfile=/scratch/kocevski/511906/ft2_4FGL_J1322.2+0842_daily_bin387.fits outfile=/scratch/kocevski/511906/cmap_HighResolution_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.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.61
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.130       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.250       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.545       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0124       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .78277       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.4552       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=   7495.430     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1568 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.129        2.6961       -.59315E-07    .21587E-04
   2  Prefactor     .10000E-03    23.529       -.44407E-05** at limit **
   3  Prefactor     .10000E-03    22.560        .22143E-05** at limit **
   4  Prefactor     25.430        14.669        .15717E-05    .21203E-04
   5  Prefactor     .10000E-03    12.612       -.32188E-05** at limit **
   6  Prefactor     12.247        22.143       -.42297E-05   -.15931E-04
   7  Prefactor     5.7884        12.824       -.96429E-06   -.78512E-04
   8  Prefactor     .10000E-03    14.246        .93462E-06** at limit **
   9  Prefactor     20.540        32.907       -.77535E-05    .43233E-05
  10  norm          .10000E-03    10.559        .58022E-06** at limit **
  11  Prefactor     6.0121        4.0444       -.49779E-08   -.10022E-03
  12  Prefactor     .10000E-03    6.0336        .93776E-06** at limit **
  13  Prefactor     .10000E-03    3.8574       -.85019E-06** at limit **
  14  Prefactor     9.6266        15.820       -.33765E-05   -.19851E-04
  15  Prefactor     .10000E-03    5.0608        .63537E-06** at limit **
  16  Normalizat    .78264        .21005       -.34647E-06    .57012E-04
  17  Prefactor     1.4554        .16407        .10679E-05    .38622E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4301
  Prefactor  = 0.0001
  Prefactor  = 12.2474
  Prefactor  = 5.78835
  Prefactor  = 0.0001
  Prefactor  = 20.5397
  norm       = 0.0001
  Prefactor  = 6.01213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.62659
  Prefactor  = 0.0001
  Normalizat = 0.782638
  Prefactor  = 1.45537
 **********
 **   18 **HESSE 
 **********

 FCN=   7495.430     FROM HESSE     STATUS=OK           223 CALLS     1791 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.129        2.6961        .67386E-04   -1.5041    
   2  Prefactor     .10000E-03    23.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.430        14.675        .79446E-04   -1.4699    
   5  Prefactor     .10000E-03    12.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.247        22.285        .11445E-03   -1.5008    
   7  Prefactor     5.7884        12.865        .16693E-03   -1.5227    
   8  Prefactor     .10000E-03    14.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.540        32.839        .88366E-04   -1.4801    
  10  norm          .10000E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0121        4.0439        .13691E-03   -1.5218    
  12  Prefactor     .10000E-03    6.0361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8925        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.6266        15.872        .12912E-03   -1.5087    
  15  Prefactor     .10000E-03    5.0962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .78264        .24396        .35576E-03   -1.0072    
  17  Prefactor     1.4554        .19163        .22114E-03   -.78798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62032e-11
Minuit parameter uncertainties:
  1  2.69612
  2  2.86117e-06
  3  6.22524e-05
  4  14.6774
  5  3.54704e-05
  6  22.3
  7  12.8716
  8  1.55534e-07
  9  32.8683
  10  1.2449e-06
  11  4.04405
  12  8.25288e-07
  13  1.38949e-05
  14  15.8788
  15  2.91687e-06
  16  0.244301
  17  0.191725
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.788e+00  1.287e+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:  1.455e+00  1.917e-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:  7.826e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/511906/likelihoodResults_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.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) = 7493.15763878
delta logL = 2.27269597129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7493.10321853
delta logL = 2.32711622407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73808E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1532       1.0000          .0000       10.000    
     3 'Normalizat'    .61226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5435       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=   7493.103     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      291 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73502E-01    .48811        .26137E-02   -.29846E-03
   2  Index         5.1549        1.8511        .80380E-01    .12737E-03
   3  Normalizat    .61246        .59440E-01    .89914E-01    .39191E-05
   4  Prefactor     1.5432        .48108E-01    .48773E-01    .16704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0735024
  Index      = 5.15492
  Normalizat = 0.612463
  Prefactor  = 1.54321
 **********
 **   18 **HESSE 
 **********

 FCN=   7493.103     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      324 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73502E-01    .93862        .11761E-04   -1.5654    
   2  Index         5.1549        2.8346        .31909E-02    .30990E-01
   3  Normalizat    .61246        .21783        .39834E-03   -1.0746    
   4  Prefactor     1.5432        .17418        .21559E-03   -.76337    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.61346e-10
Minuit parameter uncertainties:
  1  0.524976
  2  3.01397
  3  0.218136
  4  0.174245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511906': 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) = 7493.10321657
delta logL = 2.32711818719

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.350e-02  5.250e-01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  5.155e+00  3.014e+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:  1.543e+00  1.742e-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:  6.125e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 200.551 8.704
Photon Index (Free Index): 5.15 +/- 3.01
Photon Flux (Free Index): 1.54e-07 +/- 8.33e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/511906/cmap_HighResolution_339638401_339897601_4FGL_J1322.2+0842_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', comment='SUCCESS', energy_flux2='2.02e-05', dlogl='2.33e+00', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-07 14:17:43.614287', photon_index_error2='3.01', photon_index2='5.15', ts='0.23', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.07e-05', EG='0.78', time_epoch_completed='1631049463.61', return_code='0', job_id='511906', GAL2='1.54', EG2='0.61', return_code2='102', photon_flux_error2='8.33e-08', ts2='5.42', photon_index='2.26' WHERE bin_id='387' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 511906: <4FGL_J1322.2+0842_daily_bin387> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin387> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:16 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:20 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:05:20 2021
Terminated at Tue Sep  7 14:17:44 2021
Results reported at Tue Sep  7 14:17:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin387 200.551 8.7036 339638401 339897601 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            748 sec.

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

