/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 178 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 = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin662
RA = 200.551, Dec = 8.7036
tmin = 410918401, tmax = 411177601
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='513371', job_status='RUN', time_executed='2021-09-07 14:13:43.939994', time_epoch_executed='1631049223.94' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513371/ft1_4FGL_J1322.2+0842_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513371/ft2_4FGL_J1322.2+0842_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513371/ft1_4FGL_J1322.2+0842_daily_bin662.fits outfile=/scratch/kocevski/513371/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin662.fits ra=200.551 dec=8.7036 rad=12.0 tmin=410918401.0 tmax=411177601.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 7.12
user 6.78
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513371/ft1_filtered_4FGL_J1322.2+0842_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/513371/ft2_4FGL_J1322.2+0842_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/513371/ltcube_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.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/513371/ft2_4FGL_J1322.2+0842_daily_bin662.fits
.....................!
real 17.30
user 16.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513371/ft1_filtered_4FGL_J1322.2+0842_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/513371/ft2_4FGL_J1322.2+0842_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/513371/ltcube_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.fits outfile=/scratch/kocevski/513371/expmap_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.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/513371/ltcube_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.fits
.....................!
real 194.51
user 188.30
sys 4.06

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/513371/ft1_filtered_4FGL_J1322.2+0842_daily_bin662.fits scfile=/scratch/kocevski/513371/ft2_4FGL_J1322.2+0842_daily_bin662.fits outfile=/scratch/kocevski/513371/cmap_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513371/ft1_filtered_4FGL_J1322.2+0842_daily_bin662.fits scfile=/scratch/kocevski/513371/ft2_4FGL_J1322.2+0842_daily_bin662.fits outfile=/scratch/kocevski/513371/cmap_HighResolution_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.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.59
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3338       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.0071       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.901       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1183       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=   10641.98     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1386 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0512        2.2347       -.10838E-07   -.25559E-03
   2  Prefactor     .10000E-03    56.399       -.10550E-05** at limit **
   3  Prefactor     .10001E-03    12.401        .41062E-05** at limit **
   4  Prefactor     12.445        11.083       -.10919E-06    .18898E-04
   5  Prefactor     .10001E-03    12.474       -.52226E-05** at limit **
   6  Prefactor     6.0747        13.250        .37119E-05   -.39719E-03
   7  Prefactor     14.004        10.802        .81123E-06   -.30903E-03
   8  Prefactor     4.3347        17.809        .58414E-05   -.26624E-03
   9  Prefactor     .10000E-03    18.329        .10493E-05** at limit **
  10  norm          8.9954        16.452        .22002E-06    .31293E-05
  11  Prefactor     .28316        1.4746        .12196E-06   -.31414E-03
  12  Prefactor     6.1836        7.0584       -.35827E-06   -.19986E-03
  13  Prefactor     4.0463        2.5454        .17968E-07    .23853E-04
  14  Prefactor     .10000E-03    2.4587       -.17976E-07** at limit **
  15  Prefactor     13.902        8.0134       -.43424E-07   -.10810E-03
  16  Normalizat    1.1455        .16337       -.72562E-06    .46406E-04
  17  Prefactor     1.1181        .12983       -.36089E-06    .13752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.05122
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 12.4455
  Prefactor  = 0.000100009
  Prefactor  = 6.07473
  Prefactor  = 14.0045
  Prefactor  = 4.33469
  Prefactor  = 0.0001
  norm       = 8.99538
  Prefactor  = 0.283159
  Prefactor  = 6.18358
  Prefactor  = 4.04626
  Prefactor  = 0.0001
  Prefactor  = 13.9017
  Normalizat = 1.14552
  Prefactor  = 1.1181
 **********
 **   18 **HESSE 
 **********

 FCN=   10641.98     FROM HESSE     STATUS=OK           229 CALLS     1615 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0512        2.2366        .78820E-04   -1.5140    
   2  Prefactor     .10000E-03    56.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.445        11.116        .11354E-03   -1.5002    
   5  Prefactor     .10001E-03    13.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0747        13.752        .81443E-03   -1.5215    
   7  Prefactor     14.004        10.889        .53515E-03   -1.4959    
   8  Prefactor     4.3347        19.341        .96748E-03   -1.5292    
   9  Prefactor     .10000E-03    18.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.9954        16.457        .13355E-03   -1.5108    
  11  Prefactor     .28316        3.4130        .23874E-02   -1.5602    
  12  Prefactor     6.1836        7.0751        .16144E-03   -1.5211    
  13  Prefactor     4.0463        2.5465        .12669E-03   -1.5306    
  14  Prefactor     .10000E-03    2.4647        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.902        8.0178        .10743E-03   -1.4962    
  16  Normalizat    1.1455        .19302        .28105E-03   -.88303    
  17  Prefactor     1.1181        .15382        .23013E-03   -.88890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71635e-08
Minuit parameter uncertainties:
  1  2.23666
  2  0.000300756
  3  0.000602175
  4  11.1183
  5  0.000691995
  6  13.7592
  7  10.8901
  8  18.322
  9  0.000180354
  10  16.4655
  11  1.96594
  12  7.07609
  13  2.54655
  14  1.09268e-06
  15  8.01842
  16  0.193135
  17  0.153879
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.400e+01  1.089e+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.118e+00  1.539e-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.146e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/513371/likelihoodResults_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.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) = 10640.9541959
delta logL = 1.02322609682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10640.9253816
delta logL = 1.05204038721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7578       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1695       1.0000          .0000       10.000    
     3 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1534       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=   10640.93     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7578        33.229        .46115E-02    .82605E-03
   2  Index         3.1696        1.9174        .12217        .24942E-03
   3  Normalizat    1.0738        .52293E-01    .65341E-01    .22982E-04
   4  Prefactor     1.1534        .38922E-01    .51356E-01    .72704E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75781
  Index      = 3.16956
  Normalizat = 1.07381
  Prefactor  = 1.15337
 **********
 **   18 **HESSE 
 **********

 FCN=   10640.93     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7578        17.417        .11363E-03   -1.5272    
   2  Index         3.1696        1.7704        .41709E-02   -.37480    
   3  Normalizat    1.0738        .21313        .28905E-03   -.90597    
   4  Prefactor     1.1534        .16637        .22705E-03   -.87779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42704e-07
Minuit parameter uncertainties:
  1  17.4358
  2  1.81617
  3  0.213305
  4  0.166448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513371': 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) = 10640.9253815
delta logL = 1.05204045326

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.758e+00  1.744e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.170e+00  1.816e+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.153e+00  1.664e-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.074e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.17 +/- 1.82
Photon Flux (Free Index): 9.83e-08 +/- 6.45e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.19e-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/513371/cmap_HighResolution_410918401_411177601_4FGL_J1322.2+0842_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.82e-05', photon_flux_error='3.48e-08', dlogl='1.05e+00', energy_flux='1.80e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-07 14:25:19.368829', photon_index_error2='1.82', photon_index2='3.17', ts='2.22', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.19e-05', EG='1.15', time_epoch_completed='1631049919.37', return_code='0', job_id='513371', GAL2='1.15', EG2='1.07', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='6.45e-08', ts2='4.47', photon_index='2.26' WHERE bin_id='662' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 513371: <4FGL_J1322.2+0842_daily_bin662> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin662> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:20 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:35 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:10:35 2021
Terminated at Tue Sep  7 14:25:20 2021
Results reported at Tue Sep  7 14:25:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin662 200.551 8.7036 410918401 411177601 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 :                                   689.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            900 sec.

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

