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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin963
RA = 200.551, Dec = 8.7036
tmin = 488937601, tmax = 489196801
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='514915', job_status='RUN', time_executed='2021-09-07 14:19:45.688213', time_epoch_executed='1631049585.69' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514915/ft1_4FGL_J1322.2+0842_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514915/ft2_4FGL_J1322.2+0842_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514915/ft1_4FGL_J1322.2+0842_daily_bin963.fits outfile=/scratch/kocevski/514915/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin963.fits ra=200.551 dec=8.7036 rad=12.0 tmin=488937601.0 tmax=489196801.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.00
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514915/ft1_filtered_4FGL_J1322.2+0842_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/514915/ft2_4FGL_J1322.2+0842_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/514915/ltcube_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.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/514915/ft2_4FGL_J1322.2+0842_daily_bin963.fits
.....................!
real 15.73
user 15.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514915/ft1_filtered_4FGL_J1322.2+0842_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/514915/ft2_4FGL_J1322.2+0842_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/514915/ltcube_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.fits outfile=/scratch/kocevski/514915/expmap_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.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/514915/ltcube_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.fits
.....................!
real 158.05
user 152.98
sys 4.53

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/514915/ft1_filtered_4FGL_J1322.2+0842_daily_bin963.fits scfile=/scratch/kocevski/514915/ft2_4FGL_J1322.2+0842_daily_bin963.fits outfile=/scratch/kocevski/514915/cmap_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.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.48
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514915/ft1_filtered_4FGL_J1322.2+0842_daily_bin963.fits scfile=/scratch/kocevski/514915/ft2_4FGL_J1322.2+0842_daily_bin963.fits outfile=/scratch/kocevski/514915/cmap_HighResolution_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.170       1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7176       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1319       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90663       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=   5637.106     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1582 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2455        2.4444        .18021E-07   -.70851E-04
   2  Prefactor     36.571        45.244       -.43110E-06   -.10363E-04
   3  Prefactor     .10000E-03    23.480       -.44553E-05** at limit **
   4  Prefactor     10.170        13.360       -.14978E-06    .71971E-05
   5  Prefactor     56.499        19.817        .13835E-06    .37678E-04
   6  Prefactor     40.093        26.626       -.83806E-06   -.66850E-04
   7  Prefactor     4.7256        6.2053        .88314E-06   -.78813E-03
   8  Prefactor     .10000E-03    93.656       -.38233E-06** at limit **
   9  Prefactor     .10000E-03    27.677        .12196E-05** at limit **
  10  norm          13.664        27.776        .99735E-07   -.22957E-05
  11  Prefactor     .10000E-03    1.3997        .36171E-08** at limit **
  12  Prefactor     .10000E-03    23.030        .33649E-05** at limit **
  13  Prefactor     1.7177        2.4094       -.23315E-08   -.29198E-04
  14  Prefactor     15.129        14.752        .44000E-07   -.37228E-05
  15  Prefactor     .10000E-03    10.035       -.11053E-07** at limit **
  16  Normalizat    1.1321        .21504        .59962E-07   -.16086E-04
  17  Prefactor     .90646        .16586       -.64407E-07   -.96164E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.24549
  Prefactor  = 36.571
  Prefactor  = 0.000100001
  Prefactor  = 10.1703
  Prefactor  = 56.4985
  Prefactor  = 40.0928
  Prefactor  = 4.72557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7177
  Prefactor  = 15.1289
  Prefactor  = 0.0001
  Normalizat = 1.13207
  Prefactor  = 0.90646
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.106     FROM HESSE     STATUS=OK           227 CALLS     1809 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2455        2.4466        .84827E-04   -1.5296    
   2  Prefactor     36.571        45.256        .66271E-04   -1.4498    
   3  Prefactor     .10000E-03    24.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.170        13.363        .12565E-03   -1.5070    
   5  Prefactor     56.499        19.878        .53367E-04   -1.4203    
   6  Prefactor     40.093        26.825        .63302E-04   -1.4441    
   7  Prefactor     4.7256        9.8397        .92540E-03   -1.5273    
   8  Prefactor     .10000E-03    94.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.664        27.804        .10836E-03   -1.4969    
  11  Prefactor     .10000E-03    1.4075        .86723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7177        2.3906        .13441E-03   -1.5446    
  14  Prefactor     15.129        14.761        .10297E-03   -1.4930    
  15  Prefactor     .10000E-03    10.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1321        .26042        .26857E-03   -.88729    
  17  Prefactor     .90646        .19983        .23512E-03   -.95916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32494e-09
Minuit parameter uncertainties:
  1  2.44665
  2  45.2987
  3  0.000279481
  4  13.3674
  5  19.8799
  6  26.8335
  7  9.84311
  8  7.13357e-05
  9  8.09689e-05
  10  27.8304
  11  2.07206e-07
  12  0.00020323
  13  2.3907
  14  14.7648
  15  2.64651e-06
  16  0.26072
  17  0.199988
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  4.726e+00  9.843e+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:  9.065e-01  2.000e-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.132e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514915/likelihoodResults_488937601_489196801_4FGL_J1322.2+0842_daily_bin963.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) = 5637.0793531
delta logL = 0.026311739156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5637.0709445
delta logL = 0.0347203396987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6890       1.0000          .0000       10.000    
     3 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91264       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=   5637.071     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4960        11.153        .21622E-03   -.41280E-03
   2  Index         2.6889        1.9126        .79348E-02   -.13088E-03
   3  Normalizat    1.1181        .25878        .27009E-03   -.31252E-03
   4  Prefactor     .91265        .20058        .23441E-03   -.34122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.49598
  Index      = 2.68894
  Normalizat = 1.1181
  Prefactor  = 0.912647
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.071     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4960        9.3849        .86488E-05   -1.5334    
   2  Index         2.6889        1.6198        .31739E-03   -.48049    
   3  Normalizat    1.1181        .25681        .54018E-04   -.89173    
   4  Prefactor     .91265        .19970        .46882E-04   -.95701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40893e-09
Minuit parameter uncertainties:
  1  9.38889
  2  1.6582
  3  0.257094
  4  0.19986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514915': 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) = 5637.07094449
delta logL = 0.0347203555311

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.496e+00  9.389e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.689e+00  1.658e+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:  9.126e-01  1.999e-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.118e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
Ra Dec: 200.551 8.704

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-07 14:26:59.982153', job_id='514915', GAL2='0.91', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631050019.98', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.47e-02', ts2='0.39', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='963' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 514915: <4FGL_J1322.2+0842_daily_bin963> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin963> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:36 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:17:12 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:17:12 2021
Terminated at Tue Sep  7 14:27:00 2021
Results reported at Tue Sep  7 14:27:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin963 200.551 8.7036 488937601 489196801 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 :                                   431.55 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            684 sec.

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

