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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin882
RA = 200.551, Dec = 8.7036
tmin = 467942401, tmax = 468201601
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='514795', job_status='RUN', time_executed='2021-09-07 14:19:23.491900', time_epoch_executed='1631049563.49' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514795/ft1_4FGL_J1322.2+0842_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514795/ft2_4FGL_J1322.2+0842_daily_bin882.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514795/ft2_4FGL_J1322.2+0842_daily_bin882.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/514795/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin882.fits evtable="EVENTS" outfile="/scratch/kocevski/514795/ft1_filtered_4FGL_J1322.2+0842_daily_bin882.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514795/ft1_filtered_4FGL_J1322.2+0842_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/514795/ft2_4FGL_J1322.2+0842_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/514795/ltcube_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.fits outfile=/scratch/kocevski/514795/expmap_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.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/514795/ltcube_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.fits
.....................!
real 191.39
user 185.83
sys 4.96

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/514795/ft1_filtered_4FGL_J1322.2+0842_daily_bin882.fits scfile=/scratch/kocevski/514795/ft2_4FGL_J1322.2+0842_daily_bin882.fits outfile=/scratch/kocevski/514795/cmap_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.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/514795/ft1_filtered_4FGL_J1322.2+0842_daily_bin882.fits scfile=/scratch/kocevski/514795/ft2_4FGL_J1322.2+0842_daily_bin882.fits outfile=/scratch/kocevski/514795/cmap_HighResolution_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1237       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7214       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6417       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0565       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0201       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=   6543.094     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1575 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35430        .85427        .16366E-06   -.72189E-04
   2  Prefactor     .10001E-03    26.040        .12920E-04** at limit **
   3  Prefactor     .10000E-03    37.603       -.72917E-05** at limit **
   4  Prefactor     7.1207        8.5854        .12191E-06   -.52625E-03
   5  Prefactor     2.7212        7.1543        .33672E-05   -.14076E-02
   6  Prefactor     16.112        12.344        .25049E-07   -.64438E-05
   7  Prefactor     3.2025        11.036        .18662E-06   -.48447E-04
   8  Prefactor     .10000E-03    19.550       -.55811E-05** at limit **
   9  Prefactor     .10000E-03    15.027        .38670E-05** at limit **
  10  norm          19.529        24.118       -.15024E-05   -.67073E-04
  11  Prefactor     1.6422        4.0568        .26207E-06   -.27097E-03
  12  Prefactor     .10000E-03    20.459       -.36788E-05** at limit **
  13  Prefactor     .10000E-03    1.5008        .10966E-07** at limit **
  14  Prefactor     23.161        18.618       -.59589E-06   -.69781E-04
  15  Prefactor     .10000E-03    12.903       -.10371E-05** at limit **
  16  Normalizat    1.0564        .19365       -.39248E-06    .93915E-05
  17  Prefactor     1.0202        .15400       -.75614E-07    .44606E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.354305
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 7.12075
  Prefactor  = 2.72117
  Prefactor  = 16.1123
  Prefactor  = 3.20246
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 19.5287
  Prefactor  = 1.64222
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.1605
  Prefactor  = 0.0001
  Normalizat = 1.05635
  Prefactor  = 1.02016
 **********
 **   18 **HESSE 
 **********

 FCN=   6543.094     FROM HESSE     STATUS=OK           225 CALLS     1800 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35430        .67389        .11313E-02   -1.5589    
   2  Prefactor     .10001E-03    26.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1207        8.6004        .75147E-03   -1.5174    
   5  Prefactor     2.7212        10.849        .12343E-02   -1.5378    
   6  Prefactor     16.112        12.347        .99780E-04   -1.4905    
   7  Prefactor     3.2025        11.035        .22639E-03   -1.5350    
   8  Prefactor     .10000E-03    19.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.529        24.170        .90628E-04   -1.4824    
  11  Prefactor     1.6422        4.0637        .24272E-03   -1.5452    
  12  Prefactor     .10000E-03    20.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5048        .96763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.161        18.671        .83228E-04   -1.4745    
  15  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0564        .23432        .27093E-03   -.91166    
  17  Prefactor     1.0202        .18653        .22023E-03   -.92061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28669e-08
Minuit parameter uncertainties:
  1  0.673907
  2  0.000864348
  3  0.000579154
  4  8.60191
  5  10.8572
  6  12.3489
  7  11.0416
  8  0.000323546
  9  0.000201881
  10  24.1824
  11  4.06436
  12  0.00020386
  13  8.35403e-07
  14  18.6759
  15  4.2811e-05
  16  0.23455
  17  0.186653
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.202e+00  1.104e+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.020e+00  1.867e-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.056e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514795/likelihoodResults_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.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) = 6543.06087028
delta logL = 0.0330270531776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6543.03924824
delta logL = 0.0546490962615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2048       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8400       1.0000          .0000       10.000    
     3 'Normalizat'    1.0607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0158       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6543.039     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      266 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1756        15.008        .80580E-03    .54518E-04
   2  Index         1.8383        1.0893        .14096E-01   -.17928E-05
   3  Normalizat    1.0610        .22992        .27038E-03   -.13077E-04
   4  Prefactor     1.0156        .18583        .22065E-03   -.10769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.1756
  Index      = 1.8383
  Normalizat = 1.06101
  Prefactor  = 1.01565
 **********
 **   18 **HESSE 
 **********

 FCN=   6543.039     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1756        14.847        .16116E-03   -1.5211    
   2  Index         1.8383        1.0789        .56386E-03   -.68457    
   3  Normalizat    1.0610        .23013        .10815E-04   -.91014    
   4  Prefactor     1.0156        .18602        .88259E-05   -.92210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19802e-12
Minuit parameter uncertainties:
  1  14.8563
  2  1.09339
  3  0.230346
  4  0.186135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514795': 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) = 6543.03924405
delta logL = 0.0546532818535

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  6.176e+00  1.486e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.838e+00  1.093e+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.016e+00  1.861e-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.061e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/514795/cmap_HighResolution_467942401_468201601_4FGL_J1322.2+0842_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-07 14:28:27.239860', job_id='514795', GAL2='1.02', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631050107.24', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.47e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='882' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:28:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 514795: <4FGL_J1322.2+0842_daily_bin882> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin882 200.551 8.7036 467942401 468201601 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 :                                   543.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            780 sec.

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

