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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin293
RA = 200.551, Dec = 8.7036
tmin = 315273601, tmax = 315532801
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='510748', job_status='RUN', time_executed='2021-09-07 14:01:51.757457', time_epoch_executed='1631048511.76' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510748/ft1_4FGL_J1322.2+0842_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510748/ft2_4FGL_J1322.2+0842_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510748/ft1_4FGL_J1322.2+0842_daily_bin293.fits outfile=/scratch/kocevski/510748/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin293.fits ra=200.551 dec=8.7036 rad=12.0 tmin=315273601.0 tmax=315532801.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.75
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510748/ft1_filtered_4FGL_J1322.2+0842_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/510748/ft2_4FGL_J1322.2+0842_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/510748/ltcube_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.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/510748/ft2_4FGL_J1322.2+0842_daily_bin293.fits
.....................!
real 15.25
user 14.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510748/ft1_filtered_4FGL_J1322.2+0842_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/510748/ft2_4FGL_J1322.2+0842_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/510748/ltcube_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.fits outfile=/scratch/kocevski/510748/expmap_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.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/510748/ltcube_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.fits
.....................!
real 192.51
user 186.21
sys 5.65

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/510748/ft1_filtered_4FGL_J1322.2+0842_daily_bin293.fits scfile=/scratch/kocevski/510748/ft2_4FGL_J1322.2+0842_daily_bin293.fits outfile=/scratch/kocevski/510748/cmap_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.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.38
sys 0.16

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.391       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0893       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5830       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .81086       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=   7489.567     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1586 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .37913        .51648E-07** at limit **
   2  Prefactor     11.381        22.633       -.52343E-05   -.46091E-04
   3  Prefactor     .10000E-03    56.874        .82099E-06** at limit **
   4  Prefactor     1.0779        6.9230       -.20963E-06    .24812E-05
   5  Prefactor     .10000E-03    7.9100        .40141E-07** at limit **
   6  Prefactor     .99029        9.2611       -.23568E-06   -.21962E-04
   7  Prefactor     .10000E-03    21.790        .25192E-07** at limit **
   8  Prefactor     27.144        23.807        .31014E-06    .81537E-05
   9  Prefactor     .10000E-03    17.262        .36269E-06** at limit **
  10  norm          10.684        13.322       -.13291E-07    .15126E-04
  11  Prefactor     .10000E-03    2.6488       -.60889E-07** at limit **
  12  Prefactor     .10000E-03    11.053        .39166E-07** at limit **
  13  Prefactor     .10000E-03    2.8498       -.77240E-07** at limit **
  14  Prefactor     3.8276        5.2657        .51033E-06   -.53360E-03
  15  Prefactor     .10000E-03    5.8031        .35859E-07** at limit **
  16  Normalizat    1.5831        .19356        .18566E-06    .46759E-04
  17  Prefactor     .81081        .14834       -.26214E-07    .50250E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.3812
  Prefactor  = 0.0001
  Prefactor  = 1.07786
  Prefactor  = 0.0001
  Prefactor  = 0.990288
  Prefactor  = 0.0001
  Prefactor  = 27.1438
  Prefactor  = 0.0001
  norm       = 10.6835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82761
  Prefactor  = 0.0001
  Normalizat = 1.58306
  Prefactor  = 0.810815
 **********
 **   18 **HESSE 
 **********

 FCN=   7489.567     FROM HESSE     STATUS=OK           223 CALLS     1809 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .39032        .10409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.381        22.776        .11870E-03   -1.5033    
   3  Prefactor     .10000E-03    57.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0779        37.035        .42786E-02   -1.5500    
   5  Prefactor     .10000E-03    7.9398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99029        35.659        .50672E-02   -1.5509    
   7  Prefactor     .10000E-03    22.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.144        23.810        .76895E-04   -1.4665    
   9  Prefactor     .10000E-03    17.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.684        13.324        .61290E-03   -1.5054    
  11  Prefactor     .10000E-03    2.7066        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9215        .28525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8276        11.594        .10315E-02   -1.5317    
  15  Prefactor     .10000E-03    5.8319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5831        .23234        .24719E-03   -.75470    
  17  Prefactor     .81081        .17847        .25556E-03   -.99331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22633e-08
Minuit parameter uncertainties:
  1  4.00609e-07
  2  22.7932
  3  3.37925e-05
  4  12.6442
  5  3.73645e-07
  6  11.892
  7  1.29528e-05
  8  23.8179
  9  4.18926e-06
  10  13.3277
  11  1.87893e-06
  12  1.58458e-06
  13  1.32169e-06
  14  11.6009
  15  8.63528e-07
  16  0.232497
  17  0.178594
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.295e-05  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:  8.108e-01  1.786e-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.583e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510748/likelihoodResults_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.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): 102
logL (Free Index) = 7489.56725369
delta logL = -0.000210426413105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7489.56704356
delta logL = -2.97063706967e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19455E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3777       1.0000          .0000       10.000    
     3 'Normalizat'    1.5834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81056       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=   7488.849     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      287 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20061        2.5441        .74573E-02    .58644E-02
   2  Index         4.4304        2.2961        .96877E-01    .44096E-03
   3  Normalizat    1.4910        .40815E-01    .57272E-01    .28656E-04
   4  Prefactor     .85370        .31650E-01    .43854E-01    .23436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.200607
  Index      = 4.43036
  Normalizat = 1.49101
  Prefactor  = 0.853702
 **********
 **   18 **HESSE 
 **********

 FCN=   7488.849     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      322 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20061        7.5593        .34000E-03   -1.5618    
   2  Index         4.4304        7.0109        .51209E-02   -.11418    
   3  Normalizat    1.4910        .16598        .25326E-03   -.78031    
   4  Prefactor     .85370        .12654        .24967E-03   -.97778    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.44709e-09
Minuit parameter uncertainties:
  1  2.4626
  2  5.21343
  3  0.166041
  4  0.126578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510748': 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) = 7488.84927349
delta logL = 0.7177697808

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.006e-01  2.463e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  4.430e+00  5.213e+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:  8.537e-01  1.266e-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.491e+00  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 200.551 8.704
Photon Index (Free Index): 4.43 +/- 5.21
Photon Flux (Free Index): 7.45e-08 +/- 6.34e-08
Energy Flux (Free Index): 1.05e-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/510748/cmap_HighResolution_315273601_315532801_4FGL_J1322.2+0842_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='7.18e-01', photon_flux2='7.45e-08', job_status='DONE', time_completed='2021-09-07 14:11:34.768188', photon_index_error2='5.21', photon_index2='4.43', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='7.78e-08', energy_flux_error2='1.07e-05', EG='1.58', time_epoch_completed='1631049094.77', return_code='0', job_id='510748', GAL2='0.85', EG2='1.49', return_code2='102', photon_flux_error2='6.34e-08', ts2='1.54', photon_index='2.26' WHERE bin_id='293' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 510748: <4FGL_J1322.2+0842_daily_bin293> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin293 200.551 8.7036 315273601 315532801 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            638 sec.

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

